/* Cartow. Tokeny, tvary a pohyb viz DESIGN.md.
   Tvarový zámek: tlačítka, časy, dny a volby jsou pilulky (999px), plochy a pole mají 6px. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; 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: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; 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: "Geist"; src: url("../fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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: "Geist"; src: url("../fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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; }

:root {
  color-scheme: light dark;
  /* Paleta "Asfalt a výstraha": průmyslová šedá + bezpečnostní oranžová. Břidlice #8b9c9b je barva klientova loga a zůstává beze změny. */
  --slate: #8b9c9b;
  --bg: #eef1f2;
  --surface: #f8fafb;
  --paper: #f8fafb;
  --tint: #dfe4e7;
  --ink: #10191e;
  --ink-2: #475862;
  --line: rgb(16 25 30 / 0.14);
  --line-strong: rgb(16 25 30 / 0.34);
  --accent: #ea580c; /* bezpečnostní oranžová, jen jako výplň (3,1 : 1 na pozadí), text na ní je tmavý (5,9 : 1) */
  --on-accent: #0b1216;
  --block: #1b252b; /* tmavý blok: noční odtah, asfalt */
  --err: #b3261e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 6px;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f171b; --surface: #151f25; --paper: #151f25; --tint: #1a262d; --ink: #eef1f2; --ink-2: #a9b8c0;
    --line: rgb(238 241 242 / 0.14); --line-strong: rgb(238 241 242 / 0.36); --err: #ff8f86; --block: #1d2b34;
  }
}
:root[data-theme="dark"] {
  --bg: #0f171b; --surface: #151f25; --paper: #151f25; --tint: #1a262d; --ink: #eef1f2; --ink-2: #a9b8c0;
  --line: rgb(238 241 242 / 0.14); --line-strong: rgb(238 241 242 / 0.36); --err: #ff8f86; --block: #1d2b34;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 100; padding: 0.75rem 1.25rem; background: var(--ink); color: var(--bg); border-radius: 999px; transition: top 0.2s var(--ease); }
.skip:focus { top: 0.75rem; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* ---------- tlačítka ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.6rem; border: 1px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--bg);
  transition: transform 0.24s var(--ease), color 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.btn::before { /* směrové plnění akcentem zleva */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateX(-101%); transition: transform 0.35s var(--ease);
}
.btn .ic { transition: transform 0.24s var(--ease); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: 0.95rem; }
@media (hover: hover) {
  .btn:hover:not(:disabled)::before { transform: translateX(0); }
  .btn:hover:not(:disabled) { color: var(--on-accent); border-color: var(--accent); }
  .btn--ghost:hover:not(:disabled) { color: var(--bg); border-color: var(--ink); }
  .btn:hover:not(:disabled) .ic--go { transform: translateX(3px); }
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:focus-visible .ic--go { transform: translateX(3px); }
.btn:disabled, .btn[aria-disabled="true"] { background: transparent; color: var(--ink-2); border-color: var(--line-strong); cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }

/* ---------- hlavička ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top .wrap { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin-right: auto; font: 800 1.45rem/1 var(--f-display); font-stretch: 106%; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: auto; height: 1.9rem; }
.nav { display: none; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease); }
.nav a:hover { background-size: 100% 1px; }
@media (min-width: 860px) { .nav { display: flex; } }
.top .btn { min-height: 44px; padding: 0 1.1rem; }
.top .btn__long { display: none; }
@media (min-width: 520px) { .top .btn__long { display: inline; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem); overflow-x: clip; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.6rem); font-stretch: 108%; max-width: 15em; }
.hl { color: inherit; background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% 0.3em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; margin: 0 -0.06em; }
.hero__grid { display: grid; gap: 2.5rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero__text { display: flex; flex-direction: column; gap: 1.75rem; align-self: center; }
.hero__text p { font-size: clamp(1.1875rem, 1.6vw, 1.4rem); color: var(--ink-2); max-width: 28ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__media { position: relative; margin: 0 0.75rem 0.75rem 0; }
.hero__media::before { content: ""; position: absolute; inset: 0; background: var(--slate); clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); transform: translate(0.75rem, 0.75rem); }
.hero__ph { position: relative; margin: 0; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); background: var(--surface); }
.hero__ph img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
  .hero__media { margin: 0 1.5rem 1.5rem 0; }
  .hero__media::before { transform: translate(1.5rem, 1.5rem); }
  .hero__ph, .hero__ph img { height: 100%; }
  .hero__ph img { aspect-ratio: auto; max-height: 46vh; }
}

/* pruh s fakty pod hero */
.facts { background: var(--tint); }
.facts ul { display: grid; }
.facts li { display: flex; flex-direction: column; gap: 0.1rem; padding: 1.1rem 0; border-top: 1px solid var(--line-strong); font-size: 0.95rem; color: var(--ink-2); }
.facts li:first-child { border-top: 0; }
.facts strong { font: 800 1.35rem/1.2 var(--f-display); font-stretch: 106%; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 760px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .facts li { padding: 1.6rem 2rem; border-top: 0; border-left: 1px solid var(--line-strong); }
  .facts li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- sekce ---------- */
.sec { padding: clamp(3.5rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.sec__head { margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 40rem; }
.sec h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-stretch: 108%; }
.lede { margin-top: 1rem; color: var(--ink-2); max-width: 52ch; }
.sec--surface { background: var(--paper); --surface: var(--bg); }
/* barevné bloky přepisují tokeny v rozsahu sekce, takže tlačítka a text se přizpůsobí samy */
.sec--block { --bg: var(--block); --ink: #eef1f2; --ink-2: #a9b8c0; --line: rgb(238 241 242 / 0.16); --line-strong: rgb(238 241 242 / 0.36); background: var(--block); color: var(--ink); border-top: 0; }
.sec--slate { --bg: var(--slate); --ink: #10191e; --ink-2: #16222a; --line: rgb(16 25 30 / 0.22); --line-strong: rgb(16 25 30 / 0.5); background: var(--slate); color: var(--ink); border-top: 0; position: relative; overflow: hidden; }
.sec--slate .wrap { position: relative; }
.sec--slate::after { content: ""; position: absolute; right: clamp(-6rem, -4vw, -2rem); bottom: -3rem; width: clamp(16rem, 36vw, 30rem); aspect-ratio: 42.2 / 45.7; background: rgb(247 250 249 / 0.2); -webkit-mask: url("../img/logo-mark.svg") no-repeat center / contain; mask: url("../img/logo-mark.svg") no-repeat center / contain; pointer-events: none; }

/* ---------- rezervace ---------- */
.book__demo { margin: 0 0 1.25rem; padding: 0.7rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: 0.9rem; color: var(--ink-2); }
.book__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 960px) { .book__grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2rem, 4vw, 3.5rem); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.steps li { position: relative; }
.steps button, .steps span.st { display: flex; align-items: baseline; gap: 0.6rem; width: 100%; padding: 0.9rem 0 1rem; background: none; border: 0; text-align: left; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; min-height: 44px; }
.steps button:disabled { cursor: default; }
.steps .n { font: 800 1.35rem/1 var(--f-display); color: var(--ink-2); }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.steps li[aria-current="step"] { color: var(--ink); }
.steps li[aria-current="step"] button, .steps li[aria-current="step"] span.st, .steps li[aria-current="step"] .n { color: var(--ink); }
.steps li[aria-current="step"]::after, .steps li.is-done::after { transform: scaleX(1); }
.steps li.is-done button { color: var(--ink); cursor: pointer; }
.steps .lab { white-space: nowrap; }
@media (max-width: 479px) { .steps .lab { font-size: 0.85rem; } .steps button, .steps span.st { gap: 0.4rem; } }

.panel { animation: panel-in 0.45s var(--ease) both; }
.panel__h { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-stretch: 104%; margin-bottom: 0.4rem; }
.panel__h:focus { outline: none; }
.panel__sub { color: var(--ink-2); margin-bottom: 1.5rem; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* karty přívěsů (krok 1) */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.card { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card__in { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease); }
.card__ph { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.card__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.card__body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.15rem 1.2rem; flex: 1; }
.card__name { font: 800 1.35rem/1.1 var(--f-display); font-stretch: 106%; letter-spacing: -0.02em; }
.card__kind { font-size: 0.9rem; color: var(--ink-2); }
.card__benefit { margin-top: 0.35rem; font-size: 0.98rem; }
.card__prices { margin-top: auto; padding-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-weight: 600; }
.card__prices span span { font-weight: 400; color: var(--ink-2); margin-right: 0.35rem; }
.card__go { margin-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.card__go .ic { transition: transform 0.24s var(--ease); }
@media (hover: hover) {
  .card:hover .card__in { border-color: var(--line-strong); transform: translateY(-2px); }
  .card:hover .card__ph img { transform: scale(1.03); }
  .card:hover .card__go .ic { transform: translateX(3px); }
}
.card:active .card__in { transform: scale(0.99); }
.card:focus-visible { outline: none; }
.card:focus-visible .card__in { outline: 2px solid var(--ink); outline-offset: 3px; }
.card[aria-pressed="true"] .card__in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card[aria-pressed="true"] .card__name::after { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-left: 0.5em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--ink); vertical-align: 0.08em; }

/* krok 2 */
.opts { display: grid; gap: 1.25rem 2rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .opts { grid-template-columns: auto 1fr; } }
.fld__label, .legend { display: block; margin-bottom: 0.55rem; font-size: 0.9rem; font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.seg button, .chip { min-height: 44px; padding: 0 1.1rem; border: 1px solid transparent; border-radius: 999px; background: transparent; font-weight: 500; transition: background-color 0.24s var(--ease), color 0.24s var(--ease), transform 0.24s var(--ease), border-color 0.24s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:active:not(:disabled) { transform: scale(0.98); }
.seg button:disabled { color: var(--ink-2); opacity: 0.55; cursor: not-allowed; text-decoration: line-through; }
@media (hover: hover) { .seg button[aria-pressed="false"]:not(:disabled):hover { background: var(--line); } }
.book__main { min-height: 38rem; }
.opts .seg + .days-ctl { margin-left: 0.5rem; }
.card__in > span, .card__body > span { display: block; }
.card__body { display: flex; }
.card__go { display: inline-flex !important; }
.card__prices { display: flex !important; }
.days-ctl { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.days-ctl button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; transition: background-color 0.24s var(--ease), transform 0.24s var(--ease); }
.days-ctl button:disabled { opacity: 0.35; cursor: not-allowed; }
.days-ctl button:active:not(:disabled) { transform: scale(0.94); }
@media (hover: hover) { .days-ctl button:not(:disabled):hover { background: var(--line); } }
.days-ctl output { min-width: 5.5rem; text-align: center; font-weight: 600; }
.when { display: grid; gap: 2rem; }
@media (min-width: 720px) { .when { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2.5rem; } }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1rem 1.1rem; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.cal__title { font: 700 1.05rem/1 var(--f-display); font-stretch: 104%; text-transform: capitalize; }
.cal__nav { display: flex; gap: 0.25rem; }
.cal__nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background-color 0.24s var(--ease), transform 0.24s var(--ease); }
.cal__nav button:disabled { opacity: 0.35; cursor: not-allowed; }
.cal__nav button:active:not(:disabled) { transform: scale(0.94); }
@media (hover: hover) { .cal__nav button:not(:disabled):hover { background: var(--line); } }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal__dow { font-size: 0.75rem; color: var(--ink-2); padding: 0.35rem 0; font-weight: 500; }
.cal__d { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 500; transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease); }
.cal__d:active:not(:disabled) { transform: scale(0.94); }
@media (hover: hover) { .cal__d:not(:disabled):not([aria-pressed="true"]):hover { background: var(--line); } }
.cal__d:disabled { color: var(--ink-2); opacity: 0.4; cursor: not-allowed; }
.cal__d[data-today="true"]::after { content: ""; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.cal__d[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cal__d[data-full="true"]:disabled { text-decoration: line-through; }
.cal.is-loading .cal__grid { opacity: 0.4; animation: pulse 1.1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.7; } }
.slots-wrap h4 { font: 700 1.05rem/1.2 var(--f-display); font-stretch: 104%; margin-bottom: 0.9rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: 0.5rem; }
.slot { min-height: 44px; padding: 0 0.5rem; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-weight: 600; transition: background-color 0.24s var(--ease), color 0.24s var(--ease), transform 0.24s var(--ease), border-color 0.24s var(--ease); }
@media (hover: hover) { .slot:not(:disabled):not([aria-pressed="true"]):hover { border-color: var(--ink); background: var(--surface); } }
.slot:active:not(:disabled) { transform: scale(0.97); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.slot:disabled { border-color: var(--line); border-style: dashed; color: var(--ink-2); opacity: 0.6; text-decoration: line-through; cursor: not-allowed; }
.legend-row { display: flex; gap: 1.25rem; margin-top: 1rem; font-size: 0.85rem; color: var(--ink-2); }
.legend-row i { display: inline-block; width: 1.4rem; height: 0.8rem; margin-right: 0.4rem; vertical-align: -0.05rem; border-radius: 999px; border: 1px solid var(--line-strong); }
.legend-row i.off { border-style: dashed; border-color: var(--line); opacity: 0.7; }
.slots-empty { padding: 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--ink-2); }
.extras { margin-top: 2rem; }
.extras__row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; border-color: var(--line-strong); cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.chip .ic { display: none; }
.chip:has(input:checked) .ic { display: block; }
.hint { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-2); }

/* krok 3: formulář */
.form { display: grid; gap: 0.25rem 1.5rem; max-width: 40rem; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: block; }
.field label { display: block; margin-bottom: 0.45rem; font-size: 0.9rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { width: 100%; min-height: 52px; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field ::placeholder { color: var(--ink-2); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 16%, transparent); }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--err); }
.err { display: block; min-height: 1.6rem; padding-top: 0.3rem; font-size: 0.875rem; color: var(--err); } /* místo vyhrazené předem, nic se neposouvá */
.consent { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.25rem 0; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--ink); }
.consent label { margin: 0; font-weight: 400; font-size: 0.95rem; color: var(--ink-2); }
.consent label a { color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { max-width: 40rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.alert { max-width: 40rem; margin-bottom: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--err); border-radius: var(--r); color: var(--err); font-weight: 500; }
.alert a { color: inherit; }

/* souhrn: pravý sloupec na počítači, spodní lišta na telefonu */
.sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sum__body { padding: 1.25rem 1.25rem 0.5rem; }
.sum__title { font: 700 1.05rem/1 var(--f-display); font-stretch: 104%; margin-bottom: 1rem; }
.sum dl { margin: 0; }
.sum__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.sum__row dt { color: var(--ink-2); }
.sum__row dd { margin: 0; text-align: right; font-weight: 500; }
.sum__row dd.empty { color: var(--ink-2); font-weight: 400; }
.sum__foot { padding: 0.75rem 1.25rem 1.25rem; }
.sum__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.25rem; }
.sum__total strong { font: 800 1.9rem/1 var(--f-display); font-stretch: 104%; letter-spacing: -0.02em; }
.sum__deposit { margin-bottom: 1rem; font-size: 0.85rem; color: var(--ink-2); }
.sum .btn { width: 100%; }
.sum__why { margin-top: 0.6rem; min-height: 1.3rem; font-size: 0.85rem; color: var(--ink-2); text-align: center; }
@media (min-width: 960px) { .sum { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
@media (max-width: 959px) {
  .sum { position: sticky; bottom: 0; z-index: 30; margin: 1.5rem calc(-1 * var(--gut)) 0; border-width: 1px 0 0; border-radius: 0; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 0.7rem var(--gut) calc(0.7rem + env(safe-area-inset-bottom)); gap: 0.75rem; }
  .sum__body, .sum__deposit, .sum__why { display: none; }
  .sum__foot { padding: 0; display: contents; }
  .sum__total { margin: 0; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
  .sum__total span { font-size: 0.8rem; color: var(--ink-2); order: 2; }
  .sum__total strong { font-size: 1.35rem; }
  .sum .btn { width: auto; min-height: 52px; padding: 0 1.25rem; }
}

/* potvrzení */
.done { max-width: 42rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); animation: panel-in 0.5s var(--ease) both; }
.done:focus { outline: none; }
.done { scroll-margin-top: calc(var(--header-h) + 16px); }
.done__mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.6rem; animation: pop 0.5s var(--ease) 0.1s both; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.done h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-stretch: 106%; }
.done__lead { margin: 0.75rem 0 1.5rem; color: var(--ink-2); max-width: 46ch; }
.done dl { margin: 0 0 1.75rem; }
.done .sum__row:last-child { border-bottom: 1px solid var(--line); }
.done__act { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- odtah ---------- */
.tow { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .tow { grid-template-columns: 5fr 6fr; align-items: start; } }
.tow__phone { display: block; margin-top: 1.5rem; font: 800 clamp(2.4rem, 6.4vw, 4.6rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: -0.035em; text-decoration: none; font-variant-numeric: tabular-nums; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 0.14em no-repeat; transition: background-size 0.35s var(--ease); padding-bottom: 0.08em; width: fit-content; }
@media (hover: hover) { .tow__phone:hover { background-size: 100% 100%; color: var(--on-accent); } }
.tow__phone2 { margin-top: 0.75rem; color: var(--ink-2); }
.tow__phone2 a { color: var(--ink); font-weight: 600; }
.price-group + .price-group { margin-top: 2.25rem; }
.price-group h3 { font-size: 1.15rem; font-stretch: 104%; margin-bottom: 0.4rem; }
.price-group dl { margin: 0; }
.price-group .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 0.85rem 0; }
.price-group .row + .row { border-top: 1px solid var(--line); }
.price-group dt { color: var(--ink-2); }
.price-group dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* ---------- otázky ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 64px; padding: 1rem 0; cursor: pointer; list-style: none; font: 700 1.15rem/1.3 var(--f-display); font-stretch: 102%; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; transition: transform 0.3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .ans { padding: 0 3rem 1.5rem 0; color: var(--ink-2); max-width: 62ch; }
@media (hover: hover) { .faq summary:hover { color: var(--ink-2); } }

/* ---------- kontakt ---------- */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 2fr 1fr; gap: 5rem; } }
.contact__big { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.contact__mail { font: 700 clamp(1.4rem, 3.4vw, 2.2rem)/1.1 var(--f-display); font-stretch: 106%; letter-spacing: -0.02em; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 0.25em; overflow-wrap: anywhere; }
.contact__list { display: grid; gap: 1.25rem; font-style: normal; }
.contact__list dt { font-size: 0.85rem; color: var(--ink-2); }
.contact__list dd { margin: 0.1rem 0 0; font-weight: 500; }
.contact__list a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 24px; }

/* ---------- patička ---------- */
.foot { --bg: var(--block); --ink: #eef1f2; --ink-2: #a9b8c0; padding: 2.5rem 0 3rem; background: var(--block); font-size: 0.9rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; }
.foot a { color: var(--ink); }
.foot .brand { margin: 0; font-size: 1.2rem; color: var(--ink); }

/* ---------- stránka zásad ---------- */
.legal { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-stretch: 108%; margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 0.6rem; font-stretch: 104%; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal ul { margin-top: 0.75rem; }
.legal li { padding-left: 1.1rem; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 5px; height: 1px; background: var(--ink-2); }

/* ---------- vstupní pohyb ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero__text, .hero__ph { animation: rise 0.9s var(--ease) both; }
  .hero__text { animation-delay: 0.12s; }
  .hero__ph { animation-delay: 0.22s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) { .btn, .slot, .cal__d, .chip { border: 1px solid ButtonText; } }
