/* ==========================================================================
   JVP system s.r.o. — statický web
   Jeden designový systém: tokeny → základ → layout → komponenty → responsivita
   ========================================================================== */

/* ---------- 1. Tokeny ---------------------------------------------------- */
:root {
  /* barvy značky */
  --c-primary: #0a67c2;
  --c-primary-dark: #084f95;
  --c-primary-soft: #e8f1fb;
  --c-navy: #0f2036;
  --c-ink: #16222e;
  --c-body: #3d4a57;
  --c-muted: #6b7a88;
  --c-soft: #f3f5f8;
  --c-line: #e3e9ef;
  --c-white: #fff;
  --c-check: #0a67c2;

  /* typografická škála (1.2) */
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-md: 1rem;        /* 16 */
  --fs-lg: 1.1875rem;   /* 19 */
  --fs-xl: 1.4375rem;   /* 23 */
  --fs-2xl: clamp(1.5rem, 2.4vw, 1.875rem);   /* 24–30 */
  --fs-3xl: clamp(1.75rem, 3vw, 2.25rem);     /* 28–36 */
  --fs-hero: clamp(1.875rem, 4.4vw, 3.25rem); /* 30–52 */

  /* rozestupy (4px grid) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --sec-y: clamp(48px, 7vw, 80px);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 32, 54, .06), 0 1px 3px rgba(15, 32, 54, .08);
  --shadow-md: 0 8px 24px rgba(15, 32, 54, .10);
  --shadow-lg: 0 16px 48px rgba(15, 32, 54, .18);
  --wrap: 1180px;
  --font: "Play", Helvetica, Arial, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* původní font webu (Google Fonts „Play"), servírovaný lokálně */
@font-face { font-family: "Play"; src: url("../fonts/play-400.woff2") format("woff2"), url("../fonts/play-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Play"; src: url("../fonts/play-700.woff2") format("woff2"), url("../fonts/play-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ETmodules"; src: url("../fonts/modules.woff") format("woff"), url("../fonts/modules.ttf") format("truetype"); font-weight: normal; font-style: normal; font-display: block; }

/* ---------- 2. Základ ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.6;
  color: var(--c-body); background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--c-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-primary-dark); }
h1, h2, h3, h4 { color: var(--c-ink); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--c-primary-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.center { text-align: center; }
.mt-1 { margin-top: var(--s-2); } .mt-2 { margin-top: var(--s-4); } .mt-3 { margin-top: var(--s-6); } .mt-4 { margin-top: var(--s-7); } .mb-2 { margin-bottom: var(--s-3); }

/* ---------- 3. Tlačítka -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: 0 var(--s-5); border-radius: var(--r-pill);
  background: var(--c-primary); color: var(--c-white) !important;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap;
  border: 2px solid var(--c-primary); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; box-shadow: none; }
.btn.small { min-height: 38px; padding: 0 var(--s-4); font-size: var(--fs-xs); }
.btn.ghost, .btn.line { background: transparent; border-color: rgba(255, 255, 255, .7); }
.btn.ghost:hover, .btn.line:hover { background: rgba(255, 255, 255, .14); border-color: #fff; box-shadow: none; }

/* ---------- 4. Horní lišta + hlavička ------------------------------------ */
.topbar { background: var(--c-navy); color: #c9d6e4; font-size: var(--fs-xs); }
.topbar .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 36px; }
.topbar a { color: #e8f0f8; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .tb-contact { display: flex; gap: var(--s-4); }
.topbar .tb-links { margin-left: auto; display: flex; gap: var(--s-4); align-items: center; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.topbar svg { width: 14px; height: 14px; fill: currentColor; }

.site-head { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--c-line); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav > ul > li { position: relative; }
.nav a.nav-link { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--c-ink); font-weight: 700; font-size: 14px; white-space: nowrap; }
.nav a.nav-link:hover, .nav li.open > a.nav-link { background: var(--c-soft); color: var(--c-primary); }
.nav a.nav-link.active { color: var(--c-primary); }
.nav li.has-dd > a.nav-link::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 2px; }
.dd-toggle { display: none; }
.nav .caret { display: none; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: var(--s-2); list-style: none;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease);
}
.nav li:hover > .dropdown, .nav li.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--c-ink); font-size: 14px; font-weight: 400; }
.dropdown a:hover { background: var(--c-soft); color: var(--c-primary); }
.dropdown .dd-head { font-weight: 700; }
.dropdown .dd-sep { height: 1px; margin: 6px 8px; background: var(--c-line); }
.nav .btn { margin-left: var(--s-2); }
.nav-toggle { display: none; margin-left: auto; padding: 8px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 6px 0; background: var(--c-ink); border-radius: 2px; transition: .2s; }

/* ---------- 5. Hero + drobečková cesta ----------------------------------- */
/* Bannery jsou sjednocené na 2.5:1; do ~1400px je vidět celý, na širších obrazovkách se symetricky ořízne. */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden; width: 100%; min-width: 0;
  aspect-ratio: 2.5 / 1; min-height: 320px; max-height: 560px; background: var(--c-navy);
}
.hero.tall { aspect-ratio: auto; min-height: 560px; max-height: none; }
.hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s ease; }
.hero .hero-bg.hero-slide { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 20, 34, .28) 0%, rgba(9, 20, 34, .62) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-block: var(--s-8); }
.hero h1 { color: #fff; font-size: var(--fs-hero); text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero p.lead { max-width: 60ch; margin: var(--s-4) 0 var(--s-6); color: #dbe7f3; font-size: clamp(1rem, 1.5vw, 1.1875rem); }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.crumb-bar { background: var(--c-soft); border-bottom: 1px solid var(--c-line); font-size: var(--fs-xs); color: var(--c-muted); }
.crumb-bar .wrap { padding-block: var(--s-2); }

/* ---------- 6. Sekce a nadpisy ------------------------------------------- */
.sec { padding-block: var(--sec-y); }
.sec.alt { background: var(--c-soft); }
.sec-head { max-width: 760px; margin: 0 auto var(--s-7); text-align: center; }
.sec-head h2 { font-size: var(--fs-3xl); margin-bottom: var(--s-3); }
.sec-head p { font-size: var(--fs-lg); color: var(--c-muted); }
.kicker { display: inline-block; margin-bottom: var(--s-2); color: var(--c-primary); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- 7. Statistiky ------------------------------------------------ */
.stats { padding-block: var(--s-7); color: #fff; background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary)); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.1; }
.stat span { display: block; margin-top: var(--s-1); color: #d7e6f6; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- 8. Karty ----------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); }
.card {
  display: flex; flex-direction: column; overflow: hidden; color: inherit;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card .card-body { display: flex; flex: 1; flex-direction: column; padding: var(--s-4) var(--s-5) var(--s-5); }
.card h3 { margin-bottom: var(--s-2); font-size: var(--fs-lg); }
.card p { flex: 1; font-size: var(--fs-sm); color: var(--c-body); }
.card .more { margin-top: var(--s-4); color: var(--c-primary); font-size: var(--fs-sm); font-weight: 700; }
.card .more::after { content: " →"; }

/* ---------- 9. Procesní kroky / ikonové boxy ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
.step, .feature {
  padding: var(--s-6) var(--s-5); text-align: center;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.step .n { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto var(--s-3); color: #fff; font-size: var(--fs-lg); font-weight: 700; background: var(--c-primary); border-radius: 50%; }
.step h4 { margin-bottom: var(--s-1); font-size: var(--fs-md); }
.step p { font-size: var(--fs-xs); color: var(--c-muted); }
.feature .eticon { display: block; margin: 0 auto var(--s-3); color: var(--c-primary); font-family: "ETmodules"; font-size: 44px; line-height: 1; }
.feature > img { width: auto; max-height: 88px; margin: 0 auto var(--s-3); }
.feature h3 { margin-bottom: var(--s-2); font-size: var(--fs-md); }
.feature .feature-desc { font-size: var(--fs-xs); color: var(--c-muted); }
.feature .feature-desc p + p { margin-top: var(--s-2); }
.colbox > .feature:only-child { height: 100%; }
.steps-list { max-width: 880px; margin: 0 auto; }
.step-row { display: flex; gap: var(--s-5); align-items: flex-start; padding: var(--s-5) 0; border-top: 1px solid var(--c-line); }
.step-row:first-child { border-top: 0; padding-top: 0; }
.step-ico { display: flex; align-items: center; justify-content: center; flex: 0 0 56px; height: 56px; background: var(--c-primary-soft); border-radius: 50%; }
.step-ico .eticon { color: var(--c-primary); font-family: "ETmodules"; font-size: 26px; line-height: 1; }
.step-txt { flex: 1; min-width: 0; }
.step-txt h2, .step-txt h3 { margin: 2px 0 var(--s-2); padding: 0; border: 0; font-size: var(--fs-lg); }
.step-txt p { margin-bottom: var(--s-2); }

/* ---------- 10. Textový obsah -------------------------------------------- */
.page-body { max-width: 860px; margin-inline: auto; }
.page-body h2 { margin: var(--s-7) 0 var(--s-4); padding-left: var(--s-3); border-left: 4px solid var(--c-primary); font-size: var(--fs-2xl); }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-xl); }
.page-body h4 { margin: var(--s-5) 0 var(--s-2); color: var(--c-primary); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-body p { margin-bottom: var(--s-4); }
.page-body ul, .step-txt ul { margin: 0 0 var(--s-4); list-style: none; }
.page-body li, .step-txt li { position: relative; margin-bottom: var(--s-2); padding-left: 26px; }
.page-body li::before, .step-txt li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--c-check); font-weight: 700; }
.page-body > :last-child { margin-bottom: 0; }

/* vícesloupcové řady z původního layoutu */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-5); align-items: stretch; }
.cols .colbox { min-width: 0; }
.colbox > .page-body { max-width: none; margin: 0; }
.cols:has(> .colbox:nth-child(2):last-child > .gallery) { grid-template-columns: minmax(220px, 1fr) 2fr; }
.sec .wrap > .page-body { margin-bottom: var(--s-5); }
.sec .wrap > .page-body:last-child { margin-bottom: 0; }
.sec .wrap > .cols + .cols, .sec .wrap > .page-body + .cols, .sec .wrap > .cols + .page-body { margin-top: var(--s-6); }
.sec .wrap > .sec-head + .cols { margin-top: 0; }

/* sbalovací boxy */
details.box { margin-bottom: var(--s-3); overflow: hidden; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
details.box summary { position: relative; padding: var(--s-4) var(--s-5); color: var(--c-ink); font-weight: 700; cursor: pointer; list-style: none; }
details.box summary::-webkit-details-marker { display: none; }
details.box summary::after { content: "+"; position: absolute; right: var(--s-5); color: var(--c-primary); font-size: var(--fs-lg); }
details.box[open] summary::after { content: "–"; }
details.box .box-in { padding: 0 var(--s-5) var(--s-4); font-size: var(--fs-sm); }

/* ---------- 11. Obrázky, galerie, carousel ------------------------------- */
a.g-item.inline-img { display: block; max-width: 860px; margin: var(--s-2) auto var(--s-5); text-align: center; }
a.g-item.inline-img img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; border-radius: var(--r-md); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-3); }
.gallery.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.gallery.single { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
.gallery.single .g-item { aspect-ratio: auto; }
.gallery.single .g-item img { height: auto; }
.g-item {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm);
}
.gallery.wide .g-item { aspect-ratio: auto; }
.g-item img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s var(--ease); }
.gallery.wide .g-item img { height: auto; }
.g-item:hover img { transform: scale(1.04); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-7); align-items: center; }
.two-col img { border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.promo { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-7); align-items: center; }
.promo .g-item { aspect-ratio: auto; }
.promo .g-item img { height: auto; }

.carousel { position: relative; margin: var(--s-3) auto var(--s-6); overflow: hidden; }
.car-track { display: flex; align-items: center; transition: transform .65s var(--ease); }
.car-slide { display: block; flex: 0 0 78%; padding: 0 var(--s-3); opacity: .4; transform: scale(.93); transition: opacity .65s, transform .65s var(--ease); }
.car-slide.on { opacity: 1; transform: none; }
.car-slide img { width: 100%; height: auto; }
.carousel .car-prev, .carousel .car-next {
  position: absolute; top: 50%; z-index: 5; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; transform: translateY(-50%); border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15, 32, 54, .45); color: #fff; font-size: 22px; line-height: 1; transition: background .15s;
}
.carousel .car-prev:hover, .carousel .car-next:hover { background: var(--c-primary); }
.carousel .car-prev { left: var(--s-3); } .carousel .car-next { right: var(--s-3); }
.car-dots { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-3); }
.car-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 32, 54, .25); cursor: pointer; transition: .15s; }
.car-dots button.on { background: var(--c-primary); transform: scale(1.25); }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(9, 16, 25, .94); }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); }
.lightbox .lb-cap { max-width: 80vw; margin-top: var(--s-3); color: #cdd9e5; font-size: var(--fs-sm); text-align: center; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 24px; cursor: pointer; transition: background .15s; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox .lb-close { top: var(--s-5); right: var(--s-5); }
.lightbox .lb-prev { left: var(--s-5); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s-5); top: 50%; transform: translateY(-50%); }

/* ---------- 12. Katalogy, dokumenty, související odkazy ------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-4); }
.cols.cat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cat-card { display: block; max-width: 240px; overflow: hidden; color: var(--c-ink); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s, color .15s; }
.cat-grid .cat-card { max-width: none; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--c-primary); }
.cat-card img { width: 100%; aspect-ratio: 1 / 1.3; object-fit: cover; object-position: top; background: var(--c-soft); border-bottom: 1px solid var(--c-line); }
.cat-card .ico-big { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.3; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; letter-spacing: .06em; }
.cat-card span { display: block; padding: var(--s-3) var(--s-3) var(--s-4); font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; }
.colbox > .cat-card { height: 100%; }
.dl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-3); list-style: none; }
.dl-list a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); color: var(--c-ink); font-size: var(--fs-sm); font-weight: 700; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); transition: .15s; }
.dl-list a:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.dl-list .ico { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; background: var(--c-primary-soft); color: var(--c-primary); border-radius: var(--r-sm); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin: calc(-1 * var(--s-4)) 0 var(--s-3); }

/* ---------- 13. CTA pás -------------------------------------------------- */
.cta-band { padding-block: var(--s-7); color: #fff; background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary)); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); }
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); }
.cta-band p { max-width: 60ch; margin-top: var(--s-2); color: #d9e7f6; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-left: auto; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--c-primary) !important; }
.cta-band .btn:hover { background: #eaf2fb; }
.cta-band .btn.line { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.cta-band .btn.line:hover { background: rgba(255, 255, 255, .15); }
.cta-band .phone { color: #fff; font-size: var(--fs-xl); font-weight: 700; white-space: nowrap; }

/* ---------- 14. Formuláře ------------------------------------------------ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); max-width: 820px; margin-inline: auto; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; margin-bottom: 6px; color: var(--c-ink); font-size: var(--fs-xs); font-weight: 700; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; background: var(--c-white); border: 1.5px solid var(--c-line); border-radius: var(--r-sm); color: var(--c-ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(10, 103, 194, .14); }
.form textarea { min-height: 130px; resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-sm); }
.form .check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }
.form-note { margin-top: var(--s-3); color: var(--c-muted); font-size: var(--fs-xs); }

/* ---------- 15. Kontakt, tým, mapy -------------------------------------- */
.team, .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); }
.person, .info-card { padding: var(--s-5); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.person .role { display: block; min-height: 1.6em; color: var(--c-primary); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.person h3 { margin: var(--s-1) 0 var(--s-2); font-size: var(--fs-lg); }
.person p, .info-card p { margin: 2px 0; font-size: var(--fs-sm); }
.info-card h3 { margin-bottom: var(--s-2); font-size: var(--fs-md); }
.map-embed { width: 100%; height: 320px; border: 0; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }

/* ---------- 16. Minimalistické SEO bloky --------------------------------- */
.seo-mini { padding-block: var(--s-5); color: #93a1ae; font-size: var(--fs-xs); }
.seo-mini summary { color: var(--c-muted); font-weight: 700; cursor: pointer; list-style: none; }
.seo-mini summary::-webkit-details-marker { display: none; }
.seo-mini summary::after { content: " +"; color: var(--c-primary); }
.seo-mini details[open] summary::after { content: " –"; }
.seo-mini .seo-body { margin-top: var(--s-2); line-height: 1.65; }
.mas-mini { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); color: var(--c-muted); font-size: var(--fs-xs); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.mas-mini img { flex-shrink: 0; width: 104px; border-radius: var(--r-sm); }
.mas-mini h3 { margin-bottom: var(--s-1); color: var(--c-ink); font-size: var(--fs-sm); }
.sec.compact { padding-block: var(--s-6); }

/* ---------- 17. Patička -------------------------------------------------- */
.site-foot { color: #b9c8d8; font-size: var(--fs-sm); background: var(--c-navy); }
.site-foot .foot-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: var(--s-6); padding: var(--s-8) 0 var(--s-7); }
.site-foot h4 { margin-bottom: var(--s-3); color: #fff; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: var(--s-2); }
.site-foot a { color: #b9c8d8; } .site-foot a:hover { color: #fff; }
.site-foot .foot-brand img { height: 52px; width: auto; margin-bottom: var(--s-3); padding: 6px 10px; background: #fff; border-radius: var(--r-sm); }
.site-foot .foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding: var(--s-4) 0; border-top: 1px solid rgba(255, 255, 255, .1); color: #8296ab; font-size: var(--fs-xs); }
.social-row { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social-row a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255, 255, 255, .09); border-radius: 50%; transition: background .15s; }
.social-row a:hover { background: var(--c-primary); }
.social-row svg { width: 16px; height: 16px; fill: #fff; }
.foot-strong { color: #fff; }

/* ---------- 18. Cookie lišta --------------------------------------------- */
.consent {
  position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 1500;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); max-width: 820px; margin-inline: auto;
  padding: var(--s-4) var(--s-5); background: var(--c-navy); color: #dbe7f3; font-size: var(--fs-xs);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
}
.consent p { flex: 1 1 320px; } .consent a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; gap: var(--s-2); }
.consent .btn.line { color: #fff !important; }

/* ---------- 19. Speciální stránky --------------------------------------- */
.page-404 { padding-block: var(--s-9); text-align: center; }
.page-404 h1 { color: var(--c-primary); font-size: 4rem; }
.page-404 h2 { margin: var(--s-2) 0 var(--s-4); }
.narrow { max-width: 860px; margin-inline: auto; }
.wide { max-width: 1000px; }
.h-plain { border: 0 !important; padding: 0 !important; margin: 0 0 var(--s-4) !important; }
.btn.navy { background: var(--c-navy); border-color: var(--c-navy); }
.btn.navy:hover { background: #1a3352; border-color: #1a3352; }

/* ---------- 20. Responsivita --------------------------------------------- */
@media (min-width: 1100px) {
  .cards-5 { grid-template-columns: repeat(5, 1fr); }
  .cards-5 .card .card-body { padding: var(--s-4); }
  .cards-5 .card h3 { font-size: var(--fs-md); }
  .cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (min-width: 1081px) and (max-width: 1310px) {   /* menu mezi hamburgerem a plnou šířkou */
  .site-head .wrap { gap: var(--s-3); }
  .brand img { height: 42px; }
  .nav > ul { gap: 0; }
  .nav a.nav-link { padding: 9px 8px; font-size: 13px; }
  .nav .btn.small { padding: 0 var(--s-3); font-size: 12px; margin-left: var(--s-1); }
}
@media (max-width: 1080px) {
  /* Mobilní menu: panel pod hlavičkou, bez posuvné animace (ta na pomalejších telefonech vypadá
     jako "uříznuté" menu) – jen rychlé prolnutí. Zavřený panel nemá v dokumentu žádný rozměr. */
  .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }   /* Safari ořezává fixní menu pod rozmazanou hlavičkou */
  .nav { position: fixed; top: var(--head-h, 112px); left: 0; right: 0; bottom: 0; z-index: 950; width: 100%; margin: 0;
         padding: var(--s-3) var(--s-4) calc(var(--s-7) + env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: hidden; background: var(--c-white);
         border-top: 1px solid var(--c-line); opacity: 0; visibility: hidden; transform: none;
         transition: opacity .18s ease, visibility 0s linear .18s; }
  body.nav-open .nav { opacity: 1; visibility: visible; transition: opacity .18s ease, visibility 0s; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-head { box-shadow: var(--shadow-md); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li + li { border-top: 1px solid var(--c-line); }
  .nav > ul > li.has-dd { display: grid; grid-template-columns: 1fr 52px; align-items: center; }
  .nav > ul > li.has-dd > .dropdown { grid-column: 1 / -1; }
  .nav a.nav-link { padding: 14px 8px; font-size: var(--fs-lg); }
  .nav li.has-dd > a.nav-link::after { display: none; }
  .dd-toggle { display: block; width: 52px; height: 52px; border: 0; border-radius: var(--r-sm); background: var(--c-soft); cursor: pointer; position: relative; }
  .dd-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -8px 0 0 -5px; border: solid var(--c-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
  .nav li.open > .dd-toggle::after { transform: rotate(225deg); margin-top: -3px; }
  .nav li.open > .dd-toggle { background: var(--c-primary-soft); }
  .dropdown { position: static; display: none; margin: 0 0 var(--s-2); padding: 0 0 0 var(--s-4); border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav li.open > .dropdown { display: block; }
  .dropdown a { padding: 10px 8px; font-size: var(--fs-md); }
  .nav .btn { margin: var(--s-4) 0 0; }
  .nav-toggle { display: block; position: relative; z-index: 1000; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .two-col, .promo { grid-template-columns: 1fr; }
  .promo .g-item { max-width: 320px; margin-inline: auto; }
  .site-foot .foot-main { grid-template-columns: 1fr 1fr; }
  .cols:has(> .colbox:nth-child(2):last-child > .gallery) { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .hero { aspect-ratio: auto; min-height: 300px; max-height: none; }   /* bez poměru stran: jinak si vynutí min-width 800px */
  .hero .wrap { padding-block: var(--s-7); }
  .hero .hero-actions .btn { flex: 1 1 auto; }
  .page-body h2 { font-size: var(--fs-xl); }
  .cta-band .cta-actions { margin-left: 0; width: 100%; }
  .cta-band .phone { width: 100%; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: var(--s-4); }
  .topbar .tb-links { display: none; }
  .topbar .wrap { justify-content: center; }
  .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats .wrap { gap: var(--s-4); }
  .site-foot .foot-main { grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-7); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .cat-grid, .cols.cat-grid { grid-template-columns: repeat(2, 1fr); }
  .car-slide { flex-basis: 90%; }
  .step-row { gap: var(--s-4); }
  .mas-mini { flex-direction: column; align-items: flex-start; }
  .consent { left: var(--s-2); right: var(--s-2); bottom: var(--s-2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
