/* =========================================================
   AMG Autoservis & Pneuservis — styles
   Ručne písaný CSS, rovnaké konvencie ako gryc.sk / pavoldzurak:
   :root dizajnové tokeny + BEM triedy, žiadny Tailwind.
   ========================================================= */
:root {
  /* ---- Farby (grafit + žltá, bez gradientov) ---- */
  --bg: #ffffff;
  --bg-soft: #f4f5f6;        /* svetlosivé pozadie sekcií */
  --surface: #ffffff;
  --graphite: #111111;
  --graphite-2: #16181c;
  --graphite-3: #1c1c1c;
  --text: #1c1c1c;
  --muted: #5b6069;
  --line: rgba(17, 17, 17, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #ffd400;         /* hlavná žltá */
  --accent-dark: #e6be00;    /* tmavšia žltá pre text na svetlom */
  --ink-on-accent: #111111;  /* text na žltej */

  --font-hero: "apotek-comp", system-ui, sans-serif;   /* stlačený, hrúbka 500 — hero nadpis */
  --font-display: "apotek", system-ui, sans-serif;     /* nadpisy (700) + menu/štítky (300) */
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 0px;             /* ostré rohy */
  --container: 1200px;
  --nav-h: 72px;             /* výška hlavičky (mobil) */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  :root { --nav-h: 140px; } /* dvojriadková hlavička na desktope */
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (nie hidden) zabráni horizontálnemu posunu bez toho, aby rozbil
     position: sticky na hlavičke */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* označenie textu kurzorom nažlto */
::selection { background: var(--accent); color: var(--ink-on-accent); }
::-moz-selection { background: var(--accent); color: var(--ink-on-accent); }

/* jednoduchý textový odkaz (nie žltý, nie tlačidlo) */
.link-plain { color: inherit; text-decoration: underline; text-underline-offset: 2px; transition: color 0.3s; }
.link-plain:hover { color: var(--graphite); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--dark { background: var(--graphite); color: #fff; }
.section--grey { background: var(--bg-soft); }
.section--accent { background: var(--accent); color: var(--ink-on-accent); }

/* ---------- Typografia ---------- */
.section__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section__label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.section__label--light { color: #fff; }
.section__label--ink { color: rgba(17, 17, 17, 0.7); }
.section__label--ink::before { background: var(--graphite); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.03;
  text-transform: uppercase;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 18px;
  max-width: 640px;
}
.section--dark .section__lead { color: rgba(255, 255, 255, 0.6); }

.section__head { max-width: 760px; margin-bottom: 56px; }
.accent { color: var(--accent-dark); }
.section--dark .accent { color: var(--accent); }
/* v nadpisoch sekcií: čierny text so žltým obdĺžnikovým zvýraznením za ním.
   Pozadie je gradient (čisto vizuálne) — nemení medzery medzi slovami ani zarovnanie. */
.section__title .accent {
  color: var(--ink-on-accent);
  /* padding rozšíri žltý box, záporný margin vráti layout -> text sa neposunie */
  padding: 0 0.14em;
  margin: 0 -0.14em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 0.92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s,
              border-color 0.3s, box-shadow 0.3s, filter 0.3s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary {
  background: var(--accent);
  color: var(--ink-on-accent);
}
.btn--primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px -10px rgba(255, 212, 0, 0.55);
}
.btn--dark {
  background: var(--graphite);
  color: #fff;
}
.btn--dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.4);
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn--ghost:hover {
  transform: translateY(-3px);
  background: #fff;
  color: var(--graphite);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.35);
}
.btn--full { width: 100%; }
.btn.reveal:hover { transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* =========================================================
   NAV (dvojriadková sticky hlavička)
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite);
}
.nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 32px; width: auto; }

.nav__info {
  display: none;
  align-items: center;
  gap: 48px;
}
.nav__info-item { display: flex; align-items: center; gap: 12px; }
.nav__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__info-icon svg { width: 19px; height: 19px; }
.nav__info-item:hover .nav__info-icon {
  background: var(--accent);
  color: var(--graphite);
  border-color: var(--accent);
}
.nav__info-text { display: flex; flex-direction: column; line-height: 1.25; }
.nav__info-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.nav__info-value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  color: #fff;
  transition: color 0.3s;
}
.nav__info-item:hover .nav__info-value { color: var(--accent); }
.nav__info-value--accent { color: var(--accent); }
.nav__divider { width: 1px; height: 34px; background: var(--line-dark); flex-shrink: 0; }
.nav__cta { margin-left: 0; height: 46px; padding: 0 26px; }

.nav__menu { display: none; border-top: 1px solid var(--line-dark); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 56px;
}
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--accent); }

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: #fff;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
}

@media (min-width: 1024px) {
  .nav__top { height: 88px; }
  .nav__logo img { height: 40px; }
  .nav__info { display: flex; }
  .nav__menu { display: block; }
  .nav__burger { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 17, 17, 0.98);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.mobile-menu.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.mobile-menu__title { font-family: var(--font-display); font-weight: 300; color: #fff; font-size: 1.1rem; }
.mobile-menu__close { color: #fff; padding: 8px; }
.mobile-menu__close svg { width: 28px; height: 28px; }
.mobile-menu__links { display: flex; flex-direction: column; margin-top: 24px; }
.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.9rem;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.3s;
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__cta { margin-top: 32px; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--graphite);
  min-height: calc(100svh - var(--nav-h));
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease-in-out, transform 7s ease-out;
  will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* mobil: text ide cez celú šírku -> rovnomernejšie tmavé pozadie */
  background: rgba(17, 17, 17, 0.66);
}
/* desktop: vľavo tmavé (kvôli čitateľnosti textu), vpravo fotky jasnejšie */
@media (min-width: 768px) {
  .hero__overlay {
    background: linear-gradient(
      to right,
      rgba(17, 17, 17, 1) 0%,
      rgba(17, 17, 17, 0.92) 30%,
      rgba(17, 17, 17, 0.5) 66%,
      rgba(17, 17, 17, 0.12) 100%
    );
  }
}
.hero__inner { position: relative; z-index: 2; padding: 64px 0; }
.hero__content { max-width: 760px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  margin-bottom: 24px;
}
.hero__badge svg { width: 16px; height: 16px; }

.hero__title {
  font-family: var(--font-hero);
  font-weight: 500;
  color: #fff;
  font-size: clamp(3.75rem, 9vw, 7.25rem);
  text-transform: uppercase;
  line-height: 0.92;
}
.hero__title span { color: var(--accent); }

.hero__sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  line-height: 1.65;
  margin-top: 22px;
  max-width: 580px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }


/* =========================================================
   CARDS (autoservis + pneuservis)
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 212, 0, 0.6);
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #f1f2f4;
  color: var(--graphite);
  margin-bottom: 20px;
  transition: background 0.35s, color 0.35s, transform 0.35s;
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--accent); color: var(--graphite); transform: rotate(-6deg); }
.card__title { font-size: 1.45rem; text-transform: uppercase; }
.card__text { color: var(--muted); font-size: 1rem; margin-top: 8px; }

/* zvýraznená (žltá) karta — dôležitá služba */
.card--accent { background: var(--accent); border-color: var(--accent); }
.card--accent::before { background: var(--graphite); }
.card--accent .card__icon { background: rgba(17, 17, 17, 0.14); color: var(--graphite); }
.card--accent:hover .card__icon { background: var(--graphite); color: var(--accent); }
.card--accent .card__title { color: var(--graphite); }
.card--accent .card__text { color: rgba(17, 17, 17, 0.78); }
.card--accent:hover { border-color: var(--graphite); }

/* skryté karty + tlačidlo „zobraziť viac" */
.card--collapsed { display: none; }
.cards.is-expanded .card--collapsed { display: block; }
.cards__more { display: flex; justify-content: center; margin-top: 44px; }
.cards__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 15px 32px;
  border: 1px solid var(--graphite);
  color: var(--graphite);
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.section--grey .cards__more-btn { border-color: var(--graphite); }
.cards__more-btn:hover { background: var(--graphite); color: #fff; transform: translateY(-3px); }
.cards__more-icon { width: 20px; height: 20px; transition: transform 0.35s var(--ease); }
.cards__more-btn[aria-expanded="true"] .cards__more-icon { transform: rotate(180deg); }

/* =========================================================
   PREČO AMG (features)
   ========================================================= */
/* dvojstĺpcový layout: vľavo výhody, vpravo nadpis (zrkadlovo k FAQ) */
.why__grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
/* grid položky musia mať min-width:0, inak široký pás log roztiahne stĺpec a rozbije layout */
.why__intro, .why__list { min-width: 0; }
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
  .why__list { order: 1; }
  .why__intro { order: 2; }
}
.why__list { display: flex; flex-direction: column; }
.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
}
.feature:first-child { padding-top: 0; }
.feature:last-child { border-bottom: none; padding-bottom: 0; }
.feature__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--graphite);
  transition: transform 0.35s var(--ease);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature:hover .feature__icon { transform: translateY(-4px) scale(1.05); }
.feature__title { color: #fff; font-size: 1.4rem; text-transform: uppercase; }
.feature__text { color: rgba(255, 255, 255, 0.55); font-size: 0.98rem; margin-top: 8px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: 5fr 7fr; gap: 56px; } }

.faq__cta { margin-top: 32px; }

.faq__list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: none; }
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
}
.faq__icon { width: 24px; height: 24px; color: var(--accent-dark); flex-shrink: 0; transition: transform 0.35s var(--ease); }
/* plynulé rozbalenie cez grid-template-rows (bez clipovania a bez skoku) */
.faq__answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.faq__answer > p { min-height: 0; overflow: hidden; color: var(--muted); opacity: 0; transition: opacity 0.35s ease; }
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }
.faq__item.is-open .faq__answer > p { opacity: 1; padding-bottom: 24px; }
/* otvorená otázka: čierny text so žltým obdĺžnikom (ako nadpisy sekcií) */
.faq__item.is-open .faq__q {
  color: var(--ink-on-accent);
  padding: 0 0.14em;
  margin: 0 -0.14em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 0.92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }

/* =========================================================
   KONTAKT (žltá sekcia)
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: stretch; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: repeat(2, 1fr); } }

.contact__left { display: flex; flex-direction: column; gap: 32px; }
.contact__card { background: var(--graphite); color: #fff; padding: 40px; }
.contact__card-title { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 32px; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
/* klikateľná položka — správa sa ako bloky v hornej lište */
.contact__item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 10px;
  margin: 0 -10px;
  transition: background 0.3s;
}
.contact__item:hover { background: rgba(255, 255, 255, 0.04); }
.contact__list-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.contact__list-icon svg { width: 20px; height: 20px; }
.contact__item:hover .contact__list-icon { background: var(--accent); color: var(--graphite); border-color: var(--accent); }
.contact__list-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.5); }
.contact__list-value { font-weight: 600; transition: color 0.3s; }
.contact__item:hover .contact__list-value { color: var(--accent); }

/* mapa je vnútri čierneho boxu pod kontaktnými údajmi */
.contact__map { height: 300px; margin-top: 32px; }
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 28px; background: var(--graphite-2); border: 1px solid var(--line-dark); }
.map-consent p { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; max-width: 420px; }
.map-consent .btn { padding: 12px 22px; font-size: 0.95rem; }
.map-consent__link { color: rgba(255, 255, 255, 0.75); font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; }
.map-consent__link:hover { color: var(--accent); }

.contact__form { background: #fff; padding: 40px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; height: 100%; }
.contact__form-title { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 32px; }
/* správa vyplní zvyšnú výšku, aby bol formulár rovnako vysoký ako ľavý box */
.field--grow { flex: 1 1 auto; display: flex; flex-direction: column; }
.field--grow textarea { flex: 1 1 auto; min-height: 150px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 1px var(--accent-dark);
}
.field textarea { resize: vertical; }
.field__row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .field__row { grid-template-columns: repeat(2, 1fr); } }
.field__error { display: none; color: #dc2626; font-size: 0.8rem; margin-top: 6px; }
.field.has-error .field__error { display: block; }
.field.has-error input,
.field.has-error textarea { border-color: #dc2626; }

.field--check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent-dark); flex-shrink: 0; }
.field--check a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.field--check.has-error { color: #dc2626; }
.field--check.has-error input { outline: 2px solid #dc2626; outline-offset: 1px; }
.contact__form .btn:disabled { opacity: 0.6; cursor: default; }

.form__note { margin-top: 16px; font-size: 0.9rem; }
.form__note.is-ok { color: #16a34a; }
.form__note.is-err { color: #dc2626; }

/* =========================================================
   RECENZIE (vodorovný scroll)
   ========================================================= */
/* wrapper s jemným fade po stranách (prvá karta na začiatku bez fade) */
.reviews__wrap { position: relative; }
.reviews__wrap::before,
.reviews__wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.reviews__wrap::before { left: 0; background: linear-gradient(to right, var(--bg-soft), rgba(244, 245, 246, 0)); }
.reviews__wrap::after { right: 0; background: linear-gradient(to left, var(--bg-soft), rgba(244, 245, 246, 0)); }
.reviews__wrap.fade-left::before { opacity: 1; }
.reviews__wrap.fade-right::after { opacity: 1; }

.reviews__scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(17, 17, 17, 0.08);
  -webkit-overflow-scrolling: touch;
}
.reviews__scroller::-webkit-scrollbar { height: 6px; }
.reviews__scroller::-webkit-scrollbar-track { background: rgba(17, 17, 17, 0.08); }
.reviews__scroller::-webkit-scrollbar-thumb { background: var(--accent); }
.review {
  scroll-snap-align: start;
  flex: 0 0 min(340px, 82vw);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}
.review:hover { border-color: rgba(255, 212, 0, 0.75); }
.review__stars { display: flex; gap: 3px; color: var(--accent); margin-bottom: 16px; }
.review__stars svg { width: 18px; height: 18px; }
.review__text { color: var(--text); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.review__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.review__avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: var(--graphite);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.review__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; line-height: 1.15; }
.review__car { color: var(--muted); font-size: 0.88rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--graphite); color: #fff; padding: 64px 0 32px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .footer__grid { grid-template-columns: repeat(4, 1fr); gap: 36px; } }
.footer__logo img { height: 40px; width: auto; margin-bottom: 20px; }
.footer__about { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; max-width: 320px; }
.footer__col-title { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 20px; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__links a, .footer__links button { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.footer__links a, .footer__links button { transition: color 0.3s; }
.footer__links button { padding: 0; text-align: left; font-family: inherit; }
.footer__links a:hover, .footer__links button:hover { color: var(--accent); }
.footer__links-2col { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 12px 18px; }

.footer__contact { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__contact li { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.footer__contact span { color: rgba(255, 255, 255, 0.45); margin-right: 6px; }
.footer__contact a { transition: color 0.3s; }
.footer__contact a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; } }
.footer__bottom a { transition: color 0.3s; }
.footer__bottom a:hover { color: var(--accent); }
.footer__motto {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}
@media (min-width: 640px) { .footer__motto { text-align: right; } }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a, .footer__legal button {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  transition: color 0.3s;
}
.footer__legal a:hover, .footer__legal button:hover { color: var(--accent); }

/* =========================================================
   COOKIE CONSENT (lišta + modal, opt-in)
   ========================================================= */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  background: var(--graphite);
  color: #fff;
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}
@media (min-width: 640px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }
.cookie[hidden] { display: none; }
.cookie__inner { padding: 24px; }
.cookie__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cookie__head svg { width: 24px; height: 24px; color: var(--accent); }
.cookie__title { font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; text-transform: uppercase; }
.cookie__text { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cookie__btn { flex: 1 1 auto; padding: 12px 18px; font-size: 0.82rem; }

.cookie-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal[hidden] { display: none; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.cookie-modal__dialog {
  position: relative;
  background: #fff;
  color: var(--text);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.cookie-modal__dialog h3 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 12px; }
.cookie-modal__dialog > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.cookie-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cookie-opt span { display: flex; flex-direction: column; }
.cookie-opt strong { font-weight: 600; }
.cookie-opt small { color: var(--muted); font-size: 0.82rem; }
.cookie-opt input { width: 20px; height: 20px; accent-color: var(--accent-dark); flex-shrink: 0; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cookie-modal__actions .btn { flex: 1; }
/* ghost button on the white modal needs dark border/text (not the hero white) */
.cookie-modal__dialog .btn--ghost { border-color: var(--line); color: var(--text); }
.cookie-modal__dialog .btn--ghost:hover { background: var(--graphite); color: #fff; border-color: var(--graphite); }

/* =========================================================
   LEGAL PAGES (podstránky)
   ========================================================= */
.legal-hero { background: var(--graphite); color: #fff; padding: 40px 0 64px; }
.legal-hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); text-transform: uppercase; margin-top: 16px; }
.legal-hero p { color: rgba(255, 255, 255, 0.55); margin-top: 16px; max-width: 640px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.legal-back:hover { color: var(--accent); }
.legal-back svg { width: 20px; height: 20px; }
.legal-nav { background: var(--graphite); position: sticky; top: 0; z-index: 50; }
.legal-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.legal-nav__inner img { height: 34px; width: auto; }

.legal { max-width: 780px; padding-top: 64px; padding-bottom: 64px; }
.legal__block { margin-bottom: 40px; }
.legal__block h2 { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 12px; }
.legal__block p, .legal__block li { color: rgba(28, 28, 28, 0.8); }
.legal__block p { margin-top: 12px; }
.legal__block ul { margin-top: 12px; padding-left: 20px; }
.legal__block li { margin-bottom: 6px; }
.legal__block a { color: var(--accent-dark); font-weight: 600; }
.legal__note { color: var(--muted); font-size: 0.85rem; margin-top: 16px; }

.legal-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 0.9rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--bg-soft); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.03em; }

/* =========================================================
   404 — stránka sa nenašla
   ========================================================= */
.error {
  min-height: 100svh;
  background: var(--graphite);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.error__logo { display: inline-block; margin-bottom: 44px; }
.error__logo img { height: 40px; width: auto; }
.error__code {
  font-family: var(--font-hero);
  font-weight: 600;
  color: var(--accent);
  font-size: clamp(6rem, 26vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.error__title { font-size: clamp(1.75rem, 5vw, 3rem); text-transform: uppercase; margin-top: 10px; }
.error__text { color: rgba(255, 255, 255, 0.62); font-size: 1.1rem; line-height: 1.65; margin-top: 16px; max-width: 480px; }
.error__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }
.error__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-top: 44px; }
.error__links a {
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.error__links a:hover { color: var(--accent); }

/* =========================================================
   BEŽIACI PÁS ZNAČIEK (sekcia Prečo AMG)
   ========================================================= */
.logos {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.logos__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-scroll 44s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
/* bez hover efektov: pás sa nezastaví a logo nemení farbu */
.logos__track img {
  height: 37px;              /* základ; každé logo má vlastnú opticky vyváženú výšku nižšie */
  width: auto;
  flex-shrink: 0;
  margin-right: 48px;      /* namiesto gap: obe polovice pásu sú presne rovnako široké */
  filter: brightness(0) invert(1);   /* jednofarebné (biele) na tmavom pozadí */
  opacity: 0.6;
}
@keyframes logos-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}


/* footer: adresa v jednom riadku */
.footer__contact-address { display: flex; align-items: flex-start; }
.footer__contact-lines { display: inline-block; line-height: 1.5; }

/* footer: otváracie hodiny po dňoch */
.footer__hours { margin-top: 28px; }
.footer__hours-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}
.footer__hours-list { list-style: none; }
.footer__hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.92rem;
}
.footer__hours-list li:last-child { border-bottom: none; }
.footer__hours-list li span:first-child { color: rgba(255, 255, 255, 0.55); }
.footer__hours-list li span:last-child { color: rgba(255, 255, 255, 0.88); font-variant-numeric: tabular-nums; }
.footer__hours-list li.is-closed span:last-child { color: rgba(255, 255, 255, 0.4); }

/* opticky vyvážené veľkosti log (podľa pomeru strán, nie podľa jednej výšky) */
.logos__track img[src$="audi.png"] { height: 29px; }
.logos__track img[src$="bmw.png"] { height: 49px; }
.logos__track img[src$="citroen.png"] { height: 51px; }
.logos__track img[src$="ford.png"] { height: 31px; }
.logos__track img[src$="hyundai.png"] { height: 35px; }
.logos__track img[src$="kia.png"] { height: 24px; }
.logos__track img[src$="mazda.png"] { height: 44px; }
.logos__track img[src$="mercedes.png"] { height: 49px; }
.logos__track img[src$="opel.png"] { height: 44px; }
.logos__track img[src$="porsche.png"] { height: 9px; }
.logos__track img[src$="renault.png"] { height: 51px; }
.logos__track img[src$="seat.png"] { height: 48px; }
.logos__track img[src$="skoda.png"] { height: 19px; }
.logos__track img[src$="toyota.png"] { height: 39px; }
.logos__track img[src$="volkswagen.png"] { height: 49px; }
.logos__track img[src$="volvo.png"] { height: 14px; }

/* =========================================================
   CENNÍK
   ========================================================= */
.price__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .price__grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.price__col { background: var(--surface); border: 1px solid var(--line); padding: 32px; }
.price__title {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
}
.price__list { list-style: none; }
.price__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.price__list li:last-child { border-bottom: none; }
.price__list li span:first-child { color: var(--text); }
.price__list li span:last-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--graphite);
}
.price__note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* footer: kontakt pod rýchlymi odkazmi */
.footer__block { margin-top: 32px; }

/* ---------- Objednať servis: formulár v okne ---------- */
.order-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.order-modal[hidden] { display: none; }
.order-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.order-modal__dialog { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); overflow-y: auto; animation: order-in 0.3s var(--ease); }
.order-modal__dialog .contact__form { box-shadow: none; height: auto; }
.order-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); background: #fff; z-index: 1; transition: color 0.3s, background 0.3s; }
.order-modal__close:hover { color: var(--graphite); background: var(--bg-soft); }
.order-modal__close svg { width: 22px; height: 22px; }
body.is-order-open { overflow: hidden; }
@keyframes order-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .order-modal { padding: 0; align-items: flex-end; } .order-modal__dialog { max-height: 100vh; } }

/* ---------- Poďakovanie po odoslaní formulára ---------- */
.contact__form[hidden] { display: none; }
.form-thanks { background: #fff; padding: 56px 40px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-height: 100%; animation: order-in 0.4s var(--ease); }
.form-thanks__icon { width: 64px; height: 64px; background: var(--accent); color: var(--ink-on-accent); display: grid; place-items: center; }
.form-thanks__icon svg { width: 34px; height: 34px; }
.form-thanks__title { font-size: 2rem; text-transform: uppercase; line-height: 1.05; }
.form-thanks__text { color: var(--muted); max-width: 420px; }
.form-thanks__text a { color: var(--graphite); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-thanks__btn { margin-top: 8px; }
.order-modal__dialog .form-thanks { box-shadow: none; }
