/* ==========================================================================
   tm3.hu — Minimal v2
   ~400 sor · ~25 komponens · utility-first
   ==========================================================================
   SZERKESZTHETŐSÉG: minden szín, méret, radius, spacing egy :root blokkban.
   Komponensek: navbar, btn, card, input, badge, tag, modal.
   Layout: container, stack, row, grid.
   ========================================================================== */

:root {
    /* ---- SZÍNEK (egy helyen, könnyű átírni) ----
       2026-08-30: USER KÉRÉS — "Tesla Model 3 — magyar tudásbázis rossz helyen
       használsz stilust, azt szeretném látni mindenhol ezt a világosat, minden
       pagen". Teljes világos paletta: a sötét navy hátteret (#06121E) és a
       világos szövegszíneket (#F0F7FF) lecserélem világos háttérre (#FAFAF7)
       és sötét szövegre (#0A0A0A). Minden oldal, minden szekció, minden
       komponens ugyanazt a világos stílust kapja — Tesla.com-hoz hasonló
       "white, grey, black" minimalista megjelenés. */
    --bg: #FAFAF7;            /* világos krém — elsődleges háttér */
    --bg-2: #F4F4F0;          /* világos szürke — alternatív háttér (section--alt) */
    --surface: #FFFFFF;       /* fehér — kártyák, surface */
    --ink: #0A0A0A;           /* sötétszürke — elsődleges szöveg */
    --ink-2: #3A3A3A;         /* sötétszürke — másodlagos szöveg (volt: #D6E2EE) */
    --ink-3: #5C5C5C;         /* középszürke — harmadlagos szöveg (volt: #AFC0D2) */
    --ink-4: #7A7A7A;         /* világosszürke — negyedleges szöveg */

    /* Legacy alias-ok (inline style="color:var(--text-muted)" stb.). */
    --text: #0A0A0A;
    --text-muted: #3A3A3A;
    --text-dim: #5C5C5C;
    --accent-2: #0075DE;
    --best: #108C3D;
    --sport: #B45309;
    --line: rgba(10, 10, 10, 0.10);            /* sötét átlátszó vonalak (volt: rgba(125, 211, 252, 0.15)) */
    --line-strong: rgba(10, 10, 10, 0.18);    /* erősebb sötét vonalak */

    --accent: #0075DE;        /* Tesla Electric Blue — accent (volt: #38BDF8) */
    --accent-hover: #005BAB;
    --accent-soft: rgba(0, 117, 222, 0.08);

    --green: #108C3D;
    --green-soft: rgba(16, 140, 61, 0.08);
    --orange: #B45309;
    --orange-soft: rgba(180, 83, 9, 0.08);
    --red: #DC2626;
    --red-soft: rgba(220, 38, 38, 0.08);

    /* ---- MÉRETEK ---- */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);

    --container: 1200px;
    --gap: 24px;
    --gap-sm: 12px;
    --gap-lg: 40px;

    /* ---- TIPOGRÁFIA ----
       2026-08-30: USER REPORT — "szeretnem ha mas fontot es nagyobbat a
       szovegnel olvashatobb legyen, vekonyabb betuk".
       Valtas:
       - body font-size 16px → 17px (nagyobb, olvashatobb)
       - body line-height 1.55 → 1.65 (több sor-tér, olvashatóbb)
       - body font-weight 400 (default, karcsú)
       - h1-h4 font-weight 500/700/800 → 400/500/600 (vékonyabb)
       - Fraunces (serif) → Inter Tight (modern sans-serif, mert a Google Fonts
         link amúgy sem töltötte a Fraunces-t, így a címek Georgia-ra estek
         vissza — most konzisztens lesz)
       - A levelek jobban "lélegeznek" a letter-spacing csökkentésével. */
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter Tight', var(--font);

    --t-fast: 0.15s ease;
    --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    /* 2026-08-30: USER REPORT — nagyobb, olvashatóbb szöveg.
       16px → 17px, line-height 1.55 → 1.65, font-weight 400 (alap). */
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    overflow-x: hidden;
    /* 2026-08-29: iPhone X+ notch: a padding-top figyelembe veszi a safe-area-inset-top
       értékét, hogy a tartalom a navbar alatt kezdődjön, ne a notch alatt. */
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: white; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: var(--gap); }
.stack-sm > * + * { margin-top: var(--gap-sm); }
.stack-lg > * + * { margin-top: var(--gap-lg); }
.row { display: flex; gap: var(--gap); flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
/* 2026-08-30: USER REPORT — vékonyabb betűk a címekben. A régi 500/700/800
   helyett 400/500/600 (karcsú, modern). A letter-spacing -0.03em → -0.015em
   (kevésbé tömör, természetesebb). */
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 500; letter-spacing: -0.015em; }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; }

/* ==========================================================================
   NAVBAR — Tesla minimal
   ========================================================================== */
.navbar {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 9999 !important;  /* P2 fix: minden fölé, !important-tal */
    /* 2026-08-29: iPhone X+ notch: a padding-top figyelembe veszi a safe-area-inset-top
       erteket, igy a navbar nem takarja el a notch-ot. */
    padding: calc(14px + env(safe-area-inset-top, 0px)) 0 14px 0;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    /* 2026-08-30: USER KÉRÉS — teljes világos stílus. A navbar háttér
       világos (#FAFAF7, 92% átlátszóság) a sötétszürke (rgba(11,11,13,0.92))
       helyett. A border-bottom sötétszürke átlátszó vonal. */
    background: rgba(250, 250, 247, 0.92);
    /* P3 scroll perf: a blur(20px) + saturate(180%) nagyon dragabb a GPU-n
       (minden scroll frame-en ujra kell szamolni), igy lassitja a scroll-t
       a belso oldalakon. Felezve a blur-t es eltavolitva a saturate-ot:
       scroll sebesseg javul, vizualis kompromisszum minimalis. */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 10, 10, 0.10);
    transition: padding var(--t), background var(--t), border-color var(--t);
}
.navbar.scrolled, .navbar.is-scrolled {
    padding: 8px 0;
    background: rgba(250, 250, 247, 0.95);
    border-bottom-color: rgba(10, 10, 10, 0.14);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
/* 2026-08-30: a navbar soha ne legyen szelesebb a viewport-nal. Ha a .main-nav
   + .brand + .nav-cta egyutt szelesebb mint 100vw, ne legyen vizszintes scrollbar.
   2026-08-30: REVERT — az overflow:hidden levagta a lenyilo hamburger menumot
   (a .main-nav.is-open position:absolute; top:100%-on ul, a navbar dobozan kivul,
   igy a navbar overflow:hidden miatt nem latszott). Helyette a .nav-wrap
   flex-wrap-wrap + a .main-nav flex-wrap biztositja, hogy a linkek ne nyuljanak
   tul a viewporton, es a hamburger menu szabadon megjelenhet. */
.navbar { max-width: 100vw; }

.brand, .logo {
    display: inline-flex; align-items: center; gap: 8px;
    /* 2026-08-30: USER KÉRÉS — teljes világos stílus. A brand szöveg és
       logó mostantól sötétszürke (#0A0A0A) a világos navbar háttéren. */
    color: #0A0A0A !important; text-decoration: none !important;
    font-weight: 600; font-size: 14px; letter-spacing: -0.015em;
}
.brand-mark, .logo-mark {
    width: 24px; height: 24px;
    display: grid; place-items: center;
    background: var(--accent); color: white;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: 11px; letter-spacing: 0;
}

.main-nav, .site-nav {
    display: flex; gap: 2px; align-items: center;
    flex-wrap: wrap;
}
.main-nav a, .site-nav a, .site-nav .nav-dropdown-toggle {
    position: relative;
    padding: 7px 9px;
    font-size: 12px; font-weight: 500;
    white-space: nowrap;
    /* 2026-08-30: világos navbar — linkek sötétszürkék (#3A3A3A) a világos háttéren. */
    color: #3A3A3A !important;
    text-decoration: none !important;
    transition: color var(--t-fast);
}
.main-nav a:hover, .site-nav a:hover,
.main-nav a[aria-current="page"], .site-nav a.active {
    color: #0A0A0A !important;
}
.main-nav a::after, .site-nav a::after, .site-nav .nav-dropdown-toggle::after {
    content: '';
    position: absolute; left: 14px; right: 14px; bottom: 4px;
    height: 1.5px; background: var(--accent);
    transform: scaleX(0); transform-origin: center;
    transition: transform var(--t-fast);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after,
.site-nav a:hover::after, .site-nav a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex; align-items: center;
    padding: 8px 18px;
    background: var(--accent); color: white !important;
    border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 600;
    transition: background var(--t-fast), transform var(--t-fast);
}
.nav-cta:hover { background: var(--accent-hover); color: white !important; transform: translateY(-1px); }

.nav-toggle {
    display: none; background: transparent; border: 0;
    width: 40px; height: 40px; cursor: pointer;
    flex-direction: column; gap: 5px; align-items: center; justify-content: center; padding: 0;
}
/* 2026-08-30: hamburger ikon sötétszürke a világos navbar háttéren. */
.nav-toggle span { width: 18px; height: 1.5px; background: #0A0A0A; border-radius: 1px; transition: var(--t-fast); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 22px;  /* P2: 10px 18px → 12px 22px */
    font-family: inherit; font-size: 15px; font-weight: 600;  /* P2: 14px → 15px */
    border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer;
    text-decoration: none !important;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
    line-height: 1.2;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-2); }

/* P2: kompakt CTA a hibak-preview-cta szekcióban (2 gomb egymás mellett).
   Tesla Electric Blue (#3E6AE1), 40px height, 4px border-radius — "block button"
   a card-as-link kártyákon kívül. */
.btn-card {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;             /* P2: kompakt 16px 28px → 12px 24px */
    background: #3E6AE1;            /* Tesla Electric Blue */
    color: #FFFFFF !important;
    font-size: 15px; font-weight: 500;  /* P2: 16px/700 → 15px/500 (Tesla-minta) */
    border-radius: 4px;             /* P2: 12px → 4px (Tesla-minta) */
    border: 0;
    box-shadow: none;
    transition: background-color var(--t-fast), transform var(--t-fast);
    text-decoration: none !important;
}
.btn-card:hover {
    background: #2C4FB8;            /* Tesla hover: sötétebb blue */
    transform: translateY(-1px);
    color: #FFFFFF !important;
}
.btn-card:focus-visible {
    outline: 2px solid var(--accent, #38BDF8);
    outline-offset: 3px;
}
.btn-link { background: transparent; color: var(--accent); padding: 0; border: 0; border-radius: 0; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   SURFACES — page-hero, section, card, filter, tip-box, badge
   ========================================================================== */
.page-hero { padding: 100px 0 96px; border-bottom: 1px solid var(--line); }
/* 2026-09-05: USER REPORT — 100px+96px padding-top feleslegesen nagy mobilon.
   80px-re csokkentjuk 768px alatt, 72px-re 480px alatt. */
@media (max-width: 768px) {
    .page-hero { padding: 80px 0 48px !important; }
}
@media (max-width: 480px) {
    .page-hero { padding: 72px 0 36px !important; }
}  /* P2: 180px → 100px (body padding-top 64px miatt) */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }

/* 2026-08-30: "Miért készült?" szekció — világos, modern Tesla-stílus,
   összhangban a hero-val. A sötétebb section-ok (deg, vin) maradnak sötét
   design system szerint. */
.section--why {
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF7 100%);
    color: #0A0A0A;
}
.section--why .section-head h2 { color: #0A0A0A; }
.section--why .section-head p { color: #3A3A3A; }
.section--why .section-eyebrow { color: #0075DE; background: rgba(0, 117, 222, 0.08); }
.section--why .card {
    background: #FFFFFF;
    border: 1px solid rgba(10, 10, 10, 0.08);
    color: #0A0A0A;
    box-shadow: 0 1px 3px rgba(10, 10, 10, 0.04);
}
.section--why .card:hover {
    border-color: rgba(0, 117, 222, 0.3);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
}
.section--why .card p { color: #3A3A3A; }
.section--why .card__title { color: #0A0A0A; }

/* ==========================================================================
   GYIK oldal — accordion + kategória szűrő
   2026-08-30: a GYIK oldal natív <details>/<summary> accordion-t használ
   (könnyű, gyors, accessibility-barát), és egy kategória szűrősorral
   szűkíthető a találati lista. Modern, Tesla-stílusú megjelenés.
   ========================================================================== */
.gyik-cat {
    /* A filter-bar gombjai a kategóriaszűrőhöz. */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-2, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-pill, 9999px);
    color: var(--ink-2, #D6E2EE);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gyik-cat:hover {
    background: var(--accent-soft, rgba(0, 117, 222, 0.08));
    border-color: var(--accent, #0075DE);
}
.gyik-cat.active {
    background: var(--accent, #0075DE);
    border-color: var(--accent, #0075DE);
    color: #FFFFFF;
}

.faq-list {
    /* A kérdések listája. */
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.faq-item {
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--line, rgba(10, 10, 10, 0.08));
    border-radius: 12px;
    padding: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}
.faq-item[open] {
    border-color: var(--accent, #0075DE);
    box-shadow: 0 4px 16px rgba(0, 117, 222, 0.08);
}
.faq-item summary {
    /* A summary a natív accordion fejléce. */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    /* Chevron ikon a summary jobb oldalán. */
    content: '⌄';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 117, 222, 0.08);
    color: var(--accent, #0075DE);
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s;
}
.faq-item[open] summary::after {
    transform: rotate(180deg);
    background: var(--accent, #0075DE);
    color: #FFFFFF;
}

.faq-q {
    /* A kérdés szövege a summary-ban. */
    font-family: var(--font-display, 'Inter Tight', sans-serif);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink, #0A0A0A);
    letter-spacing: -0.01em;
    flex: 1;
}
.faq-cat {
    /* A kategória címke a summary jobb szélén. */
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 117, 222, 0.08);
    color: var(--accent, #0075DE);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.faq-item[open] .faq-cat {
    background: var(--accent, #0075DE);
    color: #FFFFFF;
}

.faq-a {
    /* A válasz szekció, ami lenyílik. */
    padding: 0 24px 24px;
    color: var(--ink-2, #3A3A3A);
    font-size: 1rem;
    line-height: 1.65;
}
.faq-a p {
    margin: 0 0 12px;
}
.faq-a p:last-child {
    margin-bottom: 0;
}
.faq-a ul, .faq-a ol {
    margin: 8px 0 16px;
    padding-left: 24px;
}
.faq-a li {
    margin-bottom: 6px;
    line-height: 1.55;
}
.faq-a strong {
    color: var(--ink, #0A0A0A);
    font-weight: 600;
}
.faq-a a {
    color: var(--accent, #0075DE);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.faq-a a:hover {
    border-bottom-color: var(--accent, #0075DE);
}

@media (max-width: 640px) {
    .faq-item summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 18px;
    }
    .faq-item summary::after {
        position: absolute;
        top: 16px;
        right: 18px;
    }
    .faq-q {
        font-size: 0.9375rem;
        padding-right: 36px;
    }
    .faq-a {
        padding: 0 18px 18px;
        font-size: 0.9375rem;
    }
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    background: var(--accent-soft); color: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 0.875rem; font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.page-hero h1 { margin-bottom: 24px; max-width: 820px; font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.page-hero .lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-2); max-width: 720px; line-height: 1.55; }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--ink-2); line-height: 1.65; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.card.feature { background: linear-gradient(135deg, var(--accent-soft), transparent); border-color: rgba(0, 117, 222, 0.3); }

.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.card h3 { font-size: 20px; /* 2026-08-30: USER REPORT — vékonyabb. 500 marad, de a letter-spacing -0.02em → -0.015em. */ font-weight: 500; letter-spacing: -0.015em; }
.card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.card .meta { color: var(--ink-3); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.card .actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* 2026-08-30: "Miért készült?" bento kártyákhoz — modern Tesla-stílus. */
.card__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: inline-block;
}
.card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   BENTO — aszimmetrikus grid
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-12 { grid-column: span 12; }
.bento-8  { grid-column: span 8; }
.bento-6  { grid-column: span 6; }
.bento-4  { grid-column: span 4; }
@media (max-width: 968px) { .bento > [class*="bento-"] { grid-column: span 12; } }

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 36px;
}
.filter-bar input, .filter-bar select {
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 9px 14px;
    font: inherit; font-size: 16px;  /* P3: 14px → 16px (iOS autozoom fix) */
    flex: 1; min-width: 160px;
    transition: border-color var(--t-fast);
}
.filter-bar input:focus, .filter-bar select:focus {
    outline: none; border-color: var(--accent);
}
.filter-bar label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 0 12px; }
.filter-bar input[type="checkbox"] { flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--accent); }

/* ==========================================================================
   TAGS & BADGES
   ========================================================================== */
.tag {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    background: var(--bg-2);
    color: var(--ink-2);
    font-size: 11px; font-weight: 600;
    border-radius: var(--radius-pill);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.orange { background: var(--orange-soft); color: var(--orange); }
.tag.red { background: var(--red-soft); color: var(--red); }

.chip {
    display: inline-flex; padding: 3px 10px;
    background: var(--bg-2);
    border-radius: var(--radius-pill);
    font-size: 11px; color: var(--ink-2);
}

/* ==========================================================================
   TIP BOX
   ========================================================================== */
.tip-box {
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink-2);
    font-size: 14px; line-height: 1.6;
    margin: 24px 0;
}
.tip-box strong { color: var(--ink); }
.tip-box ul, .tip-box ol { padding-left: 20px; margin-top: 6px; }
.tip-box.green { border-left-color: var(--green); }
.tip-box.orange { border-left-color: var(--orange); }

/* ==========================================================================
   CALCULATOR
   ========================================================================== */
.calc-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-field { display: grid; gap: 8px; margin-bottom: 20px; }
.calc-field label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
.calc-field label small { color: var(--ink-3); font-weight: 400; }
.calc-field input[type="number"], .calc-field input[type="text"], .calc-field select, .calc-field textarea {
    width: 100%; padding: 10px 12px;
    background: var(--bg-card);
    color: var(--fg);
    border: 1px solid var(--border-soft); border-radius: var(--radius);
    font: inherit; font-size: 16px;  /* P3: 14px → 16px (iOS autozoom fix) */
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-field input[type="range"] {
    -webkit-appearance: none; width: 100%; height: 4px;
    background: var(--bg-2); border-radius: var(--radius-pill);
}
.calc-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px;
    background: var(--primary); border-radius: 50%; cursor: pointer;
    border: 2px solid var(--fg);
}
.calc-field input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; background: white; border-radius: 50%;
    border: 2px solid var(--accent); cursor: pointer;
}
.calc-output { padding: 28px; background: var(--bg-2); border-radius: var(--radius-lg); }
.calc-output h3 { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.calc-output .result { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); /* 2026-08-30: USER REPORT — vékonyabb. 500 marad, de a letter-spacing -0.03em → -0.02em. */ font-weight: 500; letter-spacing: -0.02em; }
.calc-output .result-sub { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.calc-output .result-list { list-style: none; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-output .result-list li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.calc-output .result-list span { color: var(--ink-3); }
.calc-output .result-list strong { font-weight: 600; }
.calc-output .highlight { margin-top: 18px; padding: 16px; background: var(--accent-soft); border: 1px solid rgba(0, 117, 222, 0.15); border-radius: var(--radius); }
.calc-output .highlight strong { color: var(--accent); }

/* ==========================================================================
   TABLE
   ========================================================================== */
.table {
    width: 100%; border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden; font-size: 14px;
}
/* 2026-09-05: USER REPORT — a tablazatok (gumi, vasarlas) 768px alatt
   kinyultak a viewportbol, vizszintes scrollt okozva az egesz oldalon.
   A `display: block` + `overflow-x: auto` egyutt biztositja, hogy a tabla
   gorgetheto legyen, de az oldal ne. */
@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}
.table th { padding: 12px 18px; background: var(--bg-2); text-align: left; font-size: 11px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.table tbody tr:hover { background: var(--bg-2); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   BREADCRUMB + META — pill-style chips, much more clickable
   ========================================================================== */
.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 0 0;
    font-size: 0.9375rem;
    color: var(--fg-muted);
    margin-bottom: 18px;
}
.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-pill);
    color: var(--fg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s var(--ease-out), border-color 0.2s, color 0.2s, transform 0.2s;
}
.breadcrumb a:hover {
    background: var(--accent);
    color: #06121E;
    border-color: var(--accent);
    transform: translateY(-1px);
}
.breadcrumb a:first-child::before {
    content: "←";
    margin-right: 2px;
    opacity: 0.7;
}
.breadcrumb-sep {
    opacity: 0.35;
    margin: 0 4px;
    font-size: 1.125rem;
    color: var(--fg-muted);
}
.breadcrumb span[aria-current] {
    padding: 8px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}
@media (max-width: 540px) {
    .breadcrumb { gap: 6px; }
    .breadcrumb a, .breadcrumb span[aria-current] {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }
    .breadcrumb-sep { display: none; }
}

/* ==========================================================================
   MAP
   ========================================================================== */
.map { height: 540px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: 32px; background: var(--bg-2); }
.leaflet-container { background: var(--bg-2) !important; font-family: var(--font) !important; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 20px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
/* 2026-08-29: tipus-egyezes a tobberek.html class-nevekkel (supercharger, mobiliti, eon, shell, volteum). */
.legend-dot.supercharger { background: #DC2626; }
.legend-dot.mobiliti    { background: #059669; }
.legend-dot.eon         { background: #D97706; }
.legend-dot.shell       { background: #CA8A04; }
.legend-dot.volteum     { background: #7C3AED; }
.map-marker { background: var(--accent) !important; color: white !important; width: 32px !important; height: 32px !important; border-radius: 50% !important; display: grid !important; place-items: center; font-weight: 700; font-size: 13px; border: 3px solid white; box-shadow: var(--shadow); }
.map-marker.supercharger { background: #DC2626 !important; }
.map-marker.mobiliti    { background: #059669 !important; }
.map-marker.eon         { background: #D97706 !important; }
.map-marker.shell       { background: #CA8A04 !important; }
.map-marker.volteum     { background: #7C3AED !important; }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }
.leaflet-popup-content { font-family: var(--font) !important; margin: 12px 14px !important; min-width: 220px; max-width: 280px; line-height: 1.45; }
.leaflet-popup-content h4 { margin: 0 0 8px; font-size: 15px; color: var(--ink); font-weight: 700; }
.leaflet-popup-content p  { margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.leaflet-popup-content p strong { color: var(--ink); }
.leaflet-popup-tip { background: var(--surface) !important; }
.leaflet-popup-close-button { color: var(--ink-3) !important; }
.map-popup { color: var(--ink); }
.map-popup h4 { margin: 0 0 8px; font-size: 15px; }
.map-popup p  { margin: 4px 0; font-size: 13px; }
/* 2026-08-29: terkep-vezerlok (layer toggle + fit-bounds gomb). */
.map-controls { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.map-controls .ctrl-btn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: background 0.15s; }
.map-controls .ctrl-btn:hover { background: var(--bg-2); }
.map-controls .ctrl-btn.active { background: var(--accent); color: white; }
.map-wrap { position: relative; }
/* 2026-08-29: dark-filter a vilagos OSM tile-okra. A CartoCDN dark_all
   reteg marad elerheto a "Dark" gombbal, de az OSM az elsodleges,
   mert a CartoCDN egyes edge-ei "API KEY REQUIRED" PNG-t adnak. */
.map .leaflet-container { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.92); }
.map .leaflet-control-attribution { background: rgba(0,0,0,0.6) !important; color: #ddd !important; }
.map .leaflet-control-attribution a { color: #7dd3fc !important; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    padding: 80px 48px;
    background:
        radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 50%),
        radial-gradient(circle at 100% 100%, var(--green-soft), transparent 50%),
        var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 80px 0;
    box-shadow: var(--shadow);
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { color: var(--ink-2); max-width: 600px; margin: 0 auto 28px; font-size: 16px; }

/* ==========================================================================
   STAT BOX
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 32px 0; }
.stat-box { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; }
.stat-box strong { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.stat-box span { display: block; margin-top: 6px; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    padding: 32px 0 24px;  /* P2: 80px 0 32px → 32px 0 24px (minimalista footer) */
    margin-top: 100px;
}

/* P2: minimalista footer — csak brand, copyright, 1 jogi link. Nincs link-grid. */
.site-footer .footer-minimal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    color: var(--ink-3);
    font-size: 13px;
}
.site-footer .footer-minimal .footer-brand {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 4px;
}
.site-footer .footer-minimal .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.site-footer .footer-minimal .footer-disclaimer a {
    color: var(--accent);
    text-decoration: none;
}
.site-footer .footer-minimal .footer-disclaimer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.center { text-align: center; }
.hide { display: none; }
@media (max-width: 1024px) {
    /* 2026-08-29: hamburger menu breakpoint 768 -> 1024. A .main-nav 8 linkkel
       mar 1024px felett is szeles, ezert mar itt hamburger menure valtunk.
       A 768px alatti media query a chart/map reszponzivitasat kezeli. */
    .hide-tablet { display: none; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .main-nav, .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column;
        /* 2026-08-30: világos lenyíló menü — fehér háttér a világos oldalon. */
        background: rgba(255, 255, 255, 0.98);
        /* P3 scroll perf: ugyanaz mint a navbar-nal — blur(10px), saturate nelkul. */
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(10, 10, 10, 0.10);
        padding: 16px; gap: 4px;
        transform: translateY(-10px); opacity: 0;
        pointer-events: none;
        transition: opacity var(--t-fast), transform var(--t-fast);
        box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
        z-index: 9998;
    }
    .main-nav.is-open, .site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .main-nav a, .site-nav a {
        /* P3 fix: ne legyen 100% széles — túl széles mobilon, a szöveg
           tele kitölti a viewportot. Auto szélesség, kontrollált paddinggel. */
        width: auto;
        padding: 12px 14px;
        font-size: 15px;
        line-height: 1.3;
        border-radius: var(--radius);
        /* 2026-08-30: világos lenyíló menü — sötétszürke linkek a fehér háttéren. */
        color: #0A0A0A !important;
        white-space: nowrap;
    }
    .main-nav a:hover, .main-nav a[aria-current="page"] {
        background: rgba(56, 189, 248, 0.12);
    }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .section { padding: 64px 0; }
    .page-hero { padding: 120px 0 48px; }
    .container { padding: 0 20px; }
    /* 2026-08-29: checklist #4 — body padding mobilon, hogy a tartalom ne
       erjen a viewport szelehez. A .container mar 20px paddinget ad, de
       a containeren kivuli elemek (footer, hero overlay) is kapjanak margot.
       2026-08-30: BUG FIX — a `padding: 10px` shorthand felulirta a base body
       `padding-top: calc(64px + env(safe-area-inset-top, 0px))` erteket,
       igy a fix navbar 64px-re a hero tetejere ult, es a felso tartalom
       reszben el volt takarva (gorgoetes utan is latszott a navbar alatt).
       A padding-top-ot kulon kell tartani, hogy a navbar ne takarja a herot. */
    body {
        padding: 10px;
        padding-top: calc(64px + env(safe-area-inset-top, 0px));
    }
    /* 2026-08-29: checklist #6 — tablazatok mobilon. A tablazat szethullana,
       ha a cellak szelesebbek mint a viewport. A display:block + overflow-x:auto
       gorgethetove teszi a tablazatot vizszintesen, hogy ne torjen szet. */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    /* 2026-08-29: tablazat fejlec/karossag normalis megjelenese görgetéskor. */
    table th, table td { white-space: nowrap; }
    /* 2026-08-29: checklist #4 — h1/h2/h3 kisebb mobilon. A clamp() a
       site.css-ben mar eleve reszponziv, de biztositunk egy explicit felso limitet. */
    h1 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
    h3 { font-size: clamp(1.2rem, 4vw, 1.5rem) !important; }
    .cta-banner { padding: 48px 24px; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .main-nav, .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column;
        /* 2026-08-30: világos lenyíló menü — fehér háttér. */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(10, 10, 10, 0.10);
        padding: 16px; gap: 4px;
        transform: translateY(-10px); opacity: 0;
        pointer-events: none;
        transition: opacity var(--t-fast), transform var(--t-fast);
    }
    .main-nav.is-open, .site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    /* 2026-08-30: sötétszürke linkek a világos lenyíló menüben. */
    .main-nav a, .site-nav a { width: 100%; padding: 12px 16px; font-size: 15px; color: #0A0A0A !important; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
    .navbar, .site-footer, .filter-bar, .cta-banner, .nav-toggle { display: none !important; }
    body { background: var(--bg); color: var(--fg); }
}

/* ==========================================================================
   MOBILE UX OPTIMIZATIONS (2026-08-29)
   - safe-area-inset az iPhone notch/home indicator kezelesere
   - touch-action: manipulation a 300ms double-tap delay kikapcsolasara
   - tap target minimum 44x44 px (Apple HIG + Material Design)
   - input font-size minimum 16px (iOS autozoom fix)
   - body overflow-x: hidden a vizszintes scroll megelozesere
   - hover effektek kikapcsolasa (hover: none) tap-only eszkozokon
   - ANDROID: overscroll-behavior, tap-highlight-color, GPU acceleration
   ========================================================================== */
html {
    /* iPhone X+ notch: a body ne nyuljon a notch ala, hanem a safe-area
       szelerol induljon. */
    overflow-x: hidden;
    /* P3 fix: NE blokkoljuk a scroll-t — a none ertek egyes bongeszokben
       (Chrome-on egerrel gorgetve) megakasztja a normal scrollt is.
       A pull-to-refresh nem blokkolasa nem fontos — a hamburger fallback
       megbirkozik a frissitessel. */
    /* overscroll-behavior-y: none; eltavolitva — scroll fix */
    /* overscroll-behavior-x: none; eltavolitva — scroll fix */
}
body {
    overflow-x: hidden;
    /* Biztonsagi zóna: ne legyen vizszintes scrollbar mobilon. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Android-specifikus: a terkep es chart kontener belsejeben görgetni lehessen,
   de ne triggerelje a body pull-to-refresh-et.
   2026-08-31: USER REPORT — az aloldalakon scroll-ujjal csak egy ido utan lehet.
   A '.page-hero' kikerult a listabol, mert nincs benne belso gorgetes, es a
   'contain' egy idoig blokkolja a touch scrollt Chrome / Android rendszeren.
   A 'contain' csak a terkepen es a chart-on kell, ahol tenyleg van belso
   gorgetheto terulet. */
.map,
.deg-chart-inner,
.vin-form-card,
.deg-tabs {
    overscroll-behavior-y: contain;
}

/* P3 fix: a body szinten ne legyen scroll-blokkolo.
   2026-08-31: USER REPORT — scroll-ujjal egy ido utan lehet csak.
   Hozzaadva: explicit 'touch-action: pan-y' a body-n es a tartalmi
   konteneren, hogy a Chrome biztosan atengedje az elso touch esemenyt
   azonnal (a 'pan-y' garantalja, hogy a gorgetes horizontalis pinch
   nelkul azonnal indul). */
body {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* Az oldal fo tartalmi resze — ahol a legtobb gorgetes tortenik —
   szinten kap explicit pan-y-t. */
main,
.section,
.container {
    touch-action: pan-y;
}

/* Safe-area a fix navbarhoz: a navbar ne takarja el az iPhone notch-ot. */
.navbar {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

/* Tap target 44x44 px: a fontos gombok és linkek eleg nagyok legyenek
   ujjal is. A .btn osztaly mar eleve 44px+ magassagu, de a raw <a>
   elemek kaphatnak paddinget. */
.btn,
.map-controls .ctrl-btn,
.nav-toggle,
.cta-banner a,
.vin-submit {
    min-height: 44px;
}

/* Touch-action: kikapcsolja a 300ms double-tap delayt es a pinch-zoomot
   ahol nem kell. A terkep kontenerben a pinch-zoom kell, mashol nem. */
.btn,
.nav-toggle,
.cta-banner a,
.vin-submit,
.deg-tab,
.map-controls .ctrl-btn,
a[role="button"] {
    touch-action: manipulation;
}

/* ANDROID: a tap-highlight-color kikapcsolasa a gombokon, hogy ne villanjon
   fel egy kék/szürke keret minden tap-ra. Ehelyett a :active stílus ad
   vizuális feedbacket. */
.btn,
.nav-toggle,
.deg-tab,
.map-controls .ctrl-btn,
.vin-submit {
    -webkit-tap-highlight-color: transparent;
}

/* ANDROID: a user-select: none megakadalyozza, hogy a user hosszu nyomassal
   kijelolje a gomb szoveget, vagy a kepet elmentse a terkepen. */
.nav-toggle,
.map-controls .ctrl-btn,
.deg-tab {
    -webkit-user-select: none;
    user-select: none;
    /* A touch-callout (hosszu nyomas menu) kikapcsolasa a gombokon. */
    -webkit-touch-callout: none;
}

/* ANDROID: a Leaflet terkep kontener GPU acceleration - a görgetés/zoom
   folyékonyabb lesz, mert a böngésző a GPU-ra kényszeríti a composite-et. */
.leaflet-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Inputok: minimum 16px font-size, hogy az iOS Safari ne zoomoljon. */
input,
select,
textarea {
    font-size: 16px;
}

/* ANDROID Chrome: a soft keyboard megjelenesekor a fókuszban levo input
   scrollintoview-val a latóterbe keruljon. */
input:focus,
select:focus,
textarea:focus {
    scroll-margin-top: 80px;
}

/* Hover-only effektek kikapcsolasa tap-only eszkozokon.
   A :hover pseudo-class tap utan "beragadhat" mobilon — ezzel a media
   query-vel csak az egeres eszkozokon aktiv hover-re valtozik a stilus. */
@media (hover: none) {
    /* A hover stílusok automatikusan inaktivak, ha nincs hover kepesseg.
       Az aktiv stílusok (a:active, .is-active) maradnak a visual feedbacknek. */
    .btn:active,
    .deg-tab:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    /* Ripple-szeru feedback a Material Design stílusban. */
    .btn,
    .deg-tab,
    .map-controls .ctrl-btn,
    .nav-toggle {
        position: relative;
        overflow: hidden;
    }
}

/* Reszponzivitas finomhangolas: a 768px alatti media query-t kiegeszitjuk
   a nagyon kis kepernyokre (320-480px) is. */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .page-hero { padding: 96px 0 32px; }
    .page-hero h1, .section-title { font-size: clamp(28px, 7vw, 36px) !important; }
    .hero__subtitle, .section-sub { font-size: 16px !important; width: 100%; box-sizing: border-box; }
    .section { padding: 48px 0; }
    .deg-chart-inner { height: 460px !important; }
    .map { height: 360px !important; }
    .map-controls { top: 8px; right: 8px; }
    .map-controls .ctrl-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 40px;
    }
    .navbar { padding: 12px 0; }
    .brand { font-size: 14px; }
    .cta-banner { padding: 32px 20px; }
    .cta-banner h2 { font-size: 24px !important; }
}

@media (max-width: 380px) {
    /* Nagyon kis kepernyo (Galaxy Fold bezart, iPhone SE 1st gen) */
    .container { padding: 0 12px; }
    .map { height: 320px !important; }
}


/* ===== 2026-08-22 VIN CHECKER SECTION ===== */
.hero {
    min-height: 90vh !important;
    padding: 8rem 0 4rem !important;
}
/* 2026-09-05: USER REPORT — mobilon a 90vh hero elnyeli az egesz kepernyot.
   A user nem latja a fo tartalmat az elso foldon. Reszponziv padding +
   min-height a kisebb breakpointokon. */
@media (max-width: 1024px) {
    .hero {
        min-height: 70vh !important;
        padding: 6rem 0 3rem !important;
    }
}
@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
        padding: 5rem 0 2.5rem !important;
    }
}
.hero__title {
    /* 2026-08-23: SEO H1 expansion ("Tesla Model 3 — magyar tudásbázis"), so clamp
       upper bound lowered from 7rem to 5.5rem to keep the longer title on one line.
       2026-08-30: USER REPORT — vékonyabb betűk. 800 → 500, letter-spacing
       -0.04em → -0.02em (kevésbé tömör, természetesebb). */
    font-size: clamp(3rem, 7.5vw, 5.5rem) !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    margin: 1.5rem 0 !important;
    /* 2026-08-30: a .hero__inner text-align:center nem eleg — a .hero__title
       egy block elem, es ha nincs margin:auto, a 720px-nel nem szelesebb cim
       (mobilon a teljes szelesseg) a container bal szeletol indul. */
    margin-left: auto !important;
    margin-right: auto !important;
}
.hero__eyebrow {
    font-size: clamp(1rem, 1.4vw, 1.25rem) !important;
    /* 2026-08-30: USER REPORT — vékonyabb betűk. 600 → 500. */
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.85;
}
.hero__subtitle {
    font-size: clamp(1.4rem, 2vw, 1.875rem) !important;
    line-height: 1.5 !important;
    max-width: 720px !important;
    font-weight: 400 !important;
    opacity: 0.95;
    width: 100%;
    box-sizing: border-box;
    /* 2026-08-30: kozepre igazitas — a 720px-es doboz a .hero__inner 1100px-es
       kozepeben uljon, ne a bal szeletol induljon. */
    margin-left: auto !important;
    margin-right: auto !important;
}
.stat__value {
    /* 2026-08-30: USER REPORT — vékonyabb stat értékek. 800 → 500. */
    font-size: clamp(3.5rem, 5vw, 5rem) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}
.stat__label {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
}
.stat__sub {
    font-size: 0.95rem !important;
    opacity: 0.7;
}
.hero__cta .btn {
    font-size: 1.2rem !important;
    padding: 1rem 2rem !important;
    font-weight: 600 !important;
}
/* 2026-09-05: USER REPORT — mobilon a ket CTA gomb egymas melle szorult.
   768px alatt oszlopba rendezzuk, hogy kényelmesen kattinthato legyen. */
@media (max-width: 768px) {
    .hero__cta {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero__cta .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ===== 2026-08-22 VIN CHECKER SECTION ===== */
.vin-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated, #1a1a1a) 100%);
}
.vin-section .section-head {
    text-align: center;
    margin-bottom: 3rem;
}
.vin-section .section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent, #e31937);
    margin-bottom: 0.75rem;
}
.vin-section .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}
.vin-section .section-sub {
    font-size: 1.2rem;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.85;
}
.vin-form {
    display: flex;
    gap: 1rem;
    max-width: 720px;
    margin: 2rem auto 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.vin-input {
    flex: 1 1 320px;
    min-width: 280px;
    padding: 1.1rem 1.4rem;
    font-size: 1.25rem;
    font-family: 'SF Mono', 'Consolas', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.vin-input:focus {
    border-color: var(--accent, #e31937);
    background: rgba(255, 255, 255, 0.1);
}
.vin-submit {
    font-size: 1.1rem !important;
    padding: 1.1rem 2.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.vin-help {
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 0 auto 1.5rem;
    max-width: 720px;
}
.vin-status {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem auto 0;
    min-height: 1.5rem;
    color: var(--accent, #e31937);
}
.vin-status--ok { color: #2ea043; }
.vin-status--error { color: #f85149; }
.vin-result {
    max-width: 880px;
    margin: 2rem auto 0;
}
.vin-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.vin-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.vin-card__title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}
.vin-card__sub {
    font-size: 1.05rem;
    opacity: 0.75;
    margin-top: 0.5rem;
}
.vin-card__vin {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 1rem;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}
.vin-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
}
.vin-card__meta div { margin: 0; }
.vin-card__meta dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}
.vin-card__meta dd {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}
.vin-specs__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
}
.vin-specs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.vin-spec {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.vin-spec__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}
.vin-spec__value {
    font-size: 1.15rem;
    font-weight: 700;
}
.vin-note {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.85;
    margin: 1.5rem 0 0;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== 2026-08-22 DESIGN TOKENS (P5 — Soma design concept) =====
   2026-08-30: USER KÉRÉS — "Tesla Model 3 — magyar tudásbázis rossz helyen
   használsz stilust, azt szeretném látni mindenhol ezt a világosat". Ezt
   a Soma design concept által definiált sötét (kék-páletta) tokent felülírom
   világos értékekkel, mert a user a világos stílust kéri mindenhol. A két
   :root blokk közül ez a második nyer (mert később van), tehát itt kell
   felülírni a színeket. */
:root {
    /* === VILÁGOS PALETTA — Tesla.com "white, grey, black" minimalista stílus === */
    --bg: #FAFAF7;             /* világos krém — elsődleges háttér */
    --bg-elevated: #F4F4F0;    /* világos szürke — kártyák, glass-panelek */
    --bg-card: #FFFFFF;        /* fehér — kiemelt kártyák */
    --bg-deep: #E8E8E2;        /* kissé sötétebb szürke — kontraszt szegélyek */

    --fg: #0A0A0A;             /* elsődleges szöveg - sötétszürke, könnyen olvasható világos háttéren */
    --fg-muted: #3A3A3A;       /* másodlagos szöveg */
    --fg-dim: #5C5C5C;         /* halvány címke */

    --primary: #0075DE;        /* Tesla Electric Blue — elsődleges akcent */
    --primary-hover: #005BAB;
    --primary-glow: rgba(0, 117, 222, 0.40);

    --secondary: #A78BFA;      /* lila — másodlagos akcent (volt cyan) */
    --secondary-hover: #C4B5FD;
    --secondary-glow: rgba(167, 139, 250, 0.30);

    --accent: #A78BFA;         /* lila — Performance kiemelés (megtartva) */
    --accent-hover: #C4B5FD;

    --chip-bg: rgba(0, 117, 222, 0.08);
    --chip-border: rgba(0, 117, 222, 0.30);
    --chip-text: #0075DE;
    --chip-glow: rgba(0, 117, 222, 0.20);

    --success: #108C3D;        /* zöld — valid VIN */
    --warning: #B45309;        /* sötétebb sárga — figyelem */
    --danger: #DC2626;         /* piros — hiba */

    --border: rgba(10, 10, 10, 0.12);          /* sötét átlátszó elválasztó */
    --border-soft: rgba(10, 10, 10, 0.06);
    --border-glow: rgba(0, 117, 222, 0.20);

    --font-display: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas, monospace;

    --container-max: 1440px;
    --container-pad: clamp(16px, 4vw, 48px);
    --section-py: clamp(4rem, 8vw, 7rem);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 32px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* 2026-08-30: világos box-shadow-k, nincs sötét glow. */
    --shadow-card: 0 1px 3px rgba(10, 10, 10, 0.04), 0 4px 12px rgba(10, 10, 10, 0.06);
    --shadow-glow: 0 0 24px rgba(0, 117, 222, 0.15);
    --shadow-glass: 0 8px 32px rgba(10, 10, 10, 0.08);
}

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

html {
    scroll-behavior: auto;
    background: var(--bg);
}

body {
    font-family: var(--font-body);
    color: var(--fg);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ==========================================================================
   HERO — Tesla modern (világos, letisztult)
   2026-08-30: USER KÉRÉS — "Adj az oldalnak modern Tesla-stílusú dizájnt.
   Fehér, szürke, fekete, minimál ikonok, nagy whitespace."
   A hero most világos (#FAFAF7) hátterű, sötétszürke (#0A0A0A) szöveggel,
   egy letisztult Model 3 sziluett SVG-vel a jobb oldalon, és egy erős
   CTA-val a VIN dekóderhez. Az oldal többi része megtartja a sötét
   összképet (design system kompatibilis), de a hero "belépési pontként"
   modern, világos, Tesla.com-stílusú.
   ========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 0 6rem;
    background: linear-gradient(180deg, #FAFAF7 0%, #FFFFFF 100%);
    color: #0A0A0A;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero__bg::before {
    /* Finom radial gradient a bal felső sarokban — Tesla.com "halo" effekt. */
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(0, 117, 222, 0.06) 0%, transparent 60%);
}
.hero__bg::after {
    /* Finom radial gradient a jobb alsó sarokban. */
    content: '';
    position: absolute;
    bottom: -15%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.04) 0%, transparent 60%);
}
.hero__art {
    /* A Model 3 sziluett SVG a jobb oldalon, opcionális dekoráció.
       2026-09-05: USER REPORT — mobilon a sziluett a cimet es a CTA gombokat
       takarta. 768px alatt elrejtve, hogy a tartalom tisztan latszodjon. */
    position: absolute;
    right: 4%;
    bottom: 8%;
    width: 480px;
    height: auto;
    max-width: 50%;
    opacity: 0.92;
    z-index: 1;
    filter: drop-shadow(0 12px 32px rgba(10, 10, 10, 0.12));
}
@media (max-width: 768px) {
    .hero__art { display: none !important; }
}
@media (max-width: 768px) {
    .hero__art { display: none; }  /* Mobilon nincs sziluett, helyette a szöveg kapja a teljes szélességet. */
}

/* P2: stat counter animáció — amikor a stat láthatóvá válik */
@keyframes statCountUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat__value {
    animation: statCountUp 600ms var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.30), transparent 60%),
                radial-gradient(ellipse 60% 80% at 100% 100%, rgba(6, 182, 212, 0.20), transparent 60%),
                radial-gradient(ellipse 50% 50% at 0% 100%, rgba(167, 139, 250, 0.15), transparent 60%);
    z-index: 0;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, var(--bg) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    padding: 0 var(--container-pad);
    /* 2026-08-30: világos hero — a szöveg sötét (#0A0A0A) a #FAFAF7 háttéren. */
    color: #0A0A0A;
}
.hero__eyebrow {
    /* 2026-08-30: világos hero — sötétszürke glass badge. */
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #1A1A1A;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(10, 10, 10, 0.12);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 3px rgba(10, 10, 10, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    /* 2026-08-30: USER REPORT — vékonyabb betűk. 500 marad, de a color
       #0A0A0A (sötét) a világos hero háttéren. A text-shadow eltévolítva,
       mert a sötét szöveg nem igényel halo-t a világos háttéren. */
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    color: #0A0A0A;
}
.hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
/* 2026-08-30: a .hero__subtitle masodik deklaracioja — a fo deklaracio (sor ~876)
   mar tartalmazza a margin-left/right: auto-t. Ez a blokk csak a szin/font beallitasokert felel. */
.hero__subtitle {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto 3rem;
    /* 2026-08-30: világos hero — sötétszürke (#3A3A3A) a #FAFAF7 háttéren. */
    color: #3A3A3A;
    font-weight: 400;
    width: 100%;
    box-sizing: border-box;
}

/* Glassmorphism stat cards — 2026-08-30: világos hero, világos stat kártyák. */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto 3rem;
}
/* 2026-09-05: USER REPORT — a 180px minmax miatt 360px viewport alatt a 4 stat
   egymas melle szorult, nehezen olvashatova valt. Mobilon 2x2 grid. */
@media (max-width: 768px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        max-width: 100% !important;
    }
}
@media (max-width: 380px) {
    .hero__stats {
        /* Nagyon kis kepernyon (iPhone SE 1gen, Galaxy Fold) 1 oszlop */
        grid-template-columns: 1fr !important;
    }
}
.stat {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 3px rgba(10, 10, 10, 0.04);
}
.stat:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 10, 10, 0.18);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
}
.stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    /* 2026-08-30: USER REPORT — vékonyabb stat értékek. 800 → 500. */
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.01em;
    /* 2026-08-30: világos hero — sötétszürke. */
    color: #0A0A0A;
    margin-bottom: 0.5rem;
}
.stat__value--accent {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.stat__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.25rem;
}
.stat__sub {
    font-size: 0.8125rem;
    color: #E0EAFA;  /* 2026-08-22 BRIGHTER */
    font-weight: 500;
}

/* ===== HERO CTA — modern, világos ===== */
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem;
    margin: 2.5rem auto 1rem;
    max-width: 720px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary {
    background: rgba(232, 33, 39, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(232, 33, 39, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(232, 33, 39, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--fg);
    border-color: var(--border-soft);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* P2: .hero__scroll és @keyframes heroPulse eltávolítva — a 'Görgess lejjebb' hint
   a hero-ból törlődött, hogy ne ösztönözzön ugrálásra. */

/* ===== SECTION HEADERS ===== */
.section {
    padding: var(--section-py) 0;
}
.section--alt {
    background: var(--bg-elevated);
}
.section-head {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3.5rem;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--chip-text);
    padding: 0.4rem 1rem;
    border: 1px solid var(--chip-border);
    border-radius: 100px;
    background: var(--chip-bg);
    box-shadow: 0 0 20px var(--chip-glow);
    margin-bottom: 1.25rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--fg);
    margin: 0 0 1rem;
}
.section-sub {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.55;
    color: var(--fg-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* ===== DEGRADATION — 3-COL CARD GRID + PROGRESS BARS + LIGHT CHART ===== */
.deg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}
/* 2026-08-30: a nagyon kis kepernyokon (360px alatt) a deg-grid ne probaljon
   280px minmax-ot tartani — egy oszlopba csukja magat, es a card-ok belső
   flex-jei (deg-card__head) ne csusszanak szet. */
@media (max-width: 420px) {
    .deg-grid { grid-template-columns: 1fr; gap: 1rem; }
}
.deg-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.deg-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}
.deg-card__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.deg-card__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--fg-muted);
}
.deg-card__value {
    font-family: var(--font-mono);
    font-size: 2rem;
    /* 2026-08-30: USER REPORT — vékonyabb betűk. 700 → 500. */
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.deg-card__sub {
    font-size: 0.875rem;
    color: var(--fg-muted);
    margin-bottom: 1.25rem;
}
.deg-card__bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.deg-card__bar-fill {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 16px var(--primary-glow);
    width: var(--pct, 92%);
    transition: width 0.6s var(--ease-out);
}
.deg-card__legend {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-muted);
    letter-spacing: 0.05em;
}

/* Light mode chart container (design contrast) */
.deg-chart-wrap {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    color: #1a1a26;  /* sötét szöveg — fehér chart-háttérhez */
}
/* 2026-09: mobilon a 2rem (32px) padding túl sok — csökkentjük,
   hogy a chart canvas több helyet kapjon. */
@media (max-width: 600px) {
    .deg-chart-wrap { padding: 1rem; }
}
/* NOTE: .deg-chart-wrap .deg-section-{eyebrow,title,sub} rules removed 2026-08-23 — dead code, no HTML element uses these classes (verified across pages/*.html). Was causing confusion with hardcoded grey #555/#3a3a3a text. */
.deg-chart-inner {
    position: relative;
    background: #ffffff;
    border-radius: var(--r-md);
    padding: 1.5rem;
    /* 2026-08-29: noveltuk 620 -> 680, mert a Chart.js beepitett legend-je
       "bottom" pozicioval a chart aljan jelenik meg, es a 3 akkufajta
       rovid leirasaval egyutt ~60px helyet foglal. */
    height: 680px;
}
/* 2026-09: reszponzív chart-magasság — mobilon a fix 540px túl nagy.
   Tablett 540px, nagy mobil 420px, kis mobil 360px. A chart aspect
   ratioja 16:9-hez közeli marad (320px szélesség -> 380px magasság). */
@media (max-width: 900px) {
    .deg-chart-inner { height: 500px; padding: 1.25rem; }
}
@media (max-width: 600px) {
    .deg-chart-inner { height: 420px; padding: 1rem; }
}
@media (max-width: 420px) {
    .deg-chart-inner { height: 360px; padding: 0.75rem; }
}
.deg-chart-wrap canvas {
    /* 2026-08-23: was 500px then 760px — replaced by .deg-chart-inner fixed height. */
    width: 100% !important;
    height: 100% !important;
    max-height: none;
    /* 2026-09: a Chart.js canvas kapjon pinch-zoom + pan-y touch action-t —
       a tooltip-re kellenek a touch események, de a görgetés maradjon
       folyékony, ha a chart fölé görget a user. */
    touch-action: pinch-zoom pan-y;
    -webkit-user-select: none;
    user-select: none;
}

/* 2026-08-29: egyedi HTML legend a degradation chart alatt, a chart-wrapon
   KIVUL (testver elem), hogy ne logjon bele a chart felső vonal-neveibe.
   A chart-wrap es a legend kozotti tavolsag ~48px a `margin-top`-pal. */
.deg-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 24px;
    margin: 48px auto 0;
    max-width: 1100px;
    padding: 22px 24px;
    background: #f8fafc;
    border: 1px solid rgba(8, 47, 73, 0.10);
    border-radius: var(--r-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.deg-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.45;
}
.deg-legend-dot {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 4px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(8, 47, 73, 0.10);
}
/* A chart színeihez igazítva (NCA=#8b5cf6 lila, NCM811=#ef4444 piros, LFP=#f59e0b narancs). */
.deg-legend-dot.nca  { background: #8b5cf6; }
.deg-legend-dot.ncm  { background: #ef4444; }
.deg-legend-dot.lfp  { background: #f59e0b; }
.deg-legend-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.deg-legend-name {
    color: #020a14;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Inter Tight', system-ui, sans-serif;
}
.deg-legend-desc {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}
@media (max-width: 720px) {
    .deg-legend { grid-template-columns: 1fr; padding: 14px 16px; }
    .deg-legend-desc { font-size: 12px; }
}
/* 2026-09: nagyon keskeny képernyőn a legend még kisebb. */
@media (max-width: 420px) {
    .deg-legend { padding: 12px 12px; gap: 10px; }
    .deg-legend-name { font-size: 13px; }
    .deg-legend-desc { font-size: 11px; line-height: 1.4; }
}

/* 2026-08-23 REVERT: removed .deg-chart-section wrappers — main page now uses a
   single tabbed chart (1 line chart, 3 lines: NCA / NCM811 / LFP), same as kalkulator.html.
   The .deg-chart-head / -eyebrow / -title / -lead block above stays — it is the
   header of the chart-wrap and renders above the tabs. */
.deg-chart-head {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(8, 47, 73, 0.10);
}
.deg-chart-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #0075DE;  /* sötét kék akcent — fehér chart-háttéren olvasható */
    margin-bottom: 0.6rem;
}
.deg-chart-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    /* 2026-08-30: USER REPORT — vékonyabb betűk. 800 → 500. */
    font-weight: 500;
    color: #020a14;  /* SÖTÉT cím — fehér chart-háttéren */
    margin: 0 0 0.6rem;
    letter-spacing: -0.015em;
    line-height: 1.15;
}
.deg-chart-lead {
    font-size: 1rem;
    line-height: 1.55;
    color: #1a1a26;
    max-width: 720px;
    margin: 0;
}

.deg-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.deg-tab {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1a1a26;
    background: rgba(11, 11, 15, 0.06);
    border: 1px solid rgba(11, 11, 15, 0.15);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    /* 2026-09: 44x44 px tap target biztosítása (Apple HIG / Material). */
    min-height: 44px;
}
/* 2026-09: mobilon a tab-gombok kicsit nagyobbak és támogatják a flex-wrap-ot
   ha a viewport nagyon keskeny. */
@media (max-width: 480px) {
    .deg-tab {
        padding: 0.65rem 1.1rem;
        font-size: 0.78rem;
        flex: 1 1 auto;
        text-align: center;
    }
    .deg-tabs { gap: 0.4rem; }
}
.deg-tab:hover { background: rgba(11, 11, 15, 0.12); }
.deg-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.deg-note {
    text-align: center;
    font-size: 0.875rem;
    /* 2026-08-23: the .deg-note lives INSIDE the white .deg-chart-wrap on every
       chart (degradation, kalkulator, tco), so the text must be DARK here. The
       var(--fg-muted) token is now bright (was lum 85, invisible on dark --bg;
       rebrightened to #D6E2EE) which would now be invisible on the white wrap.
       Pin the colour to a dark token that reads on both white wrap and, for the
       rare cases where it leaks out, on dark sections. */
    color: var(--fg-muted);  /* FALLBACK — overridden by .deg-chart-wrap .deg-note below */
    margin: 1.5rem 0 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/* 2026-08-23: the .deg-note is always inside the white chart-wrap → dark text. */
.deg-chart-wrap .deg-note {
    color: #1a1a26;
}

/* ===== VIN CHECKER — full-width sticky form + live preview ===== */
.vin-section {
    padding: var(--section-py) 0;
    background: var(--bg);
}
.vin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 900px) {
    .vin-grid { grid-template-columns: 1fr; }
}
.vin-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}
.vin-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.vin-input {
    flex: 1;
    padding: 1.1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--r-sm);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.vin-input:focus {
    border-color: var(--primary);
    background: rgba(232, 33, 39, 0.08);
}
.vin-submit {
    padding: 1rem 1.75rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.vin-submit:hover { background: var(--primary-hover); transform: translateY(-2px); }
.vin-help {
    font-size: 0.8125rem;
    color: var(--fg-muted);
    margin-top: 0.75rem;
    font-family: var(--font-mono);
}
.vin-status {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--fg-muted);
    min-height: 1.5rem;
}
.vin-status--ok { color: var(--success); }
.vin-status--error { color: var(--danger); }

.vin-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.vin-preview__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg);
}
.vin-preview__sub {
    font-size: 0.9375rem;
    color: var(--fg-muted);
}
.vin-preview__vin {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0.5rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--r-sm);
    display: inline-block;
    width: fit-content;
    margin-top: 0.5rem;
}
.vin-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}
.vin-spec {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-sm);
    padding: 0.75rem 1rem;
}
.vin-spec__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    margin-bottom: 0.3rem;
}
.vin-spec__value {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--fg);
}

/* 2026-08-23: position-by-position VIN decoder UI.
   Each .vin-pos shows one or more VIN characters, the label, and a short hint. */
.vin-positions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.4rem;
    margin: 1.25rem 0 0.75rem;
    padding: 0.875rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--r-sm);
    border: 1px solid var(--border-soft);
}
.vin-pos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--r-sm);
    text-align: center;
}
.vin-pos__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--fg-muted);
    letter-spacing: 0.05em;
}
.vin-pos__char {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}
.vin-pos__hint {
    font-size: 0.65rem;
    color: var(--fg-muted);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.vin-pos--invalid .vin-pos__char {
    color: var(--danger);
}
.vin-pos--invalid .vin-pos__hint {
    color: var(--danger);
}

/* Full labelled grid (WMI / Modell / Body / Restraint / Motor / Akku / Év / Gyár / Serial) */
.vin-decoded-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}
.vin-decoded-cell {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-sm);
    padding: 0.65rem 0.85rem;
}
.vin-decoded-cell__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    margin-bottom: 0.3rem;
}
.vin-decoded-cell__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.4;
}

.vin-specs--unknown {
    display: block;
}
.vin-specs--unknown p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.08);
    border-radius: var(--r-sm);
    border-left: 3px solid var(--warning);
}
.vin-spec-note {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--orange);
    border-radius: var(--r-sm);
    color: var(--fg);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 2026-08-23: ambiguous variant note — used when 8th digit is 'B' and AWD,
   so both Long Range and Performance are possible (Tesla did not differentiate
   in the VIN for 2018-2020 Model 3). */
.vin-ambiguous-note {
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-sm);
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.25rem;
}
.vin-ambiguous-note p {
    margin: 0 0 0.65rem;
    color: var(--fg);
    font-size: 0.95rem;
    line-height: 1.55;
}
.vin-ambiguous-note p:last-child { margin-bottom: 0; }
.vin-ambiguous-note ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
    color: var(--fg-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.vin-ambiguous-note ul li { margin-bottom: 0.3rem; }
.vin-ambiguous-note a {
    color: var(--primary);
    text-decoration: underline;
}
.vin-specs__grid--ambiguous {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.vin-specs__grid--ambiguous .vin-spec {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.25);
}
.vin-spec--default {
    border-color: var(--primary) !important;
    background: rgba(56, 189, 248, 0.1) !important;
    box-shadow: 0 0 0 1px var(--primary);
}
.vin-spec--alternative {
    border-style: dashed;
    opacity: 0.85;
}
.vin-spec__default-badge,
.vin-spec__alt-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    vertical-align: middle;
}
.vin-spec__default-badge {
    background: var(--primary);
    color: #02161F;
}
.vin-spec__alt-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg-muted);
    border: 1px solid var(--border-soft);
}
@media (max-width: 600px) {
    .vin-specs__grid--ambiguous { grid-template-columns: 1fr; }
}
.vin-card--unknown .vin-card__sub {
    color: var(--warning);
}
.vin-status--warn {
    color: var(--warning);
}

/* 2026-08-23: official Tesla Recall Search callout below the VIN checker */
.vin-recall-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(56, 189, 248, 0.02));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
}
.vin-recall-box__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.vin-recall-box__body {
    flex: 1;
    min-width: 0;
}
.vin-recall-box__body strong {
    display: block;
    font-size: 1.0625rem;
    color: var(--fg);
    margin-bottom: 0.4rem;
}
.vin-recall-box__body p {
    margin: 0 0 0.75rem;
    color: var(--fg-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}
.vin-recall-box__cta {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    background: var(--primary);
    color: #02161F !important;  /* sötét szöveg a világos akcent gombon */
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--r-pill);
    text-decoration: none;
    transition: background var(--t-fast), transform var(--t-fast);
}
.vin-recall-box__cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
@media (max-width: 540px) {
    .vin-recall-box { flex-direction: column; gap: 0.75rem; padding: 1rem; }
    .vin-recall-box__icon { font-size: 1.5rem; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* Reduced motion — P2 design spec, section 7 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto !important; }
}

/* P2: globális focus-visible accent-glow (CTA-k, linkek, inputok) */
:focus-visible {
    outline: 2px solid var(--accent, #38BDF8);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible,
.hero__cta a:focus-visible {
    outline: 2px solid var(--accent, #38BDF8);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}


/* ===== 2026-08-22 PAGES / SUB-PAGES — unify with main hero design ===== */
.page-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 0 5rem;
    background: var(--bg);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.30), transparent 60%),
                radial-gradient(ellipse 60% 80% at 100% 100%, rgba(6, 182, 212, 0.20), transparent 60%),
                radial-gradient(ellipse 50% 50% at 0% 100%, rgba(167, 139, 250, 0.15), transparent 60%);
    z-index: 0;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 60%, var(--bg) 100%);
    z-index: 1;
    pointer-events: none;
}
.page-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}
.page-hero .breadcrumb {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--fg-muted);
}
.page-hero .breadcrumb a {
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.page-hero .breadcrumb a:hover { color: var(--primary); }
.page-hero .breadcrumb-sep { color: var(--fg-dim); }
.page-hero .eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--chip-text);
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--chip-border);
    border-radius: 100px;
    background: var(--chip-bg);
    box-shadow: 0 0 24px var(--chip-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-bottom: 2rem;
}
.page-hero h1 {
    font-family: var(--font-display);
    /* 2026-09: 'Tesla Model 3 — magyar tudásbázis' hero cim stílusát
       alkalmazzuk az aloldalak H1-jére is: weight 800 -> 500,
       letter-spacing -0.04em -> -0.02em, line-height 1 -> 1.05.
       A méret marad clamp(3rem, 7vw, 6rem) — a hero 5.5rem-je keskenyebb,
       mert a hero cim rövidebb szövegre van kalibrálva. */
    font-size: clamp(3rem, 7vw, 6rem) !important;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    color: var(--fg);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.page-hero .lead {
    font-size: clamp(1.125rem, 1.7vw, 1.5rem) !important;
    line-height: 1.5;
    max-width: 760px;
    margin: 0 auto;
    color: var(--fg-muted);
    font-weight: 400;
}

/* Sub-page generic content typography — matches main page section style */
.page-hero + .section .container > h2:first-child,
.page-hero + main .container > h2:first-child,
main .section h2,
main > .container > h2:first-child {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--fg);
    margin: 0 0 1.5rem;
}
main .section h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin: 2rem 0 1rem;
}
main p, main li {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--fg);
    margin-bottom: 1rem;
}
main a { color: var(--primary); transition: color 0.2s; }
main a:hover { color: var(--primary-hover); }

/* Cards & boxes */
.card, .box {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.card:hover, .box:hover { transform: translateY(-4px); border-color: rgba(125, 211, 252, 0.3); }

/* Buttons on sub-pages */
main .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}
main .btn--primary {
    background: rgba(56, 189, 248, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.35);
}
main .btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
main .btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--fg);
    border-color: var(--border-soft);
}
main .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Generic tables & forms on sub-pages */
main table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    margin: 1.5rem 0;
}
main th, main td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    font-size: 1rem;
}
main th {
    background: rgba(56, 189, 248, 0.08);
    color: var(--chip-text);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
main tr:last-child td { border-bottom: 0; }
main tr:hover td { background: rgba(255, 255, 255, 0.02); }

main input, main select, main textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--r-sm);
    padding: 0.875rem 1rem;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}
main input:focus, main select:focus, main textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.06);
}
main label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}


/* ===== 2026-08-22 SUB-PAGE EMPHASIS — bigger fonts for TCO + hibak ===== */
main.tco-page h2,
main.tco-page h3,
main.tco-page p,
main.tco-page li,
main.tco-page label,
main.tco-page table th,
main.tco-page table td {
    font-size: 1.25rem;
}
main.tco-page h1 { font-size: clamp(3rem, 7vw, 6rem) !important; }
main.tco-page .page-hero .lead { font-size: clamp(1.25rem, 2vw, 1.75rem) !important; }

main.hibak-page h2,
main.hibak-page h3,
main.hibak-page p,
main.hibak-page li,
main.hibak-page label,
main.hibak-page table th,
main.hibak-page table td {
    font-size: 1.25rem;
}
main.hibak-page h1 { font-size: clamp(3rem, 7vw, 6rem) !important; }
main.hibak-page .page-hero .lead { font-size: clamp(1.25rem, 2vw, 1.75rem) !important; }

/* Extra emphasis on the page-hero h1 — even on other sub-pages */
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem) !important; }
.page-hero .lead { font-size: clamp(1.125rem, 1.7vw, 1.5rem) !important; }

/* Result/stat values on sub-pages — make them BIG and visible */
main .res-stat,
main .stat-value,
main #res-kapacitas,
main #res-hatótav-új,
main #res-hatótav-most,
main #res-hatótav-tél,
main #res-hatótav-autóp,
main #res-eves,
main #res-10ev,
main #res-benzines,
main #res-megtakaritas {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 24px var(--primary-glow);
}

/* 2026-09-05: USER REPORT — a kovetkezo ures szabaly (result-card/result-box)
   nem volt lezarva, igy az egesz fajl vegeig ervenyesnek szamitott. Javítva. */
/* Result cards on sub-pages */
main .result-card,
main .result-box,
main #res-kapacitas,
main #res-eves,
main #res-10ev,
main #res-megtakaritas {
    /* szandekosan ures — a .result-card / .result-box / #res-* elemek stilusait
       a .result / .result-sub / .highlight szabalyok adjak. */
}

/* ===== 2026-08-23: Main-page section previews (TCO, szervizek/töltők, hibák, közösség) ===== */

/* Bigger section padding so the new preview sections breathe on the page. */
.section--preview {
    padding: clamp(80px, 10vw, 140px) 0;
}

/* TCO comparison card — bigger numbers, more space, premium feel */
.tco-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 980px;
    margin: 0 auto;
}
.tco-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: var(--shadow-card);
}
.tco-preview__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.875rem);
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 1.75rem;
    line-height: 1.25;
}
.tco-preview__comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin: 1.5rem 0 2.25rem;
}
.tco-preview__side {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: var(--r-md);
    border: 1px solid var(--border-soft);
}
.tco-preview__side--ev {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}
.tco-preview__side--ice {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}
.tco-preview__label {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    font-weight: 600;
}
.tco-preview__value {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.tco-preview__sub {
    font-size: 0.9375rem;
    color: var(--fg-muted);
    line-height: 1.55;
}
.tco-preview__vs {
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--fg-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* 2026-08-23: bigger, bolder CTA button for preview-section primary actions.
   User feedback: the 'TCO kalkulátor megnyitása' button was tiny and RED
   (rgba(232, 33, 39, 0.9) from the older .btn--primary rule) compared
   to the headline numbers. This class explicitly forces the new blue
   accent (var(--primary) = rgba(56, 189, 248, 0.9)) and overrides the
   inherited .btn--primary red, so the button looks like a modern
   primary action — big, rounded, glowing. */
.btn--cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--r-pill);
    min-width: 320px;
    /* Explicit override of .btn--primary red */
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95) 0%, rgba(56, 189, 248, 0.85) 100%) !important;
    color: #06121E !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        0 4px 16px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}
.btn--cta::after {
    content: "→";
    transition: transform 0.2s var(--ease-out);
    margin-left: 2px;
    font-weight: 600;
}
.btn--cta:hover {
    transform: translateY(-2px);
    /* Explicit override on hover too */
    background: linear-gradient(135deg, rgba(56, 189, 248, 1) 0%, rgba(56, 189, 248, 0.95) 100%) !important;
    color: #06121E !important;
    filter: brightness(1.05);
    box-shadow:
        0 10px 28px rgba(56, 189, 248, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.btn--cta:hover::after { transform: translateX(5px); }
.btn--cta:active {
    transform: translateY(0);
}

/* 2026-08-23: bigger CTA buttons for the hibak/kozosseg preview cards too,
   so all preview-section CTAs are at the same visual weight. */
.srv-tolt-card .btn,
.kozosseg-preview-card .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
}
.hibak-preview-cta .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Szervizek / Töltők overview — bigger cards, more breathing room */
.srv-tolt-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    max-width: 1000px;
    margin: 0 auto;
}
.srv-tolt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-card);
    display: flex;          /* P2: CTA mindig alulra */
    flex-direction: column;
    transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.srv-tolt-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.12);
}
.srv-tolt-card__icon {
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}
.srv-tolt-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 0.75rem;
    line-height: 1.25;
}
.srv-tolt-card p {
    color: var(--fg-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

/* P2: preview-kártya CTA — Tesla/Polestar "card-as-link" minta.
   A teljes kártya klikkelhető <a>, a CTA-szöveg a kártya alján kis caption stílusban. */
.card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    /* a kártya-stílust a szülő osztály adja (srv-tolt-card, kozosseg-preview-card, tco-preview-card) */
}
.card-link:hover { color: inherit; }

.card-link__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;             /* mindig a kártya aljára */
    padding-top: 1.25rem;
    color: var(--primary, #38BDF8);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color var(--t-fast), gap var(--t-fast);
}
.card-link__cta::after {
    content: '→';
    font-size: 16px;
    transition: transform var(--t-fast);
}
.card-link:hover .card-link__cta {
    color: #0ea5e9;
    gap: 10px;
}
.card-link:hover .card-link__cta::after {
    transform: translateX(3px);
}

/* Hibák preview kártyák — nincs CTA, csak adat. Hover emelés. */
.hibak-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.hibak-preview-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.12);
}
.hibak-preview__title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.hibak-preview__cost {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
    letter-spacing: 0.01em;
}
.hibak-preview__note {
    font-size: 1rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin: 0;
}
.hibak-preview-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 1.5rem;
}
.hibak-preview-cta .btn-card {
    width: auto;            /* P2: ne legyen 100%, maradjon kompakt */
    flex: 1 1 320px;
    max-width: 460px;
}

/* Közösség preview — bigger icons and titles */
.kozosseg-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}
.kozosseg-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-card);
    display: flex;          /* P2: CTA mindig alulra */
    flex-direction: column;
    transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.kozosseg-preview-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.12);
}
.kozosseg-preview__icon {
    display: block;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}
.kozosseg-preview__title {
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 1.8vw, 1.625rem);
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 0.75rem;
    line-height: 1.25;
}
.kozosseg-preview-card p {
    color: var(--fg-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

@media (max-width: 640px) {
    .tco-preview__comparison { grid-template-columns: 1fr; }
    .tco-preview__vs { padding: 0.5rem 0; }
    .hibak-preview-cta { flex-direction: column; align-items: stretch; }
    .hibak-preview-cta .btn { text-align: center; }
    .btn--cta { min-width: 0; width: 100%; }
}


/* ============================================================
   2026-08-31: gumi.html-hez hasznalt kiegészitő stílusok.
   A card / table-wrap / spec-list / reveal animációk amik a
   tobbi aloldalon nem kellenek, de a gumi oldal kártyás
   layoutjahoz igen.
   ============================================================ */

/* .card-tag: kártya cimkéje (badge) */
.card-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--ink, rgba(0,0,0,0.85));
    margin-bottom: 12px;
}

/* .card-head: a kártya felső része (tag + h3) */
.card-head { margin-bottom: 16px; }
.card-head h3 { margin: 4px 0 0; }

/* .spec-list: stílusos specifikációs lista (gumi.html) */
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.7;
}
.spec-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list strong { color: var(--ink, rgba(0,0,0,0.95)); font-weight: 600; }

/* .muted: halvány kiegészítő szöveg */
.muted { color: rgba(0, 0, 0, 0.55); font-size: 14px; }
.muted a { color: var(--accent, #0075DE); }

/* .link-card: egész kártya linkként működik */
a.card.link-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.card.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--accent, #0075DE);
}

/* .table-wrap: reszponziv tablazat container */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line, rgba(0,0,0,0.08));
    border-radius: var(--radius-lg, 12px);
    margin: 16px 0 24px;
}
.table-wrap .table { margin: 0; }

/* .reveal + .is-visible: scroll reveal animáció */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* .muted small: finomabb méret */
.muted small { font-size: 13px; }
