/* TB Cars – main.css (bez build kroku) */

/* ---------- Fonty (lokálně, GDPR) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600.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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Design tokeny ---------- */
:root {
  --bg: #292524;           /* stone-800 */
  --bg-dark: #1C1917;      /* stone-900 */
  --bg-card: #1C1917;
  --line: #44403C;
  --gold: #F6D77A;
  --gold-hover: #FBE6A6;
  --text: #FFFFFF;
  --text-2: #D4D4D8;
  --text-3: #71717A;
  --danger: #F87171;
  --ok: #4ADE80;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);      /* 16 → 18 */
  --fs-md: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);     /* 18 → 20 */
  --fs-lg: clamp(1.5rem, 1.3rem + 1vw, 2rem);              /* 24 → 32 */
  --fs-xl: clamp(2rem, 1.6rem + 2vw, 3rem);                /* 32 → 48 */
  --fs-xxl: clamp(2.5rem, 1.9rem + 3vw, 4rem);             /* 40 → 64 */

  --radius: 12px;
  --radius-lg: 20px;
  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(3rem, 6vw, 6rem);
  --header-h: 99px;
  --nav-fs: 20px;
  --nav-gap: 24px;
}

/* ---------- Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-base)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: var(--fs-xl); font-weight: 700; }
h2 { font-size: var(--fs-lg); color: var(--gold); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--bg-dark); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section-dark { background: var(--bg-dark); }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .65em 1.6em;
  border: 0; border-radius: 999px; background: var(--gold); color: var(--bg-dark); font: 600 var(--fs-base)/1.2 var(--font-head);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--gold-hover); color: var(--bg-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-outline:hover { background: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header (podle původního webu: černá lišta 99 px, logo 220 px přesahující dolů, zlaté menu 20 px) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #000; }
.header-inner { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); height: var(--header-h);
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.logo { position: relative; align-self: flex-start; flex: 0 0 auto; width: 220px; height: 100%; display: block; z-index: 2; }
.logo img { position: absolute; top: 20px; left: 0; width: 220px; height: auto; max-width: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.45)); }
.nav { display: flex; align-items: center; flex: 1 1 auto; justify-content: center; min-width: 0; }
.nav > ul { display: flex; gap: var(--nav-gap); list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--gold); text-decoration: none; font: 600 var(--nav-fs)/30px var(--font-head); padding: .25rem 0; display: block; white-space: nowrap; }
.nav a:hover, .nav .active > a, .nav a[aria-current="page"] { color: #fff; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: calc(100% + 18px); left: 50%; min-width: 250px; background: #000;
  border: 1px solid rgba(246,215,122,.35); border-radius: var(--radius); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: .15s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* most pro hover mezi položkou a podmenu */
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { font-size: 16px; font-weight: 500; padding: .45rem 1.1rem; }
.nav .social { display: none; }
.social { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social a { color: var(--gold); padding: .4rem; display: flex; }
.social-brand { gap: 24px; flex: 0 0 auto; }
.social-brand a { padding: 0; transition: transform .15s; }
.social-brand a:hover { transform: scale(1.12); }
.social-brand svg { width: 24px; height: 24px; }
.social-brand .s-wa { color: #25D366; } .social-brand .s-fb { color: #0866FF; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; color: var(--gold); }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }

/* Přepínač jazyka */
/* Hlavička: rozbalovací menu – vidět je jen aktuální jazyk se šipkou, ostatní až po rozkliknutí */
.lang-dd { position: relative; flex: 0 0 auto; }
.lang-dd summary { display: flex; align-items: center; gap: .4rem; min-height: 36px; padding: .35rem .6rem; list-style: none; cursor: pointer; user-select: none;
  border: 1px solid rgba(246,215,122,.45); border-radius: 8px; color: var(--gold); font: 600 .85rem/1 var(--font-head); letter-spacing: .04em; }
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary:hover, .lang-dd[open] summary { border-color: var(--gold); color: #fff; }
.lang-dd summary svg { transition: transform .15s; }
.lang-dd[open] summary svg { transform: rotate(180deg); }
.lang-dd ul { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 150px; margin: 0; padding: .35rem 0; list-style: none;
  background: #000; border: 1px solid rgba(246,215,122,.35); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.lang-dd a { display: flex; align-items: baseline; gap: .6rem; padding: .55rem .9rem; color: var(--text-2); text-decoration: none; font: 500 .9rem/1.2 var(--font-head); white-space: nowrap; }
.lang-dd a b { color: var(--gold); font-weight: 600; letter-spacing: .04em; min-width: 1.6em; }
.lang-dd a:hover, .lang-dd a:focus-visible { color: #fff; background: rgba(246,215,122,.12); }
/* Patička: prosté odkazy vedle sebe */
.lang-switch { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; flex: 0 0 auto; }
.lang-switch a { display: block; padding: .4rem .45rem; border-radius: 6px; font: 600 .8rem/1 var(--font-head); color: var(--text-2); text-decoration: none; letter-spacing: .04em; }
.lang-switch a:hover { color: var(--gold); }
.lang-switch a[aria-current="true"] { color: #000; background: var(--gold); }

@media (max-width: 1360px) { :root { --nav-fs: 18px; --nav-gap: 18px; } }
@media (max-width: 1240px) { :root { --nav-fs: 16px; --nav-gap: 14px; } .social-brand { gap: 16px; } }

/* Tablet + mobil: logo uprostřed, jazyk vlevo, hamburger vpravo (jako původní web) */
@media (max-width: 1100px) {
  :root { --header-h: 94px; }
  .header-inner { justify-content: space-between; }
  .logo { order: 2; align-self: center; width: auto; height: auto; }
  .logo img { position: static; width: auto; height: 79px; filter: none; }
  .lang-dd { order: 1; width: 96px; }
  .lang-dd summary { width: max-content; }
  .lang-dd ul { right: auto; left: 0; }
  .nav-toggle { display: block; order: 3; width: 96px; text-align: right; display: flex; justify-content: flex-end; }
  .header-inner > .social-brand { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #000; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 1rem var(--gutter) 2rem; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 20px; padding: .7rem .25rem; }
  .sub { position: static; opacity: 1; visibility: inherit; transform: none; border: 0; padding: 0 0 .5rem 1rem; min-width: 0; background: none; }
  /* Klepnutí = :hover/:focus-within → desktopové pravidlo by podmenu posunulo o 50 % doleva („odjede z displeje“) */
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { transform: none; }
  .sub { transition: none; }
  .sub::before { display: none; }
  .sub a { font-size: 17px; color: var(--text-2); padding: .5rem .25rem; }
  .nav .social { display: flex; justify-content: center; margin-top: 1.5rem; gap: 24px; }
  html.nav-open { overflow: hidden; } /* zámek posouvání jen na <html> – sticky hlavička i pozice stránky zůstanou */
}
@media (max-width: 400px) {
  .logo img { height: 68px; }
  .lang-dd, .nav-toggle { width: 84px; }
}

/* ---------- Plovoucí pozadí stránky (jako původní web: fotka pevně pod obsahem, obsah po ní roluje) ---------- */
.page-bg { position: fixed; inset: 0; height: 100vh; height: 100lvh; z-index: -1; background: var(--bg-dark); pointer-events: none; }
.page-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.page-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--bg-dim, .5)); }
.page-uvod { --bg-dim: .4; }
body { background: transparent; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }
/* Krátké stránky: poslední sekce se natáhne až k patičce (žádná „díra“ mezi obsahem a patičkou), její obsah je svisle na středu */
main > :last-child { flex: 1 0 auto; }
main > .cta:last-child, .page-404 main > .section { display: grid; align-content: center; }
html { background: var(--bg); }
main { position: relative; }

/* ---------- Hero (bez vlastního obrázku – leží na pozadí stránky) ---------- */
.hero { position: relative; display: grid; align-items: center; text-align: center; color: var(--text); }
.hero h1, .hero .lead { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero h1 { color: var(--gold); margin-bottom: .3em; }
.hero .lead { font: 500 var(--fs-md)/1.4 var(--font-head); color: #fff; }
/* Úvod jako původní web: nadpis nahoře, 4 tlačítka v řadě u spodního okraje hero (na mobilu pod sebou) */
.hero-home { min-height: min(calc(100vh - var(--header-h)), 700px); padding-block: 60px 40px; align-items: stretch; }
.hero-home .hero-content { display: flex; flex-direction: column; }
.hero-home h1 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 700; line-height: 1.2; max-width: 24ch; margin-inline: auto; }
.hero-home .lead { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 700; margin-bottom: 2.5rem; }
.hero-home .btn-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 4.5vw, 60px); align-items: center; margin-top: auto; padding-bottom: 20px; }
.hero-home .btn { width: 100%; min-height: 47px; text-align: center; font: 400 clamp(1.1rem, .9rem + .7vw, 1.5rem)/1.2 var(--font-head); padding: .6rem 1rem; border-radius: 40px; background: rgba(246,215,122,.9); color: #000; }
.hero-home .btn:hover { background: var(--gold-hover); }
@media (max-width: 781px) {
  .hero-home .btn-row { grid-template-columns: 1fr; justify-items: center; gap: 1rem; }
  .hero-home .btn { width: min(100%, 282px); }
}
.hero-sub { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.hero-sub h1 { font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem); margin-bottom: .2em; }
.hero-sub + .section { padding-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Karty, mřížky ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin: 0; }
.card .price, .price { font: 700 var(--fs-lg)/1.1 var(--font-head); color: var(--gold); }
.card .btn { margin-top: auto; align-self: flex-start; }
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); text-align: center; }
.stat b { display: block; font: 700 var(--fs-xxl)/1 var(--font-head); color: var(--gold); }

/* ---------- Ceník ---------- */
.pricelist { width: 100%; border-collapse: collapse; }
.pricelist th, .pricelist td { padding: .9rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pricelist th { font: 500 var(--fs-base)/1.4 var(--font-body); }
.pricelist td.p { text-align: right; white-space: nowrap; font: 600 var(--fs-base)/1.4 var(--font-head); color: var(--gold); }
.pricelist .note { display: block; color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- Kroky ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; background: var(--bg-card); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 1.25rem; top: 1.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--bg-dark); font: 700 1rem/1 var(--font-head); }

/* ---------- Akordeon (FAQ) ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font: 600 var(--fs-md)/1.4 var(--font-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.6rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.25rem; color: var(--text-2); }

/* ---------- Galerie + lightbox ---------- */
.gallery { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--bg-dark); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(0,0,0,.4); border: 0; color: #fff; font-size: 2rem; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.lb-close { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- Formuláře ---------- */
.form { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--bg-card); padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg); }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: var(--fs-sm); }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field .err { color: var(--danger); font-size: var(--fs-sm); margin-top: .25rem; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { grid-column: 1 / -1; padding: 1rem; border-radius: 10px; }
.form-msg.ok { background: rgba(74,222,128,.12); color: var(--ok); }
.form-msg.bad { background: rgba(248,113,113,.12); color: var(--danger); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Vozy ---------- */
.car-card { padding: 0; overflow: hidden; }
.car-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.car-card .body { padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.car-params { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--text-2); font-size: var(--fs-sm); list-style: none; padding: 0; margin: 0; }
.badge { display: inline-block; align-self: flex-start; padding: .2rem .7rem; border-radius: 999px; font: 600 .8rem/1.4 var(--font-head); background: var(--gold); color: var(--bg-dark); }
.badge.reserved { background: #FDBA74; } .badge.sold { background: var(--text-3); color: #fff; }

/* ---------- Patička (kompaktní lišta jako na původním webu: logo · údaje · sociální sítě) ---------- */
.site-footer { background: #000; color: var(--text-2); font-size: .875rem; line-height: 1.55; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--gold); }
.footer-main { display: flex; align-items: center; gap: .75rem 2rem; padding-block: .9rem; }
.footer-logo { flex: 0 0 auto; display: block; }
.footer-logo img { height: 48px; width: auto; }
.footer-info { flex: 1 1 auto; min-width: 0; }
.footer-info p { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; margin: 0; text-align: center; }
.footer-info p:first-child { color: #fff; }
.footer-info p:first-child a { color: #fff; text-decoration: none; }
.site-footer .social { flex: 0 0 auto; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .15rem 1.5rem;
  border-top: 1px solid var(--line); padding-block: .45rem; color: #A1A1AA; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 1rem; }
@media (max-width: 760px) {
  .footer-main { flex-direction: column; gap: .5rem; padding-block: 1rem .75rem; }
  .footer-info p { gap: 0 1rem; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}

/* ---------- Pomocné ---------- */
.prose { max-width: 72ch; }
.prose > * + h2 { margin-top: 2em; }
.todo { border: 2px dashed var(--gold); border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Stránkové komponenty ---------- */
.section-head { max-width: 72ch; margin-bottom: 2rem; }
.section-head p { color: var(--text-2); }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.tile { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 1.5rem; text-align: center; text-decoration: none;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--text); font: 600 var(--fs-md)/1.3 var(--font-head); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.tile small { display: block; color: var(--text-2); font: 400 var(--fs-sm)/1.4 var(--font-body); margin-top: .35rem; }
.check { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .35rem; }
.check li { position: relative; padding-left: 1.6rem; color: var(--text-2); }
.check li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.check li strong { color: var(--text); }
.card.featured { border-color: var(--gold); }
.card .from { font-size: .6em; font-weight: 600; color: var(--text-2); }
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.split img { border-radius: var(--radius-lg); width: 100%; }
.note-box { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1rem; color: var(--text-2); }
.logos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.logos a, .logos div { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.logos img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; border-radius: 16px; background: #fff; }
.contact-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.contact-card { display: block; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.contact-card b { display: block; color: var(--gold); font: 600 var(--fs-md)/1.3 var(--font-head); margin-bottom: .25rem; }
.contact-card:hover { border-color: var(--gold); color: var(--text); }
.links-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.map-ph { display: grid; place-items: center; gap: 1rem; min-height: 280px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--line); text-align: center; padding: 2rem; }
.map-ph iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.table-wrap { overflow-x: auto; }
.pricelist thead th { color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; }
.pricelist td.p + td.p { padding-left: 1.5rem; }
.downloads { list-style: none; padding: 0; display: grid; gap: .75rem; }
.downloads a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.downloads a span { color: var(--text-3); font-size: var(--fs-sm); }
.downloads a:hover { border-color: var(--gold); }
/* Půjčovna (17. 11.): stejně velké pole pro obrázek a obsah karet zarovnaný do společných řádků (subgrid) */
.rental-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.rental-grid > .rental-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: .5rem; align-content: start; }
.rental-media { height: clamp(150px, 15vw, 195px); padding: .35rem 4%; margin-bottom: .35rem; border-radius: 10px; box-sizing: border-box;
  background: radial-gradient(ellipse 70% 65% at 50% 55%, rgba(255,255,255,.16), rgba(255,255,255,0) 72%); }
.rental-media img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; margin: 0; }
.rental-card h3, .rental-card .rental-sub { margin: 0; }
.rental-card .pricelist { align-self: start; }
.rental-card .rental-note { align-self: end; margin: 0; }
.car-detail-cover { border-radius: var(--radius-lg); width: 100%; }
.form-section { margin: .75rem 0 0; font-size: var(--fs-md); color: var(--gold); }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.choices legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: .5rem; padding: 0; width: 100%; }
.choice { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: var(--text-2); }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
.field input[type=file] { padding: .6rem; }
.field small { display: block; margin-top: .3rem; font-size: var(--fs-sm); }


/* ---------- Vizuál podle původního webu: průhledné sekce a karty nad plovoucím pozadím ---------- */
.section-dark { background: rgba(0,0,0,.68); }
.section:not(.section-dark) { text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.section .card, .section .tile, .section .contact-card, .section .downloads a, .steps li, .form {
  background: rgba(0,0,0,.46); border: 2px solid var(--gold); border-radius: 13px; text-shadow: none; }
.section-dark .card, .section-dark .tile, .section-dark .contact-card, .section-dark .steps li { background: rgba(0,0,0,.35); }
.form { background: rgba(0,0,0,.62); }
.field input, .field select, .field textarea { background: rgba(28,25,23,.85); }
.tile:hover, .contact-card:hover, .downloads a:hover { border-color: #fff; }
/* Zvýrazněná karta má stejný zlatý rámeček jako ostatní (dříve bílý) */
.card.featured { border-color: var(--gold); }
.faq { background: rgba(0,0,0,.55); border-radius: 13px; padding: .5rem clamp(1rem, 3vw, 2rem); text-shadow: none; }
.section .prose > table.pricelist, .section .table-wrap { text-shadow: none; }
.section h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; }
.btn-lg { font: 400 clamp(1.1rem, 1rem + .5vw, 1.5rem)/30px var(--font-head); padding: .6rem 1.5rem; }
.btn-dark { background: rgba(0,0,0,.7); color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-dark:hover { background: #000; color: var(--gold-hover); }


/* ---------- Úvod: sekce podle původního webu ---------- */
.stats-bar { padding-block: 16px; }
.stats-bar .stats { gap: 1rem clamp(1.5rem, 8vw, 100px); grid-template-columns: repeat(3, minmax(0, 1fr)); font-weight: 700; }
.stats-bar .stat b { font: 700 clamp(2rem, 1.4rem + 2vw, 2.65rem)/1.4 var(--font-body); }
@media (max-width: 640px) { .stats-bar .stats { grid-template-columns: 1fr; gap: .5rem; } }
.home-videos { padding-block: 40px 60px; }
.home-videos-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; align-items: center; margin-bottom: 2.5rem; }
.home-videos-head h2 { margin: 0; font-weight: 600; text-align: left; }
.home-videos-head h3 { font: 600 var(--fs-md)/1.4 var(--font-body); text-align: center; margin-bottom: .8rem; }
.home-videos-head p { margin: 0; padding-left: 14px; font-size: var(--fs-sm); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.video-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
.video-grid h3 { font: 500 1.5rem/1.4 var(--font-head); color: var(--gold); margin: 0 0 .4rem; }
.video-grid p { margin: 0; font-size: var(--fs-sm); }
.home-about { padding-block: 60px; }
.home-about h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 2.75rem); }
.btn-stack { display: flex; align-items: stretch; gap: clamp(1rem, 2.5vw, 1.75rem); margin: 1.5rem 0 0; }
.btn-stack .btn { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 40px;
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.3; padding: .5rem .95rem; }
/* Žádný šrot a šmejdy: tlačítka vedle sebe, spodní hrana zarovnaná se spodkem obrázku */
@media (min-width: 760px) {
  .home-about .split { align-items: stretch; }
  .home-about .split > div { display: flex; flex-direction: column; justify-content: center; }
  .home-about .split > div .btn-stack { margin-top: auto; padding-top: 1.5rem; }
  .home-about .split > img { align-self: end; }
}
.section-solid { background: var(--bg-dark); }
.home-reviews { padding-block: 20px 40px; }
.home-reviews h2 { margin-bottom: 1.5rem; }
.review { display: grid; grid-template-columns: 173px minmax(0, 1fr); gap: clamp(1.25rem, 5vw, 52px); align-items: center; padding: 20px clamp(0px, 5vw, 60px); }
.review img { width: 173px; height: auto; }
.review h3 { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.875rem)/1.4 var(--font-head); color: var(--gold); margin: 0 0 1rem; }
.review p { margin: 0; }
@media (max-width: 760px) {
  .home-videos-head, .video-grid { grid-template-columns: 1fr; }
  .video-grid { gap: 28px; }
  .review { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ---------- Rozcestníky (Prodej aut, Služby, Detailing): zlatá tlačítka jako na původním webu ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px clamp(20px, 4vw, 64px); max-width: 1020px; margin-inline: auto; padding-block: clamp(1.5rem, 6vw, 5rem) 1.5rem; }
.pill { display: flex; align-items: center; justify-content: center; width: 282px; max-width: 100%; min-height: 51px; padding: 9.6px 24px; text-align: center; text-decoration: none; text-shadow: none;
  background: rgba(246,215,122,.9); color: #000; border: 2px solid #000; border-radius: 40px; font: 400 1.5rem/1.2 var(--font-head); transition: background .15s, transform .15s; }
.pill:hover { background: var(--gold-hover); color: #000; transform: translateY(-1px); }
.pills-bold .pill { font-weight: 700; }
@media (max-width: 760px) { .pills { gap: 20px; } .pill { font-size: 1.3rem; } }


/* ============ Podstránky podle původního webu tbcars.cz (Dovoz aut – ceník, Pojištění, Kontakty, Galerie, O nás) ============ */
.hero-left { text-align: left; }
.section-tight { padding-top: 0; }
.wrap-narrow { max-width: 1120px; }
.text-lg { font-size: clamp(1rem, .95rem + .3vw, 1.25rem); }
.h-xl { font: 700 clamp(2rem, 1.3rem + 2.4vw, 3rem)/1.2 var(--font-body); margin-bottom: 2.5rem; }
.h-sub { font: 600 clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem)/1.25 var(--font-head) !important; color: var(--gold); margin: 3rem 0 .6rem; text-align: left; }
.h-sub2 { font: 600 clamp(1.4rem, 1.2rem + 1vw, 2rem)/1.25 var(--font-head) !important; color: var(--gold); margin: 1.5rem 0 1rem; text-align: left; }
.h-sub3 { font: 700 1.375rem/1.3 var(--font-head); color: var(--gold); margin: 1.5rem 0 1rem; }
.h-form { font: 700 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.25 var(--font-body) !important; color: var(--gold); margin: 0 0 1.5rem; }
.lead-strong { font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.3 var(--font-body); margin-bottom: 1rem; }
.note-line { margin: 2rem 0 0; font-size: var(--fs-md); }

/* Boxy ceníku na Dovoz aut (.cards-new): na středu, zlatý nadpis, bílá cena, tlačítko „Objednat“ se zaoblením 13 px */
.section .cards-new .card { text-align: center; align-items: center; padding: 20px clamp(20px, 3vw, 40px) 22px; gap: .75rem; }
.section .cards-new .card h3 { color: var(--gold); font: 700 clamp(1.4rem, 1.2rem + .7vw, 1.75rem)/1.3 var(--font-head); margin: 0; }
.section .cards-new .card .price { color: #fff; font: 700 clamp(1.6rem, 1.3rem + 1vw, 2rem)/1.2 var(--font-body); margin: 0; }
.section .cards-new .card .check { align-self: stretch; text-align: left; margin: .5rem 0 .75rem; gap: .5rem; }
.section .cards-new .card .check li { color: #fff; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.45; }
.section .cards-new .card .btn { margin-top: auto; align-self: center; min-width: 183px; min-height: 46px; padding: .55rem 1.25rem; border-radius: 13px;
  background: rgba(246,215,122,.9); color: #000; border: 1px solid #000; font: 700 18px/1.2 var(--font-head); box-shadow: none; }
.section .cards-new .card .btn:hover { background: var(--gold-hover); }
.cards-r20 .card { border-radius: 20px; }
.cards-r20 .card h3 { font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.cards-pkg .card h3, .card-size h3 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem) !important; }
.card-service { min-height: 214px; justify-content: space-between; }
.grid.cards-2 { grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: space-between; gap: 24px clamp(24px, 9vw, 120px); padding-inline: 20px; }
.grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3.5vw, 60px); }
.grid.cards-3.cards-wide-gap { gap: 10px clamp(20px, 5vw, 80px); row-gap: 34px; padding-inline: 20px; }
.grid.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px clamp(16px, 3vw, 40px); padding-inline: 20px; }
@media (max-width: 1000px) { .grid.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid.cards-3, .grid.cards-3.cards-wide-gap, .grid.cards-2 { grid-template-columns: minmax(0, 420px); justify-content: center; padding-inline: 0; } }
@media (max-width: 520px) { .grid.cards-4 { grid-template-columns: minmax(0, 420px); justify-content: center; padding-inline: 0; } }
.box { background: rgba(0,0,0,.46); border: 2px solid var(--gold); border-radius: 13px; padding: 20px clamp(16px, 3vw, 40px); text-shadow: none; margin-inline: 20px; }
.pricelist-plain th, .pricelist-plain td { border: 0; padding: .65rem .5rem; font: 400 clamp(1rem, .95rem + .3vw, 1.25rem)/1.4 var(--font-body); color: #fff; text-align: left; }
.pricelist-plain thead th, .pricelist-plain tr > th:first-child { font-weight: 700; color: #fff; font-size: clamp(1rem, .95rem + .3vw, 1.25rem); }
.pricelist-plain thead th:first-child { color: var(--gold); }
@media (max-width: 640px) { .box { margin-inline: 0; } }

.pills-single { padding-block: 0 2.5rem; }
.big-link { margin: 1rem 0 0; font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.3 var(--font-body); }
.big-link a { text-decoration: none; }

/* Galerie v poloprůhledném boxu */
.gallery-box { background: rgba(0,0,0,.46); padding: clamp(14px, 3vw, 40px); margin-top: 3rem; }
.hero-sub + .section .gallery-box:first-child { margin-top: 0; }
.gallery-box .gallery { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gallery-box .gallery a { border-radius: 0; }

/* Pojištění: seznam pojišťoven (malé logo + název) ve třech sloupcích */
.insurers { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 6vw, 100px); background: rgba(0,0,0,.39); text-shadow: none; }
.insurers a { display: flex; align-items: center; gap: 16px; min-height: 68px; color: #fff; font: 700 clamp(1rem, .95rem + .3vw, 1.25rem)/1.3 var(--font-body); text-decoration: none; }
.insurers a:hover { color: var(--gold); }
.insurers img { width: 37px; height: 37px; object-fit: contain; border-radius: 8px; background: #fff; flex: 0 0 auto; }
@media (max-width: 860px) { .insurers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .insurers { grid-template-columns: 1fr; } }
.section-form { background: rgba(0,0,0,.46); text-shadow: none !important; }
.hero-sub + .section-form { background: none; }
.section-band { background: rgba(0,0,0,.51); text-shadow: none !important; padding-block: 2rem 3rem; }

/* Kontakty */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 60px; text-align: center; align-items: start; }
.contact-btns { display: grid; gap: 24px; justify-items: center; padding-top: 20px; }
.contact-btns a { display: flex; flex-direction: column; justify-content: center; width: 251px; max-width: 100%; min-height: 74px; padding: .4rem 1rem; border-radius: 20px; border: 1px solid #000;
  background: rgba(0,0,0,.35); color: var(--gold); font: 400 .95rem/1.4 var(--font-body); text-decoration: none; text-shadow: none; transition: background .15s; }
.contact-btns a:hover { background: rgba(0,0,0,.6); color: var(--gold-hover); }
.contact-btns b { font-weight: 700; }
.contact-info { margin: 2.5rem 0 1.25rem; line-height: 1.6; }
.contact-info a { color: #fff; }
.contact-grid .social { justify-content: center; }
.contact-grid h2 { font: 500 1.75rem/1.4 var(--font-head) !important; margin: 20px 0 .25rem; }
.contact-grid .map-ph { max-width: 450px; min-height: 300px; margin: 1rem auto 0; border-radius: 13px; border: 2px solid var(--gold); background: rgba(0,0,0,.46); text-shadow: none; }
.contact-more .links-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 24px; font-size: 1rem; }
.contact-more .links-list a { color: #fff; }
.downloads { display: flex; flex-wrap: wrap; gap: 24px; }
.section .downloads a { background: rgba(0,0,0,.48); border: 2px solid #000; border-radius: 20px; padding: .8rem 1.25rem; }
.section .downloads a span { color: var(--text-2); }
@media (max-width: 760px) { .contact-grid, .contact-more .links-list { grid-template-columns: 1fr; } }

/* O nás: box s textem u pravého okraje */
.about-section { padding-block: 80px; }
.about-box { width: min(100%, 376px); margin-left: auto; padding: 0 20px 24px; background: rgba(0,0,0,.73); border: 2px solid var(--gold); border-radius: 13px; text-align: center; text-shadow: none; }
.about-box h1 { font: 700 2.5rem/1.6 var(--font-head); color: var(--gold); margin: 0 0 .25rem; }
.about-box p { font-size: 1.1rem; line-height: 1.55; margin-bottom: .9rem; }
@media (max-width: 760px) { .about-box { margin-inline: auto; } .about-section { padding-block: 40px; } }
/* O nás (17. 11.): fotka Tomáše na pozadí – desktop: hlava i mašle, box s textem vpravo vedle auta; mobil/tablet: obličej nad boxem */
.page-o-nas .page-bg-img { object-position: 0% 25%; }
.page-o-nas .about-section .wrap { width: calc(100% - 2 * clamp(16px, 3vw, 48px)); max-width: none; }
.page-o-nas .about-box { width: clamp(300px, 26vw, 400px); }
/* Desktop: úsek s fotkou na celou výšku okna, patička až pod ním – nezakrývá mašli */
@media (min-width: 1101px) {
  .page-o-nas .about-section { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 40px; }
}
/* Telefon na šířku (nízké okno): výřez výš, aby hlavu nezakryla hlavička */
@media (max-height: 520px) and (orientation: landscape) { .page-o-nas .page-bg-img { object-position: 0% 8%; } }
@media (max-width: 1100px) {
  .page-o-nas .about-section { padding-top: max(40px, calc(42svh - var(--header-h))); }
  .page-o-nas .about-box { width: min(100%, 400px); }
}

.page-dovoz-aut main > .section:first-child { padding-top: 60px; }
.section-form .form { max-width: 860px; }

/* ---------- Nabídka vozů: celá fotka (16:9), parametry s ikonami, cena a tlačítko vždy u spodního okraje karty ---------- */
.car-card img { aspect-ratio: 16 / 9; }
.car-card .body { gap: .7rem; }
.car-icons { list-style: none; margin: .25rem 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; text-align: center; color: #fff; font-size: var(--fs-sm); line-height: 1.3; }
.car-icons li { display: grid; justify-items: center; gap: .35rem; }
.car-icons svg { width: 38px; height: 38px; color: var(--gold); }
.car-foot { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.car-foot .price { margin: 0; }
.car-foot .btn { margin-top: 0; align-self: center; }
@media (max-width: 380px) { .car-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .5rem; } }

/* ---------- Detailing – rozcestník ---------- */
.detailing-hub .pills { padding-block: clamp(.5rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem); }
.detailing-intro { max-width: 860px; margin-inline: auto; padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.5rem); text-align: center; text-shadow: none;
  background: rgba(0,0,0,.46); border: 2px solid var(--gold); border-radius: 13px; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
.detailing-intro p:last-child { margin: 0; color: var(--text-2); }
.detailing-services { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding: 0; max-width: 1020px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.detailing-services li { display: grid; justify-items: center; align-content: start; gap: 1rem; padding: 1.5rem .75rem; text-align: center; text-shadow: none;
  background: rgba(0,0,0,.46); border-radius: 13px; font: 600 clamp(1rem, .95rem + .3vw, 1.15rem)/1.3 var(--font-head); color: #fff; }
.detailing-services svg { width: 48px; height: 48px; color: var(--gold); }
@media (max-width: 760px) { .detailing-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* ---------- Servis: nabídka služeb (3 × 2 dlaždice s ikonou) a klimatizace seskupená podle typu chladiva ---------- */
.service-grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1020px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-grid li { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: .9rem; padding: 1.75rem 1.25rem 1.5rem; text-align: center; text-shadow: none;
  background: rgba(0,0,0,.46); border: 2px solid var(--gold); border-radius: 13px; }
.service-grid svg { width: 44px; height: 44px; color: var(--gold); }
.service-grid h3 { margin: 0; align-self: center; font: 600 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.3 var(--font-head); color: #fff; }
.service-grid .btn { min-width: 160px; }
@media (max-width: 860px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 480px) { .service-grid { gap: 12px; } .service-grid li { padding: 1.1rem .5rem 1rem; gap: .6rem; } .service-grid svg { width: 36px; height: 36px; } .service-grid .btn { min-width: 0; padding-inline: 1.1rem; } }
.klima-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 1.5rem; }
.klima-box { padding: 1.25rem 1.5rem .75rem; background: rgba(0,0,0,.35); border: 2px solid var(--gold); border-radius: 13px; text-shadow: none; }
.klima-box h3 { margin: 0 0 .5rem; font: 700 clamp(1.4rem, 1.2rem + .8vw, 1.75rem)/1.2 var(--font-head); color: var(--gold); }
.klima-box h3 small { display: block; font: 600 .8rem/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.klima-box .pricelist tr:last-child th, .klima-box .pricelist tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) { .klima-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakty: snímek mapy místo vložené mapy ---------- */
.map-shot { max-width: 450px; margin: 1rem auto 0; }
.map-shot a { display: block; border: 2px solid var(--gold); border-radius: 13px; overflow: hidden; }
.map-shot img { width: 100%; height: auto; aspect-ratio: 9 / 8; object-fit: cover; transition: transform .3s; }
.map-shot a:hover img { transform: scale(1.03); }
.map-shot figcaption { margin-top: .3rem; text-align: right; font-size: .75rem; color: var(--text-2); text-shadow: none; }
.map-shot figcaption a { display: inline; border: 0; color: inherit; }

/* ---------- Detail vozu (17. 11.): karta s cenou + panel s popisem a výbavou, čitelné nad pozadím ---------- */
.car-layout { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); margin-top: 2rem; align-items: start; }
@media (min-width: 900px) {
  .car-layout { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); }
  .car-buy { position: sticky; top: 120px; }
}
.section .car-buy { background: rgba(12,10,9,.88); gap: .9rem; }
.car-buy .price { margin: 0; }
.car-buy .pricelist th, .car-buy .pricelist td { padding: .7rem .25rem; }
.car-buy .pricelist td { text-align: right; font-weight: 600; }
.car-buy .btn { align-self: stretch; text-align: center; margin-top: .25rem; }
.car-info { background: rgba(12,10,9,.88); border: 1px solid rgba(246,215,122,.35); border-radius: 13px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.25rem); text-shadow: none; }
.car-block + .car-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.car-block h2 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); margin: 0 0 .8rem; }
.car-block p { margin: 0; color: #E7E5E4; line-height: 1.7; max-width: 70ch; }
.check.car-equip { margin: 0; gap: .6rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.check.car-equip li { color: #E7E5E4; line-height: 1.45; }

/* ---------- Dotykové displeje (17. 11.) ---------- */
/* Pojistka proti posouvání stránky do strany (iOS); clip nerozbije sticky hlavičku */
html { overflow-x: hidden; overflow-x: clip; }
/* Dlouhá slova (hlavně němčina) se na úzkých displejích zalomí místo přetečení */
h1, h2, h3, h4, th, td, li, .btn, .pill, .tile { overflow-wrap: break-word; }
html[lang="de"] :is(h1, h2, h3) { hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) {
  html[lang="de"] :is(p, li, th, td) { hyphens: auto; -webkit-hyphens: auto; }
  .pricelist th, .pricelist td { padding-inline: .3rem; }
  .pricelist th { overflow-wrap: anywhere; }
}
/* Vlastní odezva na klepnutí místo šedého probliknutí */
a, button, summary, .btn { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); filter: brightness(.92); }
.nav a:active, .lang-dd a:active, .sub a:active { color: #fff; }
.tile:active, .card a:active, .gallery a:active { opacity: .85; }
/* Na dotyku nenechávat „zaseknutý“ hover efekt (zvednutí, zvětšení) po klepnutí */
@media (hover: none) {
  .btn:hover, .tile:hover, .social-brand a:hover, .gallery a:hover img, .map-shot:hover img { transform: none; }
  .tile:hover, .contact-card:hover, .downloads a:hover { border-color: var(--gold); }
}
/* Dotykové cíle (min. ~40 px) */
.nav-toggle { min-height: 44px; align-items: center; }
.site-footer .lang-switch a { padding: .7rem .6rem; }
.footer-bottom a { display: inline-block; padding-block: .55rem; }
.consent input, .choice input { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; accent-color: var(--gold); }
.consent input { margin-top: .1rem; }
.choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; cursor: pointer; }
/* Pole pro soubory ve stylu webu */
.field input[type=file] { color: var(--text-2); font-size: var(--fs-sm); }
.field input[type=file]::file-selector-button { margin-right: .75rem; padding: .5rem 1rem; border: 0; border-radius: 999px; background: var(--gold); color: #000;
  font: 600 .9rem/1.2 var(--font-head); cursor: pointer; }
/* Fotogalerie na mobilu: 2 sloupce místo jedné dlouhé řady */
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
/* Tablet: skupiny 3 karet (balíčky detailingu, leštění, půjčovna) ve 3 sloupcích – žádná osiřelá karta na dalším řádku */
@media (min-width: 700px) and (max-width: 1100px) {
  .grid:has(> :nth-child(3):last-child):not(:has(table)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .grid:has(> :nth-child(3):last-child):not(:has(table)) > .card { padding: 1.1rem; }
}
/* Vyvážené řádky: nadpisy bez osiřelého posledního slova, odstavce bez sirotků (kde prohlížeč umí) */
h1, h2, h3, .btn, .pill { text-wrap: balance; }
p, li, dd, td, th { text-wrap: pretty; }
html[lang="de"] :is(h1, h2, h3, p, li, th, td) { hyphenate-limit-chars: 10 4 4; }
/* EN/DE: hlavní cena v EUR, původní cena v CZK v závorce – menší a tlumená; v ceníkových buňkách a velkých cenách na vlastním řádku */
.czk { color: var(--text-2); font-weight: 400; font-size: .82em; white-space: nowrap; text-shadow: none; }
.pricelist td.p .czk, .price .czk { display: block; margin-top: .1rem; }
.price .czk { font-size: .5em; font-family: var(--font-body); }
.cards-new .card .price .czk { font-size: .45em; }
.btn .czk { display: none; } /* v tlačítkách jen EUR – text by se rozbil */
