/* Balaton Dolní Dubňany — návrh nového webu */

:root {
  --deep: #0f2a24;      /* hladina za svítání */
  --deep-2: #17382f;
  --water: #2f5a4c;
  --willow: #c3cf63;    /* jarní vrba */
  --bank: #8a6440;      /* hlína břehu */
  --post: #b9824c;      /* dřevěný kolík / molo */
  --paper: #f2f4ef;
  --paper-2: #e4e9e1;
  --ink: #15241f;
  --muted: #55665f;
  --brand: #1051ab;     /* modrá z loga */
  --brand-dark: #0b3e86;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, video { display: block; max-width: 100%; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--willow); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  letter-spacing: .005em;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--dark { background: var(--deep); color: var(--paper); }
.section--dark a { color: var(--willow); }
.section--dark .btn--primary { color: #fff; }
.section--tint { background: var(--paper-2); }
.lead { font-size: 1.25rem; line-height: 1.55; }

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.4em;
  border-radius: var(--radius);
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep);
  color: var(--paper);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand span { font: 800 1.6rem/1 var(--display); letter-spacing: .01em; }
.brand small { display: block; font: 500 .8rem/1.2 var(--body); color: #b9c6bf; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--paper); text-decoration: none;
  padding: .55em .8em; border-radius: var(--radius);
  font-weight: 500; font-size: .98rem; white-space: nowrap;
}
.nav a:hover { background: var(--deep-2); }
.nav a[aria-current="page"] { color: var(--willow); }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { background: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9em 0; border-bottom: 1px solid var(--deep-2); border-radius: 0; }
  .nav .btn { margin: 14px 0 0; justify-content: center; border-radius: var(--radius); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid; align-items: end;
  color: #fff;
  background: var(--deep) center 40% / cover no-repeat;
  background-image: url("../img/hero.jpg");
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,42,36,.15) 0%, rgba(15,42,36,.25) 45%, rgba(15,42,36,.88) 100%);
}
.hero .wrap { position: relative; padding-block: 96px 64px; }
.hero h1 { max-width: 12ch; margin-bottom: .25em; }
.hero .lead { max-width: 52ch; color: #e4ebe6; margin-bottom: 28px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .95rem; margin-bottom: 22px; color: #e4ebe6;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--willow); box-shadow: 0 0 0 4px rgba(195,207,99,.25); }

/* ---------- podhlavička (vnitřní stránky) ---------- */
.page-head { background: var(--deep); color: var(--paper); padding-block: 72px 56px; }
.page-head--photo {
  position: relative; background: var(--deep) center / cover no-repeat;
  padding-block: 160px 56px;
}
.page-head--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,42,36,.2), rgba(15,42,36,.9)); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.page-head p { color: #c9d4ce; font-size: 1.15rem; }

/* ---------- o revíru ---------- */
.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.facts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 32px; }
.facts div { border-top: 1px solid #c7d0c9; padding: 14px 0 16px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 700 1.6rem/1.1 var(--display); }
.clip { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--deep); aspect-ratio: 9 / 16; max-height: 640px; }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: .9rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .clip { max-width: 360px; }
}

/* ---------- profil revíru: kolíky + hloubka ---------- */
.profile-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 40px; }
.profile-intro p { margin: 0; color: #c9d4ce; }
.profile-scroll { overflow-x: auto; scrollbar-width: thin; padding: 8px 0; }
.profile {
  --max: 4;
  --bed: 220px;
  display: grid;
  grid-template-columns: repeat(14, minmax(66px, 1fr));
  min-width: 940px;
  position: relative;
}
.profile::after {        /* hladina */
  content: ""; position: absolute; left: 0; right: 0; top: 132px;
  border-top: 2px solid rgba(195,207,99,.55);
}
.peg {
  display: grid; grid-template-rows: 132px var(--bed) auto;
  justify-items: center;
  color: var(--paper); text-decoration: none;
  position: relative;
}
.peg-post {
  align-self: end;
  width: 46px; padding: 10px 0 20px;
  background: var(--post);
  background-image: repeating-linear-gradient(180deg, rgba(0,0,0,.0) 0 7px, rgba(0,0,0,.06) 7px 8px);
  border-radius: 4px 4px 0 0;
  text-align: center;
  color: #2a1a0c;
  font: 800 1.6rem/1 var(--display);
  transition: transform .2s ease;
}
.peg-name {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font: 700 .95rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap; color: var(--willow);
}
.peg-depth { width: 100%; display: flex; justify-content: center; }
.peg-depth i {
  display: block; width: calc(100% - 10px);
  height: calc(var(--d) / var(--max) * 100%);
  background: linear-gradient(180deg, #2f5a4c, #193d34);
  border-radius: 0 0 4px 4px;
}
.peg-meta { padding-top: 10px; text-align: center; font-size: .82rem; line-height: 1.3; color: #c9d4ce; }
.peg-meta b { display: block; font: 700 1.1rem/1.1 var(--display); color: var(--paper); }
.peg.is-race .peg-post { background-color: #6f7d76; color: #f2f4ef; }
.peg.is-race .peg-depth i { background: repeating-linear-gradient(135deg, #2f5a4c 0 6px, #27493f 6px 12px); }
.peg:hover .peg-post, .peg:focus-visible .peg-post { transform: translateY(-6px); }
.peg:hover .peg-depth i { background: linear-gradient(180deg, #3d7462, #1f4a3f); }
.profile-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: .92rem; color: #c9d4ce; }
.profile-legend span { display: inline-flex; align-items: center; gap: 8px; }
.profile-legend i { width: 14px; height: 14px; border-radius: 2px; background: var(--post); }
.profile-legend i.race { background: #6f7d76; }
.profile-ends { display: flex; justify-content: space-between; min-width: 940px; font-size: .85rem; color: #93a59c; margin-top: 4px; }

/* ---------- mapa revíru ---------- */
.map-wrap { position: relative; margin: 0 0 40px; overflow-x: auto; scrollbar-width: thin; border-radius: var(--radius); }
@media (max-width: 720px) { .pond-map { min-width: 680px; } }
.pond-map { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.map-land { fill: #133229; }
.map-trees circle { fill: #1c4338; }
.map-trees circle.t2 { fill: #22503f; }
.map-water { fill: #3b6e66; }
.map-shore { fill: none; stroke: #5f948a; stroke-width: 6; opacity: .55; }
.map-dam { stroke: #c9d4ce; stroke-width: 5; stroke-linecap: round; }
.map-label { fill: #c9d4ce; font: 600 11px var(--body); }
.map-poi rect { fill: #f2f4ef; }
.map-poi text { fill: var(--deep); font: 700 9px var(--body); text-anchor: middle; }
.map-parking rect { fill: var(--brand); }
.map-parking text { fill: #fff; font-size: 13px; }
.map-spot line { stroke: var(--post); stroke-width: 1.5; }
.map-spot .bank { fill: var(--willow); }
.map-spot rect { fill: var(--post); transition: transform .15s ease; }
.map-spot text { fill: #2a1a0c; font: 800 12px var(--display); text-anchor: middle; pointer-events: none; }
.map-spot.is-race rect, .map-spot.is-race line { fill: #6f7d76; stroke: #6f7d76; }
.map-spot.is-race text { fill: #f2f4ef; }
.map-spot:hover rect, .map-spot:focus-visible rect, .map-spot.is-active rect { fill: var(--willow); }
.map-spot:focus-visible { outline: none; }
.map-scale path { stroke: #c9d4ce; stroke-width: 1.5; fill: none; }
.map-scale text, .map-north text { fill: #c9d4ce; font: 600 10px var(--body); }
.map-north path { fill: #c9d4ce; }
.map-north text { text-anchor: middle; }
.map-tip {
  position: absolute; z-index: 2; pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--paper); color: var(--ink);
  padding: 8px 12px; border-radius: var(--radius);
  font-size: .9rem; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.map-tip b { font: 700 1.1rem/1.1 var(--display); display: block; }
.peg.is-active .peg-post { transform: translateY(-6px); background-color: var(--willow); }

/* ---------- úlovky ---------- */
.catch { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; }
.catch img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.catch img:nth-child(2) { aspect-ratio: auto; }
@media (max-width: 720px) {
  .catch { grid-template-columns: 1fr 1fr; }
  .catch img:nth-child(2) { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 3; }
}

/* ---------- ceník ---------- */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.price { padding: 28px 32px 32px 0; }
.price + .price { padding-left: 32px; border-left: 1px solid #c7d0c9; }
.price h3 { margin-bottom: .2em; }
.price .when { color: var(--muted); margin-bottom: 18px; }
.price .amount { font: 800 clamp(3.5rem, 7vw, 5.5rem)/.9 var(--display); }
.price .amount small { font: 500 1.05rem/1 var(--body); color: var(--muted); margin-left: 6px; }
.notes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; max-width: 64ch; }
.notes li { padding-left: 22px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 2px; background: var(--bank); }
@media (max-width: 640px) {
  .prices { grid-template-columns: 1fr; }
  .price, .price + .price { padding: 24px 0; border-left: 0; }
  .price + .price { border-top: 1px solid #c7d0c9; }
}

/* ---------- akce ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.events { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(242,244,239,.2); }
.events li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(242,244,239,.2); align-items: baseline; }
.events time { font: 700 1.5rem/1 var(--display); color: var(--willow); }
.events strong { display: block; font-size: 1.1rem; }
.events span { color: #c9d4ce; font-size: .95rem; }
.section--tint .events, .section:not(.section--dark) .events { border-color: #c7d0c9; }
.section:not(.section--dark) .events li { border-color: #c7d0c9; }
.section:not(.section--dark) .events time { color: var(--brand); }
.section:not(.section--dark) .events span { color: var(--muted); }
.poster { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(15,42,36,.25); }

/* ---------- sponzoři ---------- */
.section--tint .profile-intro p { color: var(--muted); }
.sponsors {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.sponsors li {
  background: #fff; border-radius: var(--radius);
  height: 160px; display: grid; place-items: center; padding: 20px;
}
.sponsors img { max-height: 120px; max-width: 100%; object-fit: contain; }
.sponsors .sponsor-slot { background: transparent; border: 2px dashed #b3beb7; padding: 0; }
.sponsor-slot a { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); text-decoration: none; font-weight: 500; }
.sponsor-slot a:hover { color: var(--brand); border-color: var(--brand); }
.sponsors-cta { margin-top: 24px; color: var(--muted); }

.sponsors a.sponsor-link { display: grid; place-items: center; width: 100%; height: 100%; }
.sponsors li:has(.sponsor-link):hover { box-shadow: 0 0 0 2px var(--brand); }

/* ---------- stránka partnerů ---------- */
.btn--outline { border-color: var(--brand); color: var(--brand); }
.btn--outline:hover { background: rgba(16,81,171,.07); }
.partners { display: grid; gap: clamp(48px, 7vw, 88px); }
.partner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 96px; }
.partner:nth-child(even) .partner-logo { order: 2; }
.partner-logo {
  background: #fff; border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12%;
  box-shadow: 0 1px 0 #d5ddd7;
}
.partner-logo img { max-height: 100%; width: auto; object-fit: contain; }
a.partner-logo:hover { box-shadow: 0 0 0 2px var(--brand); }
.partner-role { color: var(--bank); font-weight: 600; margin-bottom: 8px; }
.partner-body h2 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
.partner-text { font-size: 1.1rem; }
.partner-text.is-placeholder { color: var(--muted); border-left: 3px dashed #b3beb7; padding-left: 14px; font-style: italic; }
.partner-body .btn-row { margin-top: 24px; }
.partner-offer { margin-top: 18px; }
.partner-offer li::before { background: var(--willow); }
@media (max-width: 760px) {
  .partner { grid-template-columns: 1fr; }
  .partner:nth-child(even) .partner-logo { order: 0; }
  .partner-logo { max-width: 360px; }
}

/* ---------- kontakt pruh ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.contact-grid h3 { font-size: 1.35rem; margin-bottom: .35em; }
.contact-grid p { margin: 0; }
.contact-grid a { color: inherit; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- patička ---------- */
.site-footer { background: #0a1f1a; color: #93a59c; padding-block: 40px; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: #c9d4ce; }
.footer-credit { flex: 0 0 100%; max-width: none; margin: 0; text-align: center; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.footer-credit a { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; vertical-align: middle; }
.social { display: flex; gap: 14px; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--deep-2); color: var(--paper); }
.social a:hover { background: var(--water); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- lovná místa (detail) ---------- */
.spot { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid #c7d0c9; scroll-margin-top: 80px; }
.spot:first-of-type { border-top: 0; }
.spot-head { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: end; margin-bottom: 28px; }
.spot-num {
  font: 800 clamp(5rem, 11vw, 8.5rem)/.8 var(--display);
  color: var(--post);
}
.spot-head h2 { margin: 0; }
.spot-head .sub { color: var(--muted); margin: 6px 0 0; }
.spot-specs { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 24px; border-top: 2px solid var(--ink); }
.spot-specs div { padding: 12px 28px 12px 0; margin-right: 28px; }
.spot-specs div + div { border-left: 1px solid #c7d0c9; padding-left: 28px; margin-right: 0; }
.spot-specs dt { font-size: .85rem; color: var(--muted); }
.spot-specs dd { margin: 0; font: 700 1.45rem/1.15 var(--display); }
.spot-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.spot-text { position: sticky; top: 96px; }
.spot-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.spot-gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.spot-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .3s ease; }
.spot-gallery button.wide { grid-column: span 3; }
.spot-gallery button.wide img { aspect-ratio: 16 / 7; }
.spot-gallery button:hover img { transform: scale(1.03); }
.race-note { background: var(--paper-2); border-left: 4px solid #6f7d76; padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 860px) {
  .spot-body { grid-template-columns: 1fr; }
  .spot-text { position: static; }
  .spot-head { grid-template-columns: auto 1fr; }
  .spot-head .btn { grid-column: 1 / -1; justify-self: start; }
  .spot-specs div, .spot-specs div + div { padding: 10px 18px 10px 0; margin-right: 18px; border-left: 0; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(5,15,12,.88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox button { position: fixed; top: 16px; right: 20px; background: var(--paper); color: var(--ink); border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; }

/* ---------- řád ---------- */
.rules { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.rules-toc { position: sticky; top: 104px; display: grid; gap: 2px; }
.rules-toc a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-left: 2px solid #c7d0c9; }
.rules-toc a:hover { border-color: var(--brand); color: var(--brand); }
.rule-block { margin-bottom: 56px; scroll-margin-top: 96px; }
.rule-block h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
.rule-block ul { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; max-width: 70ch; }
.rule-block li::marker { color: var(--bank); }
.callout { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid #c7d0c9; border-radius: var(--radius); padding: 20px 24px; max-width: 70ch; }
.callout svg { flex: none; width: 56px; height: 56px; }
.callout p { margin: 0; }
.warn { background: var(--deep); color: var(--paper); padding: 20px 24px; border-radius: var(--radius); max-width: 70ch; margin-bottom: 56px; }
.warn p { margin: 0; }
@media (max-width: 860px) {
  .rules { grid-template-columns: 1fr; }
  .rules-toc { position: static; grid-template-columns: 1fr 1fr; }
}

/* ---------- kontakt stránka ---------- */
.contact-card { font-size: 1.15rem; }
.contact-card dl { margin: 0; display: grid; gap: 0; }
.contact-card dl div { padding: 16px 0; border-top: 1px solid #c7d0c9; display: grid; grid-template-columns: 9rem 1fr; gap: 12px; }
.contact-card dt { color: var(--muted); font-size: .95rem; padding-top: 3px; }
.contact-card dd { margin: 0; font-weight: 600; }
.contact-card a { color: var(--ink); }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--paper-2); }


/* ---------- Zelený Balaton ---------- */
.eyebrow { font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--willow) !important; margin-bottom: 14px; }
.page-head h1 { max-width: 20ch; }

.phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(242,244,239,.2); }
.phase { display: grid; grid-template-columns: 5rem 1fr; gap: 8px 28px; padding: 28px 0; border-bottom: 1px solid rgba(242,244,239,.2); }
.phase-num { font: 800 clamp(3.5rem, 7vw, 5rem)/.85 var(--display); color: #4d6d63; }
.phase.is-active .phase-num { color: var(--willow); }
.phase h3 { margin-bottom: .3em; }
.phase-body > p { color: #c9d4ce; margin-bottom: 14px; }
.phase .phase-status { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #93a59c; margin-bottom: 8px; }
.phase.is-active .phase-status { color: var(--willow); }
.phase.is-ready .phase-status { color: var(--post); }
.phase-bar { height: 10px; border-radius: 5px; background: var(--deep-2); overflow: hidden; max-width: 640px; }
.phase-bar i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--willow); border-radius: 5px; }
.phase .phase-pct { margin: 6px 0 0; font: 700 1.25rem/1 var(--display); color: var(--paper); }
@media (max-width: 560px) { .phase { grid-template-columns: 3rem 1fr; gap: 8px 16px; } }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.tier { background: #fff; border-radius: var(--radius); padding: 28px 28px 32px; border-top: 6px solid var(--c); }
.tier--bronze { --c: #b07a45; }
.tier--silver { --c: #a3adb0; }
.tier--gold { --c: #d4a72c; }
.tier-rank { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.tier .amount { font: 800 clamp(2.5rem, 4.5vw, 3.25rem)/.95 var(--display); margin: 8px 0 20px; }
.tier .amount small { font: 500 1rem/1 var(--body); color: var(--muted); }
.tier h4 { margin: 20px 0 0; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tier .notes { margin-top: 10px; }
.tier .notes li::before { background: var(--c); }
.tiers-note { margin-top: 24px; color: var(--muted); font-style: italic; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.loan-facts { margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.loan-facts div { padding: 14px 16px 14px 0; }
.loan-facts div + div { border-left: 1px solid #c7d0c9; padding-left: 16px; }
.loan-facts dt { font-size: .85rem; color: var(--muted); }
.loan-facts dd { margin: 2px 0 0; font: 700 1.6rem/1.1 var(--display); }
@media (max-width: 480px) { .loan-facts { grid-template-columns: 1fr; } .loan-facts div + div { border-left: 0; padding-left: 0; border-top: 1px solid #c7d0c9; } }

.faq { max-width: 860px; }
.faq h3 { margin: 48px 0 12px; font-size: 1.6rem; color: var(--bank); }
.faq details { border-bottom: 1px solid #c7d0c9; }
.faq details:first-of-type, .faq h3 + details { border-top: 1px solid #c7d0c9; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 700 1.6rem/1 var(--body); color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--brand); }
.faq summary:focus-visible { outline: 3px solid var(--willow); outline-offset: 2px; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); border-top: 2px solid var(--ink); padding-top: 32px; }
.pillar svg { width: 48px; height: 48px; fill: none; stroke: var(--water); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.pillar h3 { font-size: 1.6rem; }
.pillar p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

@media (min-width: 900px) {
  .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 0; }
  .phase { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid rgba(242,244,239,.2); align-content: start; }
  .phase { display: flex; flex-direction: column; }
  .phase-body { display: flex; flex-direction: column; flex: 1; }
  .phase-body .phase-bar { margin-top: auto; }
}

.path-tag { font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--bank); margin-bottom: 12px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.path { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper-2); border-top: 6px solid var(--bank); }
.path--a { background: var(--deep); color: var(--paper); border-top-color: var(--willow); }
.path--a .path-tag { color: var(--willow); }
.path--a p { color: #c9d4ce; }
.path h3 { font-size: clamp(2rem, 4vw, 2.75rem); }
.path p { margin-bottom: 24px; }
.path .btn { margin-top: auto; }
.path:hover { box-shadow: 0 0 0 2px var(--brand); }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }

.tier { display: flex; flex-direction: column; }
.tier-cta { margin-top: auto; align-self: flex-start; }
.tier .notes:last-of-type { margin-bottom: 28px; }

.lead-form { display: grid; gap: 16px; }
.lead-form label { display: grid; gap: 6px; font-size: .92rem; color: #c9d4ce; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 2px solid transparent; border-radius: var(--radius); padding: .7em .8em; width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--willow); }
.lead-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form .btn { justify-self: start; }
.lead-form .btn:disabled { opacity: .6; cursor: wait; }
.lead-form-hp { position: absolute; left: -9999px; }
.lead-form-status { margin: 0; color: var(--willow); }
@media (max-width: 520px) { .lead-form-row { grid-template-columns: 1fr; } }
.partner-body h3 { margin-top: 32px; font-size: 1.6rem; }
.partner-lead { font: 700 1.35rem/1.3 var(--display); color: var(--water); }
.partner-slogan { margin-top: 32px; font: 800 1.6rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--bank); }
/* dlouhý popis partnera (s podnadpisy): logo pevně nahoře vedle nadpisu, ne uprostřed textu */
.partner:has(.partner-body h3) { align-items: start; }
