/* ============================================================
   TISZAAUTÓ – STYLES
   ============================================================ */

:root {
  --bg-dark: #0e1116;
  --bg-dark-2: #161a21;
  --bg-dark-3: #1d222b;
  --bg-light: #f4f5f7;
  --surface-light: #ffffff;

  --text-on-dark: #eef1f6;
  --text-on-dark-muted: #9aa3b2;
  --text-on-light: #14171c;
  --text-on-light-muted: #5b6270;

  /* Márkaszínek a TiszaAutó logóból mintavételezve: sötétkék ("T" betű) + cián (a szárny/csík). */
  --accent: #243c8c;
  --accent-strong: #17275e;
  --accent-soft: rgba(36, 60, 140, 0.14);
  --accent-cyan: #34c4f4;
  --accent-cyan-soft: rgba(52, 196, 244, 0.16);
  --accent-contrast: #ffffff;

  --amber: #f5a524;

  --border-dark: rgba(255, 255, 255, 0.09);
  --border-light: rgba(20, 23, 28, 0.09);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);

  --container: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: "Manrope", "Inter", sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

ul { list-style: none; margin: 0; padding: 0; }

svg { display: block; }

[hidden] { display: none !important; }

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

.section-light { background: var(--bg-light); color: var(--text-on-light); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark-2 { background: var(--bg-dark-2); color: var(--text-on-dark); }

section { padding: 96px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-dark .eyebrow,
.section-dark-2 .eyebrow {
  color: var(--accent-cyan);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  color: var(--text-on-dark-muted);
  font-size: 17px;
}

.section-light .section-head p { color: var(--text-on-light-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(52, 196, 244, 0.25);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }

/* Sötét szekciókban (pl. Kalkulátor) a navy gomb szinte eltűnne a
   közel fekete háttéren, ezért ott a logó ciánját használjuk kitöltésként.
   (A hero CTA-ja a szöveg mögötti világos fátyolon ül, ott a navy jól látszik.) */
.section-dark .btn-primary,
.section-dark-2 .btn-primary,
.modal-details .btn-primary,
.hero-mobile-actions .btn-primary {
  background: var(--accent-cyan);
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(52, 196, 244, 0.3);
}
.section-dark .btn-primary:hover,
.section-dark-2 .btn-primary:hover,
.modal-details .btn-primary:hover,
.hero-mobile-actions .btn-primary:hover {
  background: #5ed4f8;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-dark);
  color: var(--text-on-dark);
}
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); transform: translateY(-2px); }

.section-light .btn-ghost { border-color: var(--border-light); color: var(--text-on-light); }
.section-light .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .8);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 500;
  background: rgba(4, 5, 7, 0.86);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--border-dark);
  transition: background .3s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-on-dark);
}

.brand .brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand .brand-city {
  font-weight: 500;
  color: var(--text-on-dark-muted);
  font-size: 13px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--text-on-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-on-dark);
}
.header-phone .icon { width: 18px; height: 18px; color: var(--accent-cyan); }

.nav-toggle {
  position: relative;
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav-toggle.is-open {
  background: var(--accent-soft);
  border-color: var(--accent-cyan);
}

/* Hamburger <-> X ikon-morfolás: a két ikon egymásra fed, és
   forgás+fakulás közben cserélnek helyet, nem csak "átugranak". */
.nav-toggle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.nav-toggle .icon-menu-close {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(.5);
}
.nav-toggle.is-open .icon-menu-lines {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(.5);
}
.nav-toggle.is-open .icon-menu-close {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-dark-2);
  border-bottom: 1px solid var(--border-dark);
  z-index: 490;
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - var(--header-h));
  overflow: hidden;
  transform: translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  visibility: hidden;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.mobile-nav a {
  padding: 14px 6px;
  border-bottom: 1px solid var(--border-dark);
  font-weight: 600;
  color: var(--text-on-dark);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), color .2s var(--ease);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--accent-cyan); }

/* Lépcsőzetes belebúszás nyitáskor, hogy ne "egyben ugorjon be" a lista. */
.mobile-nav.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav.is-open a:nth-child(1) { transition-delay: .05s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: .1s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: .15s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: .2s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: .25s; }
.mobile-nav.is-open a:nth-child(6) { transition-delay: .3s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: min(88vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--bg-dark);
  padding: 0;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Csak egy finom alsó sötétítés, hogy a lenti pöttyök bármelyik fotón
     látszódjanak – a szöveg olvashatóságát a .hero-panel adja, nem ez. */
  background: linear-gradient(180deg, rgba(20, 20, 18, 0) 80%, rgba(20, 20, 18, .42) 100%);
}

.hero-text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 24px;
  padding-bottom: 28px;
}
.hero-text .container {
  max-width: 820px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

@keyframes heroFloatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy {
  display: inline-block;
  max-width: 100%;
  text-align: left;
  animation: heroFloatIn 1s cubic-bezier(.22, 1, .36, 1) both;
}

/* A szöveg színét elsősorban NEM effekt adja, hanem maga a szín
   választása: a diák nagy része sötétebb bal-alsó sarokkal rendelkezik
   (mérve), ott fehér a szöveg; ha egy kép ott ténylegesen világos
   ("theme: light" a HERO_BACKGROUNDS tömbben), a JS ráteszi a
   .hero--light-bg osztályt, és akkor navy lesz belőle. Emellett egy
   visszafogott, klasszikus mélység-árnyék (nem fényglow, nem
   körvonal) segít elválasztani a szöveget a fotótól. */
.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .025em;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0, 0, 0, .65), 0 5px 12px rgba(0, 0, 0, .45);
  margin: 0 0 18px;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 19px;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 4px 10px rgba(0, 0, 0, .4);
  margin: 0 0 28px;
}

.hero--light-bg .hero-title,
.hero--light-bg .hero-subtitle {
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(255, 255, 255, .5);
}

.hero-cta {
  border-radius: var(--radius-sm);
  padding: 15px 22px;
  box-shadow: none;
}
.hero-cta:hover { box-shadow: none; }
.hero-cta .icon { width: 18px; height: 18px; }

/* Csak telefonon látszik (ld. média-lekérdezés lejjebb) – két gomb
   egymás mellett, a Lincoln-féle mobil hero mintáját követve. */
.hero-mobile-actions { display: none; }

.hero-dots {
  display: flex;
  gap: 2px;
  margin-top: 26px;
  margin-left: -6px;
}
/* A látható sáv vékony marad (width/height), de a padding + a
   background-clip:content-box miatt a kattintható/érinthető terület
   jóval nagyobb – ez különösen mobilon fontos a pontos találathoz. */
.hero-dots button {
  width: 26px;
  height: 3px;
  padding: 13px 6px;
  box-sizing: content-box;
  background-clip: content-box;
  border-radius: 2px;
  border: none;
  background-color: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: background-color .25s ease, width .25s ease;
}
.hero-dots button.is-active { background-color: var(--accent-cyan); width: 38px; }
.hero-dots button:hover { background-color: rgba(255, 255, 255, .75); }

@media (max-width: 760px) {
  /* Telefonon álló (portré) tájolású fotók futnak (assets/hero-mobile/),
     ezért a hero szinte a teljes képernyőt kitölti (100svh = a tényleges
     látható magasság, a mobil böngésző-sávokat is figyelembe véve). */
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: 900px;
  }
  .hero-title { font-size: clamp(22px, 7vw, 28px); margin-bottom: 8px; }
  .hero-subtitle { font-size: 13.5px; margin-bottom: 14px; }

  /* A desktop egy-gombos CTA-ja telefonon rejtve marad – helyette a
     Lincoln-mintát követő, két gombos sor jelenik meg (ld. lejjebb). */
  .hero-cta { display: none; }

  /* Telefonon a szöveg BAL oldalra igazítva, alulra rögzítve – a fotó
     alján egy erősebb, közel fedő sötét sáv (ld. .hero-slide::after
     lejjebb) ad neki hátteret, a Lincoln-referencia szerint. */
  .hero-text {
    justify-content: flex-start;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 20px;
  }
  .hero-text .container { margin-left: 0; margin-right: auto; text-align: left; }
  .hero-copy { text-align: left; }

  .hero-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
  }
  .hero-mobile-actions .btn { padding: 11px 16px; font-size: 13.5px; }

  .hero-dots { justify-content: flex-start; margin-left: 0; margin-top: 16px; }

  /* Telefonon a sötét sáv miatt mindig fehér szöveg kell, függetlenül
     attól, hogy az adott kép "light" témájú lenne desktopon. */
  .hero--light-bg .hero-title,
  .hero--light-bg .hero-subtitle { color: #fff; }

  /* Erősebb, magasabb alsó sötétítés, hogy a szöveg + gombok egy
     jól olvasható, "panelszerű" sávon üljenek, bármelyik fotón. */
  .hero-slide::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, .55) 65%,
      rgba(0, 0, 0, .92) 100%
    );
  }
}

/* quick search (top of Készlet section) */
.quick-search {
  position: relative;
  z-index: 3;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-search .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-search label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

select, input[type="text"], input[type="number"], input[type="email"], input[type="tel"], textarea {
  appearance: none;
  background: var(--bg-dark-3);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  width: 100%;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.section-dark select:focus,
.section-dark input:focus,
.section-dark textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-soft);
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%239aa3b2' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.section-light select,
.section-light input,
.section-light textarea {
  background: #fff;
  border-color: var(--border-light);
  color: var(--text-on-light);
}

.quick-search .btn { align-self: end; }

@media (max-width: 980px) {
  .quick-search { grid-template-columns: repeat(2, 1fr); }
  .quick-search .btn { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .quick-search { grid-template-columns: 1fr; padding: 16px; }
}

/* ============ INVENTORY ============ */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  padding: 18px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  box-shadow: 0 6px 20px rgba(20,23,28,0.05);
}

.filters-bar .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  flex: 1 1 150px;
}
.filters-bar label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-on-light-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.filters-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.filters-count { color: var(--text-on-light-muted); font-size: 14px; }
.filters-meta-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filters-reset {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.filters-reset:hover { text-decoration: underline; }

.fav-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  color: var(--text-on-light-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.fav-filter-toggle .icon { width: 14px; height: 14px; }
.fav-filter-toggle:hover { border-color: var(--accent); color: var(--accent); }
.fav-filter-toggle.is-active {
  background: rgba(224, 67, 92, .1);
  border-color: rgba(224, 67, 92, .4);
  color: #e0435c;
}
.fav-filter-toggle.is-active .icon { fill: currentColor; }

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cars-grid { grid-template-columns: 1fr; } }

.car-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.car-card.is-hidden { display: none; }
.car-card.is-filtering { opacity: 0; transform: translateY(10px) scale(.98); }

.car-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.car-photo img { width: 100%; height: 100%; object-fit: cover; }

.car-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ph-a, #1d2735), var(--ph-b, #0e1116));
  color: rgba(255,255,255,0.5);
}
.car-placeholder .icon { width: 44%; height: 44%; stroke-width: 1.2; }

.car-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.car-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.car-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 17, 22, .65);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.car-action-btn .icon { width: 17px; height: 17px; }
.car-action-btn:hover { transform: scale(1.08); }
.car-fav-btn.is-active { background: #e0435c; color: #fff; }
.car-fav-btn.is-active .icon { fill: currentColor; }
.car-compare-btn.is-active { background: var(--accent-cyan); color: var(--accent-strong); }
.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14,17,22,0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}
.tag.tag-warranty { background: var(--accent); }

.car-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.car-title { font-size: 18px; font-weight: 800; font-family: "Manrope", sans-serif; }
.car-title span { display: block; font-size: 13px; font-weight: 600; color: var(--text-on-light-muted); margin-top: 2px; }

.car-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  font-size: 13px;
  color: var(--text-on-light-muted);
}
.car-specs li { display: flex; align-items: center; gap: 6px; }
.car-specs .icon { width: 15px; height: 15px; color: var(--accent); }

.car-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.car-price { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 20px; color: var(--text-on-light); }
.car-price span { display: block; font-size: 11px; font-weight: 600; color: var(--text-on-light-muted); }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-on-light-muted);
}
.no-results .icon { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--accent); }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon .icon { color: var(--accent); width: 24px; height: 24px; }
.service-card h3 { font-size: 16px; }
.service-card p { font-size: 14px; color: var(--text-on-light-muted); margin: 0; }

/* ============ TRUST ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-dark-3);
  border: 1px solid var(--border-dark);
}
.trust-card .stat {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.trust-card h3 { font-size: 15px; }
.trust-card p { font-size: 13.5px; color: var(--text-on-dark-muted); margin: 0; }

/* ============ TESTIMONIALS ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 6px 20px rgba(20, 23, 28, 0.05);
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 14px; }
.testimonial-stars .star-icon { width: 16px; height: 16px; color: var(--border-light); }
.testimonial-stars .star-icon.is-filled { color: var(--amber); fill: var(--amber); }
.testimonial-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-on-light);
  margin: 0 0 18px;
}
.testimonial-author { display: flex; flex-direction: column; }
.testimonial-name { font-weight: 700; font-size: 14.5px; }
.testimonial-note { font-size: 13px; color: var(--text-on-light-muted); }

/* ============ CONTACT ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .icon-box {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon-box .icon { color: var(--accent); width: 20px; height: 20px; }
.contact-info-item h4 { margin: 0 0 2px; font-size: 15px; }
.contact-info-item p, .contact-info-item a { margin: 0; color: var(--text-on-light-muted); font-size: 14.5px; }
.contact-info-item a:hover { color: var(--accent); }

.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 14.5px; }
.hours-table td:first-child { padding-right: 20px; }
.hours-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 240px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 20px;
}

.contact-form {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-on-light-muted); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(36, 60, 140, 0.08);
  border: 1px solid var(--accent-soft);
  color: var(--accent-strong);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  margin-top: 14px;
}
.form-success.is-visible { display: flex; }

/* ============ FOOTER ============ */
.site-footer {
  background: #08090b;
  border-top: 1px solid var(--border-dark);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a { color: var(--text-on-dark-muted); font-weight: 600; font-size: 14.5px; }
.footer-nav a:hover { color: var(--text-on-dark); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-on-dark);
  font-weight: 700;
  border: 1px solid var(--border-dark);
  padding: 10px 16px;
  border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer-social:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-on-dark-muted);
  font-size: 13px;
}
.footer-demo-note {
  color: var(--amber);
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(.98);
  transition: transform .3s var(--ease);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }
@media (max-width: 760px) { .modal-card { grid-template-columns: 1fr; } }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.modal-fav {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal-fav .icon { width: 18px; height: 18px; }
.modal-fav.is-active { background: #e0435c; border-color: #e0435c; }
.modal-fav.is-active .icon { fill: currentColor; }

.modal-gallery {
  position: relative;
  background: var(--bg-dark);
  aspect-ratio: 4/3;
}
.modal-gallery .car-placeholder, .modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); }
.gallery-slide.is-active { opacity: 1; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
.gallery-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
}
.gallery-dots button.is-active { background: #fff; width: 18px; border-radius: 4px; }

.modal-details {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.modal-details .tags { display: flex; gap: 6px; margin-bottom: 12px; }
.modal-details h3 { font-size: 24px; }
.modal-details .modal-sub { color: var(--text-on-dark-muted); margin-bottom: 18px; }

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-bottom: 20px;
}
.modal-spec-grid div { background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); padding: 10px 12px; }
.modal-spec-grid .label { font-size: 11px; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: .03em; }
.modal-spec-grid .value { font-weight: 700; font-size: 14.5px; margin-top: 2px; }

.modal-desc { font-size: 14.5px; color: var(--text-on-dark-muted); margin-bottom: 20px; }

.modal-price {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin-bottom: 20px;
}

.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ============ VISSZA A TETEJÉRE ============ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(52, 196, 244, 0.3), 0 2px 10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 450;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent-strong); transform: translateY(-3px) scale(1.05); }
.back-to-top .icon { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
}

/* ============ ÖSSZEHASONLÍTÓ SÁV ============ */
.compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 480;
  background: var(--bg-dark-2);
  border-top: 1px solid var(--border-dark);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
  padding: 12px 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.compare-bar-items {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
}
.compare-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-dark-3);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  font-size: 13px;
  color: var(--text-on-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.compare-bar-item button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: none;
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.compare-bar-item button .icon { width: 11px; height: 11px; }
.compare-bar-item button:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.compare-bar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

body.has-compare-bar .back-to-top { bottom: 92px; }
@media (max-width: 640px) {
  body.has-compare-bar .back-to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ============ ÖSSZEHASONLÍTÓ MODAL ============ */
.compare-modal-card {
  display: block;
  max-width: 1040px;
  padding: 32px 24px 28px;
}
.compare-modal-title {
  font-size: 20px;
  margin: 0 0 18px;
  padding-right: 40px;
}

/* Minden autó egy önálló kártya-oszlop (NEM széles táblázat) – ez
   mobilon eleve "kilátszik" a következő autóból, így nyilvánvaló,
   hogy oldalra húzható/görgethető, ha 2-3 autót hasonlítunk össze. */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  margin: 0 -4px;
}
.compare-columns {
  display: flex;
  gap: 16px;
  padding: 0 4px;
}
.compare-column {
  position: relative;
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
  background: var(--bg-dark-3);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 16px;
}
.compare-column-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.compare-column-remove .icon { width: 12px; height: 12px; }

.compare-column-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.compare-column-photo img,
.compare-column-photo .car-placeholder { width: 100%; height: 100%; object-fit: cover; }

.compare-column-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  margin-bottom: 10px;
  min-height: 40px;
}

.compare-column-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 13px;
}
.compare-column-row .label { color: var(--text-on-dark-muted); }
.compare-column-row .value { color: var(--text-on-dark); font-weight: 600; text-align: right; }

.compare-column-price {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--accent-cyan);
  margin: 14px 0;
}
.compare-column .btn { width: 100%; }

.compare-hint {
  display: none;
  font-size: 12.5px;
  color: var(--text-on-dark-muted);
  text-align: center;
  margin: 14px 0 0;
}
@media (max-width: 760px) {
  .compare-hint { display: block; }
  .compare-column { width: 80vw; max-width: 320px; }
}

/* utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
