/* AutoĽahko.sk – petrolejový blok so značkou hore (na desktope vľavo, 42 %), otázka na bielom hárku pod ním (vpravo). */

/* Písma sú uložené priamo na stránke, nenačítavajú sa od Googlu. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-ext-700-normal.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: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-700-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-400-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-sans-latin-400-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-500-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/instrument-sans-latin-500-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-600-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/instrument-sans-latin-600-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/instrument-sans-latin-ext-700-normal.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: 'Instrument Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/instrument-sans-latin-700-normal.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; }

:root {
  --petrol: #0E3B43;
  --petrol-soft: #3F6970;
  --mist: #B9D2D0;
  --sheet: #FFFFFF;
  --tile: #EDF3F2;
  --tile-hover: #E0EBE9;
  --muted: #4E6A6D;
  --line: #D5E0DF;
  --ring: #7D9A9C;
  --field: #6F8E90;
  --accent: #FF7A5C;
  --error: #B3261E;
  --bar: #08272D;
  --display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --slide: 320ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
  background: linear-gradient(var(--petrol) 50%, var(--sheet) 50%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--petrol);
  color: var(--petrol);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ol { margin: 0; }
button, input { font: inherit; color: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.app {
  min-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
}

/* Značkový blok */
.brand {
  flex: 0 0 auto;
  min-width: 0;
  padding-block: 20px 26px;
  padding-inline: 22px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
}
.brand-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.wordmark span { color: var(--accent); }
.dashes { display: flex; align-items: center; gap: 4px; }
.dashes span { width: 8px; height: 4px; border-radius: 2px; background: var(--petrol-soft); transition: width var(--slide) var(--ease), background var(--slide) var(--ease); }
.dashes span.done { background: var(--accent); }
.dashes span.current { width: 22px; background: var(--accent); }

/* Úvodný text sa na mobile po prvej otázke plynulo zbalí, hárok sa neposunie skokom */
.hero-slot { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--slide) var(--ease); }
.hero-clip { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.2s ease; }
.app[data-hero-open="true"] .hero-slot { grid-template-rows: 1fr; }
.app[data-hero-open="true"] .hero-clip { opacity: 1; }
.hero { display: none; flex-direction: column; gap: 12px; max-width: 480px; padding-top: 30px; }
.hero h1 { font-family: var(--display); font-size: 37px; font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.hero p { font-size: 16px; color: var(--mist); }
.hero strong { color: #FFFFFF; white-space: nowrap; }
.app[data-hero="intro"] .hero-intro,
.app[data-hero="success"] .hero-success,
.app[data-hero="error"] .hero-error { display: flex; }
.hero-success, .hero-error { animation: hero-in var(--slide) var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(6px); } }

/* Biely hárok */
.sheet {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--sheet);
  border-radius: 28px 28px 0 0;
  overflow-x: hidden;
  overflow-x: clip;
  padding-block: 28px 22px;
  padding-inline: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sheet-inner { width: 100%; max-width: 520px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 18px; }
.stage { position: relative; }
.stage.animating { overflow-y: clip; }
.screen { display: flex; flex-direction: column; gap: 18px; }
.screen.ghost { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }

/* Striedanie obrazoviek: stará odchádza do strany a súčasne z opačnej strany prichádza nová */
.screen.leave-next { animation: out-left var(--slide) var(--ease) both; }
.screen.leave-prev { animation: out-right var(--slide) var(--ease) both; }
.screen.enter-next { animation: in-right var(--slide) var(--ease) both; }
.screen.enter-prev { animation: in-left var(--slide) var(--ease) both; }
/* Posun o celú šírku: obrazovky idú vedľa seba ako v karuseli, takže sa neprekrývajú a nevznikne prázdny okamih */
@keyframes out-left { 70%, 100% { opacity: 0; } 100% { transform: translateX(calc(-100% - 24px)); } }
@keyframes out-right { 70%, 100% { opacity: 0; } 100% { transform: translateX(calc(100% + 24px)); } }
@keyframes in-right { 0% { opacity: 0; transform: translateX(calc(100% + 24px)); } 50%, 100% { opacity: 1; } }
@keyframes in-left { 0% { opacity: 0; transform: translateX(calc(-100% - 24px)); } 50%, 100% { opacity: 1; } }

.head { display: flex; flex-direction: column; gap: 6px; }
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); }
h2 { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.14; letter-spacing: -0.025em; text-wrap: balance; }
h2:focus { outline: none; }
.lead { font-size: 16px; color: var(--muted); }

.options { display: flex; flex-direction: column; gap: 8px; }
.options.few { gap: 10px; }
.option {
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--tile);
  border: none;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--petrol);
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.options.few .option { min-height: 66px; }
.option .radio {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ring);
  display: flex; align-items: center; justify-content: center;
}
.option .radio svg { opacity: 0; }
.option[aria-pressed="true"] { background: var(--petrol); color: #FFFFFF; }
.option[aria-pressed="true"] .radio { border-color: var(--accent); background: var(--accent); }
.option[aria-pressed="true"] .radio svg { opacity: 1; }
@media (hover: hover) { .option[aria-pressed="false"]:hover { background: var(--tile-hover); } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-btn { min-height: 48px; margin: 0; padding: 0 12px 0 0; background: none; border: none; font-size: 17px; font-weight: 600; color: var(--muted); }
.link-btn.center { padding: 0; align-self: center; }
.pill {
  min-height: 60px; margin: 0; padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); border: none; border-radius: 30px;
  font-size: 19px; font-weight: 700; color: var(--petrol);
}
.pill.small { min-height: 54px; padding: 0 26px; font-size: 18px; }
.pill:disabled { opacity: 0.7; cursor: default; }
.is-invisible { visibility: hidden; }
.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Kontakt */
.contact { gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input {
  height: 58px; width: 100%; margin: 0; padding: 0 16px;
  font-size: 18px; font-weight: 500; color: var(--petrol);
  background: var(--sheet); border: 1.5px solid var(--field); border-radius: 14px;
}
.field input::placeholder { color: var(--ring); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.err { font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--error); }
.consent-wrap { display: flex; flex-direction: column; gap: 6px; }
.consent {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--tile);
  border: 1.5px dashed var(--ring); border-radius: 14px; cursor: pointer;
  font-size: 14px; color: var(--muted);
}
.consent.invalid { border-color: var(--error); }
.consent input { width: 24px; height: 24px; flex-shrink: 0; margin: 0; accent-color: var(--petrol); }
.under { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.under span { font-size: 13px; line-height: 1.4; color: var(--muted); text-align: right; }

/* Úspech */
.steps { padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { padding-block: 16px; display: flex; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: none; }
.steps .num { width: 22px; flex-shrink: 0; font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; }
.steps .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.steps .txt b { font-size: 18px; font-weight: 600; line-height: 1.3; }
.steps .txt span { font-size: 15px; color: var(--muted); }
.big { font-size: 18px; line-height: 1.5; }
.big:focus { outline: none; }

.quiz-view { display: flex; flex-direction: column; gap: 18px; }
.foot { margin-top: auto; padding-top: 8px; }
.foot p.legal { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* Sekcia dôvery: len pri prvej otázke, pod ňou */
.below { display: flex; flex-direction: column; gap: 10px; transition: opacity 0.18s ease; }
.below.fading { opacity: 0; }
/* Po návrate hore tlačidlom zo sekcie dôvery odpovede raz krátko zapulzujú, jedna po druhej */
.options.nudge .option { animation: nudge 0.7s ease-in-out both; }
.options.nudge .option:nth-child(2) { animation-delay: 0.14s; }
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
  45% { box-shadow: 0 0 0 3px var(--accent); transform: scale(1.02); }
}
.trust { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 34px; scroll-margin-top: 16px; }
.trust h3 { font-size: 14px; font-weight: 600; color: var(--muted); }
.block { display: flex; flex-direction: column; gap: 10px; }
.figures.key + .facts { padding-top: 16px; }
.figures.key .n { font-size: clamp(22px, 7vw, 30px); }
.figures.key .c { font-size: 15px; font-weight: 600; color: var(--petrol); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 6px; }
.figures > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.figures > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.figures .n { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figures .c { font-size: 14px; color: var(--muted); }
.source { font-size: 12.5px; color: var(--muted); }
.rows, .facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.rows li { padding-block: 13px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: none; padding-bottom: 0; }
.rows b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.rows span { font-size: 15px; color: var(--muted); }
.facts { gap: 12px; padding-top: 4px; }
.facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.facts .tick { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.closer { padding: 24px 20px; border-radius: 22px; background: var(--petrol); color: #FFFFFF; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.closer strong { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.closer p { font-size: 16px; color: var(--mist); }
.closer .pill { margin-top: 12px; }

/* Stránka zásad ochrany osobných údajov */
.legal a { color: inherit; text-underline-offset: 3px; }
.doc { background: var(--petrol); min-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; }
.doc-top { padding-block: 20px 26px; padding-inline: 22px; color: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-back { min-height: 44px; margin: 0; padding: 0 16px; background: none; border: 1.5px solid var(--petrol-soft); border-radius: 22px; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.doc-sheet { flex: 1 1 auto; background: var(--sheet); border-radius: 28px 28px 0 0; padding-block: 30px 40px; padding-inline: 22px; display: flex; justify-content: center; }
.doc-body { width: 100%; max-width: 680px; min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.doc-body h1 { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.doc-body h2 { margin-top: 18px; font-family: var(--display); font-size: 23px; font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; text-wrap: balance; }
.doc-body h2:focus, .doc-body h1:focus { outline: none; }
.doc-body h3 { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--petrol); line-height: 1.35; }
.doc-body p, .doc-body li { color: #23484E; }
.doc-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.doc-body b { color: var(--petrol); font-weight: 700; }
.doc-meta { font-size: 14px; color: var(--muted); }
.doc-body a { color: var(--petrol); text-underline-offset: 3px; }
.doc-body mark { background: var(--tile); color: var(--muted); border-bottom: 1.5px dashed var(--ring); padding: 0 2px; }
.doc-end { margin-top: 22px; align-self: flex-start; }
@media (min-width: 900px) {
  .doc-top { padding-block: 28px 30px; padding-inline: 48px; }
  .doc-sheet { padding-block: 48px 64px; padding-inline: 48px; }
  .doc-body h1 { font-size: 42px; }
}

@media (min-width: 900px) {
  .app { flex-direction: row; }
  .brand { flex: 0 0 42%; position: sticky; top: 0; align-self: flex-start; height: 100vh; height: 100dvh; padding-block: 40px 44px; padding-inline: 48px; }
  .hero-slot { flex: 1 1 auto; grid-template-rows: 1fr; }
  .hero-clip { opacity: 1; display: flex; flex-direction: column; justify-content: center; }
  .hero { padding-top: 0; }
  .hero h1 { font-size: 50px; }
  .hero p { font-size: 18px; }
  .sheet { border-radius: 32px 0 0 32px; padding-block: 0; padding-inline: 48px; }
  /* Otázka ostáva v strede prvej obrazovky; sekcia dôvery začína tesne pod ňou */
  .quiz-view { min-height: calc(100vh - 76px); min-height: calc(100dvh - 76px); justify-content: center; padding-block: 48px 24px; }
  h2 { font-size: 30px; }
  .trust { padding-top: 36px; }
  .foot { margin-top: 0; padding-top: 0; min-height: 76px; display: flex; align-items: center; }
  .below { padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .spinner, .hero, .options.nudge .option { animation: none !important; }
  .dashes span, .option, .hero-slot, .hero-clip { transition: none; }
}

/* Odkazy, ktoré vyzerajú ako tlačidlá alebo značka */
a.wordmark { color: #FFFFFF; text-decoration: none; }
a.pill { text-decoration: none; }
a.doc-back { display: inline-flex; align-items: center; text-decoration: none; }
.text-link { margin: 0; padding: 0; background: none; border: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.consent a { color: var(--petrol); text-underline-offset: 3px; }
/* Znenie súhlasu je doplnené, čiarkovaný rámček (značka nedoplneného textu) už netreba */
.consent { border-style: solid; border-color: transparent; }

/* Overenie Turnstile: zobrazí sa len vtedy, keď Cloudflare potrebuje, aby človek niečo potvrdil */
.submit-wrap { display: flex; flex-direction: column; }
.turnstile iframe { margin-bottom: 12px; }

.noscript { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px 22px; background: var(--bar); color: #FFFFFF; font-size: 15px; text-align: center; }

/* Pätička na stred */
.foot p.legal { width: 100%; text-align: center; text-wrap: balance; }

/* Auto pri nadpise. Na mobile vykúka spoza pravého okraja vedľa 2. a 3. riadku nadpisu; presnú polohu počíta skript
   (quiz.js, placeCar) zo skutočných riadkov textu, aby sa ho nikdy nedotklo. Na širokej obrazovke stojí pod textom
   a mizne za hranou hárku. Pri výmene obrázka zachovať priehľadné pozadie a upraviť CAR_RATIO v quiz.js. */
.brand { position: relative; }
.hero-car, .hero-car-wide { background: url('/img/auto.webp') left top / auto 100% no-repeat; pointer-events: none; }
.hero-car {
  position: absolute; right: 0;
  left: var(--car-left, 279px); top: var(--car-top, 84px); height: var(--car-h, 114px);
  opacity: 0; transition: opacity 0.2s ease;
}
.app[data-hero="intro"][data-hero-open="true"] .hero-car { opacity: 1; }
.hero-car-wide { display: none; }
@media (min-width: 900px) {
  .hero-car { display: none; }
  .hero-clip { overflow: visible; }
  .app[data-hero="intro"] .hero-car-wide { display: block; flex: 0 0 auto; height: clamp(170px, 30vh, 250px); margin-top: 30px; margin-right: -48px; }
}

/* Cookie lišta v podobe, akú ľudia poznajú z bežných webov: biely box, nadpis, pár riadkov a tri voľby.
   Odmietnutie je v prvej vrstve, na jedno kliknutie a rovnako veľké ako prijatie. Lišta neblokuje obsah. */
.cookie {
  position: fixed; z-index: 20;
  left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 20px); overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: #FFFFFF; color: var(--muted);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 36px rgba(8, 39, 45, 0.24);
  font-size: 13.5px; line-height: 1.45;
}
.cookie p { margin: 0; }
.cookie-title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--petrol); }
.cookie b { color: var(--petrol); font-weight: 600; }
.cookie a { color: var(--petrol); text-underline-offset: 3px; }
.cookie-prefs { display: flex; flex-direction: column; gap: 10px; }
.cookie-prefs label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.cookie-prefs input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; accent-color: var(--petrol); }
.cookie-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 2px; }
.ck-btn { min-height: 44px; margin: 0; padding: 0 12px; background: #FFFFFF; border: 1.5px solid var(--petrol); border-radius: 22px; font-size: 15px; font-weight: 700; color: var(--petrol); }
.ck-btn.ck-primary { background: var(--petrol); border-color: var(--petrol); color: #FFFFFF; }
.ck-btn.wide { grid-column: 1 / -1; order: 3; }
/* „Prispôsobiť“: na mobile nenápadný odkaz pod tlačidlami, na širokej obrazovke tretie tlačidlo */
.ck-btn.ck-plain { grid-column: 1 / -1; order: 3; min-height: 30px; border: none; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  /* Kým je lišta zobrazená, pätička dostane miesto navyše, aby sa dalo doscrollovať na všetko */
  .foot { padding-bottom: var(--cookie-h, 0px); }
}
@media (min-width: 900px) {
  /* vpravo dole, aby lišta nezakrývala auto v ľavom stĺpci */
  .cookie { left: auto; right: 24px; bottom: 24px; width: 460px; padding: 20px; gap: 12px; font-size: 14px; }
  .cookie-title { font-size: 17px; }
  .cookie-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cookie.open .cookie-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-btn.ck-plain { grid-column: auto; order: 0; min-height: 44px; border: 1.5px solid var(--petrol); font-size: 15px; font-weight: 700; color: var(--petrol); text-decoration: none; }
}

/* Viditeľná poznámka pri testovacom režime servera (CRM_DRY_RUN) */
.test-note { padding: 12px 14px; border: 1.5px dashed var(--error); border-radius: 12px; color: var(--error); font-size: 14px; font-weight: 600; }
