/* TATRA web STABO – návrh podľa Manuálu jednotného vizuálního stylu TATRA TRUCKS 2026
   Farby: str. 16, písmo: str. 19 (Arial na webe), vlaječka: str. 10 a 17. */

:root {
  --red: #9B2332;        /* firemná červená, sRGB 155/35/50, Pantone 1807 C */
  --red-dark: #7d1c28;   /* hover tlačidiel (tmavší odtieň tej istej červenej) */
  --black: #000;         /* firemná čierna */
  --grey: #A0A5AA;       /* firemná sivá – len dekoratívne a na čiernom pozadí */
  --light: #F2F3F4;      /* pokojná svetlosivá plocha */
  --text: #111;
  --muted: #555;
  --white: #fff;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --flag: clamp(72px, 8vw, 112px);  /* veľkosť vlaječky */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* Nadpisy: verzálky, tučné (manuál: Interstate Bold verzálky; na webe Arial Bold) */
h1, h2, h3, .eyebrow, .btn, .nav a, .caps { text-transform: uppercase; font-weight: 700; letter-spacing: .02em; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46em; }
.eyebrow { display: block; font-size: 14px; letter-spacing: .12em; color: var(--red); margin-bottom: 12px; }

/* ---------- Tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font-size: 15px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--outline { border-color: currentColor; color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--black); }
.btn--outline-dark { border-color: var(--black); color: var(--black); }
.btn--outline-dark:hover { background: var(--black); color: var(--white); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Horný pás: Ostatné značky STABO ---------- */
.brands-bar { background: var(--black); color: var(--grey); font-size: 13px; }
.brands-bar .container { padding-right: calc(var(--gutter) + var(--flag) + 24px); display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.brands-bar a { color: var(--white); text-decoration: none; font-weight: 700; }
.brands-bar a:hover { color: var(--white); text-decoration: underline; }
.brands-bar__right { display: flex; gap: 22px; }
.brands-bar__right a { font-weight: 400; color: var(--grey); }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid #e3e5e7; }
.site-header .container { display: flex; align-items: center; gap: 32px; height: 84px; }
.site-header__stabo img { height: 34px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 30px; }
.nav a { color: var(--black); text-decoration: none; font-size: 15px; padding: 30px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

/* Vlaječka: červený štvorec s bielym logom, priložený k hornému okraju (manuál str. 10, varianta A) */
.flag { display: flex; align-items: center; justify-content: center; width: var(--flag); height: var(--flag); background: var(--red); flex: none; }
.flag img { width: 64%; height: auto; }
.site-header .container { position: relative; }
/* vlaječka priložená k hornému okraju stránky (na spad) – prekrýva čierny pás značiek */
.site-header .flag { align-self: flex-start; margin-top: -36px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--black); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); color: var(--white); }
/* Všetky úvodné fotky majú rovnaký rámik: pomer 2,1 : 1 (pri ňom sú celé autá na všetkých fotkách),
   široký ako obsah stránky (.container). --pos = object-position, nastavené pri každej fotke. */
.hero__photo { position: relative; aspect-ratio: 2.1; width: min(100% - 2 * var(--gutter), var(--container) - 2 * var(--gutter)); margin-inline: auto; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%); }
.hero__claim { position: absolute; z-index: 1; top: clamp(28px, 6vh, 64px); left: 0; right: 0; }
.hero__claim p { font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 0; max-width: 11em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
/* čierny textový panel v spodnej časti (verzia 2026) */
.hero__panel { background: var(--black); padding: 34px 0 40px; }
.hero__panel .container { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero__panel h1 { margin-bottom: 10px; }
.hero__panel p { color: #d6d8da; max-width: 40em; margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sekcie ---------- */
.section, .hero { scroll-margin-top: 84px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--light { background: var(--light); }
.section--black { background: var(--black); color: var(--white); }
.section--black .lead { color: #c9ccd0; }
.section--black .eyebrow, .hero .eyebrow { color: var(--grey); }  /* červená na čiernej má nízky kontrast */
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section__head > div { max-width: 46em; }

/* Karty konfigurácií – fotka + čierny pruh s názvom */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--black); color: var(--white); text-decoration: none; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.04); }
/* Fotka na výšku (žeriav, ruka): celá, po stranách rozmazaná tá istá fotka */
.card__img--fit { position: relative; background-size: cover; background-position: center; }
.card__img--fit::before { content: ""; position: absolute; inset: -20px; background: inherit; filter: blur(14px) brightness(.75); }
.card__img--fit img { position: relative; object-fit: contain; }
.card:hover .card__img--fit img { transform: none; }
.card__body { padding: 20px 22px 22px; }
.card__body h3 { margin: 0 0 4px; }
.card__body p { margin: 0; color: #bfc3c7; font-size: 15px; }
.card:hover { color: var(--white); }
.card:hover h3 { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Konfigurácie podvozku */
.configs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 4px solid var(--red); margin-top: 48px; }
.configs div { padding: 26px 24px; border-right: 1px solid #d9dcdf; }
.configs div:last-child { border-right: 0; }
.configs strong { display: block; font-size: clamp(36px, 4vw, 52px); line-height: 1; color: var(--red); }
.configs span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Prečo TATRA */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { background: var(--white); }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid #e3e5e7; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 10px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #2a2a2a; margin-top: 56px; }
.facts div { background: var(--black); padding: 28px 24px; }
.facts strong { display: block; font-size: 30px; line-height: 1.1; }  /* bez verzálok kvôli jednotkám (kW) */
.facts span { color: var(--grey); font-size: 15px; }

/* Služby */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service { background: var(--white); display: grid; grid-template-rows: auto 1fr; }
.service__img { aspect-ratio: 16 / 9; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: 28px 30px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.service__body p { color: var(--muted); }
.service__body .btn { margin-top: auto; }
.phone-big { font-size: 24px; font-weight: 700; color: var(--black); text-decoration: none; margin: 4px 0 20px; }
.phone-big:hover { color: var(--red); }

/* O nás */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about__stats div { border-top: 4px solid var(--red); padding-top: 14px; }
.about__stats strong { display: block; font-size: 22px; text-transform: uppercase; }
.about__stats span { color: var(--muted); font-size: 15px; }

/* Kontakty */
.locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.location { background: var(--white); border-top: 4px solid var(--red); display: flex; flex-direction: column; }
.location__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--light); }
.location__img img { width: 100%; height: 100%; object-fit: cover; }
.location__img--empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.location__body { padding: 26px 28px 30px; }
.location dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 16px 0 22px; }
.location dt { color: var(--muted); }
.location dd { margin: 0; font-weight: 700; }
.location dd a { color: var(--black); text-decoration: none; }
.location dd a:hover { color: var(--red); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 22px; }
.hours td { padding: 7px 0; border-bottom: 1px solid #e3e5e7; }
.hours td:last-child { text-align: right; font-weight: 700; }

/* ---------- Pätička ---------- */
.site-footer { background: var(--black); color: #c9ccd0; font-size: 15px; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.site-footer h4 { color: var(--white); text-transform: uppercase; font-size: 14px; letter-spacing: .08em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #c9ccd0; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__brand img.tatra { width: 76px; height: auto; margin-bottom: 18px; }
.site-footer__claim { color: var(--grey); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 18px; margin-top: 18px; }
.site-footer__bottom { border-top: 1px solid #2a2a2a; padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: #8b9095; }
.site-footer .credit { margin: 0; }
.site-footer .credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .credit a:hover { color: #fff; }

/* Pracovná značka návrhu */
.draft-badge { position: fixed; z-index: 100; left: 12px; bottom: 12px; background: #ffd400; color: #000; font: 700 12px/1 var(--font); padding: 8px 10px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Responzívne ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 960px) {
  .site-header .container { height: 72px; gap: 16px; }
  .site-header .flag { --flag: 72px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid #e3e5e7; padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #eee; }
  .hero__panel .container, .split, .about { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brands-bar__right { display: none; }
  .cards, .services, .locations, .facts, .configs { grid-template-columns: 1fr; }
  .configs div { border-right: 0; border-bottom: 1px solid #d9dcdf; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; }
  .hero__photo { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Podstránky
   ========================================================= */

/* Úvod podstránky: nižšia fotka + čierny panel (ten istý princíp ako hero) */
.hero--page .hero__panel { padding: 28px 0 34px; }
.hero--page .hero__panel .container { grid-template-columns: 1fr; }
.breadcrumb { font-size: 13px; color: var(--grey); margin-bottom: 10px; }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* Podnadpis sekcie */
.section h2 + .lead { margin-top: -4px; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

/* Mriežka vlastností – červená linka hore (ako .configs) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.features--2 { grid-template-columns: repeat(2, 1fr); }
.feature { border-top: 4px solid var(--red); padding-top: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }
.section--black .feature p { color: #bfc3c7; }

/* Tabuľka parametrov */
.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th, .spec td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid #d9dcdf; vertical-align: top; }
.spec th { width: 34%; color: var(--muted); font-weight: 400; }
.spec td { font-weight: 700; }
.spec thead th { color: var(--black); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .06em; border-bottom: 3px solid var(--red); }

/* Galéria */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery img:first-child { grid-row: span 2; aspect-ratio: auto; }

/* Obrázok s popisom */
.figure { margin: 0; }
.figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Výzva na kontakt – červená plocha s bielym textom */
.cta-band { background: var(--red); color: var(--white); padding: clamp(40px, 6vw, 64px) 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #f1d9dc; }
.cta-band .btn--outline:hover { color: var(--red); }

/* Zoznam dokumentov */
.docs { list-style: none; padding: 0; margin: 0; border-top: 1px solid #d9dcdf; }
.docs li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #d9dcdf; }
.docs strong { display: block; }
.docs span { color: var(--muted); font-size: 15px; }
.docs a.btn { padding: 10px 16px; font-size: 13px; white-space: nowrap; }

/* Mapa */
.map { display: block; width: 100%; height: 360px; border: 0; background: var(--light); }

/* Kontaktná osoba */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: var(--white); padding: 22px 24px; border-left: 4px solid var(--red); }
.person strong { display: block; font-size: 17px; }
.person span { display: block; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.person a { display: block; color: var(--black); text-decoration: none; font-weight: 700; }
.person a:hover { color: var(--red); }

/* Pracovná poznámka v návrhu (čo doplniť) */
.todo { background: #fff8cc; border-left: 4px solid #ffd400; padding: 12px 16px; font-size: 15px; color: #3d3500; margin: 0 0 24px; }

@media (max-width: 960px) {
  .features, .people { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .features, .features--2, .people { grid-template-columns: 1fr; }
  .spec th { width: 45%; }
  .docs li { flex-direction: column; align-items: flex-start; }
}
.nocaps { text-transform: none; }

/* História – O nás */
.timeline { list-style: none; padding: 0; margin: 24px 0; }
.timeline li { padding: 10px 0 10px 84px; position: relative; border-bottom: 1px solid #e3e5e7; }
.timeline strong { position: absolute; left: 0; top: 10px; color: var(--red); }
