/* Autoškola Nákladní C — stylesheet. Self-hosted Archivo, no external CDN. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f3f2f2;
  --ink: #201e1d;
  --red: #ec3013;
  --red-dark: #c92a10;
  --red-deep: #b8240d;
  --muted: #5a5654;
  --body-c: #3b3836;
  --line: #201e1d;
  --white: #fff;
  --soft: #e2e0df;
  --soft2: #ebe9e8;
  --dark-muted: #a8a4a1;
  --dark-muted2: #d8d5d3;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: #fbd3cb; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.border-b { border-bottom: 2px solid var(--line); }
.bg-white { background: var(--white); }

/* ===== Top bar ===== */
.topbar { background: var(--ink); color: var(--bg); font-size: 13px; }
.topbar .wrap { padding: 8px 32px; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.topbar a { color: var(--bg); text-decoration: none; }
.topbar a.phone { font-weight: 700; }

/* ===== Header ===== */
.site-header { background: var(--bg); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 12px 0; }
.logo-mark { width: 44px; height: 44px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 26px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.logo-text span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 15px; white-space: nowrap; }
.cart-btn { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0; padding: 0 18px; font-weight: 700; font-size: 15px; cursor: pointer; min-height: 48px; text-decoration: none; }
.cart-btn:hover { background: var(--red); }
.cart-count { background: var(--red); color: #fff; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0 6px; }

.nav-strip { border-top: 2px solid var(--line); }
.nav { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; background: none; border: 0; border-bottom: 4px solid transparent; padding: 12px 10px 10px; font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--red); }
.nav a.is-active { border-bottom-color: var(--red); color: var(--red); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 22px; font-weight: 700; font-size: 17px; cursor: pointer; border: 2px solid transparent; text-decoration: none; }
.btn-sm { padding: 12px 16px; font-size: 15px; gap: 16px; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--red); border-color: var(--red); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-link { background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 4px 0; font-weight: 700; font-size: 16px; cursor: pointer; color: var(--ink); text-decoration: none; display: inline-block; }
.btn-link:hover { color: var(--red); border-color: var(--red); }
.btn-full { width: 100%; justify-content: center; gap: 12px; }

/* ===== Eyebrow / headings ===== */
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red-deep); }
.h1 { margin: 8px 0 16px; font-size: clamp(44px, 6vw, 84px); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; }
.h2 { margin: 8px 0 0; font-size: clamp(32px, 4vw, 52px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.lead { margin: 0; max-width: 720px; font-size: 19px; color: var(--body-c); }

/* ===== Page hero (inner pages) ===== */
.page-hero .wrap { padding: 64px 32px 48px; }

/* ===== Home hero ===== */
.home-hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); padding: 0 32px; }
.home-hero-text { padding: 72px 40px 72px 0; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.home-hero-text h1 { margin: 0; font-size: clamp(44px, 6.4vw, 92px); font-weight: 900; line-height: 0.92; letter-spacing: -0.03em; }
.home-hero-media { border-left: 2px solid var(--line); min-height: 460px; display: flex; flex-direction: column; }
.photo { flex: 1; background-size: cover; background-position: center; min-height: 280px; }
.home-hero-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line); }
.stat-box { padding: 20px 24px; border-right: 2px solid var(--line); }
.stat-box.red { background: var(--red); color: #fff; border-right: 0; }
.stat-num { font-size: 40px; font-weight: 900; line-height: 1; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-box.red .stat-label { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { min-width: 240px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted); }

/* ===== Section headers ===== */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }

/* ===== Course cards grid (home) ===== */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.course-card { padding: 28px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.course-card.dark { background: var(--ink); color: #fff; }
.course-card.dark p { color: var(--dark-muted2); }
.course-letter { font-size: 64px; font-weight: 900; line-height: 0.9; color: var(--red); }
.course-name { font-weight: 800; font-size: 20px; }
.course-card p { color: var(--body-c); font-size: 15px; }
.course-price { margin-top: auto; font-weight: 800; font-size: 22px; }

/* ===== Why us grid ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 2px solid var(--line); }
.why-item { padding: 28px 28px 28px 0; border-bottom: 2px solid var(--line); }
.why-item:nth-child(even) { border-left: 2px solid var(--line); padding-left: 28px; }
.why-num { font-weight: 900; font-size: 15px; color: var(--red-deep); }
.why-title { font-weight: 800; font-size: 20px; margin: 8px 0; }
.why-item p { color: var(--body-c); }

/* ===== Terms table ===== */
.terms-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; padding: 12px 0; border-bottom: 2px solid var(--line); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.terms-list { border-top: 2px solid var(--line); }
.term-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; align-items: center; padding: 20px 0; border-bottom: 2px solid var(--line); }
.term-date { font-weight: 900; font-size: 22px; }
.term-course { font-weight: 700; }
.term-spots { font-weight: 700; }
.term-spots.low { color: var(--red-deep); }

.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 24px; border: 2px solid var(--line); width: fit-content; max-width: 100%; }
.filters a, .filters button { padding: 12px 20px; border: 0; border-right: 2px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
.filters a:last-child, .filters button:last-child { border-right: 0; }
.filters a.is-active, .filters button.is-active { background: var(--ink); color: #fff; }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.testi { margin: 0; padding: 28px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: #fff; }
.testi blockquote { font-size: 19px; font-weight: 500; }
.testi figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.testi figcaption strong { color: var(--ink); }

/* ===== Final CTA band ===== */
.cta-band { background: var(--red); color: #fff; border-bottom: 2px solid var(--line); }
.cta-band .wrap { padding: 80px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.cta-band h2 { margin: 0; font-size: clamp(40px, 6vw, 88px); font-weight: 900; letter-spacing: -0.03em; line-height: 0.92; max-width: 900px; }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.cta-band-actions .btn { justify-content: space-between; }
.cta-band-actions a.phone-outline { display: flex; justify-content: space-between; padding: 16px 22px; border: 2px solid #fff; color: #fff; text-decoration: none; font-weight: 700; }

/* ===== Course detail articles (kurzy.html) ===== */
.course-article { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; padding: 56px 0; border-bottom: 2px solid var(--line); }
.course-big-letter { font-size: 120px; font-weight: 900; line-height: 0.85; color: var(--red); }
.course-article h2 { margin: 16px 0 12px; font-size: 36px; font-weight: 900; letter-spacing: -0.02em; }
.course-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line); margin-top: 24px; }
.course-stat { padding: 14px 0; border-bottom: 2px solid var(--line); }
.course-stat:nth-child(even) { padding-left: 16px; border-left: 2px solid var(--line); }
.course-stat .label { font-size: 13px; color: var(--muted); }
.course-stat .value { font-weight: 800; font-size: 22px; }
.ratio-16-9 { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.ratio-4-3 { aspect-ratio: 4/3; background-size: cover; background-position: center; }
.ratio-1-1 { aspect-ratio: 1; background-size: cover; background-position: center; }
.course-article ul { padding-left: 20px; color: var(--body-c); display: flex; flex-direction: column; gap: 4px; }
.course-article .block-title { font-weight: 800; margin-bottom: 8px; }

.pp-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.pp-rows { border-top: 2px solid var(--line); }
.pp-rows .t { font-weight: 800; }
.pp-rows .s { color: var(--muted); font-size: 14px; }
.pp-rows .price { font-weight: 800; white-space: nowrap; }

.info-cards { padding: 48px 0 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.info-card { background: #fff; border: 2px solid var(--line); padding: 28px; }
.info-card .t { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.info-card p { color: var(--body-c); }

/* ===== Steps (prubeh) ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.step { padding: 36px 36px 36px 0; border-bottom: 2px solid var(--line); display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.step:nth-child(even) { padding-left: 36px; border-left: 2px solid var(--line); padding-right: 0; }
.step-num { font-size: 56px; font-weight: 900; line-height: 0.9; color: var(--red); }
.step .t { font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--body-c); }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.faq-list { border-top: 2px solid var(--line); grid-column: span 2; min-width: 0; }
.faq-item { border-bottom: 2px solid var(--line); }
.faq-item summary { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 800; font-size: 18px; cursor: pointer; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-item summary .sign { font-size: 24px; line-height: 1; color: var(--red); }
.faq-item summary .sign::before { content: '+'; }
.faq-item[open] summary .sign::before { content: '\2212'; }
.faq-item p.a { margin: 0 0 22px; color: var(--body-c); max-width: 760px; }

/* ===== Calculator (cenik) ===== */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; }
.calc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); margin-bottom: 28px; }
.calc-cats label { text-align: left; padding: 14px 16px; border: 0; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.calc-cats input { position: absolute; opacity: 0; pointer-events: none; }
.calc-cats label strong { font-weight: 800; }
.calc-cats label span.sub { font-size: 13px; opacity: 0.85; }
.calc-cats label:has(input:checked) { background: var(--red); color: #fff; }
.calc-addons { display: flex; flex-direction: column; border-top: 2px solid var(--line); margin-bottom: 28px; }
.calc-addons label { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 2px solid var(--line); cursor: pointer; }
.calc-addons input { width: 20px; height: 20px; accent-color: var(--red); }
.calc-addons span { flex: 1; }
.calc-result { background: var(--ink); color: #fff; padding: 36px; display: flex; flex-direction: column; gap: 18px; align-self: start; }
.calc-result .eyebrow { color: #ff8a73; }
.calc-total { font-size: clamp(48px, 6vw, 76px); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; }
.calc-monthly { font-size: 18px; }
.calc-note { border-top: 2px solid var(--muted); padding-top: 16px; font-size: 14px; color: var(--dark-muted2); }
input[type=range] { width: 100%; accent-color: var(--red); }

.price-table th { padding: 12px 12px 12px 0; }
.price-table thead tr { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.price-table td { padding: 16px 12px 16px 0; }
.price-table tbody tr { border-bottom: 2px solid var(--line); }
.price-table td.num { text-align: right; font-weight: 800; }
.price-table td.item { font-weight: 700; }
.price-table td.range { color: var(--body-c); }
.table-scroll { overflow-x: auto; }

/* ===== Shop ===== */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.product { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.product-img { aspect-ratio: 4/3; background-size: cover; background-position: center; border-bottom: 2px solid var(--line); position: relative; }
.product-tag { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 10px; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red-deep); }
.product-name { font-weight: 800; font-size: 18px; line-height: 1.25; }
.product-body p { color: var(--body-c); font-size: 14px; }
.product-stock { font-size: 13px; color: var(--muted); }
.product-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-price { font-weight: 900; font-size: 22px; }
.add-btn { display: inline-flex; gap: 10px; align-items:center; justify-content: space-between; background: var(--red); color: #fff; border: 0; padding: 12px 16px; font-weight: 700; cursor: pointer; }
.add-btn:hover { background: var(--red-dark); }

.info-strip { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 2px solid var(--line); }
.info-strip > div { padding: 18px; border-bottom: 2px solid var(--line); }
.info-strip > div:first-child { padding-left: 0; }
.info-strip .d { color: var(--muted); font-size: 14px; }

/* ===== Cart / checkout ===== */
.cart-page-list { border-top: 2px solid var(--line); margin-bottom: 32px; }
.cart-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--line); }
.cart-row .name { font-weight: 700; }
.qty-box { display: flex; border: 2px solid var(--line); }
.qty-box button { width: 40px; height: 40px; border: 0; background: #fff; cursor: pointer; font-size: 18px; }
.qty-box button:hover { background: var(--soft); }
.qty-box span { width: 44px; display: flex; align-items: center; justify-content: center; font-weight: 800; border-left: 2px solid var(--line); border-right: 2px solid var(--line); }
.cart-row .remove { background: none; border: 0; color: var(--red-deep); cursor: pointer; font-weight: 700; font-size: 13px; }
.cart-empty { padding: 56px 0; text-align: center; color: var(--muted); }

.checkout-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; }
.checkout-block { display: flex; flex-direction: column; gap: 32px; }
.checkout-block .title { font-weight: 900; font-size: 22px; margin-bottom: 12px; }
.radio-list { border-top: 2px solid var(--line); }
.radio-opt { width: 100%; display: flex; gap: 14px; align-items: center; padding: 14px 12px; border: 0; border-bottom: 2px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); font-size: 16px; }
.radio-opt input { width: 18px; height: 18px; accent-color: var(--red); }
.radio-opt .lbl { flex: 1; }
.radio-opt strong { white-space: nowrap; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea { padding: 14px; border: 2px solid var(--line); background: #fff; font-size: 16px; border-radius: 0; width: 100%; font-family: inherit; }
.field textarea { resize: vertical; }
.summary-box { align-self: start; border: 2px solid var(--line); background: #fff; }
.summary-head { padding: 20px 24px; border-bottom: 2px solid var(--line); font-weight: 900; font-size: 22px; }
.summary-item { padding: 14px 24px; border-bottom: 2px solid var(--soft); display: flex; justify-content: space-between; gap: 16px; }
.summary-rows { padding: 16px 24px; display: flex; flex-direction: column; gap: 6px; border-bottom: 2px solid var(--line); color: var(--body-c); }
.summary-rows > div { display: flex; justify-content: space-between; }
.summary-total { padding: 20px 24px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--line); }
.summary-total span:last-child { font-weight: 900; font-size: 30px; }
.summary-foot { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.agree-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.agree-row input { width: 20px; height: 20px; accent-color: var(--red); flex: none; margin-top: 1px; }
.form-error { color: var(--red-deep); font-weight: 700; font-size: 14px; }
.fine-print { margin: 0; font-size: 12px; color: var(--muted); }

.success-box { background: var(--ink); color: #fff; padding: 40px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.success-box .eyebrow { color: #ff8a73; }
.success-box .big { font-size: 40px; font-weight: 900; line-height: 1; }
.success-box p { color: var(--dark-muted2); }

/* ===== Quiz (test.html) ===== */
.quiz-top { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.quiz-bar { height: 8px; background: var(--soft); margin-bottom: 32px; }
.quiz-bar-fill { height: 8px; background: var(--red); width: 0%; }
.quiz-q { margin: 0 0 24px; font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.15; }
.quiz-opts { border-top: 2px solid var(--line); }
.quiz-opt { width: 100%; display: flex; gap: 16px; align-items: center; text-align: left; padding: 18px 16px; border: 0; border-bottom: 2px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; font-weight: 600; cursor: pointer; }
.quiz-opt .letter { font-weight: 900; width: 24px; display: inline-block; }
.quiz-opt.correct { background: var(--ink); color: #fff; }
.quiz-opt.wrong { background: var(--red); color: #fff; }
.quiz-footer { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.quiz-note { margin: 0; color: var(--body-c); max-width: 560px; }
.quiz-result { border: 2px solid var(--line); background: #fff; padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.quiz-score { font-size: 96px; font-weight: 900; line-height: 0.9; color: var(--red); }
.quiz-verdict { font-size: 28px; font-weight: 900; }

/* ===== Articles ===== */
.article { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; padding: 40px 0; border-bottom: 2px solid var(--line); }
.article-img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.article-body { display: flex; flex-direction: column; gap: 12px; grid-column: span 2; min-width: 0; }
.article-meta { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red-deep); }
.article-body h2 { font-size: 30px; font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; }
.article-body p.lead-p { color: var(--body-c); font-size: 17px; }
.article-full { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.article-full p { margin: 0; }
.article details summary { list-style: none; cursor: pointer; }
.article details summary::-webkit-details-marker { display: none; }
.article .toggle-label { align-self: flex-start; background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 4px 0; font-weight: 700; font-size: 16px; color: var(--ink); display: inline-block; }
.article details summary:hover .toggle-label { color: var(--red); border-color: var(--red); }

/* ===== About ===== */
.about-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.about-hero-text { display: flex; flex-direction: column; gap: 14px; font-size: 18px; color: var(--body-c); align-self: end; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.team-card { border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); background: #fff; }
.team-photo { aspect-ratio: 1; background-size: cover; background-position: center; border-bottom: 2px solid var(--line); }
.team-info { padding: 18px; }
.team-info .n { font-weight: 800; font-size: 19px; }
.team-info .r { color: var(--muted); font-size: 14px; }
.fleet-list { border-top: 2px solid var(--line); }
.fleet-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.fleet-row span { color: var(--body-c); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; }
.contact-list { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--line); }
.contact-list > div { padding: 18px 0; border-bottom: 2px solid var(--line); }
.contact-list .k { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-list .v { font-weight: 800; font-size: 20px; }
.contact-list a.v { color: var(--ink); text-decoration: none; }
.hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin-top: 4px; }
.map-embed { margin-top: 24px; border: 2px solid var(--line); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }
.contact-form-card { background: #fff; border: 2px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-form-card .title { font-size: 28px; font-weight: 900; }

/* ===== Legal pages ===== */
.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; }
.legal-nav { align-self: start; border-top: 2px solid var(--line); display: flex; flex-direction: column; }
.legal-nav a { text-align: left; padding: 14px 0; border: 0; border-bottom: 2px solid var(--line); background: none; font-weight: 700; color: var(--ink); text-decoration: none; }
.legal-nav a:hover { color: var(--red); }
.legal-nav a.is-active { color: var(--red); }
.legal-content { grid-column: span 2; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: #2d2a28; }
.legal-content h2 { margin: 20px 0 0; font-size: 22px; font-weight: 900; }
.legal-content ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-table th, .legal-table td { padding: 10px; text-align: left; }
.legal-table th:first-child, .legal-table td:first-child { padding-left: 0; }
.legal-table th:last-child, .legal-table td:last-child { padding-right: 0; }
.legal-table thead tr { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.legal-table tbody tr { border-bottom: 2px solid var(--line); }
.odst-form { border: 2px solid var(--line); background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--dark-muted2); border-top: 2px solid var(--line); }
.footer-grid { max-width: 1280px; margin: 0 auto; padding: 56px 32px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand-row strong { font-weight: 900; font-size: 18px; color: #fff; }
.footer-mark { width: 36px; height: 36px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 22px; }
.footer-note { color: var(--dark-muted); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 4px; }
.footer-col a, .footer-col button { text-align: left; background: none; border: 0; padding: 0; color: var(--dark-muted2); cursor: pointer; font-size: 15px; text-decoration: none; }
.footer-col a:hover, .footer-col button:hover { color: #ff8a73; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-contact a.phone { color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; }
.footer-contact a.mail { color: var(--dark-muted2); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding: 20px 32px 32px; border-top: 2px solid #3b3836; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dark-muted); }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 70; background: var(--ink); color: #fff; padding: 14px 20px; font-weight: 700; border-left: 6px solid var(--red); max-width: calc(100% - 32px); display: none; }
.toast.show { display: block; }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 720px; background: #fff; border: 2px solid var(--line); box-shadow: 0 12px 32px rgba(32,30,29,0.18); padding: 24px; display: none; flex-direction: column; gap: 14px; }
.cookie-banner.show { display: flex; }
.cookie-banner .title { font-weight: 900; font-size: 20px; }
.cookie-banner p { font-size: 14px; color: var(--body-c); }
.cookie-prefs { border-top: 2px solid var(--line); display: none; }
.cookie-prefs.show { display: block; }
.cookie-prefs label { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 2px solid var(--soft); font-size: 14px; }
.cookie-prefs label:last-child { border-bottom: 0; }
.cookie-prefs input { width: 18px; height: 18px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button { padding: 12px 18px; font-weight: 700; cursor: pointer; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.cookie-actions button.accept { background: var(--red); color: #fff; border-color: var(--red); }
.cookie-actions button.accept:hover { background: var(--red-dark); border-color: var(--red-dark); }
.cookie-actions button.reject:hover { background: var(--ink); color: #fff; }
.cookie-actions button.link { border-color: transparent; background: none; text-decoration: underline; }
.cookie-actions button.link:hover { color: var(--red); }

/* ===== Mobile nav toggle (small screens keep nav scrollable, no JS needed) ===== */
@media (max-width: 640px) {
  .header-row { padding: 0 16px; }
  .wrap, .nav, .topbar .wrap { padding-left: 16px; padding-right: 16px; }
  .page-hero .wrap { padding: 40px 16px 32px; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.photo img, .ratio-16-9 img, .ratio-4-3 img, .ratio-1-1 img, .article-img img, .product-img img, .team-photo img, .map-embed img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
