@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #fdfbf7;
  --bg-2: #f4f1ea;
  --text: #1a1c18;
  --border: rgba(0, 0, 0, 0.06);
  --surface: #ffffff;
  --primary: #5c6b51;
  /* Deeper olive */
  --primary-ink: #ffffff;
  --accent: #8e9a78;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --space: 1rem;
  --ink: #2d302a;
  --muted: #6b7066;
  --brand: #9ea78f;
  --brand-strong: #7d856f;
  --card: #ffffff;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --drawer-bg: rgba(253, 251, 247, 0.98);
  --drawer-width: 320px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* =========================
   LAYOUT: HEADER / NAV
========================= */

/* === NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(8px);
  background-color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav a.active {
  background: var(--brand);
  color: #fff;
}

.btn-nav {
  background: var(--brand);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 999px;
}

.btn-nav:hover {
  background: var(--brand-strong);
}

/* === MOBILE MENU (GLOBAL SCOPE) === */
.mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  nav:not(.mobile-nav) {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

.mobile-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
  z-index: 110;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--ink);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-toggle.is-active .hamburger { background: transparent; }
.mobile-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
.mobile-toggle.is-active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0.4s;
  text-align: left;
}

.mobile-drawer.is-open { visibility: visible; }

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mobile-drawer.is-open .drawer-overlay { opacity: 1; }

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: min(var(--drawer-width), 85vw);
  height: 100%;
  background: var(--drawer-bg);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.mobile-drawer.is-open .drawer-content { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.drawer-header .logo {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
}

.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li {
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
}

.mobile-drawer.is-open .mobile-nav li { opacity: 1; transform: translateX(0); }

/* Staggered animation */
.mobile-drawer.is-open .mobile-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-drawer.is-open .mobile-nav li:nth-child(2) { transition-delay: 0.15s; }
.mobile-drawer.is-open .mobile-nav li:nth-child(3) { transition-delay: 0.2s; }
.mobile-drawer.is-open .mobile-nav li:nth-child(4) { transition-delay: 0.25s; }
.mobile-drawer.is-open .mobile-nav li:nth-child(5) { transition-delay: 0.3s; }
.mobile-drawer.is-open .mobile-nav li:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.3rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  transition: color 0.3s;
}

.mobile-nav a span { font-size: 0.75rem; color: var(--brand); font-weight: 400; width: 20px; }
.mobile-nav a:hover { color: var(--brand-strong); }

.drawer-footer { margin-top: auto; padding-top: 30px; border-top: 1px solid rgba(0, 0, 0, 0.05); }

.btn-reservio-mobile {
  display: block;
  background: var(--brand);
  color: #fff !important;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.btn-reservio-mobile:hover { background: var(--brand-strong); }

.drawer-contact { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.drawer-contact p { margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.drawer-contact a { color: var(--brand-strong); text-decoration: none; }

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.06) 40%,
      rgba(255, 255, 255, 0.22));
  pointer-events: none;
}

/* =========================
   MAIN / CONTAINER
========================= */

main {
  max-width: 980px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

h1 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.2rem);
  letter-spacing: 0.6px;
  text-align: center;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
  text-align: center;
  color: #111827;
}

p {
  margin-bottom: 0.95rem;
  line-height: 1.75;
  color: #222;
}

strong {
  font-weight: 700;
}

.card,
.contact-box,
.about__section,
.services__section,
.pricing__section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 0.6rem + 1.2vw, 1.4rem);
  margin: 1rem auto;
}

.about__section_bez,
.services__section_bez {
  background: #f5f5dc;
  border: 1px solid #f5f5dc;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 0.6rem + 1.2vw, 1.4rem);
  margin: 1rem auto;
}

/* =========================
   KONTAKT
========================= */

.contact>p {
  text-align: left;
}

.contact-box h2 {
  text-align: left;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.contact-box p {
  margin-bottom: 0.6rem;
}

.contact-box a {
  color: #0b1220;
  text-decoration: underline;
  text-decoration-color: rgba(14, 165, 233, 0.35);
}

.contact-box a:hover {
  text-decoration-color: rgba(14, 165, 233, 0.8);
}

.contact iframe {
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* =========================
   O MNĚ
========================= */

.about__media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem auto;
}

.about__media figure {
  margin: 0;
}

.about__media img {
  width: auto;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about__media .badge img {
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.about__section p,
.about__section_bez p {
  text-align: justify;
}

.about__section ul {
  margin: 0.5rem auto 0;
  padding-left: 1.2rem;
}

.about__section li,
.about__section_bez p {
  margin: 0.5rem 0;
  line-height: 1.7;
}

/* =========================
   CO NABÍZÍM
========================= */

.offer p {
  text-align: left;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem auto 1.2rem;
  max-width: 620px;
}

.offer-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.45rem 0;
  padding: 0.55rem 0.75rem;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.offer-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  flex: 0 0 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/*LOOLOLOLOLO*/
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem auto;
  max-width: 800px;
}

.price-card {
  flex: 1 1 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.25s ease;
}

.price-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.price-card .price {
  font-size: 1rem;
  color: var(--muted);
}

/* =========================
   SLUŽBY
========================= */

.services {
  text-align: center;
}

.services p {
  text-align: center;
}

.services__section,
.services__section_bez {
  max-width: 800px;
}

.services__section p {
  color: #1f2937;
}

/* =========================
   ARTICLES GRID
========================= */

.articles-section {
  padding: 80px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  width: 100%;
}

.articles-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border);
}

.articles-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.articles-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-2);
}

.articles-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.articles-card:hover .articles-image {
  transform: scale(1.08);
}

.articles-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.articles-title {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.3s ease;
}

.article-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.articles-card:hover .articles-title {
  color: var(--brand-strong);
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FOOTER
========================= */

footer {
  width: 100%;
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* =========================
   UTILITIES
========================= */

.btn {
  display: inline-block;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  color: #0b1220;
  background: #fff;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover {
  filter: brightness(0.96);
}

/*TESTVERZE*/

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(28px, 4vw, 46px);
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
}

h3 {
  font-size: clamp(18px, 2.2vw, 22px);
}

p {
  margin: 0 0 1em;
  color: var(--ink);
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* === NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(8px);
  background-color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav a.active {
  background: var(--brand);
  color: #fff;
}

.btn-nav {
  background: var(--brand);
  color: #fff !important;
  padding: 10px 14px;
  border-radius: 999px;
}

.btn-nav:hover {
  background: var(--brand-strong);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 80px 0;
}

.hero p {
  color: #f3f3f3;
  max-width: 800px;
  margin-inline: auto;
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-block;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  transition: all 0.25s ease;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-width: max-content;
}

.btn-secondary:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.about-preview {
  padding: clamp(60px, 8vw, 100px) 0;
}

.about-preview .grid-2 {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 900px) {
  .about-preview .grid-2 {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* --- FOTO --- */
.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: 100%;
  max-width: 420px;
  /* ✅ omezí šířku */
  height: auto;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.about-photo img:hover {
  transform: scale(1.02);
}

/* --- TEXT --- */
.about-text h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 0.6em;
}

.about-text p {
  max-width: 50ch;
  margin-bottom: 1.5em;
  color: #3d3d3d;
  line-height: 1.6;
  font-size: 1.2rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* === CARDS === */
.help {
  padding: 56px 0;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  width: 100%;
}

.card p {
  color: var(--muted);
}

.section-actions {
  margin-top: 18px;
  text-align: center;
}

/* === STEPS === */
.steps {
  padding: 56px 0;
}

.step-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .step-list {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.step span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.step p {
  margin: 0;
}

/* === PRICING PREVIEW === */
.pricing-preview {
  padding: 56px 0;
}

.price-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .price-cards {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.price-card-full {
  grid-column: 1 / -1;
}

.price {
  font-size: 20px;
  font-weight: 700;
}

.note {
  color: var(--muted);
  margin-top: 6px;
}

/* === CTA === */
.cta {
  padding: 56px 0;
}

.cta-box {
  background: linear-gradient(135deg, #eae3d7, #f5efe5);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 32px 24px;
}

/* === FOOTER === */
.site-footer {
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* hero */
.hero {
  position: relative;
  min-height: 68svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: radial-gradient(1300px 500px at 50% 55%,
      rgba(0, 0, 0, 0.0),
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45))
}

/* text uvnitř */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(36px, 5vw, 80px) 16px;
}

.hero-panel {
  background: rgba(20, 22, 22, 0.32);
  backdrop-filter: blur(4px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: clamp(16px, 2.8vw, 28px) clamp(18px, 3.5vw, 36px);
  max-width: min(900px, 92vw);
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.hero-panel h1 {
  color: #fff;
  margin: 0.1em 0 0.4em;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.18;
}

.hero-panel p {
  color: #f3f6f5;
  margin: 0 0 1em;
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero-panel h1,
.hero-panel p {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.services__section a {
  color: #0b1220;
  text-decoration: underline;
  text-decoration-color: rgba(14, 165, 233, 0.35);
}

/* tlačítka */
.btn-primary {
  background: #9ea78f;
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: #889279;
}

.btn-ghost {
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.article-image-container {
  aspect-ratio: 21 / 9;
  max-height: 450px;
  overflow: hidden;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .hero-overlay {
    background: radial-gradient(900px 420px at 50% 58%,
        rgba(0, 0, 0, 0.0),
        rgba(0, 0, 0, 0.3) 70%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  header {
    padding: 0.9rem 1.2rem;
  }

  nav ul {
    gap: 0.8rem;
  }
}

@media (max-width: 780px) {
  .about__media {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about__media .badge img {
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
  }

  @media (max-width: 520px) {
    h1 {
      font-size: 1.55rem;
    }

    header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.6rem;
    }

    nav ul {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 0.6rem;
    }
  }

  /*OPTIMALIZACE*/

  /* =========================================================
   MOBILE/TABLET OPTIMALIZACE — PŘIDAT NA KONEC STYLOPISU
   Mobile-first overrides + lepší responsivita
   --------------------------------------------------------- */

  /* 1) Fluidní typografie + základní mezery */
  :root {
    --fluid-h1: clamp(26px, 5vw, 40px);
    --fluid-h2: clamp(20px, 3.8vw, 28px);
    --fluid-text: clamp(15.5px, 1.8vw, 18px);
    --fluid-pad: clamp(14px, 3.2vw, 22px);
  }

  body {
    font-size: var(--fluid-text);
    line-height: 1.7;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

  /* 2) Kontejner a main — lepší postranní odsazení na mobilech */
  .container,
  main {
    width: min(980px, 92vw);
    padding-inline: min(4vw, 24px);
    margin-inline: auto;
  }

  /* 3) Titulky — lepší čitelnost a mezery */
  h1 {
    font-size: var(--fluid-h1);
    letter-spacing: 0.2px;
    margin-bottom: 0.8em;
  }

  h2 {
    font-size: var(--fluid-h2);
    margin: 1.2em 0 0.6em;
  }

  /* 4) Karty/sekce — menší padding na mobilech, jemnější stín */
  .card,
  .contact-box,
  .about__section,
  .services__section,
  .pricing__section,
  .about__section_bez,
  .services__section_bez {
    padding: var(--fluid-pad);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
  }

  /* 5) Navigace — bez JS: horizontální scroll + větší dotyková plocha */
  .site-header {
    top: env(safe-area-inset-top);
    padding-inline: max(env(safe-area-inset-left), 12px);
  }

  .nav {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  .nav a {
    scroll-snap-align: start;
    padding: 10px 12px;
    /* větší touch target */
    line-height: 1;
    white-space: nowrap;
  }

  /* 6) Tlačítka — minimální dotyková plocha */
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-ghost,
  .btn-nav {
    min-height: 44px;
    padding: 12px 18px;
  }

  /* 7) Obrázky v sekci O mně — odstranění fixní výšky na mobilech */
  .about__media img {
    max-width: 100%;
    height: auto;
  }

  @media (min-width: 901px) {
    .about__media img {
      height: 360px;
      /* původní chování zachováno pro větší displeje */
    }
  }

  /* 8) Grid karet/price — lepší breakpointy */
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  @media (max-width: 980px) {
    .cards {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 600px) {
    .cards {
      grid-template-columns: 1fr;
    }
  }

  .price-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 900px) {
    .price-cards {
      grid-template-columns: 1fr;
    }
  }

  /* 9) Responsivní tabulky (např. v Zásadách cookies) – bez nutnosti wrapperu */
  .about__section table,
  .services__section table,
  main table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    /* umožní horizontální scroll */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  table th,
  table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
  }

  table thead th {
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
  }

  /* 10) Hero — bezpečné zóny a menší vertikální minimum na mobilech */
  .hero {
    min-height: 64svh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero-content {
    padding: clamp(24px, 6vw, 56px) 16px;
  }

  /* 11) Kontakt — mapa poměr stran už máš, jen drobné ladění */
  .contact iframe {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  /* 12) Přístupnost: fokus stavy pro klávesnici */
  a:focus-visible,
  button:focus-visible,
  [role="button"]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 10px;
  }

  /* 13) Reduced motion — méně animací pro citlivé uživatele */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation: none !important;
      transition: none !important;
    }
  }

  /* 15) Drobnosti: lepší justifikace odstavců jen na širších plochách */
  .about__section p,
  .about__section_bez p {
    text-align: left;
  }

  @media (min-width: 900px) {

    .about__section p,
    .about__section_bez p {
      text-align: justify;
    }
  }

  /* 16) Sloupce v nabídkách: měkčí vizuál na mobilech */
  .offer-list li {
    padding: 10px 12px;
  }

  .offer-list li::before {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.55rem;
  }

  /* 17) Footer – lepší čitelnost na malých displejích */
  footer,
  .site-footer {
    font-size: clamp(14px, 1.6vw, 16px);
    padding: clamp(18px, 4vw, 32px) 16px clamp(28px, 6vw, 40px);
  }

  /* Desktop zachováš beze změny */


  /* =========================
   ARTICLE DETAIL
   ========================= */
  .article-detail-section {
    max-width: 800px;
    margin: clamp(2rem, 5vw, 4rem) auto;
    padding: 0 1.5rem;
  }

  .article-header {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }

  .article-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .article-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-2);
  }

  .article-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .article-body {
    font-size: clamp(1.05rem, 1.2vw, 1.15rem);
    line-height: 1.8;
    color: #333;
  }

  .article-body h2,
  .article-body h3 {
    text-align: left;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }

  .article-body p {
    margin-bottom: 1.5rem;
  }

  .article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-strong);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
  }

  .back-link:hover {
    transform: translateX(-5px);
  }

  @media (min-width: 901px) {
    .article-image-container {
      aspect-ratio: 21 / 9;
      max-height: 450px;
    }
  }

  @media (max-width: 600px) {
    .article-footer {
      flex-direction: column;
      gap: 1.5rem;
      align-items: flex-start;
    }
  }