/* =========================================================
   1. BRAND TOKENY — pro každou doménu mění jen těchto 8+2
   ========================================================= */
:root {
  --brand-primary: #1E3A2A;
  --brand-primary-hover: #0F2B1E;
  --brand-primary-soft: #E4EBE3;
  --brand-accent: #C8A665;
  --brand-accent-hover: #B59140;
  --brand-text: #0F2B1E;
  --brand-text-muted: #5A6B56;
  --brand-bg: #F2F0E6;
  --brand-surface: #FAF8F2;
  --brand-border: #D5D2C8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container-max: 1200px;
  --section-pad: 112px;
  --header-h: 76px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* =========================================================
   2. BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--brand-text);
  background: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
section { scroll-margin-top: 90px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--brand-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(38px, 4.8vw, 60px); }
h2 { font-size: clamp(34px, 4.8vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }

p { margin: 0 0 16px; }
.muted { color: var(--brand-text-muted); }

/* =========================================================
   3. LAYOUT
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--brand-surface); }

/* Tmavé sekce — zelené pozadí, krémový text, zlaté accenty */
.section-dark { background: var(--brand-primary); }

.section-dark .section-head::before { color: var(--brand-accent); }
.section-dark .section-head h2 { color: var(--brand-bg); }
.section-dark .section-head p { color: rgba(242,240,230,0.8); }

/* Cards v tmavé sekci (Služby, Proč já) */
.section-dark .cards-grid {
  border-color: rgba(255,255,255,0.15);
}
.section-dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
}
.section-dark .card::before { color: var(--brand-accent); }
.section-dark .card-eyebrow { color: var(--brand-accent); }
.section-dark .card h3 { color: var(--brand-bg); }
.section-dark .card p { color: rgba(242,240,230,0.85); }
.section-dark .card:hover { background: rgba(255,255,255,0.14); }

/* Steps v tmavé sekci (Proces) */
.section-dark .step { border-color: rgba(255,255,255,0.15); }
.section-dark .step-num { color: var(--brand-accent); }
.section-dark .step h3 { color: var(--brand-bg); }
.section-dark .step p { color: rgba(242,240,230,0.85); }
.section-dark .step::after { background: var(--brand-accent); }
.section-dark .step:hover .step-num { color: var(--brand-accent); }

/* Products v tmavé sekci (Produkty) */
.section-dark .product-item { border-color: rgba(255,255,255,0.15); }
.section-dark .product-num { color: var(--brand-accent); opacity: 0.6; }
.section-dark .product-title { color: var(--brand-bg); }
.section-dark .product-desc { color: rgba(242,240,230,0.9); }
.section-dark .product-item:hover .product-title { color: var(--brand-accent); }
.section-dark .product-item:hover .product-num { color: var(--brand-accent); opacity: 1; }

/* Booking v tmavé sekci (Rezervace) */
.section-dark .booking-card {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.section-dark .booking-card:hover { border-color: var(--brand-accent); }
.section-dark .booking-card h3 { color: var(--brand-bg); }
.section-dark .booking-meta { color: rgba(242,240,230,0.6); }
.section-dark .booking-desc { color: rgba(242,240,230,0.85); }

/* Kontakt v tmavé sekci */
.section-dark .contact-info-label { color: rgba(242,240,230,0.5); }
.section-dark .contact-info-value { color: var(--brand-bg); }
.section-dark a.contact-info-value:hover { color: var(--brand-accent); }

.section-dark .form-group label { color: rgba(242,240,230,0.6); }
.section-dark .form-group input,
.section-dark .form-group textarea {
  color: var(--brand-bg);
  border-bottom-color: rgba(255,255,255,0.25);
  background: transparent;
}
.section-dark .form-group input::placeholder,
.section-dark .form-group textarea::placeholder {
  color: rgba(242,240,230,0.35);
}
.section-dark .form-group input:focus,
.section-dark .form-group textarea:focus {
  border-bottom-color: var(--brand-accent);
}
.section-dark .form-group input:hover,
.section-dark .form-group textarea:hover {
  border-bottom-color: rgba(255,255,255,0.4);
}
.section-dark .checkbox-group label { color: rgba(242,240,230,0.7); }
.section-dark .checkbox-group label a {
  color: var(--brand-accent);
  border-bottom-color: rgba(200,166,101,0.4);
}
.section-dark .checkbox-group label a:hover {
  color: var(--brand-bg);
  border-bottom-color: var(--brand-bg);
}
.section-dark .form-success { color: var(--brand-accent); }

/* Counter pro číslování sekcí v section-head */
main { counter-reset: section; }

.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  max-width: 880px;
  margin-bottom: 72px;
  counter-increment: section;
}

.section-head::before {
  content: counter(section, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  align-self: start;
  padding-top: 16px;
}

.section-head h2 {
  margin: 0 0 16px;
  grid-column: 2;
}

.section-head p {
  grid-column: 2;
  font-size: 18px;
  color: var(--brand-text-muted);
  max-width: 620px;
  margin: 0;
}

/* =========================================================
   4. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-primary-hover);
}
.btn-primary:hover { background: var(--brand-accent-hover); color: var(--brand-primary-hover); }

.btn-secondary {
  background: transparent;
  color: var(--brand-text);
  border-color: var(--brand-border);
}
.btn-secondary:hover { border-color: var(--brand-accent); color: var(--brand-primary); }

.btn-sm { padding: 10px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* =========================================================
   5. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-primary-hover);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: rgba(255,255,255,0.15); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--brand-bg);
  letter-spacing: -0.01em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-desktop a {
  font-size: 14px;
  color: rgba(242, 240, 230, 0.85);
  position: relative;
  transition: color 0.18s;
}

.nav-desktop a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s;
}

.nav-desktop a:not(.btn):hover::after { transform: scaleX(1); }
.nav-desktop a.btn { color: var(--brand-primary-hover); }
.nav-desktop a.btn:hover { color: var(--brand-primary-hover); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid rgba(255,255,255,0.15);
  height: 22px;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
}

.nav-social a::after { content: none; display: none; }
.nav-social img { display: block; }

/* =========================================================
   5b. NAV DROPDOWN (desktop „Více ▾")
   ========================================================= */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(242, 240, 230, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: color 0.18s;
}

.nav-dropdown-btn:hover { color: var(--brand-bg); }

.nav-dropdown-btn i {
  font-size: 14px;
  transition: transform 0.18s;
}

.nav-dropdown-btn[aria-expanded="true"] i { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 190px;
  background: var(--brand-primary-hover);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  z-index: 50;
}

.nav-dropdown-menu.open { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: rgba(242,240,230,0.85);
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a::after { content: none !important; }

.nav-dropdown-menu a:hover {
  color: var(--brand-bg);
  background: rgba(255,255,255,0.06);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--brand-bg);
  font-size: 24px;
  line-height: 1;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px 32px;
  background: var(--brand-primary-hover);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 18px; color: rgba(242,240,230,0.85); }
.nav-mobile a.btn { color: var(--brand-primary-hover); align-self: stretch; }
.nav-mobile a.btn-secondary { color: var(--brand-bg); border-color: rgba(255,255,255,0.3); }

.nav-mobile-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.nav-mobile-social a {
  display: inline-flex;
  align-items: center;
}

.nav-mobile-social img { display: block; }

/* Hamburger menu se zapne dřív než ostatní mobilní úpravy, aby se na užších laptopech
   nesráželo dlouhé desktop menu s logem. */
@media (max-width: 1180px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
}


/* =========================================================
   6. HERO
   ========================================================= */
.hero {
  padding: 64px 0 120px;
  background: var(--brand-primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-accent);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand-accent);
}

.hero-title {
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  color: var(--brand-bg);
}

.hero-desc {
  font-size: 19px;
  color: rgba(242, 240, 230, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn-secondary {
  color: var(--brand-bg);
  border-color: rgba(255,255,255,0.3);
}
.hero .btn-secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.hero-photo-mobile { display: none; }

.hero-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.95);
}

/* =========================================================
   7. O MNĚ
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.about-grid h2 { margin-bottom: 16px; }
.about-grid > div:first-child .muted {
  font-size: 14px;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.about-grid p {
  font-size: 18px;
  line-height: 1.6;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--brand-border);
}

.stat { padding-right: 24px; }

.stat + .stat {
  border-left: 1px solid var(--brand-border);
  padding-left: 24px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  color: var(--brand-text);
  line-height: 0.95;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.stat-label {
  font-size: 13px;
  color: var(--brand-text-muted);
  line-height: 1.4;
}

/* Micro-animace — scroll reveal pro stats */
.about-stats .stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-stats.in-view .stat { opacity: 1; transform: translateY(0); }

.about-stats.in-view .stat:nth-child(1) { transition-delay: 0s; }
.about-stats.in-view .stat:nth-child(2) { transition-delay: 0.1s; }
.about-stats.in-view .stat:nth-child(3) { transition-delay: 0.2s; }
.about-stats.in-view .stat:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   8. CARDS (Služby, Proč já) — editorial bordered grid
   ========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--brand-border);
  border-left: 1px solid var(--brand-border);
  counter-reset: card;
}

.card {
  padding: 40px 36px 44px;
  border-right: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  counter-increment: card;
  position: relative;
  background: transparent;
  transition: background-color 0.2s;
}

.card:hover { background: var(--brand-primary-soft); }

/* drop the AI icon-square pattern */
.card-icon { display: none; }

.card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card-desc {
  font-size: 15.5px;
  color: var(--brand-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 440px;
}

/* Micro-animace — scroll reveal pro karty (Služby, Proč já) */
.cards-grid .card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, background-color 0.2s, border-color 0.2s;
}

.cards-grid.in-view .card { opacity: 1; transform: translateY(0); }

.cards-grid.in-view .card:nth-child(1) { transition-delay: 0s; }
.cards-grid.in-view .card:nth-child(2) { transition-delay: 0.08s; }
.cards-grid.in-view .card:nth-child(3) { transition-delay: 0.16s; }
.cards-grid.in-view .card:nth-child(4) { transition-delay: 0.24s; }

/* =========================================================
   8b. PRODUKTY — editorial číslovaný seznam
   ========================================================= */
.products-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  padding: 36px 0;
  border-top: 1px solid var(--brand-border);
  align-items: baseline;
  transition: background-color 0.2s;
}

.product-item:last-child {
  border-bottom: 1px solid var(--brand-border);
}

.product-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.product-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding-top: 8px;
}

.product-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.product-desc {
  font-size: 16px;
  color: var(--brand-text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

/* Hover na produkty */
.product-head {
  transition: transform 0.35s ease;
}

.product-title,
.product-num {
  transition: color 0.3s ease;
}

.product-item:hover .product-head {
  transform: translateX(8px);
}

.product-item:hover .product-title {
  color: var(--brand-accent);
}

.product-item:hover .product-num {
  color: var(--brand-primary);
}

@media (prefers-reduced-motion: reduce) {
  .product-head { transition: none; }
  .product-item:hover .product-head { transform: none; }
}

/* Micro-animace — scroll reveal pro produkty se staggerem */
.products-list .product-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.products-list.in-view .product-item { opacity: 1; transform: translateY(0); }

.products-list.in-view .product-item:nth-child(1) { transition-delay: 0s; }
.products-list.in-view .product-item:nth-child(2) { transition-delay: 0.08s; }
.products-list.in-view .product-item:nth-child(3) { transition-delay: 0.16s; }
.products-list.in-view .product-item:nth-child(4) { transition-delay: 0.24s; }
.products-list.in-view .product-item:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .products-list .product-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   8b. TÝM
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.team-member {
  display: flex;
  flex-direction: column;
}

.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--brand-primary-soft);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo--placeholder span {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--brand-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.team-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.team-role {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin: 0 0 18px;
}

.team-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-specs li {
  font-size: 12px;
  padding: 5px 10px;
  background: #EDE8DE;
  color: var(--brand-primary);
  border-radius: 3px;
  letter-spacing: 0.01em;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-border);
  margin-top: auto;
}

.team-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-text);
  transition: color 0.18s ease;
}

.team-contact a:hover {
  color: var(--brand-primary);
}

.team-contact a i {
  font-size: 16px;
  color: var(--brand-text-muted);
  transition: color 0.18s ease;
  flex-shrink: 0;
}

.team-contact a:hover i {
  color: var(--brand-primary);
}

/* Micro-animace — scroll reveal pro tým se staggerem */
.team-member {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.team-grid.in-view .team-member { opacity: 1; transform: translateY(0); }
.team-grid.in-view .team-member:nth-child(1) { transition-delay: 0ms; }
.team-grid.in-view .team-member:nth-child(2) { transition-delay: 80ms; }
.team-grid.in-view .team-member:nth-child(3) { transition-delay: 160ms; }

@media (max-width: 960px) {
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-photo { max-width: 320px; }
}

/* =========================================================
   9. PROCES
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  border-top: 1px solid var(--brand-border);
  padding-top: 28px;
  position: relative;
}

/* Zelená 2px čára - default na 1. kroku, při hoveru sleduje myš */
.step::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-accent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.step:first-child::after { opacity: 1; }

/* Když je myš nad jiným krokem, zhasni default na prvním */
.steps:has(.step:hover) .step:first-child:not(:hover)::after { opacity: 0; }

/* Hover kdekoliv = zlatá čára nad tím krokem */
.step:hover::after { opacity: 1; }

.step-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--brand-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Micro-animace — scroll reveal s staggerem */
.steps .step {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.steps.in-view .step { opacity: 1; transform: translateY(0); }

.steps.in-view .step:nth-child(1) { transition-delay: 0s; }
.steps.in-view .step:nth-child(2) { transition-delay: 0.12s; }
.steps.in-view .step:nth-child(3) { transition-delay: 0.24s; }
.steps.in-view .step:nth-child(4) { transition-delay: 0.36s; }

/* Hover na číslo kroku */
.step-num { transition: transform 0.3s ease, color 0.3s ease; }

.step:hover .step-num {
  transform: translateY(-2px);
  color: var(--brand-primary-hover);
}

@media (prefers-reduced-motion: reduce) {
  .steps .step {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .step-num { transition: none; }
  .step:hover .step-num { transform: none; }
}

/* =========================================================
   10. REFERENCE — carousel
   ========================================================= */
.testimonials-carousel { position: relative; }

.testimonials-viewport { overflow: hidden; }

.testimonials {
  display: flex;
  gap: 48px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonial {
  flex-shrink: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 32px;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -8px;
  left: -6px;
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--brand-accent);
  line-height: 1;
  opacity: 0.5;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--brand-text);
  margin: 0 0 28px;
  letter-spacing: -0.005em;
  padding: 0;
  border: none;
}

.testimonial-meta {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 500;
  color: var(--brand-text);
}

.testimonial-place {
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* Micro-animace — scroll reveal pro testimoniály */
.testimonials .testimonial {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonials.in-view .testimonial { opacity: 1; transform: translateY(0); }

.testimonials.in-view .testimonial:nth-child(1) { transition-delay: 0s; }
.testimonials.in-view .testimonial:nth-child(2) { transition-delay: 0.08s; }
.testimonials.in-view .testimonial:nth-child(3) { transition-delay: 0.16s; }
.testimonials.in-view .testimonial:nth-child(4) { transition-delay: 0.24s; }
.testimonials.in-view .testimonial:nth-child(5) { transition-delay: 0.32s; }
.testimonials.in-view .testimonial:nth-child(6) { transition-delay: 0.40s; }

/* Google link badge v hlavičce referencí */
.google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-text);
  border-bottom: 1px solid var(--brand-border);
  padding-bottom: 2px;
  transition: border-color 0.18s;
  font-size: 16px;
}

.google-link:hover { border-bottom-color: var(--brand-text); }
.google-link svg { flex-shrink: 0; }

.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.testimonials-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--brand-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-text);
  font-size: 16px;
  transition: border-color 0.18s, background-color 0.18s;
  flex-shrink: 0;
}

.testimonials-btn:hover {
  border-color: var(--brand-accent);
  background: var(--brand-primary-soft);
}

.testimonials-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--brand-accent);
  transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .testimonials { transition: none; will-change: auto; }
  .dot { transition: none; }
}

/* =========================================================
   11. CERTIFIKACE
   ========================================================= */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.credential {
  padding: 0;
  text-align: left;
}

/* drop soft-bg squares around icons */
.credential-icon {
  display: inline-block;
  font-size: 24px;
  color: var(--brand-primary);
  margin-bottom: 14px;
  background: none;
  width: auto;
  height: auto;
}

.credential-icon--logo {
  display: inline-flex;
  align-items: center;
  height: 32px;
  transition: opacity 0.18s;
}

.credential-icon--logo:hover { opacity: 0.7; }

.credential-icon--logo img {
  height: 32px;
  width: auto;
  display: block;
}

.credential-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--brand-text);
}

.credential-desc {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Micro-animace — scroll reveal pro certifikace */
.credentials-grid .credential {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.credentials-grid.in-view .credential { opacity: 1; transform: translateY(0); }

.credentials-grid.in-view .credential:nth-child(1) { transition-delay: 0s; }
.credentials-grid.in-view .credential:nth-child(2) { transition-delay: 0.08s; }
.credentials-grid.in-view .credential:nth-child(3) { transition-delay: 0.16s; }
.credentials-grid.in-view .credential:nth-child(4) { transition-delay: 0.24s; }

/* Respekt pro prefers-reduced-motion napříč všemi reveal animacemi */
@media (prefers-reduced-motion: reduce) {
  .cards-grid .card,
  .testimonials .testimonial,
  .credentials-grid .credential,
  .about-stats .stat,
  .team-member,
  .booking-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   12. FAQ
   ========================================================= */
.faq-list {
  max-width: 800px;
  margin: 0 0 0 112px;
}

.faq-item { border-bottom: 1px solid var(--brand-border); }
.faq-item:first-child { border-top: 1px solid var(--brand-border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--brand-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.faq-icon {
  font-size: 18px;
  color: var(--brand-accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--brand-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.faq-answer p { margin: 0 0 24px; max-width: 640px; }
.faq-item.open .faq-answer { max-height: 400px; }

/* =========================================================
   12b. REZERVACE
   ========================================================= */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.booking-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.6s ease-out, border-color 0.25s ease, transform 0.25s ease;
}

.booking-grid.in-view .booking-card { opacity: 1; }
.booking-grid.in-view .booking-card:nth-child(2) { transition-delay: 100ms; }

.booking-card:hover {
  border-color: var(--brand-accent);
  transform: translateY(-2px);
}

.booking-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 600;
}

.booking-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--brand-text);
}

.booking-meta {
  font-size: 13px;
  color: var(--brand-text-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.booking-desc {
  color: var(--brand-text);
  margin: 0;
  flex: 1;
  line-height: 1.6;
}

.booking-card .btn {
  margin-top: 16px;
  align-self: stretch;
  justify-content: center;
}

@media (max-width: 720px) {
  .booking-grid { grid-template-columns: 1fr; gap: 16px; }
  .booking-card { padding: 32px; }
  .booking-card h3 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-card,
  .booking-card:hover { transition: none; transform: none; }
}

/* =========================================================
   13. KONTAKT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info { margin-left: 112px; }

.contact-info-item {
  margin-bottom: 28px;
}

/* drop the soft-bg icon squares */
.contact-info-icon { display: none; }

.contact-info-label {
  font-size: 12px;
  color: var(--brand-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 17px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--brand-text);
  letter-spacing: -0.01em;
  display: inline-block;
}

a.contact-info-value:hover { color: var(--brand-primary); }

#contact-form { scroll-margin-top: 100px; }

/* Flat form, no card */
.contact-form {
  background: none;
  border: none;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  margin: 0;
  padding: 16px 0;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--brand-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 4px 0 12px;
  border: none;
  border-bottom: 1px solid var(--brand-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: transparent;
  color: var(--brand-text);
  transition: border-color 0.18s;
}

.form-group input:hover,
.form-group textarea:hover { border-bottom-color: var(--brand-text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--brand-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 24px 0 28px;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--brand-primary);
}

.checkbox-group label {
  font-size: 13px;
  color: var(--brand-text-muted);
  line-height: 1.5;
}

.checkbox-group label a {
  color: var(--brand-text);
  border-bottom: 1px solid var(--brand-border);
}

.form-success {
  display: none;
  padding: 14px 16px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary-hover);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.form-success.show { display: block; }

.form-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
}

.form-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(242,240,230,0.55);
}

.form-trust i { font-size: 14px; color: var(--brand-accent); }

/* =========================================================
   14. FOOTER
   ========================================================= */
.site-footer {
  padding: 64px 0 32px;
  background: var(--brand-primary-hover);
  color: var(--brand-bg);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 48px;
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 48px;
}

.footer-cta-text { max-width: 520px; }

.footer-cta-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--brand-bg);
  line-height: 1.2;
}

.footer-cta-sub {
  font-size: 15px;
  color: rgba(242,240,230,0.65);
  margin: 0;
  line-height: 1.5;
}

.footer-cta-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.footer-cta .btn-secondary {
  color: var(--brand-bg);
  border-color: rgba(255,255,255,0.3);
}
.footer-cta .btn-secondary:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--brand-bg);
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(242,240,230,0.6);
  margin: 6px 0 0;
}

.footer-member {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.footer-member-label {
  font-size: 11px;
  color: rgba(242,240,230,0.5);
  letter-spacing: 0.08em;
}

.footer-member-link {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--brand-accent);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.footer-member-link:hover {
  color: var(--brand-bg);
  border-bottom-color: var(--brand-bg);
}

.footer-member-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--brand-bg);
  padding: 12px 20px;
  border-radius: 8px;
}

.footer-member-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.18s;
}

.footer-member-logo:hover { opacity: 0.65; }

.footer-member-logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* ZFP logo je bílé — tmavý pill uvnitř krémového kontejneru */
.footer-member-logo--dark-bg {
  background: var(--brand-primary-hover);
  padding: 6px 12px;
  border-radius: 6px;
}

.footer-member-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--brand-border);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 11px;
  color: var(--brand-accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 15px;
  color: rgba(242,240,230,0.8);
  transition: color 0.18s;
}

.footer-col-links a:hover { color: var(--brand-bg); }

.footer-address {
  font-size: 15px;
  color: rgba(242,240,230,0.8);
  font-style: normal;
  line-height: 1.65;
}

.footer-address-ico {
  color: rgba(242,240,230,0.5);
  font-size: 13px;
  display: inline-block;
  margin-top: 4px;
}

.footer-hours {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(242,240,230,0.8);
}

.footer-hours-label {
  display: block;
  font-size: 11px;
  color: rgba(242,240,230,0.5);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-map {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 6px;
  margin-top: 20px;
  display: block;
}

.footer-legal {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}

.footer-legal p {
  font-size: 12px;
  color: rgba(242,240,230,0.45);
  line-height: 1.6;
  margin: 0;
  max-width: 920px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(242,240,230,0.5);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(242,240,230,0.5);
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--brand-bg); }

.footer-credits {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(242,240,230,0.45);
  letter-spacing: 0.02em;
}

.footer-credits a {
  color: rgba(242,240,230,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.18s, border-color 0.18s;
}

.footer-credits a:hover {
  color: var(--brand-bg);
  border-bottom-color: var(--brand-bg);
}

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.18s;
}

.footer-social a:hover { opacity: 0.7; }

.footer-social img {
  width: 20px;
  height: 20px;
  display: block;
}

/* =========================================================
   14b. STICKY MOBILNÍ CTA BAR
   ========================================================= */
.sticky-call { display: none; }

@media (max-width: 960px) {
  .sticky-call {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 85;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom)) 16px;
    background: rgba(15, 43, 30, 0.97);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-top: 1px solid rgba(255,255,255,0.1);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sticky-call.visible { transform: translateY(0); }

  .sticky-call-inner {
    display: flex;
    gap: 10px;
    max-width: var(--container-max);
    margin: 0 auto;
  }

  .sticky-call .btn {
    flex: 1;
    justify-content: center;
    font-size: 14px;
    padding: 12px 10px;
  }

  .sticky-call-form {
    color: var(--brand-bg);
    border-color: rgba(255,255,255,0.3);
    background: transparent;
  }

  .sticky-call-form:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
  }

  body.has-sticky-call .back-to-top { bottom: 84px; }
}

/* =========================================================
   14c. BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: var(--brand-primary-hover);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.18s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top.visible:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* =========================================================
   15. ACCESSIBILITY
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: var(--brand-text);
  color: var(--brand-bg);
  padding: 10px 16px;
  z-index: 200;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.18s;
}
.skip-link:focus { transform: translateY(0); }

*:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* =========================================================
   16. RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  :root { --section-pad: 72px; }
  .container { padding: 0 24px; }

  .hero { padding: 32px 0 80px; }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-photo { display: none; }

  .hero-photo-mobile {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin: 28px 0;
  }

  .hero-photo-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.02) saturate(0.95);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .section-head::before { padding-top: 0; }
  .section-head h2,
  .section-head p { grid-column: 1; }

  .cards-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .testimonials { gap: 0; }

  .product-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .product-head { gap: 16px; }
  .product-title { font-size: 22px; }

  .credentials-grid { gap: 32px; }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }

  .stat + .stat {
    padding-left: 24px;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    padding-top: 32px;
    border-top: 1px solid var(--brand-border);
  }

  .stat:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .faq-list,
  .contact-info { margin-left: 0; }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-cta-buttons { width: 100%; }
  .footer-cta-buttons .btn { flex: 1; justify-content: center; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr 1fr; }

  /* Stats zachovat 2×2 i na nejmenším mobilu */
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }

  /* Cards — horizontální scroll se snap */
  .cards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: none;
    border-left: none;
    gap: 14px;
    padding: 0 20px 16px;
    margin: 0 -20px;
  }
  .cards-grid::-webkit-scrollbar { display: none; }

  .card {
    min-width: min(300px, 82vw);
    scroll-snap-align: start;
    flex-shrink: 0;
    border: 1px solid var(--brand-border);
  }

  .section-dark .card { border-color: rgba(255,255,255,0.15); }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-cta-buttons { flex-direction: column; gap: 8px; }
  .footer-cta-buttons .btn { width: 100%; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* =========================================================
   PODSTRÁNKY — page hero, calculator, CTA
   ========================================================= */
.calculator-page {
  padding-top: calc(var(--header-h) + 8px);
  padding-bottom: 48px;
}

.calculator-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-accent);
  text-align: center;
  margin: 0 0 8px;
}

.calculator-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--brand-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Sjednocení fontu vložené kalkulačky s webem */
#hypospace-calculator-sales * {
  font-family: var(--font-body) !important;
}

.page-hero {
  padding: calc(var(--header-h) + 40px) 0 16px;
}

.page-hero-inner {
  max-width: 720px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--brand-text);
}

.page-hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--brand-text-muted);
  margin: 0;
}

.calculator-section {
  padding: 0 0 48px;
}

.page-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.page-cta-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--brand-text);
}

.page-cta-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--brand-text-muted);
  margin: 0 0 32px;
}

.page-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .page-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .page-cta-buttons .btn {
    justify-content: center;
  }
}

/* Aktivní stránka v navigaci */
.nav-desktop a[aria-current="page"] {
  color: var(--brand-accent);
}
.nav-desktop a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-mobile a[aria-current="page"] {
  color: var(--brand-accent);
  font-weight: 600;
}

/* =========================================================
   404 ERROR PAGE
   ========================================================= */
.error-page {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.error-content {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 500;
  color: var(--brand-accent);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
  opacity: 0.8;
}

.error-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--brand-text);
}

.error-desc {
  color: var(--brand-text-muted);
  margin: 0 0 36px;
  line-height: 1.6;
  font-size: 16px;
}

.error-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .error-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .error-ctas .btn { justify-content: center; }
}