/* Autoškola Brynza – site styles (no build step).
   Breakpoints follow the original Framer site: phone < 810px, tablet 810–1199px, desktop ≥ 1200px. */

/* ---------- Fonts (self-hosted, Google Fonts, OFL) ---------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/dmsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/dmsans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/dmsans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/hanken-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/hanken-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f2ea;
  --card: #fbfaf5;
  --ink: #161514;
  --ink-2: #1a1916;
  --muted: #56524a;
  --muted-2: #8a857a;
  --gold: #a07d10;
  --yellow: #ffc400;
  --black: #0e0d0b;
  --line: #e0dccf;
  --card-border: rgba(22, 21, 20, .07);
  --sans: "DM Sans", "DM Sans Placeholder", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Hanken Grotesk", "Hanken Grotesk Placeholder", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --shadow-photo: 0 18px 40px rgba(14, 13, 11, .25);
  --shadow-btn: 0 4px 14px rgba(22, 21, 20, .12);
  --container: 1200px;
  --gutter: 20px;
}
@font-face { font-family: "DM Sans Placeholder"; src: local("Arial"); ascent-override: 94.36%; descent-override: 29.49%; line-gap-override: 0%; size-adjust: 105.13%; }
@font-face { font-family: "Hanken Grotesk Placeholder"; src: local("Arial"); ascent-override: 98.46%; descent-override: 29.83%; line-gap-override: 0%; size-adjust: 101.56%; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  font-optical-sizing: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { flex: none; }
.br-phone { display: none; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1200px) { :root { --gutter: 0px; } .container { max-width: var(--container); } }
.container--inner { max-width: calc(1136px + 2 * var(--gutter)); }
.container--table { max-width: calc(1100px + 2 * var(--gutter)); }
.container--mid { max-width: calc(1000px + 2 * var(--gutter)); }
.container--faq { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- Typography ---------- */
.eyebrow { font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.h1 { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.h1--page { font-weight: 600; font-size: 60px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-2); }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Highlighted phrase – yellow bar under the words (Framer "Highlight" component) */
.hl { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0;
  bottom: calc(16px - .33em); height: clamp(5px, .225em, 9px); border-radius: 4px; background: rgba(255, 196, 0, .85);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 11px; border: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-btn); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 21, 20, .18); }
.btn--secondary { height: 42px; padding: 0 21px; background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--card); }
.btn--icon { width: 44px; padding: 0; background: var(--ink); color: #fff; }
.btn--icon:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { height: 42px; }
.btn--voucher { height: 46px; padding: 0 24px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row--center { justify-content: center; }
.link-underline { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-underline:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); }
.site-header__inner { max-width: 1136px; margin: 0 auto; height: 87px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
@media (min-width: 1200px) { .site-header__inner { padding: 0; } }
.site-header__logo img { width: 45px; height: 51px; object-fit: cover; }
.site-nav { display: contents; }
.site-nav__links { display: flex; gap: 28px; }
.site-nav__links a { font-size: 15px; font-weight: 500; line-height: 20px; color: var(--ink); transition: color .2s; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--gold); }
.site-nav__actions { display: flex; gap: 18px; align-items: center; }
.site-header__toggle { display: none; background: none; border: 0; padding: 6px; margin-right: -6px; color: var(--ink); }
.site-header__toggle .toggle-close { display: none; }
@media (max-width: 1199.98px) {
  .site-header__inner { flex-wrap: wrap; height: auto; min-height: 87px; padding: 18px 32px; }
  .site-header__toggle { display: block; }
  .site-nav { display: none; order: 3; flex: none; flex-basis: 100%; margin: 0; flex-direction: column; align-items: flex-start; gap: 22px; padding: 6px 0 14px; }
  .site-nav__links { flex-direction: column; gap: 14px; }
  .site-nav__actions { flex-direction: row-reverse; }
  .site-header.is-open .site-nav { display: flex; }
  .site-header.is-open .toggle-open { display: none; }
  .site-header.is-open .toggle-close { display: block; }
}
@media (max-width: 809.98px) { .site-header__inner { padding: 18px 20px 18px 32px; } }

/* ---------- Generic sections ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head .h2 { margin-top: 15px; }
.section-head .lead { margin-top: 16px; max-width: 620px; }
.section-head--narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; }
.photo { position: relative; border-radius: 22px; box-shadow: var(--shadow-photo); }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.photo--soft { box-shadow: 0 14px 40px rgba(14, 13, 11, .25); }
.pill { position: absolute; left: 20px; top: 20px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; line-height: 1; }

.checklist { display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: 17px; line-height: 1.6; color: var(--muted); }
.checklist .icon { color: var(--gold); margin-top: 6px; }
.checklist--small li { font-size: 15px; line-height: 1.4; }
.checklist--small .icon { margin-top: 2px; }

/* ---------- Hero (home, kondiční, o nás) ---------- */
.hero { padding: 84px 0; }
.hero__grid {
  display: grid; column-gap: 50px;
  grid-template-columns: minmax(0, 535fr) minmax(0, 615fr);
  grid-template-areas: ". media" "top media" "bottom media" ". media";
  grid-template-rows: 1fr auto auto 1fr;
}
.hero__top { grid-area: top; }
.hero__media { grid-area: media; }
.hero__bottom { grid-area: bottom; }
.hero .h1 { margin-top: 25px; }
.hero .lead { margin-top: 26px; max-width: 505px; }
.hero__bottom { margin-top: 26px; }
.photo--hero { height: 484px; }
.stats { display: flex; margin-top: 34px; }
.stats > div { flex: none; white-space: nowrap; padding: 0 28px; border-left: 1px solid var(--line); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 22px; letter-spacing: -.01em; color: var(--ink-2); }
.stats dd { margin-top: 3px; font-size: 13px; line-height: 1.3; color: var(--muted-2); }

.hero--kondicni .hero__grid { grid-template-columns: minmax(0, 1fr) 468px; column-gap: 0; }
.hero--kondicni .h1 { margin-top: 25px; }
.photo--kondicni { height: 421px; }
.hero--o-nas .hero__grid { grid-template-columns: minmax(0, 1fr) 520px; column-gap: 0; }
.hero--o-nas .hero__bottom { margin-top: 32px; }
.photo--o-nas { height: 440px; }

/* ---------- Why us ---------- */
.why-us { background: var(--black); padding: 30px 0; text-align: center; }
.why-us__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px; }
.why-us__value { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.02em; color: var(--yellow); }
.why-us__value + p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .65); }

/* ---------- Toggles + courses ---------- */
.toggles { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px 36px; margin-top: 45px; }
.toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.toggle__btn { border: 0; background: transparent; color: var(--muted); padding: 9px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background-color .25s ease, color .25s ease; }
.toggle__btn.is-active { background: var(--ink); color: var(--card); }
.courses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; align-items: start; }
.course { padding: 28px; }
.course__price { margin-top: 13px; font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.course__freq { margin-top: 14px; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--muted-2); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.course .checklist { margin: 14px 0 0; }
.course .btn { margin-top: 10px; }
.course--featured { background: var(--black); border-color: var(--black); box-shadow: var(--shadow-photo); }
.course--featured .course__label { color: var(--yellow); }
.course--featured .course__price { color: var(--card); }
.course--featured .course__freq { color: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .12); }
.course--featured .checklist li { color: rgba(255, 255, 255, .85); }
.course--featured .checklist .icon { color: var(--yellow); }
.course .btn--secondary { margin-top: 12px; }
.courses__note { margin: 44px auto 0; max-width: 720px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted-2); }
[data-price] { transition: opacity .2s ease; }

/* ---------- Steps (Jak postupovat) ---------- */
.steps { padding: 50px 0 113px; }
.steps__list { display: grid; grid-template-columns: repeat(4, 250px); justify-content: center; column-gap: 30px; margin-top: 56px; counter-reset: none; }
.step { display: flex; flex-direction: column; align-items: center; }
.step__num {
  position: relative; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%;
  background: var(--yellow); color: #1f1f1f; font-size: 16px; line-height: 1;
}
.steps__list { position: relative; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.steps__list::before { content: ""; position: absolute; left: 0; right: 0; top: 21.5px; height: 2px; background: var(--yellow); }
.step__num { z-index: 1; box-shadow: 0 0 0 10px var(--bg); }
.step__card { width: 250px; height: 250px; margin-top: 32px; padding: 23px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.step__card img { width: 130px; height: 100px; object-fit: cover; }
.step__card h3 { margin-top: 10px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; color: #212121; }
.step__card p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 210px; }

/* ---------- Split (image + text) ---------- */
.split__grid {
  display: grid; column-gap: 50px;
  grid-template-columns: 520px minmax(0, 1fr);
  grid-template-areas: "media ." "media top" "media bottom" "media .";
  grid-template-rows: 1fr auto auto 1fr;
}
.split__top { grid-area: top; }
.split__media { grid-area: media; }
.split__bottom { grid-area: bottom; }
.split .h2 { margin-top: 34px; }
.split .lead { margin-top: 35px; }
.split__bottom { margin-top: 35px; }
.split__bottom .btn { margin-top: 35px; }
.split .checklist { gap: 14px; }
.photo--split { height: 420px; }
.split--story .split__grid { grid-template-columns: minmax(0, 1fr) 520px; grid-template-areas: ". media" "top media" "bottom media" ". media"; }
.split--story .h2 { margin-top: 27px; }
.split--story .lead { margin-top: 28px; max-width: 500px; }
.split--story .split__bottom { margin-top: 28px; }
.split--story .split__bottom .btn { margin-top: 28px; }
.split--about { padding: 84px 0; }
.split--about .split__grid { grid-template-columns: minmax(0, 624fr) minmax(0, 520px); column-gap: 56px; grid-template-areas: ". media" "top media" ". media"; grid-template-rows: 1fr auto 1fr; }
.split--about .h2 { margin-top: 19px; }
.split--about .lead { margin-top: 20px; }
.split--about .lead + .lead { margin-top: 20px; }
.people { display: flex; flex-direction: column; gap: 10px; }
.people li { display: flex; align-items: center; gap: 13px; }
.people img { width: 58px; height: 58px; border-radius: 999px; object-fit: cover; }
.people strong { display: block; font-size: 20px; line-height: 30px; font-weight: 500; letter-spacing: -.045em; color: #1f1f1f; }
.people span span { display: block; font-size: 14px; line-height: 21px; color: var(--muted-2); }

/* ---------- Dark bands (splátky, poukaz) ---------- */
.band-section { padding: 40px 0 84px; }
.band {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  min-height: 215px; padding: 48px; border-radius: 22px; background: var(--black);
  box-shadow: 0 30px 90px rgba(255, 196, 0, .22);
}
.band h2 { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1.05; letter-spacing: -.02em; color: var(--bg); }
.band p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.band-section--narrow .container { max-width: calc(1136px + 2 * var(--gutter)); }
.band-section--narrow h2 { color: var(--card); }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.review { padding: 28px; display: flex; flex-direction: column; }
.review__stars { display: flex; gap: 4px; color: var(--yellow); }
.review blockquote { margin-top: 18px; }
.review blockquote p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.review__author { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review__author img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.review__author strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.review__author span span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted-2); }
.reviews__rating { margin-top: 44px; text-align: center; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.reviews__rating a:hover { color: var(--gold); }
.reviews__rating--gold { color: var(--gold); }
.section--narrow .container { max-width: calc(1136px + 2 * var(--gutter)); }

/* ---------- FAQ ---------- */
.faq__list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 26px; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink-2); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { color: var(--gold); transition: transform .25s ease; margin-right: 2px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__answer { padding: 0 26px 24px; }
.faq__answer p { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Final CTA + road ---------- */
.final-cta { background: var(--black); padding-top: 96px; }
.final-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.final-cta h2 { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; color: var(--card); }
.final-cta p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.road { position: relative; height: 143px; overflow: hidden; background: var(--black); }
.road__dashes { position: absolute; left: 0; right: 0; bottom: 30px; height: 3px; opacity: .3; background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 52px); }
.road__car { position: absolute; left: 0; bottom: 12px; width: 158px; will-change: transform; animation: drive linear infinite; }
.road__car svg { width: 100%; height: auto; }
.road__car--1 { animation-duration: 15s; }
.road__car--2 { animation-duration: 19s; animation-delay: -10s; opacity: .92; }
.road__car--3 { animation-duration: 17s; animation-delay: -5s; opacity: .82; }
@keyframes drive { from { transform: translateX(-200px); } to { transform: translateX(calc(100vw + 200px)); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #fff; padding: 72px 0 38px; }
.site-footer__brand { text-align: center; }
.site-footer__name { font-family: var(--display); font-size: 22px; line-height: 1; font-weight: 500; letter-spacing: -.02em; color: var(--card); }
.site-footer__name strong { font-weight: 800; }
.site-footer__tagline { margin-top: 16px; font-size: 15px; line-height: 24px; color: rgba(255, 255, 255, .6); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 64px; margin-top: 50px; }
.site-footer__heading { font-size: 12px; line-height: 1.2; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.site-footer__cols ul { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__cols li { font-size: 15px; line-height: 21px; color: rgba(255, 255, 255, .7); }
.site-footer__cols li.muted { color: rgba(255, 255, 255, .6); }
.site-footer a:hover { color: #fff; }
.site-footer__maps { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 48px; }
.map-card { display: flex; flex-direction: column; align-items: center; }
.map-card__title { font-style: italic; font-size: 15px; line-height: 21px; color: #fff; }
.map-card__frame { display: block; width: 100%; height: 370px; margin-top: 10px; border-radius: 14px; overflow: hidden; background: #1c1b18; }
.map-card__frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.site-footer__bottom { margin-top: 48px; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .5); }
.site-footer__social { color: #fff; }
.site-footer__cookies { background: none; border: 0; padding: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.site-footer__cookies:hover { color: #fff; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer__legal a { font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .7); }
.site-footer__dic { margin-top: 40px; text-align: center; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .5); }
.site-footer__credit { margin-top: 10px; text-align: center; font-size: 13px; line-height: 18px; }
.site-footer__credit a { color: rgba(255, 255, 255, .7); }

/* ---------- Ceník ---------- */
.page-head { padding: 84px 0 56px; text-align: center; }
.page-head .h1 { margin-top: 18px; }
.page-head .lead { margin-top: 18px; }
.page-head .lead strong { font-weight: 700; }
.page-head .toggles { margin-top: 28px; gap: 16px; }
.price-section { padding: 48px 0; }
.price-section + .price-section { padding-top: 48px; }
.h2-table { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; color: var(--ink-2); }
.ptable { margin-top: 24px; background: var(--card); border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden; }
.ptable__head, .ptable__row { display: grid; column-gap: 16px; padding: 0 28px; align-items: center; }
.ptable--4 .ptable__head, .ptable--4 .ptable__row { grid-template-columns: 332fr 221fr 266fr 177fr; }
.ptable--3 .ptable__head, .ptable--3 .ptable__row { grid-template-columns: 373fr 426fr 213fr; }
.ptable__head { height: 48px; background: var(--bg); }
.ptable__head span { font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.ptable__head span:last-child { text-align: right; }
.ptable__row { min-height: 71px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(22, 21, 20, .06); }
.ptable__head + .ptable__row { border-top: 0; }
.ptable__row h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-2); }
.ptable__row p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.ptable__row .ptable__price { text-align: right; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ptable__row--featured { background: rgba(255, 196, 0, .1); padding-top: 22px; padding-bottom: 22px; }
.tag { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.price-note { margin-top: 28px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.price-note .link-underline { color: var(--ink); }
.price-section--last { padding-bottom: 0; }
.price-full { margin-top: 50px; text-align: center; font-size: 17px; font-weight: 500; }
.price-full a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cars { padding-top: 84px; }
.cars__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.car { overflow: hidden; }
.car > img { width: 100%; height: 384px; object-fit: cover; }
.car__body { padding: 28px 28px 44px; }
.car__type { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.car__specs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 20px; padding-left: 8px; }
.car__specs li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 21px; color: var(--ink); }
.car__specs svg { width: 22px; height: 22px; color: var(--yellow); overflow: visible; }

/* ---------- Kondiční jízdy ---------- */
.who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.who__card { padding: 28px; border-radius: 18px; min-height: 172px; }
.who__icon { color: var(--gold); width: 28px; height: 28px; }
.who__card .h3 { margin-top: 18px; }
.who__card p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.how { background: var(--card); }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.how__card { background: var(--bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 28px; }
.how__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--yellow); font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); }
.how__card .h3 { margin-top: 16px; }
.how__card p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.meeting { margin-top: 48px; text-align: center; }
.meeting__title { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.meeting__title .hl::after { bottom: -1px; border-radius: 3px; }
.meeting p { margin-top: 14px; font-size: 14px; line-height: 21px; color: var(--ink); }
.meeting a:hover { color: var(--gold); }
.kprices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.kprice { padding: 32px; border-radius: 20px; }
.kprice--dark { background: var(--ink); }
.kprice--dark .eyebrow { color: var(--yellow); }
.kprice__price { margin-top: 9px; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.05; letter-spacing: -.02em; color: var(--ink-2); }
.kprice--dark .kprice__price { color: var(--bg); }
.kprice__sub { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.kprice--dark .kprice__sub { color: rgb(180, 176, 166); }
.kprice .btn { margin-top: 21px; }
.kprice .btn--primary { box-shadow: var(--shadow-btn); }
.kprices__note { margin-top: 48px; text-align: center; font-size: 14px; line-height: 21px; color: var(--muted-2); }

/* ---------- O nás ---------- */
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.value { padding: 32px; }
.value__num { font-size: 15px; line-height: 1; font-weight: 600; letter-spacing: .04em; color: var(--yellow); }
.value__title { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.08; letter-spacing: -.02em; color: var(--ink-2); }
.value p:last-child { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Přihláška ---------- */
.page-head--prihlaska { padding-bottom: 0; }
.application-card { margin-top: 50px; background: #fff; border-radius: 22px; padding: 50px 68px 3px; }
.application-card iframe { display: block; width: 100%; height: 1200px; border: 0; }
.application-credit { margin-top: 52px; font-size: 17px; line-height: 1.6; }
.application-credit a { color: var(--ink); }

/* ---------- 404 ---------- */
.not-found { padding: 120px 0 139px; text-align: center; }
.not-found__code { font-family: var(--display); font-weight: 800; font-size: 140px; line-height: 1; letter-spacing: -.04em; color: var(--yellow); }
.not-found .h1 { margin-top: 24px; }
.not-found__text { margin: 24px auto 0; max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.not-found .btn-row { margin-top: 24px; }
.not-found__links { margin-top: 35px; display: flex; justify-content: center; gap: 24px; }
.not-found__links a { font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Voucher modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); animation: fade .2s ease; }
.modal__dialog {
  position: relative; width: min(440px, 92vw); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: var(--card); border-radius: 24px; padding: 32px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  animation: pop .25s cubic-bezier(.2, .8, .2, 1);
}
.modal__close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 999px; border: 0; background: #ebe8de; display: grid; place-items: center; color: var(--ink); transition: transform .2s; }
.modal__close:hover { transform: scale(1.08); }
.modal__title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-2); padding-right: 36px; margin-top: 12px; }
.modal__lead { margin-top: 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.voucher-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; line-height: 1.4; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font: 400 15px/1.4 var(--sans); color: var(--ink); appearance: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: 84px; padding: 10px 12px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a958a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 196, 0, .25); }
.field.is-invalid input, .field.is-invalid select { border-color: #c2410c; }
.select-wrap { position: relative; display: block; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.voucher-form__error { font-size: 14px; line-height: 1.5; color: #b42318; }
.voucher-form__error a { text-decoration: underline; }
.voucher-form__submit {
  min-height: 50px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--yellow); color: var(--ink);
  font-weight: 600; font-size: 16px; line-height: 1.3; transition: background-color .25s, color .25s, opacity .2s;
}
.voucher-form__submit:hover { filter: brightness(.97); }
.voucher-form__submit[aria-busy="true"] { opacity: .6; cursor: progress; }
.voucher-form__label-success { display: none; }
.voucher-form.is-success .voucher-form__submit { background: var(--ink); color: var(--card); cursor: default; }
.voucher-form.is-success .voucher-form__label-default { display: none; }
.voucher-form.is-success .voucher-form__label-success { display: inline; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
body.modal-open { overflow: hidden; }

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 360px; max-width: calc(100vw - 40px);
  background: #fff; border: 1px solid rgba(0, 0, 0, .05); border-radius: 14px; padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .1); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  animation: pop .35s cubic-bezier(.2, .8, .2, 1);
}
.consent[hidden] { display: none; }
.consent__title { font-size: 14px; font-weight: 600; color: rgb(181, 179, 179); }
.consent__text { margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgb(68, 68, 68); }
.consent__text a { color: rgb(153, 153, 153); }
.consent__options { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.consent__options[hidden] { display: none; }
.consent__option { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: rgb(68, 68, 68); background: rgba(0, 0, 0, .02); padding: 10px 12px; border-radius: 8px; }
.consent__option input { margin-top: 2px; accent-color: #000; }
.consent__buttons { display: flex; gap: 10px; margin-top: 16px; }
.consent__buttons[hidden] { display: none; }
.consent__btn { flex: 1; border: 0; border-radius: 8px; padding: 10px; font-size: 14px; line-height: 1.2; transition: opacity .2s; }
.consent__btn:hover { opacity: .6; }
.consent__btn--secondary { background: rgb(238, 238, 238); color: rgb(68, 68, 68); }
.consent__btn--primary { background: #000; color: #fff; }
.consent__customize { display: block; margin: 10px auto 0; background: none; border: 0; padding: 2px 4px; font-size: 12px; color: rgb(153, 153, 153); text-decoration: underline; }

/* ---------- Entrance animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .road__car { animation: none; } .road__car--1 { left: 10%; } .road__car--2 { left: 44%; } .road__car--3 { left: 72%; }
  .btn, .modal__dialog, .consent { transition: none; animation: none; }
}

/* =================== Tablet (810–1199) =================== */
@media (max-width: 1199.98px) {
  :root { --gutter: 24px; }
  .hero__grid, .hero--kondicni .hero__grid, .hero--o-nas .hero__grid {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "media" "bottom"; grid-template-rows: auto;
  }
  .hero__media { margin-top: 26px; }
  .photo--hero { height: 300px; }
  .photo--kondicni, .photo--o-nas { height: 420px; }
  .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; width: 100%; }
  .step__card { width: 100%; height: auto; min-height: 250px; }
  .step__card h3 { font-size: 20px; }
  .step__card p { font-size: 15px; }
  .split__grid, .split--story .split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .split--about .split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .photo--split { height: 380px; }
  .band { padding: 40px; }
  .ptable--4 .ptable__head, .ptable--4 .ptable__row { grid-template-columns: 1.4fr 1fr 1fr .8fr; }
  .value__title { font-size: 32px; }
  .site-footer__cols { column-gap: 32px; }
  .application-card { padding: 32px 24px 3px; }
}

/* =================== Phone (< 810) =================== */
@media (max-width: 809.98px) {
  :root { --gutter: 20px; }
  .br-phone { display: inline; }
  .br-desktop { display: none; }
  .h1 { font-size: 42px; }
  .h1--page { font-size: 34px; }
  .h2, .band h2 { font-size: 40px; }
  .lead { font-size: 16px; }
  .section { padding: 48px 0; }

  .hero { padding: 48px 0; }
  .hero__grid, .hero--kondicni .hero__grid, .hero--o-nas .hero__grid {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "media" "bottom"; grid-template-rows: auto;
  }
  .hero .h1 { margin-top: 26px; }
  .hero__media { margin-top: 26px; }
  .photo--hero, .photo--kondicni, .photo--o-nas { height: 280px; }
  .stats > div { padding: 0 11px; }
  .stats > div:first-child { padding-left: 0; }

  .why-us { padding: 28px 0; }
  .why-us__grid { grid-template-columns: 1fr; gap: 19px; }

  .courses .lead--intro { text-align: left; }
  .toggles { flex-direction: column; align-items: center; gap: 20px; margin-top: 43px; }
  .courses__grid { grid-template-columns: 1fr; gap: 21px; }

  .steps { padding: 72px 0 48px; }
  .steps__list { grid-template-columns: 1fr; row-gap: 20px; margin-top: 74px; padding-left: 81px; width: max-content; margin-left: 0; }
  .steps__list::before { left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: var(--ink); }
  .step { position: relative; align-items: flex-start; }
  .step__num { position: absolute; left: -81px; top: 50%; margin-top: -16px; width: 32px; height: 32px; z-index: 1; box-shadow: 0 0 0 10px var(--bg); }
  .step__card { margin-top: 0; width: 250px; height: 250px; padding: 27px 20px; }
  .step__card img { width: 150px; height: 100px; }
  .step__card h3 { font-size: 20px; letter-spacing: -.03em; }
  .step__card p { font-size: 16px; }

  .split__grid, .split--story .split__grid, .split--about .split__grid {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "media" "bottom"; grid-template-rows: auto;
  }
  .split__media { margin-top: 35px; }
  .split--story .split__media { margin-top: 28px; }
  .split--about .split__media { margin-top: 28px; }
  .photo--split { height: 280px; }
  .split .checklist li { font-size: 16px; }

  .band-section { padding: 24px 0 48px; }
  .band { flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px 24px; }

  .reviews__grid { grid-template-columns: 1fr; gap: 20px; }
  .final-cta { padding-top: 56px; }
  .final-cta__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0 24px; }
  .final-cta h2 { font-size: 26px; }
  .final-cta p { font-size: 16px; }

  .site-footer { padding-top: 56px; }
  .site-footer__cols { grid-template-columns: 1fr; row-gap: 33px; }
  .site-footer__cols, .site-footer__bottom, .site-footer__maps { padding: 0 4px; }
  .site-footer__maps { grid-template-columns: 1fr; gap: 32px; }
  .map-card__frame { height: 252px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__meta { flex-wrap: wrap; }
  .site-footer__legal { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }

  .page-head { padding: 48px 0 40px; }
  .page-head .toggles { margin-top: 28px; }
  .price-section { padding: 32px 0; }
  .h2-table { font-size: 26px; }
  .ptable__head { display: none; }
  .ptable__row, .ptable--4 .ptable__row, .ptable--3 .ptable__row { grid-template-columns: 1fr; row-gap: 6px; padding: 18px; }
  .ptable__row h3 { font-size: 19px; }
  .ptable__row p { font-size: 15px; }
  .ptable__row .ptable__price { font-size: 19px; }
  .ptable--3 .ptable__row .ptable__price { text-align: left; }
  .price-note { font-size: 15px; }
  .cars__grid { grid-template-columns: 1fr; gap: 20px; }
  .car > img { height: 250px; }

  .who__grid, .how__grid, .kprices__grid, .values__grid { grid-template-columns: 1fr; }
  .kprice__price { font-size: 40px; }
  .value__title { font-size: 34px; }

  .application-card { margin-top: 32px; padding: 20px 12px 3px; border-radius: 18px; }
  .application-credit { font-size: 15px; }

  .not-found { padding: 72px 0 90px; }


  /* Per-page heading sizes on phones (as on the original site) */
  .page-kondicni .h1 { font-size: 32px; }
  .page-kondicni .h2, .page-kondicni .band h2 { font-size: 26px; }
  .page-o-nas .h1 { font-size: 34px; }
  .page-o-nas .h2 { font-size: 30px; }
  .page-o-nas .value__title { font-size: 26px; }
  .page-cenik .h1--page { font-size: 28px; }
  .page-cenik .h2, .page-cenik .band h2 { font-size: 28px; }
  .page-cenik .band h2 { font-size: 26px; }
  .page-cenik .faq .h2 { font-size: 40px; }
  .page-prihlaska .h1--page { font-size: 30px; }
  .page-prihlaska .h2 { font-size: 26px; }
  .page-404 .h1 { font-size: 32px; }
  .page-404 .not-found__code { font-size: 84px; }
  .consent { right: 20px; left: 20px; bottom: 20px; width: auto; max-width: none; }
}
