 

:root {
    /* ---- Brand palette (dark + warm orange) ---- */
    --bg:            #0c0a08;          /* page background */
    --bg-soft:       #15110d;          /* card / panel */
    --bg-soft-2:     #1d1812;          /* elevated panel */
    --line:          rgba(255,255,255,.08);
    --line-strong:   rgba(255,255,255,.16);

    --fg:            #f7f1e3;          /* main text / cream */
    --fg-dim:        #c9bfae;          /* secondary text */
    --muted:         #8a8273;          /* tertiary */

    --brand:         #f97316;          /* warm orange */
    --brand-2:       #fb923c;
    --brand-glow:    rgba(249, 115, 22, .35);
    --brand-soft:    rgba(249, 115, 22, .12);

    --danger:        #f87171;
    --ok:            #34d399;

    /* ---- Typography ---- */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* ---- Layout / spacing (fluid) ---- */
    --max-width: min(86rem, 92vw);
    --radius-s: .5rem;
    --radius-m: .9rem;
    --radius-l: 1.4rem;
    --radius-pill: 999rem;

    --pad-section: clamp(2.5rem, 6vw, 6rem);
    --pad-card:    clamp(1.25rem, 2.4vw, 2rem);
    --gap:         clamp(1rem, 2vw, 1.75rem);

    /* ---- Effects ---- */
    --shadow-soft:    0 .5rem 2.5rem -1rem rgba(0,0,0,.6);
    --shadow-brand:   0 1rem 3rem -1rem var(--brand-glow);
    --grad-radial:    radial-gradient(75% 60% at 50% 0%, rgba(249,115,22,.18), transparent 60%);
    --grad-grid:      repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 .0625rem, transparent .0625rem .12rem),
                      repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 .0625rem, transparent .0625rem .12rem);
}

/* =========================================================
   Reset
   ========================================================= */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.55;
    font-size: clamp(.95rem, .55vw + .85rem, 1.05rem);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: var(--grad-radial);
    background-repeat: no-repeat;
    background-size: 100% 60vh;
    /* Sticky-footer layout: short pages (e.g. Blog) keep the footer pinned
       to the bottom instead of floating mid-screen with empty space below. */
    display: flex;
    flex-direction: column;
}
/* main grows to fill the viewport so the footer never leaves a gap below it */
body > main { flex: 1 0 auto; }
body > footer { flex: 0 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* =========================================================
   Header / nav
   ========================================================= */
header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12,10,8,.92);   /* more opaque = less blur needed */
    backdrop-filter: blur(.25rem);   /* was .75rem — huge GPU cost on mobile */
    -webkit-backdrop-filter: blur(.25rem);
    border-bottom: .0625rem solid var(--line);
    will-change: transform;          /* own GPU layer = no repaint on scroll */
    transform: translateZ(0);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
/* Header condenses + lifts once scrolled (class toggled by anim.js, rAF).
   Only padding/shadow/bg transition — all compositor-cheap, fires once at
   the 24px threshold (not per frame), so it stays smooth and steady. */
header.scrolled {
    background: rgba(12,10,8,.98);
    border-bottom-color: var(--line-strong);
    box-shadow: 0 .5rem 1.6rem -.8rem rgba(0,0,0,.75);
}
.nav-wrap { transition: padding .25s ease; }
header.scrolled .nav-wrap { padding-top: .5rem; padding-bottom: .5rem; }
.nav-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(.7rem, 1.4vw, 1.1rem) 0;
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: clamp(.6rem, 1.2vw, 1.2rem);
}
.brand { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.logo {
    width: clamp(2.4rem, 3.4vw, 3.2rem);
    height: clamp(2.4rem, 3.4vw, 3.2rem);
    border-radius: var(--radius-s);
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand), #c2410c);
    display: grid; place-items: center;
    flex: 0 0 auto;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
    margin: 0;
    font-size: clamp(1rem, 1.1vw + .4rem, 1.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
}
.brand .tag {
    font-size: clamp(.7rem, .55vw + .4rem, .82rem);
    color: var(--muted);
}

/* main horizontal nav */
#main-nav {
    display: flex;
    justify-content: center;
    gap: clamp(.4rem, 1.1vw, 1.4rem);
    flex-wrap: nowrap;          /* keep links on one line so header doesn't grow */
    white-space: nowrap;
    min-width: 0;
}
#main-nav a {
    font-weight: 500; color: var(--fg-dim);
    padding: .5rem .7rem; border-radius: var(--radius-pill);
    font-size: clamp(.82rem, .35vw + .75rem, .95rem);
    transition: color .2s, background .2s;
    white-space: nowrap;
}
#main-nav a:hover { color: var(--fg); background: rgba(255,255,255,.04); }

/* CTA button (header) — sleek pill, sized to fit comfortably */
.cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1.1rem;
    background: linear-gradient(135deg, var(--brand), #ea580c);
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .01em;
    border-radius: var(--radius-pill);
    box-shadow: 0 .4rem 1.4rem -.4rem var(--brand-glow);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s;
    white-space: nowrap;
}
.cta::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
    transition: transform .2s;
}
.cta:hover {
    transform: translateY(-.1rem);
    box-shadow: 0 .8rem 2.2rem -.5rem var(--brand-glow);
    filter: brightness(1.05);
}
.cta:hover::after { transform: translateX(.15rem); }

.btn-press { transform: scale(.96) !important; }

/* Language dropdown */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    flex: 0 0 auto;         
    isolation: isolate;      
    z-index: 60;
}
.lang-toggle {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .75rem;
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    color: var(--fg);
    border-radius: var(--radius-pill);
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--brand); background: var(--bg-soft-2); }
.lang-current-flag { width: 1.125rem; height: auto; border-radius: .15rem; }
.lang-current-label { font-size: .85rem; font-weight: 500; }
.lang-chevron { font-size: .7rem; color: var(--muted); }

.lang-dropdown > .lang-list {
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    left: auto;
    list-style: none; margin: 0; padding: .35rem;
    background: var(--bg-soft);
    border: .0625rem solid var(--line-strong);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
    min-width: 100%;          /* never narrower than the toggle */
    width: 11.5rem;
    max-width: calc(100vw - 1rem);
    transform-origin: top right;
    opacity: 0; transform: translateY(-.4rem);
    pointer-events: none; transition: opacity .15s, transform .15s;
    z-index: 61;
}
.lang-dropdown.open > .lang-list {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.lang-item {
    display: flex; align-items: center; gap: .55rem;
    padding: .5rem .65rem; border-radius: var(--radius-s);
    cursor: pointer; font-size: .9rem;
    transition: background .15s;
}
.lang-item:hover, .lang-item:focus { background: var(--brand-soft); outline: none; }
.lang-item img { border-radius: .15rem; }

/* header meta (phone/email) — hidden on small */
.header-meta { display: none; }

/* Mobile menu */
.mobile-menu-wrap { display: none; position: relative; }
.menu-toggle {
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    color: var(--fg);
    width: 2.6rem; height: 2.6rem;
    border-radius: var(--radius-pill);
    display: grid; place-items: center;
}
.hamburger { display: inline-block; width: 1.1rem; height: .9rem; position: relative; }
.hamburger span {
    position: absolute; left: 0; right: 0; height: .125rem;
    background: var(--fg); border-radius: .125rem;
    transition: transform .25s, opacity .2s, top .25s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mobile-menu {
    position: absolute; right: 0; top: calc(100% + .5rem);
    list-style: none; margin: 0; padding: .4rem;
    background: var(--bg-soft);
    border: .0625rem solid var(--line-strong);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
    min-width: 12rem;
    opacity: 0; transform: translateY(-.4rem);
    pointer-events: none; transition: opacity .15s, transform .15s;
    z-index: 60;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* instant-close: skip transition entirely — used during navigation */
.mobile-menu.instant { transition: none !important; }
.mobile-menu a {
    display: block; padding: .65rem .8rem;
    border-radius: var(--radius-s); color: var(--fg-dim);
    transition: background .15s, color .15s;
}
.mobile-menu a:hover { background: var(--brand-soft); color: var(--fg); }

/* =========================================================
   Sections — base
   ========================================================= */
main { display: block; }
section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--pad-section) 0;
}

/* generic eyebrow */
.eyebrow {
    display: inline-block;
    padding: .25rem .8rem;
    background: var(--brand-soft);
    color: var(--brand-2);
    border-radius: var(--radius-pill);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw + .5rem, 4rem); }
h2 { font-size: clamp(2rem, 4vw + .5rem, 4rem); }
h3 { font-size: clamp(1.5rem, 2vw + .5rem, 2.4rem); }
h4 { font-size: clamp(1.05rem, .8vw + .6rem, 1.4rem); }
p  { margin: 0 0 1em; color: var(--fg-dim); }

.section-title { font-size: clamp(1.6rem, 2.4vw + .4rem, 2.6rem); margin-bottom: .25em; }
.section-lead  { color: var(--muted); margin-bottom: 2rem; max-width: 50rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--gap);
    align-items: stretch;
    padding-top: clamp(2rem, 4vw, 4rem);
}
.hero-card {
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-l);
    padding: clamp(1.5rem, 3vw, 2.6rem);
    position: relative; overflow: hidden;
}
.hero-card::before { display: none; }
.hero-card h2 { margin-top: .8rem; }
/* the page's real <h1> — kept at the same size the old <h3> rendered at */
.hero-title { font-size: clamp(1.5rem, 2vw + .5rem, 2.4rem); margin-top: .8rem; }
/* reused on Contact + Blog: their real <h1>, sized like the old <h3> it replaces */
.page-title-sm { font-size: clamp(1.5rem, 2vw + .5rem, 2.4rem); }
.hero-card .lead {
    color: var(--fg-dim);
    font-size: clamp(1rem, .6vw + .8rem, 1.15rem);
    max-width: 38rem;
}
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: clamp(.65rem,.6vw + .5rem,.95rem) clamp(1rem,1vw + .8rem,1.6rem);
    border-radius: var(--radius-pill); font-weight: 700;
    border: .0625rem solid transparent; cursor: pointer;
    transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand), #ea580c);
    color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-.1rem); }
.btn-outline {
    background: transparent; color: var(--fg);
    border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-2); background: var(--brand-soft); }

.right-grid { display: grid; gap: var(--gap); align-content: start; }
.mini-card {
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-m);
    padding: var(--pad-card);
}
.mini-card strong { color: var(--fg); display: block; margin-bottom: .3rem; }

/* =========================================================
   Services
   ========================================================= */
.services-section { }
.services-panel { }
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: var(--gap);
}
.service {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: var(--pad-card);
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-m);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service:hover {
    transform: translateY(-.25rem);
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
}
.svc-ic {
    flex: 0 0 auto;
    width: 2.6rem; height: 2.6rem;
    border-radius: var(--radius-s);
    background: linear-gradient(135deg, var(--brand), #c2410c);
    color: #fff; font-weight: 800;
    display: grid; place-items: center;
    font-size: .9rem;
}
/* SVG service icons scale with the badge box (works at every svc-ic size) */
.svc-ic svg { width: 58%; height: 58%; display: block; }
.service-body h4 { margin: 0 0 .25rem; }
.service-body p  { margin: 0; color: var(--muted); font-size: .92rem; }

/* =========================================================
   Featured cards / list-cards (intro grid)
   ========================================================= */
.list-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--gap);
}
.list-card {
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-m);
    padding: var(--pad-card);
}
.list-card .title { font-weight: 700; margin-bottom: .35rem; }
.list-card .desc { color: var(--muted); font-size: .9rem; }

/* =========================================================
   About + two-column layout
   ========================================================= */
.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--gap);
    align-items: start;
}

/* =========================================================
   Contact form
   ========================================================= */
/* Contact info */
.contact-info { padding: var(--pad-card); }
.contact-info h4 { font-size: clamp(1.4rem, 1.5vw + .8rem, 2rem); }
.contact-info p { color: var(--fg-dim); max-width: 32rem; }

/* Contact form container */
.contact-form {
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-l);
    padding: clamp(1.4rem, 2.4vw, 2.2rem);
    box-shadow: var(--shadow-soft);
}

/* Labels */
.contact-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--fg-dim);
    margin: .9rem 0 .35rem;
}

/* Inputs, selects, textareas */
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: var(--radius-s);
    background: var(--bg);
    color: var(--fg);
    border: .0625rem solid var(--line-strong);
    font: inherit;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

/* FÓKUSZ – minden elszíneződés kikapcsolva */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--line-strong); /* <<< vissza az eredeti színre */
    background-color: var(--bg);      /* <<< nincs világosodás */
    box-shadow: none;                 /* <<< nincs narancs glow */
    color: var(--fg);
}

/* Kijelölt szöveg – jól látható, kontrasztos */
.contact-form input::selection,
.contact-form textarea::selection {
    background: #ff7a00; /* sötét narancs */
    color: #ffffff;      /* fehér szöveg */
}

/* Browser autofill – ne legyen világos háttér, maradjon a sötét téma */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill,
.contact-form select:-webkit-autofill {
    -webkit-text-fill-color: var(--fg) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
    box-shadow: 0 0 0 1000px var(--bg) inset !important;
    caret-color: var(--fg);
    transition: background-color 9999s ease-in-out 0s;
    border: .0625rem solid var(--line-strong) !important;
}
.contact-form input:autofill,
.contact-form textarea:autofill,
.contact-form select:autofill {
    background-color: var(--bg) !important;
    color: var(--fg) !important;
}

/* Textarea */
.contact-form textarea { 
    min-height: 8rem; 
    resize: vertical; 
}

/* Actions */
.form-actions { 
    display: flex; 
    flex-wrap: wrap; 
    gap: .6rem; 
    margin-top: 1.2rem; 
}


/* ---- Checkboxes ----*/
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .6rem 0;
    padding: .55rem .7rem;
    background: rgba(255,255,255,.02);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-s);
    transition: border-color .15s, background .15s;
}
.checkbox-row:hover { border-color: var(--line-strong); background: rgba(255,255,255,.035); }
.checkbox-row:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* Hide the legacy overlay span entirely — old markup compatibility. */
.checkmark { display: none !important; }

.checkbox-container {
    position: relative;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .12rem;
    display: inline-flex;
}
.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    padding: 0;
    border-radius: .3rem;
    background: var(--bg);
    border: .0625rem solid var(--line-strong);
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    transition: background .15s, border-color .15s, box-shadow .15s;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70% 70%;
}
.checkbox-container input[type="checkbox"]:hover {
    border-color: var(--brand);
}
.checkbox-container input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .2rem var(--brand-soft);
}
.checkbox-container input[type="checkbox"]:checked {
    background-color: var(--brand);
    border-color: var(--brand);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 4'/></svg>");
}

.checkbox-text {
    font-size: .85rem;
    color: var(--fg-dim);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

/* hCaptcha — see responsive fix block below */
.h-captcha {
    transform-origin: top left;
}

.h-captcha iframe {
    width: 302px !important;
    height: 78px !important;
}


/* =========================================================
   Portfolio / gallery
   ========================================================= */
.portfolio {
    padding: var(--pad-section) 0;
}
.service-filters {
    display: flex; flex-wrap: wrap; gap: .6rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.service-btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .55rem 1rem;
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    color: var(--fg);
    border-radius: var(--radius-pill);
    transition: border-color .2s, background .2s, transform .15s;
    text-align: left;
}
.service-btn:hover { border-color: var(--brand); transform: translateY(-.1rem); }
.service-btn .svc-ic { width: 2rem; height: 2rem; font-size: .8rem; }
.service-btn.active {
    background: linear-gradient(135deg, var(--brand), #ea580c);
    border-color: transparent; color: #fff;
    box-shadow: var(--shadow-brand);
}
.service-btn.active .svc-ic { background: rgba(255,255,255,.2); }

#serviceGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: var(--gap);
}
.gallery-card {
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    position: relative;
    transition: transform .3s, border-color .3s, box-shadow .3s;
    cursor: zoom-in;
}
.gallery-card:hover {
    transform: translateY(-.3rem);
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
}
.gallery-card .img-wrap {
    aspect-ratio: 4 / 3;
    background: var(--bg-soft-2);
    overflow: hidden;
}
.gallery-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.gallery-card:hover img { transform: scale(1.05); }
.gallery-card .meta {
    padding: 1rem 1.2rem;
}
.gallery-card .meta .badge {
    display: inline-block;
    padding: .2rem .6rem;
    background: var(--brand-soft);
    color: var(--brand-2);
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.gallery-card .meta h5 {
    margin: 0 0 .2rem; font-size: 1rem; font-weight: 700;
}
.gallery-card .meta p { margin: 0; font-size: .85rem; color: var(--muted); }

.gallery-empty {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    border: .0625rem dashed var(--line-strong);
    border-radius: var(--radius-m);
    color: var(--muted);
    grid-column: 1 / -1;
}

/* lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(.4rem);
    display: none;
    align-items: center; justify-content: center;
    z-index: 100;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw; max-height: 86vh;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
}
.lightbox-close {
    position: absolute; top: 1.2rem; right: 1.4rem;
    width: 2.6rem; height: 2.6rem;
    background: rgba(255,255,255,.1); color: #fff;
    border: none; border-radius: var(--radius-pill);
    font-size: 1.4rem;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
    margin-top: var(--pad-section);
    border-top: .0625rem solid var(--line);
    background: var(--bg-soft);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}
.footer-row {
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.footer-copy { color: var(--fg); font-size: .92rem; text-align: center; grid-column: 1 / -1;}
.footer-links {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; gap: .6rem 1.2rem;
    padding-top: 1rem;
    border-top: .0625rem solid var(--line);
    color: var(--muted); font-size: .85rem;
}
.footer-links a { color: var(--fg-dim); transition: color .15s; }
.footer-links a:hover { color: var(--brand-2); }
.footer-company { flex: 1 1 100%; color: var(--muted); font-size: .8rem; }

/* =========================================================
   Back to top
   ========================================================= */
.to-top {
    position: fixed;
    right: calc(env(safe-area-inset-right, 0px) + clamp(1rem, 2vw, 1.6rem));
    /* Lift above mobile browser chrome (Brave/Safari bottom URL bars) */
    bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(4.5rem, 12vw, 5.5rem));
    width: 2.8rem; height: 2.8rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand), #ea580c);
    color: #fff; border: none;
    box-shadow: var(--shadow-brand);
    display: none; /* JS mutatja — Brave/Safari opacity bug fix */
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .15s;
    z-index: 70;
    cursor: pointer;
    align-items: center; justify-content: center;
    font-size: 1rem; line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.to-top.visible { display: flex; opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-.15rem); }
@media (min-width: 60rem) {
    .to-top { bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(1rem, 2vw, 1.6rem)); }
}

/* =========================================================
   Animations on scroll
   ========================================================= */
.anim-hidden { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.io-ready .anim-hidden { opacity: 0; transform: translateY(1.5rem) scale(.98); }
.anim-visible, html.io-ready .anim-visible { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
    .anim-hidden, html.io-ready .anim-hidden { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Form status colors
   ========================================================= */
.status-ok    { color: var(--ok) !important; }
.status-error { color: var(--danger) !important; }

/* =========================================================
   Responsive — fluid breakpoints
   ========================================================= */
@media (max-width: 78rem) {
    .nav-wrap { gap: .55rem; padding: .8rem 0; }
    .cta { padding: .5rem .85rem; font-size: .82rem; }
    .brand .tag { display: none; }
    .brand-name { font-size: 1.05rem; }
}
@media (max-width: 68rem) {
    #main-nav { gap: .25rem; }
    #main-nav a { padding: .45rem .55rem; font-size: .8rem; }
    .lang-current-label { display: none; }
    .lang-toggle { padding: .5rem .55rem; }
}
@media (max-width: 60rem) {
    /* Brand | spacer | lang | hamburger — CTA moves into mobile menu */
    .nav-wrap {
        grid-template-columns: auto 1fr auto auto;
        gap: .5rem;
    }
    #main-nav { display: none; }
    .mobile-menu-wrap { display: block; }
    .cta { display: none; }               
    .hero { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .footer-row { grid-template-columns: 1fr; }
    .footer-contact { align-items: flex-start; }
    .brand .tag { display: none; }
}

@media (max-width: 30rem) {
    .nav-wrap { gap: .35rem; }
    .lang-current-label { display: none; }       
    .lang-toggle { padding: .5rem .55rem; }
    .brand-name { font-size: 1rem; }
    section { padding: clamp(2rem, 8vw, 3rem) 0; }
}

/* =========================================================
   Cross-browser fixes (Brave / Firefox / Safari)
   ========================================================= */
.hero, .contact-section { min-height: auto; }

input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
    color: var(--fg);
    background-color: var(--bg-soft);
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--fg);
    -webkit-box-shadow: 0 0 0 1000px var(--bg-soft) inset;
    caret-color: var(--fg);
}

/* Safari iOS: prevent zoom-on-focus by guaranteeing >= 16px font on inputs */
@media (max-width: 30rem) {
    input, select, textarea { font-size: 16px; }
}

/* Firefox: remove dotted focus outline, use a visible ring instead */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::-moz-focus-inner { border: 0; }

/* =========================================================
   Menu open
   ========================================================= */
body.menu-open { overflow: hidden; touch-action: none; }

#menuOverlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 49;
    pointer-events: none;
}
#menuOverlay.active {
    display: block;
    animation: fs-fade-in .2s ease-out both;
}
@keyframes fs-fade-in { from { opacity: 0 } to { opacity: 1 } }

/* Mobile menu anchoring (lang dropdown anchoring is fully handled above) */
.mobile-menu-wrap { position: relative; }
.mobile-menu { right: 0; left: auto; transform-origin: top right; }

/* Adaptive sizing: keep dropdown anchored under the button on every screen */
@media (max-width: 30rem) {
    .lang-dropdown > .lang-list {
        min-width: max(9rem, 100%);
        width: 10.5rem;
        max-width: calc(100vw - 1rem);
    }
    .mobile-menu { min-width: 11rem; }
}

/* =========================================================
   Anti-FOUC boot
   ========================================================= */
html.fs-booting,
html.fs-booting body {
    background: var(--bg, #0c0a08);
    pointer-events: auto !important;
}
html.fs-booting body {
    visibility: hidden; /* layout megmarad, nincs FOUC, nincs fade glitch */
}
html.fs-ready body {
    visibility: visible; /* azonnali, 0ms, semmi transition */
}

/* =========================================================
   Contact page adaptive fixes 
   ========================================================= */
.footer-row {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

/* Contact section: ensure no horizontal overflow on any viewport */
.contact-section { overflow: hidden; }
.contact-section .two-col { width: 100%; min-width: 0; }
.contact-section .contact-info,
.contact-section .contact-form { min-width: 0; }

/* Align the inner edges of the info column with the form card so
   both sides of the screen have matching padding. */
.contact-section .contact-info {
    padding-left: 0;
    padding-right: 0;
}
.contact-section .contact-info .mini-card {
    margin-left: 0;
    margin-right: 0;
}


/* Mobile: tighten section padding so the form card breathes equally
   on both sides instead of touching the right edge. */
@media (max-width: 60rem) {
    .contact-section { padding-left: 0; padding-right: 0; }
    .contact-section .two-col { gap: 1rem; }
}

/* =========================================================
   CEO Card
   ========================================================= */
.ceo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    cursor: default;
}
.ceo-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
}

/* Banner felső rész — fotó + név + badge */
.ceo-banner {
    width: 100%;
    background: linear-gradient(135deg, #1a1410 0%, #2a1a0e 50%, #1a1208 100%);
    padding: 1.8rem 1rem 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
}
.ceo-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2.2rem;
    background: var(--bg-soft);
    clip-path: ellipse(60% 100% at 50% 100%);
}
.ceo-photo-wrap {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand, #e8622a);
    box-shadow: 0 0 0 4px rgba(232,98,42,.15), 0 6px 20px rgba(0,0,0,.4);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.ceo-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.ceo-name {
    font-size: clamp(.85rem, 2.5vw, 1rem);
    font-weight: 700;
    color: var(--fg);
    position: relative;
    z-index: 1;
    margin: 0;
    white-space: nowrap;
}
.ceo-title-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(232,98,42,.15);
    border: 1px solid rgba(232,98,42,.3);
    color: var(--brand, #e8622a);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .2rem .65rem;
    border-radius: 2rem;
    position: relative;
    z-index: 1;
}

/* Info sorok */
.ceo-info-list {
    list-style: none;
    margin: 0;
    padding: .6rem .9rem 1rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ceo-info-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .3rem;
    border-bottom: 1px solid var(--line);
    border-radius: .35rem;
    transition: background .15s;
    min-width: 0;
}
.ceo-info-list li:last-child { border-bottom: none; }
.ceo-info-list li:has(a) { cursor: pointer; }
.ceo-info-list li:has(a):hover { background: rgba(232,98,42,.07); }
.ceo-info-list li:has(a):hover .ceo-info-icon {
    background: rgba(232,98,42,.25);
    border-color: rgba(232,98,42,.5);
}
.ceo-info-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .4rem;
    background: rgba(232,98,42,.15);
    border: 1px solid rgba(232,98,42,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.ceo-info-col {
    display: flex;
    flex-direction: column;
    gap: .08rem;
    text-align: left;
    min-width: 0;
    flex: 1;
}
.ceo-label {
    color: var(--fg-dim);
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
    flex-shrink: 0;
}
/* Adaptív érték — 320px-en is látszódjon */
.ceo-value {
    color: var(--fg);
    font-weight: 500;
    font-size: clamp(.72rem, 2.8vw, .875rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.ceo-value a {
    color: var(--fg);
    text-decoration: none;
    transition: color .15s;
}
.ceo-value a:hover { color: var(--brand, #e8622a); }

/* 320px extra kis képernyő */
@media (max-width: 360px) {
    .ceo-banner { padding: 1.4rem .7rem 2.6rem; }
    .ceo-photo-wrap { width: 4rem; height: 4rem; }
    .ceo-info-list { padding: .5rem .5rem .8rem; }
    .ceo-info-list li { gap: .4rem; padding: .45rem .2rem; }
    .ceo-info-icon { width: 1.5rem; height: 1.5rem; }
    .ceo-label { font-size: .6rem; }
    .ceo-value { font-size: .7rem; }
    .ceo-name { font-size: .8rem; }
}

/* =========================================================
   Subscription / Pricing cards — csak informatív, no CTA
   ========================================================= */
.sub-section {
    margin-top: 3.5rem;
}
.sub-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.2rem;
}
.sub-section-title .svc-ic {
    width: 2.2rem;
    height: 2.2rem;
    font-size: .8rem;
    flex-shrink: 0;
}
.sub-section-title h4 {
    margin: 0;
    font-size: clamp(1rem, 1.5vw + .6rem, 1.25rem);
    font-weight: 700;
}
.sub-section-label {
    display: inline-block;
    font-size: clamp(.5rem, 1.8vw, .7rem);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(232,98,42,.1);
    border: 1px solid rgba(232,98,42,.25);
    border-radius: 2rem;
    padding: .15rem .5rem;
    margin-left: .3rem;
    vertical-align: middle;
    white-space: nowrap;
    flex-shrink: 0;
}
.sub-section-title {
    flex-wrap: nowrap;
}
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: var(--gap);
}
.sub-card {
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-m);
    padding: 1.4rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.sub-card:hover {
    border-color: var(--brand);
    transform: translateY(-.2rem);
    box-shadow: var(--shadow-brand);
}
.sub-card.featured {
    border-color: rgba(232,98,42,.45);
    background: linear-gradient(160deg, #1e1208 0%, var(--bg-soft) 100%);
}
.sub-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
}
.sub-card-header {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.sub-card-name {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--fg-dim);
}
.sub-card.featured .sub-card-name {
    color: var(--brand);
}
.sub-card-name { font-size: 1rem; color: var(--fg); letter-spacing: .04em; }
.sub-card-tag {
    margin: .1rem 0 .15rem;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
}
.sub-badge {
    position: absolute;
    top: .8rem; right: .8rem;
    font-size: .6rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #ea580c);
    padding: .25rem .6rem;
    border-radius: 2rem;
    box-shadow: 0 .3rem .9rem -.3rem var(--brand-glow);
}
.sub-price {
    display: flex;
    align-items: baseline;
    gap: .3rem;
    line-height: 1;
}
.sub-price-amount {
    font-size: clamp(1.6rem, 3vw + .8rem, 2.2rem);
    font-weight: 800;
    color: var(--fg);
    letter-spacing: -.02em;
}
.sub-price-currency {
    font-size: .95rem;
    font-weight: 600;
    color: var(--fg-dim);
    margin-right: .1rem;
}
.sub-price-period {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 400;
}
.sub-divider {
    height: 1px;
    background: var(--line);
    border: none;
    margin: 0;
}
.sub-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.sub-features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .875rem;
    color: var(--fg-dim);
    line-height: 1.4;
}
.sub-features li::before {
    content: '';
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(232,98,42,.15);
    border: 1.5px solid rgba(232,98,42,.4);
    flex-shrink: 0;
    margin-top: .12rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23e8622a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E");
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
}
.sub-note {
    font-size: .75rem;
    color: var(--muted);
    margin-top: auto;
    padding-top: .4rem;
    border-top: 1px solid var(--line);
    line-height: 1.4;
}

@media (max-width: 520px) {
    .sub-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Blog — "sáv" (bar) list + reading modal
   ========================================================= */
.blog { padding: var(--pad-section) 0; }

.blog-intro {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto 2rem;
}
.blog-intro .eyebrow { margin-bottom: .55rem; }
.blog-intro h2 { margin: .4rem 0 .5rem; }
.blog-lead { margin: 0 auto; max-width: 42rem; }

/* The list of bars */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: clamp(.8rem, 1.6vw, 1.15rem);
    max-width: 62rem;
    margin: 0 auto;
}
.blog-row {
    display: flex;
    gap: clamp(.9rem, 2vw, 1.4rem);
    align-items: stretch;
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    padding: .7rem;
    cursor: pointer;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.blog-row:hover,
.blog-row:focus-visible {
    transform: translateY(-.2rem);
    border-color: var(--brand);
    box-shadow: var(--shadow-brand);
    outline: none;
}
.blog-thumb {
    flex: 0 0 clamp(7rem, 24vw, 12rem);
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--bg-soft-2);
}
.blog-thumb picture { display: block; width: 100%; height: 100%; }
.blog-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-row:hover .blog-thumb img { transform: scale(1.05); }

.blog-row-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .35rem .5rem .35rem 0;
}
.blog-row-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.blog-row .badge,
.blog-article .badge,
.lb-card .badge {
    display: inline-block;
    padding: .2rem .6rem;
    background: var(--brand-soft);
    color: var(--brand-2);
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.blog-date { font-size: .78rem; color: var(--muted); }
.blog-row-title {
    margin: 0;
    font-size: clamp(1.05rem, 1vw + .7rem, 1.3rem);
    font-weight: 700;
    color: var(--fg);
    line-height: 1.25;
    letter-spacing: -.01em;
}
.blog-row-excerpt {
    margin: 0;
    color: var(--fg-dim);
    font-size: .9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-readmore {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--brand-2);
    font-weight: 600;
    font-size: .85rem;
}
.blog-readmore svg { transition: transform .2s; }
.blog-row:hover .blog-readmore svg { transform: translateX(.2rem); }

.blog-empty {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    border: .0625rem dashed var(--line-strong);
    border-radius: var(--radius-m);
    color: var(--muted);
    max-width: 62rem;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════
   LANDING "LATEST FROM THE BLOG" ROTATOR (#landingpage-blog)
   Latest 5 posts. Desktop: auto-crossfades; hover pauses + shows arrows
   for manual paging; leave resumes. Mobile: auto-plays with side arrows.
   ══════════════════════════════════════════════════════════════════ */
.latest-head { text-align: center; margin: 0 auto 1.6rem; max-width: 50rem; }
.latest-head .eyebrow { margin-bottom: .55rem; }
.latest-head .section-lead { margin-left: auto; margin-right: auto; margin-bottom: 0; }

.latest-blog {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
}
/* All slides stack in ONE grid cell → viewport auto-sizes to the tallest
   card and slides crossfade with opacity (no fixed height, no layout jump). */
.lb-viewport { display: grid; }
.lb-card {
    grid-area: 1 / 1;
    display: flex;
    gap: clamp(.9rem, 2vw, 1.4rem);
    align-items: stretch;
    background: var(--bg-soft);
    border: .0625rem solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    padding: .7rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(.4rem);
    transition: opacity .6s ease, transform .6s ease, border-color .25s, box-shadow .25s;
    pointer-events: none;
}
.lb-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;   /* the active card defines the cell height */
    z-index: 1;
}
.latest-blog:hover .lb-card.is-active { border-color: var(--brand); box-shadow: var(--shadow-brand); }

.lb-thumb {
    flex: 0 0 clamp(7rem, 24vw, 12rem);
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: var(--bg-soft-2);
}
.lb-thumb picture { display: block; width: 100%; height: 100%; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.latest-blog:hover .lb-card.is-active .lb-thumb img { transform: scale(1.05); }

.lb-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .35rem .5rem .35rem 0;
}

/* Arrows — hidden by default on desktop, shown on hover (pause + page). */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.6rem; height: 2.6rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--bg-soft-2);
    border: .0625rem solid var(--line-strong);
    color: var(--fg);
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s, background .2s, border-color .2s, color .2s;
}
.lb-nav.prev { left: -.4rem; }
.lb-nav.next { right: -.4rem; }
.lb-nav:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.lb-flip { display: flex; transform: rotate(180deg); }
.latest-blog:hover .lb-nav { opacity: 1; }

.lb-dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
}
.lb-dot {
    width: .55rem; height: .55rem;
    padding: 0;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--line-strong);
    cursor: pointer;
    transition: background .25s, transform .25s;
}
.lb-dot.is-on { background: var(--brand); transform: scale(1.25); }

/* Mobile: arrows always visible on both sides of the bar (like the gallery). */
@media (max-width: 640px) {
    .lb-card { flex-direction: column; gap: .6rem; padding: .6rem; }
    .lb-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .lb-body { padding: .25rem .35rem .45rem; }
    .lb-nav { opacity: 1; width: 2.2rem; height: 2.2rem; background: rgba(12,10,8,.72); }
    .lb-nav.prev { left: .25rem; }
    .lb-nav.next { right: .25rem; }
    .latest-blog:hover .lb-nav { opacity: 1; }
}

/* Reading modal — enlarges the post so the whole article is readable */
.blog-modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 120;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(.4rem);
    -webkit-backdrop-filter: blur(.4rem);
    padding: clamp(.8rem, 3vw, 2.5rem);
}
.blog-modal.open { display: grid; place-items: center; }
.blog-modal-inner {
    position: relative;
    width: min(52rem, 100%);
    max-height: min(92dvh, 100%);
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
    border: .0625rem solid var(--line-strong);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.blog-modal.open .blog-modal-inner { animation: fs-modal-in .25s ease both; }
@keyframes fs-modal-in {
    from { opacity: 0; transform: translateY(1rem) scale(.985); }
    to   { opacity: 1; transform: none; }
}
.blog-modal-close {
    flex: 0 0 auto;
    align-self: flex-end;
    position: relative;
    z-index: 2;
    margin: .65rem .65rem -2.7rem auto;   /* overlaps onto the hero */
    width: 2.5rem; height: 2.5rem;
    border-radius: var(--radius-pill);
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    display: grid; place-items: center;
    backdrop-filter: blur(.3rem);
    -webkit-backdrop-filter: blur(.3rem);
    transition: background .2s, transform .15s;
}
.blog-modal-close:hover { background: rgba(0,0,0,.72); transform: scale(1.05); }

.blog-article { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.blog-article-hero {
    max-height: 82vh;              /* cap so the photo + title fit the modal */
    background: var(--bg, #0c0a08);/* clean dark frame around the photo */
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.blog-article-hero picture { display: block; width: 100%; line-height: 0; }
/* image-driven: the photo fills the modal WIDTH and shows in full (height
   follows the image's ratio), capped so very tall photos still fit —
   never cropped, never shifted to one side. */
.blog-article-hero img {
    display: block; width: 100%; height: auto;
    max-height: 85vh; object-fit: contain;
}

/* =========================================================
   Multi-image gallery — shared by blog + portfolio reader
   (single-image items render unchanged; this only styles the
    carousel that appears when an item has >1 image)
   ========================================================= */
.gallery-card .img-wrap, .blog-thumb { position: relative; }

/* "N photos" badge on a card thumbnail */
.fs-img-count {
    position: absolute; right: .55rem; bottom: .55rem; z-index: 2;
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .5rem; border-radius: 999px;
    background: rgba(12, 10, 8, .66); color: #fff;
    font-size: .78rem; font-weight: 700; line-height: 1;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    pointer-events: none;
}
.fs-img-count svg { opacity: .9; }

/* The carousel inside the modal hero */
/* display:block overrides the .blog-article-hero flex-centering — here the
   TRACK is the flex row; each slide then centers its own image. */
.fs-gal { position: relative; display: block; }
.fs-gal-track {
    display: flex; align-items: center;
    transition: transform .42s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}
.fs-gal-slide {
    flex: 0 0 100%; margin: 0;
    display: flex; align-items: center; justify-content: center;
}
.fs-gal-slide picture { display: block; width: 100%; line-height: 0; }
.fs-gal-slide img {
    display: block; width: 100%; height: auto;
    max-height: 85vh; object-fit: contain;
}

.fs-gal-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 2.7rem; height: 2.7rem;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; color: #fff; cursor: pointer;
    background: rgba(12, 10, 8, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: background .2s ease, transform .2s ease;
}
.fs-gal-nav:hover { background: var(--brand); }
.fs-gal-nav:active { transform: translateY(-50%) scale(.92); }
.fs-gal-nav.prev { left: .7rem; }
.fs-gal-nav.prev svg { transform: rotate(180deg); }
.fs-gal-nav.next { right: .7rem; }

.fs-gal-count {
    /* top-LEFT, not top-right — the modal close (X) button always sits
       top-right (overlapping onto the hero via negative margin), so a
       right-anchored badge here collides/merges with it visually. */
    position: absolute; top: .7rem; left: .7rem; z-index: 3;
    padding: .22rem .6rem; border-radius: 999px;
    background: rgba(12, 10, 8, .6); color: #fff;
    font-size: .8rem; font-weight: 600;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fs-gal-dots {
    position: absolute; left: 0; right: 0; bottom: .7rem; z-index: 3;
    display: flex; gap: .4rem; justify-content: center;
}
.fs-gal-dot {
    width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .5); cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.fs-gal-dot.is-on { background: var(--brand); transform: scale(1.3); }

.fs-gal-thumbs {
    display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin;
    padding: .7rem clamp(1.4rem, 3.2vw, 2.6rem) 0;
}
.fs-gal-thumb {
    flex: 0 0 auto; width: 4.6rem; height: 3.2rem; padding: 0;
    border: 2px solid transparent; border-radius: .55rem; overflow: hidden;
    background: var(--bg-soft-2); cursor: pointer; opacity: .6;
    transition: opacity .2s ease, border-color .2s ease;
}
.fs-gal-thumb.is-on { opacity: 1; border-color: var(--brand); }
.fs-gal-thumb picture { display: block; width: 100%; height: 100%; }
.fs-gal-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) { .fs-gal-track { transition: none; } }
@media (max-width: 40rem) {
    .fs-gal-thumbs { padding-left: .6rem; padding-right: .6rem; }
    .fs-gal-thumb { width: 3.8rem; height: 2.7rem; }
}

.blog-article-content {
    padding: clamp(1.4rem, 3.2vw, 2.6rem);
    max-width: 44rem;          /* ≈ 65–75 chars/line for comfortable reading */
    margin: 0 auto;
}
.blog-article-content .blog-row-head { margin-bottom: .9rem; }
.blog-article-content h1 {
    margin: 0 0 .8rem;
    font-size: clamp(1.6rem, 3vw + .6rem, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.18;
    color: var(--fg);
}
.blog-article-content h2 {
    margin: 1.7rem 0 .55rem;
    font-size: clamp(1.15rem, 1.4vw + .6rem, 1.5rem);
    font-weight: 700;
    color: var(--fg);
}
.blog-article-content p {
    margin: 0 0 1.1em;
    color: var(--fg-dim);
    font-size: clamp(1rem, .4vw + .9rem, 1.08rem);
    line-height: 1.8;
}
.blog-article-content ul {
    margin: 0 0 1.2em;
    padding-left: 1.3rem;
    color: var(--fg-dim);
    line-height: 1.7;
}
.blog-article-content li { margin: .35rem 0; }
/* Links inside the reader modal (e.g. the "Kapcsolat" link) — brand orange
   so it is obvious they are clickable / redirect. */
.blog-article-content a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
.blog-article-content a:hover { filter: brightness(1.12); }

/* Blog responsive — stack the bar into a card on small screens */
@media (max-width: 40rem) {
    .blog-row { flex-direction: column; padding: .6rem; }
    .blog-thumb { flex: 0 0 auto; width: 100%; aspect-ratio: 16 / 9; }
    .blog-row-body { padding: .25rem .35rem .45rem; }
}

/* =========================================================
   Portfolio card — conditional "Read article"
   Only shown when the description is too long to fit (set by JS).
   ========================================================= */
.gallery-card .meta p.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-card .blog-readmore { display: none; margin-top: .55rem; }
.gallery-card .blog-readmore.show { display: inline-flex; }

/* =========================================================
   Motion / "alive" — tasteful, reduced-motion-safe
   (UX rule: max 1–2 key motions per view, ease-out, honour
    prefers-reduced-motion — everything below is gated off it.)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Light sheen sweeping across the primary CTA buttons on hover */
  .btn-primary, .cta { position: relative; overflow: hidden; }
  .btn-primary::before, .cta::before {
      content: "";
      position: absolute; top: 0; left: -130%;
      width: 60%; height: 100%;
      background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
      transform: skewX(-18deg);
      pointer-events: none;
  }
  .btn-primary:hover::before, .cta:hover::before { animation: fs-sheen .7s ease; }
  @keyframes fs-sheen { to { left: 140%; } }

  /* Blog rows rise in with a gentle stagger */
  .blog-row { animation: fs-rise .55s cubic-bezier(.2,.7,.2,1) both; }
  .blog-row:nth-child(2)   { animation-delay: .07s; }
  .blog-row:nth-child(3)   { animation-delay: .14s; }
  .blog-row:nth-child(4)   { animation-delay: .21s; }
  .blog-row:nth-child(n+5) { animation-delay: .28s; }
  @keyframes fs-rise { from { opacity: 0; transform: translateY(1.1rem); } to { opacity: 1; transform: none; } }

  /* Animated nav-link underline (desktop nav) */
  #main-nav a { position: relative; }
  #main-nav a::after {
      content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .22rem;
      height: 2px; border-radius: 2px;
      background: linear-gradient(90deg, var(--brand), var(--brand-2));
      transform: scaleX(0); transform-origin: left;
      transition: transform .25s ease;
  }
  #main-nav a:hover::after { transform: scaleX(1); }

  /* Deeper, more realistic lift on the interactive cards */
  .gallery-card:hover,
  .blog-row:hover {
      box-shadow: 0 1.4rem 3rem -1rem rgba(0,0,0,.7), var(--shadow-brand);
  }
}

/* =========================================================
   Signature motion — homepage hero + cards (reduced-motion-safe)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  /* Service icons pop + glow when you hover the card */
  .svc-ic { transition: transform .25s ease, box-shadow .25s ease; }
  .service:hover .svc-ic {
      transform: rotate(-6deg) scale(1.09);
      box-shadow: 0 .5rem 1.1rem -.25rem var(--brand-glow);
  }

  /* Portfolio gallery cards rise in with a stagger (like the blog rows) */
  #serviceGallery .gallery-card { animation: fs-rise .55s cubic-bezier(.2,.7,.2,1) both; }
  #serviceGallery .gallery-card:nth-child(2)   { animation-delay: .07s; }
  #serviceGallery .gallery-card:nth-child(3)   { animation-delay: .14s; }
  #serviceGallery .gallery-card:nth-child(4)   { animation-delay: .21s; }
  #serviceGallery .gallery-card:nth-child(n+5) { animation-delay: .28s; }
}

/* =========================================================
   Hover FX — lightweight card spotlight glow.
   CSS-only, compositor-friendly: a soft brand glow fades in on
   hover (opacity transition only). No JS, no pointer tracking,
   no continuous animation, no blur filters → zero idle cost.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Soft brand spotlight that FOLLOWS the cursor across the card.
     --mx/--my are set by anim.js (rAF-batched) alongside the 3D tilt. */
  .service, .gallery-card, .blog-row, .mini-card, .sub-card:not(.featured) {
      position: relative; isolation: isolate;
  }
  .service::before, .gallery-card::before, .blog-row::before,
  .mini-card::before, .sub-card:not(.featured)::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      border-radius: inherit; pointer-events: none;
      background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 50%), var(--brand-soft), transparent 56%);
      opacity: 0; transition: opacity .3s ease;
  }
  .service:hover::before, .gallery-card:hover::before, .blog-row:hover::before,
  .mini-card:hover::before, .sub-card:not(.featured):hover::before { opacity: 1; }

  /* Snappy transform while a card actively tilts under the pointer
     (the ease-back on leave is handled inline by anim.js). */
  .fx-active { transition: transform .07s linear !important; }

  /* Push-BUTTONS: brighten + glow on hover, dim on press.
     NO scale / transform geometry change — the click target never moves or
     resizes, so the Send button stays 100% clickable. (A :hover scale-up +
     :active scale-down was shifting the button edge out from under the cursor
     at mouse-up, so the click missed and the form "didn't send".)
     The gentle translateY lift comes from the original base :hover rules and
     is click-safe because it stays constant through the whole click. */
  .btn-primary:hover, .cta:hover { filter: brightness(1.07); box-shadow: 0 .85rem 2.2rem -.5rem var(--brand-glow); }
  .btn-outline:hover { filter: brightness(1.08); }
}
/* Press feedback on click — brightness only, never geometry */
.btn:active, .cta:active { filter: brightness(.9); }

/* =========================================================
   Legal / policy pages (Privacy, Terms/ÁSZF, Refund)
   ========================================================= */
.legal { max-width: 56rem; margin: 0 auto; padding: clamp(2rem,5vw,4rem) 0; }
.legal h1 { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: .4rem; }
.legal h2 { margin-top: 2.4rem; color: var(--fg); font-size: clamp(1.2rem,1.6vw+.6rem,1.5rem); }
.legal h3 { margin-top: 1.5rem; color: var(--fg); font-size: 1.05rem; }
.legal p, .legal li { color: var(--fg-dim); line-height: 1.7; }
.legal ul { padding-left: 1.4rem; }
.legal li { margin: .35rem 0; }
.legal a { color: var(--brand-2); }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.legal-kv { list-style: none; padding: 0; margin: .6rem 0; border: .0625rem solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.legal-kv li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: .7rem 1rem; border-bottom: .0625rem solid var(--line); }
.legal-kv li:last-child { border-bottom: none; }
.legal-kv strong { color: var(--fg); flex: 0 0 12rem; max-width: 100%; }
.legal-accept { background: var(--brand-soft); border: .0625rem solid rgba(249,115,22,.3); border-radius: var(--radius-s); padding: .7rem 1rem; margin: .8rem 0; color: var(--fg-dim); font-size: .92rem; }
.legal-note { background: rgba(255,255,255,.02); border: .0625rem solid var(--line); border-left: .2rem solid var(--brand); border-radius: var(--radius-s); padding: .8rem 1rem; margin: 1rem 0; font-size: .92rem; }
.legal-pkg { border: .0625rem solid var(--line); border-radius: var(--radius-m); padding: 1.1rem 1.2rem; margin: .9rem 0; }
.legal-pkg.featured { border-color: rgba(249,115,22,.45); background: linear-gradient(160deg, #1e1208 0%, var(--bg-soft) 100%); }
.legal-pkg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.legal-pkg-name { font-size: 1.1rem; font-weight: 800; color: var(--fg); letter-spacing: .02em; }
.legal-pkg-price { color: var(--brand-2); font-weight: 700; }
.legal-pkg-pop { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #fff; background: linear-gradient(135deg, var(--brand), #ea580c); padding: .15rem .5rem; border-radius: 2rem; }
.legal-foot { margin-top: 2.5rem; padding-top: 1.2rem; border-top: .0625rem solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 40rem){ .legal-kv strong { flex-basis: 100%; } }
