/* Auto Drink — sdílené styly. Barvy, typografie a komponenty webu.
   Rozbaleno z původního jednosouborového buildu; vzhled je 1:1 shodný. */

/* ---------- Fonty ---------- */
/* Zúžené na češtinu: latinka, česká diakritika, interpunkce a typografické
   znaky. Proti plným řezům z Google Fonts to ušetří zhruba 43 kB a dvě
   HTTP spojení. Znak mimo tuhle množinu se vykreslí systémovým písmem. */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-cs.woff2") format('woff2');
}

@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/baloo2-cs.woff2") format('woff2');
}

/* ---------- Základ ---------- */
:root {
  --ad-yellow: #ffcf2d;
  --ad-yellow-deep: #e0ae00;
  --ad-black: #0e0e0d;
  --ad-black-2: #1a1a17;
  --font-heading: "Baloo 2", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; text-wrap: pretty; overflow-x: clip; background: var(--ad-black); font-family: var(--font-body); color: #f4f1ea; }
a { color: var(--ad-yellow); text-decoration: none; }
a:hover { color: #ffe17d; }
img { max-width: 100%; height: auto; display: block; }
/* <picture> nesmí vytvořit vlastní box, jinak by rozbil rozvržení, které
   počítá s <img> jako přímým potomkem. */
picture { display: contents; }
figure { margin: 0; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-plus { transform: rotate(45deg); }
.glow { transition: transform 0.15s, box-shadow 0.15s; }
.glow:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,207,45,0.28); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drive { from { transform: translateX(calc(100vw + 80px)); } to { transform: translateX(-140px); } }
@keyframes spin { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .strip-car, .rim { animation: none; } .strip-car { display: none; } }
@media (max-width: 780px) { .strip-car { will-change: transform; } .car-a { animation-duration: 6s !important; animation-delay: 0s !important; } .car-b { animation-duration: 7.5s !important; animation-delay: 2s !important; } .car-c { animation-duration: 9s !important; animation-delay: 4s !important; } .rim { animation-duration: .16s !important; } .marquee-track { animation-duration: 24s !important; } }
@media (max-width: 900px) { .navlinks { display: none; } }
:focus-visible { outline: 2px solid var(--ad-yellow); outline-offset: 3px; }
[id] { scroll-margin-top: 82px; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 12px max(20px, calc((100% - var(--wrap)) / 2 + 20px)); background: rgba(14,14,13,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,207,45,0.18); }
.site-header .brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.site-header .brand img { height: 40px; width: auto; }
.navlinks { font-size: 15px; color: #cfcabd; white-space: nowrap; }
.navlinks:hover { color: var(--ad-yellow); }
.navlinks[aria-current="page"] { color: var(--ad-yellow); }
.btn-phone { display: inline-block; background: var(--ad-yellow); color: var(--ad-black); font-weight: 700; font-size: 16px; padding: 11px 22px; border-radius: 999px; white-space: nowrap; }
.btn-phone:hover { color: var(--ad-black); }

/* ---------- Sekce a typografie ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px 72px; }
.wrap-top { max-width: var(--wrap); margin: 0 auto; padding: 72px 20px 60px; }
.kicker { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ad-yellow); margin: 0; }
.h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; margin: 12px 0 30px; }
.h3 { font-family: var(--font-heading); font-weight: 800; font-size: 22px; margin: 20px 0 8px; }
.lead { font-size: 18px; line-height: 30px; margin: 0 0 26px; color: #cfcabd; max-width: 62ch; }
.prose p { font-size: 16.5px; line-height: 29px; margin: 0 0 18px; color: #b8b3a7; }
.prose p strong { color: #f4f1ea; }
.prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 28px; color: #b8b3a7; }
.prose li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--ad-yellow); }

/* ---------- Karty ---------- */
.card { background: var(--ad-black-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; padding: 28px; }
.card p { font-size: 15.5px; line-height: 27px; margin: 0; color: #b8b3a7; }
.card .h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.num { display: grid; place-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ad-yellow); color: var(--ad-black); font-family: var(--font-heading); font-weight: 800; font-size: 25px; }

/* ---------- Podstránkový hero ---------- */
.page-hero { position: relative; overflow: clip; max-width: var(--wrap); margin: 0 auto; padding: clamp(36px, 5vw, 64px) 20px 30px; }
.page-hero h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.05; margin: 14px 0 18px; }
.page-hero .glowring { position: absolute; right: -200px; top: -240px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(255,207,45,0.18), rgba(255,207,45,0) 68%); pointer-events: none; }
.crumbs { font-size: 13.5px; color: #8f8b81; margin: 0; }
.crumbs a { color: #9d998e; }
.crumbs a:hover { color: var(--ad-yellow); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--ad-black-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 18px 22px; }
.faq summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 19px; }
.faq details p { font-size: 15.5px; line-height: 26px; margin: 12px 0 0; color: #b8b3a7; }
.faq-plus { flex: none; font-size: 26px; color: var(--ad-yellow); transition: transform 0.18s; }

/* ---------- Závěrečné CTA ---------- */
.cta-box { background: var(--ad-yellow); border-radius: 30px; padding: clamp(32px, 5vw, 58px); position: relative; overflow: hidden; }
.cta-box .blob { position: absolute; right: -70px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.cta-box .inner { position: relative; color: var(--ad-black); }
.cta-box h2 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; margin: 0; }
.cta-box p { font-size: 18px; line-height: 30px; margin: 14px 0 28px; max-width: 44ch; opacity: 0.82; }
.cta-box a { display: inline-block; background: var(--ad-black); color: var(--ad-yellow); font-family: var(--font-heading); font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); padding: 15px 34px; border-radius: 999px; white-space: nowrap; }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid rgba(255,207,45,0.18); padding: 48px 20px 30px; }
.site-footer .cols { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-footer img { height: 46px; width: auto; margin-bottom: 12px; }
.site-footer .ftitle { font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; font-weight: 700; margin: 0 0 12px; color: var(--ad-yellow); }
.site-footer .fmuted { font-size: 15px; line-height: 26px; margin: 0; color: #9d998e; }
.site-footer .flinks { font-size: 15px; line-height: 28px; margin: 0; }
.site-footer .copy { max-width: var(--wrap); margin: 34px auto 0; font-size: 13px; color: #8f8b81; }

/* ---------- Hodnocení a recenze (kompaktní pruh) ---------- */
.rating-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rating-card { display: inline-flex; align-items: center; gap: 11px; background: var(--ad-black-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 999px; padding: 8px 16px 8px 9px; transition: border-color .15s; }
.rating-card:hover { border-color: rgba(255,207,45,0.45); color: inherit; }
.rating-card .mark { flex: none; width: 26px; height: 26px; display: grid; place-content: center; border-radius: 7px; background: #fff; }
.rating-card .mark svg, .rating-card .mark img { width: 19px; height: 19px; display: block; }
.rating-card .score { font-family: var(--font-heading); font-weight: 800; font-size: 17px; line-height: 1; color: #f4f1ea; white-space: nowrap; }
.rating-card .where { font-size: 13px; color: #9d998e; white-space: nowrap; }
.rating-card .arrow { color: var(--ad-yellow); font-size: 15px; flex: none; }
.stars { display: inline-flex; gap: 1px; vertical-align: middle; margin: 0 6px; }
.stars svg { width: 12px; height: 12px; fill: var(--ad-yellow); }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.review { margin: 0; background: var(--ad-black-2); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 9px; font-size: 14.5px; line-height: 23px; color: #c9c4b8; }
.review blockquote::before { content: "„"; color: var(--ad-yellow); font-family: var(--font-heading); font-weight: 800; font-size: 20px; line-height: 1; vertical-align: -6px; margin-right: 2px; }
.review figcaption { margin-top: auto; font-size: 12.5px; color: #8f8b81; }
.review figcaption b { color: #b8b3a7; font-weight: 600; }
.reviews-note { font-size: 12.5px; color: #8f8b81; margin: 12px 0 0; }

/* ===========================================================================
   MOBIL — web je stavěný primárně pro telefon (99 % návštěv).
   Desktop dědí základ výše, tady se řeší dotyk, palec a úzká obrazovka.
   =========================================================================== */

html { -webkit-text-size-adjust: 100%; }

/* ---------- Hamburger menu (bez JS, přes <details>) ---------- */
.mobmenu { display: none; position: static; }
.mobmenu > summary {
  display: grid; place-content: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 13px; border: 1px solid rgba(255,207,45,0.30);
  background: rgba(255,207,45,0.08); cursor: pointer;
}
.mobmenu > summary .bars, .mobmenu > summary .bars::before, .mobmenu > summary .bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ad-yellow); transition: transform .2s, opacity .2s;
}
.mobmenu > summary .bars::before, .mobmenu > summary .bars::after { content: ""; position: relative; }
.mobmenu > summary .bars::before { top: -6px; }
.mobmenu > summary .bars::after { top: 4px; }
.mobmenu[open] > summary .bars { background: transparent; }
.mobmenu[open] > summary .bars::before { transform: translateY(6px) rotate(45deg); }
.mobmenu[open] > summary .bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobmenu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #161614; border-bottom: 1px solid rgba(255,207,45,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  padding: 8px 16px 16px; display: grid;
}
.mobmenu-panel a {
  display: flex; align-items: center; min-height: 54px;
  padding: 0 6px; font-size: 17px; color: #e6e1d6;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobmenu-panel a:last-of-type { border-bottom: 0; }
.mobmenu-panel a:active { color: var(--ad-yellow); }

/* ---------- Sticky spodní lišta s telefonem ---------- */
.callbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14,14,13,0.94); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,207,45,0.20);
  transform: translateY(110%); transition: transform .25s ease;
}
.callbar.show { transform: translateY(0); }
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; border-radius: 999px;
  background: var(--ad-yellow); color: var(--ad-black);
  font-family: var(--font-heading); font-weight: 800; font-size: 21px;
}
.callbar a:hover, .callbar a:active { color: var(--ad-black); }
.callbar svg { width: 21px; height: 21px; fill: currentColor; flex: none; }

/* ---------- Větší dotykové plochy (platí všude) ---------- */
.faq summary { min-height: 48px; }
.site-footer .flinks a { display: inline-block; padding: 7px 0; }
.crumbs a { display: inline-block; padding: 4px 0; }

/* Posuvník kalkulačky — palec musí mít co chytit */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 34px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.14); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: var(--ad-yellow); border: 3px solid #0e0e0d;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.14); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ad-yellow); border: 3px solid #0e0e0d;
}

/* ===========================================================================
   <= 900 px — telefon a menší tablet
   =========================================================================== */
@media (max-width: 900px) {
  .navlinks { display: none; }
  .mobmenu { display: block; }

  .site-header { gap: 12px; padding: 10px 16px; }
  .site-header .brand img { height: 34px; }
  .btn-phone { font-size: 15px; padding: 12px 18px; min-height: 46px; display: flex; align-items: center; }

  [id] { scroll-margin-top: 72px; }

  /* Spodní lišta zabírá místo — ať nezakryje patičku */
  body { padding-bottom: 84px; }
  .callbar { display: block; }

  /* Sekce: méně vzduchu, méně scrollování */
  .wrap { padding: 10px 18px 52px; }
  .wrap-top { padding: 48px 18px 44px; }
  .page-hero { padding: 30px 18px 24px; }
  .grid-2 { gap: 28px; }
  .grid { gap: 14px; }
  .card { padding: 22px; border-radius: 18px; }

  .h2 { margin: 10px 0 22px; }
  .lead { font-size: 17px; line-height: 28px; }
  .prose p, .prose li { font-size: 16px; line-height: 27px; }
  .reviews-note { font-size: 13px; }

  /* Kalkulačka: tři tlačítka vedle sebe, ne rozsypaná do dvou řad */
  #kalkulacka [data-tier] { flex: 1 1 0 !important; min-width: 0 !important; padding: 12px 4px !important; }

  /* Patička: čitelné odkazy pod palcem */
  .site-footer { padding: 36px 18px calc(24px); }
  .site-footer .cols { gap: 26px; }

  .cta-box { border-radius: 24px; }
}

/* ===========================================================================
   <= 480 px — běžný telefon na výšku
   =========================================================================== */
@media (max-width: 480px) {
  .site-header .brand img { height: 31px; }
  .btn-phone { font-size: 14.5px; padding: 12px 15px; }

  .wrap { padding: 8px 16px 44px; }
  .wrap-top { padding: 38px 16px 36px; }
  .page-hero { padding: 24px 16px 20px; }
  .page-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }

  .card { padding: 18px; }
  .h2 { font-size: clamp(26px, 7.6vw, 34px); }
  .h3 { font-size: 20px; }

  /* Hlavní CTA přes celou šířku — palec ho nemine */
  .cta-box { padding: 26px 20px; }
  .cta-box a { display: block; text-align: center; font-size: 27px; padding: 15px 18px; }

  .rating-row { gap: 8px; }
  .rating-card { width: 100%; }
  .review { padding: 14px 15px; }

  .callbar a { font-size: 20px; }
  .site-footer { padding: 30px 16px 22px; }
}

/* Šířka mezi 481 a 900: hodnocení vedle sebe, ne přes celou šířku */
@media (min-width: 481px) and (max-width: 900px) {
  .rating-card { flex: 1 1 260px; }
}

/* ---------- Dotykové plochy: doladění ---------- */
.site-header .brand { min-height: 46px; }
details > summary { min-height: 48px; }
.site-footer .flinks a { padding: 11px 0; }
/* Podtržení sedí těsně u textu, dotyková plocha se roztahuje neviditelně. */
.link-underline {
  position: relative; display: inline-block;
  padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,0.28);
}
.link-underline::after {
  content: ""; position: absolute; left: -6px; right: -6px;
  top: 50%; transform: translateY(-50%); height: 46px;
}


/* ---------- Rozlišitelnost odkazů ---------- */
/* Odkaz uvnitř běžného textu se nesmí lišit jen barvou — podtržení ho
   odliší i pro čtenáře, kteří barvy nerozliší. Tlačítka a hlavní
   navigace mají tvar a pozici, ty podtržené nejsou. */
p a:not(.btn-phone):not(.glow),
li a,
figcaption a,
.reviews-note a,
.crumbs a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
p a:not(.btn-phone):not(.glow):hover,
li a:hover,
.crumbs a:hover { text-decoration-thickness: 2px; }

/* Nadpis, který je zároveň odkazem, dostane nenápadné podtržení —
   jinak by nešel odlišit od nadpisu bez odkazu. */
h2 a, h3 a, .card .h3 a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 207, 45, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
h2 a:hover, h3 a:hover, .card .h3 a:hover { text-decoration-color: var(--ad-yellow); }

/* ---------- Lišta se souhlasem s měřením ---------- */
/* Zobrazí se jen tehdy, když je v souhlas.js vyplněné měřicí ID. */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 16px max(18px, calc((100% - var(--wrap)) / 2 + 20px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: #161614; border-top: 1px solid rgba(255,207,45,0.28);
  box-shadow: 0 -14px 40px rgba(0,0,0,0.5);
}
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: 14.5px; line-height: 23px; color: #cfcabd; }
.cookie-bar-akce { display: flex; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.cookie-bar button {
  min-height: 46px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.22); background: transparent; color: #e6e1d6;
}
.cookie-bar .cookie-ano { background: var(--ad-yellow); border-color: var(--ad-yellow); color: var(--ad-black); }
.cookie-bar button:hover { filter: brightness(1.1); }

/* Dokud se lišta ptá, spodní tlačítko s telefonem ustoupí. */
body.ma-cookie-listu .callbar { display: none; }

@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar-akce { margin-left: 0; }
  .cookie-bar-akce button { flex: 1; }
}

/* ---------- Plovoucí tlačítko pro změnu souhlasu ---------- */
/* Objeví se, až když návštěvník volbu jednou udělal. Kliknutím se lišta
   vrátí a jde rozhodnout jinak. Bez toho by souhlas nešlo odvolat. */
.cookie-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 45;
  width: 52px; height: 52px; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255,207,45,0.35);
  background: rgba(22,22,20,0.92); backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  display: grid; place-items: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cookie-btn:hover { transform: translateY(-3px) scale(1.06); border-color: var(--ad-yellow); box-shadow: 0 10px 26px rgba(255,207,45,0.28); }
.cookie-btn .auto { width: 40px; height: auto; display: block; transform: translateX(-2px); }
.cookie-btn .susenka { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; }

/* Popisek se ukáže při najetí myší. Na dotyku se nezobrazuje, tam stačí ikona. */
.cookie-btn .popis {
  position: absolute; right: 60px; white-space: nowrap;
  background: #161614; border: 1px solid rgba(255,207,45,0.3);
  color: #e6e1d6; font-size: 13.5px; padding: 7px 13px; border-radius: 999px;
  opacity: 0; pointer-events: none; transform: translateX(6px); transition: opacity .18s, transform .18s;
}
.cookie-btn:hover .popis, .cookie-btn:focus-visible .popis { opacity: 1; transform: translateX(0); }

/* Nad spodní lištou s telefonem, ať se nepřekrývají */
@media (max-width: 900px) {
  .cookie-btn { bottom: calc(88px + env(safe-area-inset-bottom)); right: 12px; width: 46px; height: 46px; }
  .cookie-btn .auto { width: 34px; }
  .cookie-btn .susenka { width: 21px; height: 21px; }
  .cookie-btn .popis { display: none; }
}
/* Když se ptá lišta, tlačítko je zbytečné */
body.ma-cookie-listu .cookie-btn { display: none; }
