/* =========================================================
   PANNON VOLT — Design System
   Precizitás · Megbízhatóság · Dél-Dunántúl
   ========================================================= */

:root {
    /*
     * Brand — logo navy #0c1b32 + arany
     * A logó háttérszínéből (fejlec_logo / hero) levezetve.
     */
    --navy-950: #081222;   /* sötétebb, mélyebb */
    --navy-900: #0c1b32;   /* logó háttér — fő brand */
    --navy-800: #122644;
    --navy-700: #1a3258;
    --navy-600: #24406e;
    --gold-400: #e8c547;
    --gold-500: #d4af37;
    --gold-600: #b8942a;
    --gold-700: #8a6d1f;
    --cream: #f6f4ef;
    --cream-dark: #ebe7de;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0c1b32;
    --danger: #b91c1c;
    --danger-hover: #dc2626;
    --success: #15803d;

    /* RGB a logó navy-hez — overlay / shadow */
    --navy-rgb: 12, 27, 50;

    --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "DM Sans", "Source Sans 3", system-ui, sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(var(--navy-rgb), 0.06);
    --shadow-md: 0 4px 16px rgba(var(--navy-rgb), 0.08);
    --shadow-lg: 0 12px 40px rgba(var(--navy-rgb), 0.14);
    --shadow-gold: 0 8px 24px rgba(184, 148, 42, 0.25);

    --header-h: 76px;
    --max: 1180px;
    --transition: 0.22s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--slate-800);
    background: var(--cream);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

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

/* Leaflet maps break if global img max-width applies to tiles/markers */
.leaflet-container img,
.leaflet-pane img,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

a {
    color: inherit;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.section-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 12px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-subheading {
    font-size: 1.05rem;
    color: var(--slate-500);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), color var(--transition),
        border-color var(--transition), transform var(--transition),
        box-shadow var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--gold-500);
    color: var(--navy-950);
    box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
    background: var(--gold-400);
}

.btn--secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    background: rgba(255, 255, 255, 0.04);
}

.btn--outline-dark {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--slate-300);
}

.btn--outline-dark:hover {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: #fff;
}

.btn--sos {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn--sos:hover {
    background: var(--danger-hover);
    border-color: var(--danger-hover);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.header__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.header__logo-img {
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Kör alakú logó: a címer a kép közepén van */
.header__logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 42%;
    border: 2px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 0 2px rgba(var(--navy-rgb), 0.35);
    flex-shrink: 0;
    background: var(--navy-900);
}

.header__logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.header__logo-accent {
    color: var(--gold-500);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 8px 28px;
}

.header__nav-link {
    text-decoration: none;
    color: var(--slate-300);
    font-size: 15px;
    font-weight: 600;
    transition: color var(--transition);
    position: relative;
}

.header__nav-link:hover {
    color: #fff;
}

.header__nav-btn {
    text-decoration: none;
    background: var(--gold-500);
    color: var(--navy-950);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-display);
    transition: background var(--transition), transform var(--transition);
}

.header__nav-btn:hover {
    background: var(--gold-400);
    transform: translateY(-1px);
}

.header__nav-btn--sos {
    background: var(--danger);
    color: #fff;
    border: 2px solid var(--danger);
    padding: 9px 16px;
}

.header__nav-btn--sos:hover {
    background: var(--danger-hover);
    border-color: var(--danger-hover);
    color: #fff;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    color: #fff;
    padding: 56px 24px 80px;
    overflow: hidden;
    background: var(--navy-900);
    min-height: clamp(560px, 78vh, 720px);
    display: flex;
    align-items: center;
}

/* Full-bleed brand image (logo on right, navy field on left for copy) */
.hero__bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: max(0px, calc(50vw - 590px));
    z-index: 0;
    background: var(--navy-900);
    overflow: hidden;
}

.hero__bg picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero__bg img,
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    display: block;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(var(--navy-rgb), 0.94) 0%,
            rgba(var(--navy-rgb), 0.88) 38%,
            rgba(var(--navy-rgb), 0.45) 58%,
            rgba(var(--navy-rgb), 0.15) 78%,
            rgba(var(--navy-rgb), 0.05) 92%,
            rgba(var(--navy-rgb), 1) 100%
        ),
        linear-gradient(180deg, rgba(var(--navy-rgb), 0.25) 0%, transparent 30%, rgba(var(--navy-rgb), 0.35) 100%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    display: block;
}

.hero__content {
    text-align: left;
    padding-top: 0;
    max-width: 560px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-400);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.15rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero__title-accent {
    color: var(--gold-400);
    display: block;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--slate-300);
    margin-bottom: 32px;
    line-height: 1.75;
    max-width: 520px;
}

.hero__cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 28px;
}

/* legacy class aliases used on subpages */
.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--gold-500);
    color: var(--navy-950);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-display);
    transition: background var(--transition), transform var(--transition);
}

.hero__cta:hover {
    background: var(--gold-400);
    transform: translateY(-1px);
}

.hero__cta--sos {
    background: var(--danger);
    color: #fff;
}

.hero__cta--sos:hover {
    background: var(--danger-hover);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--slate-400);
    font-weight: 600;
}

.hero__meta-item svg {
    flex-shrink: 0;
    color: var(--gold-500);
}

/* Right column keeps visual balance on wide screens (logo shows via bg) */
.hero__visual {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    position: relative;
    min-height: 280px;
    pointer-events: none;
}

.hero__visual-card {
    background: rgba(var(--navy-rgb), 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    max-width: 280px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.hero__visual-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-400);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.hero__visual-card p {
    font-size: 13.5px;
    color: var(--slate-300);
    line-height: 1.55;
    margin: 0;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    margin-top: -1px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.trust-bar__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    border-right: 1px solid var(--slate-200);
}

.trust-bar__item:last-child {
    border-right: none;
}

.trust-bar__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-600);
}

.trust-bar__text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1.3;
}

.trust-bar__text span {
    font-size: 13px;
    color: var(--slate-500);
}

/* ===== SERVICES ===== */
.services {
    padding: 88px 24px;
    background: var(--cream);
}

.services__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.services__heading {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.services__subheading {
    text-align: center;
    font-size: 1.05rem;
    color: var(--slate-500);
    margin-bottom: 48px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Öt szolgáltatásnál az alsó két kártya középre kerül.
   A hatodik visszakapcsolásakor automatikusan két teljes sor lesz. */
@media (min-width: 1025px) {
    .services__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .services__grid > .service-card {
        grid-column: span 2;
    }

    .services__grid > .service-card:nth-child(4):nth-last-child(2) {
        grid-column: 2 / span 2;
    }

    .services__grid > .service-card:nth-child(5):last-child {
        grid-column: 4 / span 2;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid var(--slate-200);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.service-card__media {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--navy-800);
}

.service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.service-card:hover .service-card__media img {
    transform: scale(1.05);
}

.service-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(var(--navy-rgb), 0.55), transparent 60%);
}

.service-card__body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    margin-top: -40px;
    position: relative;
    z-index: 1;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-md);
    font-size: 22px;
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.service-card__desc {
    font-size: 15px;
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.service-card__arrow {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-600);
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.service-card:hover .service-card__arrow {
    gap: 10px;
}

/* ===== WHY US ===== */
.why {
    padding: 88px 24px;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

.why__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: var(--shadow-md);
}

.why-card__num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-600);
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.why-card__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    color: var(--navy-800);
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14.5px;
    color: var(--slate-500);
    line-height: 1.65;
}

/* ===== PROCESS ===== */
.process {
    padding: 88px 24px;
    background: var(--navy-900);
    color: #fff;
}

.process__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.process .section-label {
    color: var(--gold-400);
}

.process .section-heading {
    color: #fff;
}

.process .section-subheading {
    color: var(--slate-400);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 8px;
    position: relative;
}

.process__step {
    position: relative;
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.process__step-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.9;
}

.process__step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.process__step p {
    font-size: 14.5px;
    color: var(--slate-400);
    line-height: 1.65;
}

/* ===== REFERENCES / GALLERY ===== */
.refs {
    padding: 88px 24px;
    background: var(--cream);
}

.refs--page {
    padding-top: 48px;
    padding-bottom: 88px;
    margin-top: -30px;
}

.refs__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.refs__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 16px;
}

.refs--page .refs__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    grid-template-rows: none;
}

.refs--page .refs__item--large {
    grid-row: span 2;
    grid-column: span 1;
}

.refs--page .refs__item--wide {
    grid-column: span 2;
}

.refs__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-800);
}

.refs__item--large {
    grid-row: span 2;
}

.refs__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.refs__item:hover img {
    transform: scale(1.04);
}

.refs__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px;
    background: linear-gradient(transparent, rgba(var(--navy-rgb), 0.88));
    color: #fff;
}

.refs__caption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.refs__caption span {
    font-size: 13px;
    color: var(--slate-300);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 88px 24px;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
}

.testimonials__inner {
    max-width: var(--max);
    margin: 0 auto;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.testimonial {
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}

.testimonial__stars {
    color: var(--gold-500);
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.testimonial__quote {
    font-size: 15.5px;
    color: var(--slate-700);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--cream-dark);
    padding-top: 16px;
}

.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.testimonial__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-900);
}

.testimonial__role {
    font-size: 13px;
    color: var(--slate-500);
}

/* ===== CTA BAND ===== */
.cta-band {
    padding: 64px 24px;
    background:
        radial-gradient(ellipse 60% 80% at 90% 50%, rgba(212, 175, 55, 0.15), transparent),
        linear-gradient(120deg, var(--navy-950), var(--navy-800));
    color: #fff;
}

.cta-band__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-band__text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.cta-band__text p {
    color: var(--slate-300);
    font-size: 1.05rem;
    max-width: 480px;
}

.cta-band__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== FAQ ===== */
.faq {
    padding: 88px 24px 120px;
    background: var(--cream);
}

.faq__inner {
    max-width: 800px;
    margin: 0 auto;
}

.faq__heading {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.faq__subheading {
    text-align: center;
    font-size: 1.05rem;
    color: var(--slate-500);
    margin-bottom: 40px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.faq__item:hover,
.faq__item[open] {
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.35);
}

.faq__question {
    padding: 20px 52px 20px 22px;
    font-size: 16.5px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--navy-900);
    cursor: pointer;
    position: relative;
    list-style: none;
    display: block;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--gold-600);
    pointer-events: none;
}

.faq__item[open] .faq__question::after {
    content: "−";
}

.faq__answer {
    padding: 0 22px 20px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--slate-600);
}

.faq__answer a {
    color: var(--danger);
    font-weight: 600;
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-950);
    color: var(--slate-400);
    padding: 64px 24px 28px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.footer__grid {
    max-width: var(--max);
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 36px;
}

.footer__brand-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.footer__brand-name span {
    color: var(--gold-500);
}

.footer__brand-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--slate-400);
    max-width: 280px;
}

.footer__col h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    text-decoration: none;
    color: var(--slate-400);
    font-size: 14.5px;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--gold-400);
}

.footer__contact-line {
    font-size: 14.5px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer__contact-line a {
    color: var(--slate-200);
    text-decoration: none;
    font-weight: 600;
}

.footer__contact-line a:hover {
    color: var(--gold-400);
}

.footer__bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13.5px;
}

.footer__text {
    color: var(--slate-500);
    font-size: 13.5px;
}

.footer__link {
    color: var(--slate-400);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--gold-400);
}

/* ===== SERVICE SUBPAGE HERO ===== */
.service-hero {
    position: relative;
    padding: 72px 24px 88px;
    text-align: center;
}

.service-hero--electric {
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../kepek/villanyszereles.jpg") center / cover no-repeat;
    color: #fff;
}

.service-hero--ac {
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../kepek/klimaszereles.jpg") center / cover no-repeat;
    color: #fff;
}

.service-hero--smart {
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../kepek/merohely.png") 75% center / cover no-repeat;
    color: #000;
    padding-bottom: 130px;
}

.service-hero--smart :is(.service-hero__title, .service-hero__subtitle, .hero-back) {
    color: #000;
}

.service-hero--solar {
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../kepek/napelem.jpg") center / cover no-repeat;
    color: #fff;
}

.service-hero--heatpump {
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../kepek/hoszivattyu.jpg") center / cover no-repeat;
    color: #fff;
}

.service-hero--security {
    background:
        linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)),
        url("../kepek/biztonsagtechnika.jpg") center / cover no-repeat;
    color: #fff;
}

.service-hero:is(.service-hero--electric, .service-hero--ac, .service-hero--solar, .service-hero--heatpump, .service-hero--security) {
    padding-bottom: 130px;
}

.service-hero:is(.service-hero--electric, .service-hero--ac, .service-hero--solar, .service-hero--heatpump, .service-hero--security),
.service-hero:is(.service-hero--electric, .service-hero--ac, .service-hero--solar, .service-hero--heatpump, .service-hero--security) :is(.service-hero__title, .service-hero__subtitle, .hero-back) {
    color: #000;
}

.service-hero__inner {
    max-width: 650px;
    margin: 0 auto;
}

.service-hero__icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.service-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.service-hero__subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.service-hero--ac .service-hero__subtitle {
    min-height: 3.4em;
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
    padding: 60px 24px 80px;
    margin-top: -40px;
}

.service-detail__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.service-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.service-detail__text {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.service-detail__text h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
}

.service-detail__text p {
    font-size: 15.5px;
    color: var(--slate-600);
    line-height: 1.7;
}

.service-detail__list {
    list-style: none;
    padding: 0;
}

.service-detail__list li {
    position: relative;
    padding-left: 28px;
    font-size: 15.5px;
    color: var(--slate-600);
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-detail__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: 1.5px solid var(--gold-500);
    box-sizing: border-box;
}

.service-detail__list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid var(--gold-700);
    border-bottom: 1.5px solid var(--gold-700);
    transform: rotate(-45deg);
}

.service-detail__cta {
    text-align: center;
}

.service-detail__cta .hero__cta-row {
    justify-content: center;
}

/* ===== QUOTE PAGE ===== */
.quote-hero {
    position: relative;
    padding: 72px 24px;
    text-align: center;
    background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
    color: #fff;
}

.quote-hero__inner {
    max-width: 650px;
    margin: 0 auto;
}

.quote-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.quote-hero__subtitle {
    font-size: 17px;
    color: var(--slate-300);
    line-height: 1.7;
}

.hero-back {
    position: absolute;
    top: 22px;
    left: 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
    z-index: 10;
}

.hero-back:hover {
    color: var(--gold-400);
}

/* ===== QUOTE FORM ===== */
.quote-form-section {
    padding: 60px 24px 80px;
    margin-top: -30px;
}

.quote-form-section__inner {
    max-width: 700px;
    margin: 0 auto;
}

.quote-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
}

.quote-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.quote-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.quote-form__field--full {
    margin-bottom: 24px;
    width: 100%;
}

.quote-form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
}

.quote-form__input {
    padding: 12px 14px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--slate-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.quote-form__input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.quote-form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23475569'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.quote-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.quote-form__submit {
    width: 100%;
    padding: 15px;
    background: var(--gold-500);
    color: var(--navy-950);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.quote-form__submit:hover {
    background: var(--gold-400);
    transform: translateY(-1px);
}

/* ===== CONTACT CARDS ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.contact-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.4);
}

.contact-card__icon {
    font-size: 36px;
    display: block;
    margin-bottom: 16px;
}

.contact-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.contact-card__text {
    font-size: 15px;
    color: var(--slate-600);
    line-height: 1.65;
}

.contact-card__text a {
    color: var(--navy-900);
    text-decoration: none;
    font-weight: 700;
}

.contact-card__text a:hover {
    color: var(--gold-600);
}

/* ===== ABOUT / PAGE CONTENT ===== */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-content__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.page-content__box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.page-content__box h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 16px;
}

.page-content__box p {
    font-size: 15.5px;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ===== TEAM ===== */
.team {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px 60px;
    text-align: center;
}

.team__heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 40px;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.team-card {
    text-align: center;
}

.team-card__image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--slate-200);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--gold-500);
}

.team-card__image span {
    color: var(--slate-400);
    font-size: 14px;
    font-weight: 600;
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.team-card__role {
    font-size: 15px;
    color: var(--slate-500);
}

/* ===== HERO TEAM ===== */
.hero-team {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.hero-team__item {
    text-align: center;
}

.hero-team__image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--navy-700);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--gold-500);
}

.hero-team__image span {
    color: var(--slate-400);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.hero-team__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-team__name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.hero-team__role {
    font-size: 13px;
    color: var(--slate-400);
}

/* ===== LEGAL / CONTENT PAGES ===== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--navy-900);
    margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
    color: var(--slate-600);
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 1024px) {
    .header {
        position: relative;
    }
}

.header__menu-icon {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
}

.header__menu-icon span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .header__menu-icon {
        display: flex;
    }

    .header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-900);
        flex-direction: column !important;
        align-items: center;
        gap: 8px;
        padding: 20px 24px 36px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: all 0.3s ease;
        z-index: 10000;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    }

    .header__nav--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header__nav-link {
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

    .header__nav-btn {
        width: 100%;
        text-align: center;
        max-width: 280px;
    }

    .header__menu-icon--open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .header__menu-icon--open span:nth-child(2) {
        opacity: 0;
    }
    .header__menu-icon--open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why__grid,
    .process__steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .trust-bar__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-bar__item:nth-child(2) {
        border-right: none;
    }

    .trust-bar__item:nth-child(1),
    .trust-bar__item:nth-child(2) {
        border-bottom: 1px solid var(--slate-200);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 40px 20px 56px;
    }

    /*
     * Mobil: a teljes logó látszódjon (contain = „messzebbről”),
     * ne vágja le a cover. A navy háttér kitölti az üres sávokat.
     */
    .hero__bg {
        background: var(--navy-900);
        right: 0;
    }

    .hero__bg picture {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero__bg img,
    .hero__bg-img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center center;
        /* enyhén kisebb = még „távolabbi” hatás, teljes címer + felirat */
        transform: scale(2);
        transform-origin: center center;
    }

    .hero__bg-overlay {
        /* Sötétítés a szöveg olvashatóságához, a logó átlátszik alatta */
        background:
            linear-gradient(
                180deg,
                rgba(var(--navy-rgb), 0.72) 0%,
                rgba(var(--navy-rgb), 0.55) 40%,
                rgba(var(--navy-rgb), 0.78) 100%
            ),
            linear-gradient(
                105deg,
                rgba(var(--navy-rgb), 0.55) 0%,
                rgba(var(--navy-rgb), 0.35) 55%,
                rgba(var(--navy-rgb), 0.5) 100%
            );
    }

    .hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 28px;
        text-align: left;
    }

    .hero__content {
        max-width: none;
    }

    .hero__visual {
        min-height: 0;
        justify-content: flex-start;
    }

    .hero__visual-card {
        max-width: 100%;
    }

    .refs__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .refs--page .refs__grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 200px;
    }

    .refs__item--large {
        grid-row: span 1;
        grid-column: span 2;
        min-height: 240px;
    }

    .refs--page .refs__item--large {
        grid-column: span 1;
        grid-row: span 2;
        min-height: 0;
    }

    .refs--page .refs__item--wide {
        grid-column: span 2;
    }

    .refs__item {
        min-height: 180px;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .header__logo-mark {
        width: 40px;
        height: 40px;
    }

    .header__logo-text {
        font-size: 18px;
    }

    .header__inner {
        height: auto;
        min-height: 64px;
        padding: 12px 16px;
    }

    .hero {
        padding: 28px 16px 48px;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__cta-row .btn {
        width: 100%;
    }

    .services__grid,
    .why__grid,
    .process__steps,
    .contact-cards,
    .page-content__grid,
    .service-detail__grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .trust-bar__inner {
        grid-template-columns: 1fr;
    }

    .trust-bar__item {
        border-right: none !important;
        border-bottom: 1px solid var(--slate-200);
    }

    .trust-bar__item:last-child {
        border-bottom: none;
    }

    .services,
    .why,
    .process,
    .refs,
    .testimonials,
    .faq {
        padding: 56px 16px;
    }

    .faq {
        padding-bottom: 110px;
    }

    .service-hero__title,
    .quote-hero__title {
        font-size: 1.65rem;
    }

    .service-detail,
    .page-content {
        padding: 40px 16px 60px;
    }

    .quote-form {
        padding: 24px;
    }

    .quote-form__row {
        grid-template-columns: 1fr;
    }

    .team__grid {
        grid-template-columns: 1fr;
    }

    .hero-team {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-team__image {
        width: 110px;
        height: 110px;
    }

    .refs__grid,
    .refs--page .refs__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .refs__item--large,
    .refs--page .refs__item--large,
    .refs--page .refs__item--wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cta-band__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band__actions {
        width: 100%;
    }

    .cta-band__actions .btn {
        flex: 1;
        min-width: 0;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== FAB =====
   Fixed 58×58 hitbox — menu is absolutely positioned so drag
   never jumps when opening or flipping direction. */
.fab-container {
    position: fixed;
    bottom: max(20px, calc(16px + env(safe-area-inset-bottom, 0px)));
    right: max(16px, calc(12px + env(safe-area-inset-right, 0px)));
    /* Fejléc (10000) fölött — mobilon is mindig látszódjon */
    z-index: 10050;
    width: 58px;
    height: 58px;
    pointer-events: none;
}

.fab-main,
.fab-item {
    pointer-events: auto;
}

.fab-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.fab-main {
    position: absolute;
    inset: 0;
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    box-sizing: border-box;
}

.fab-main:hover {
    background: #166534;
}

.fab-container--dragging .fab-main {
    cursor: grabbing;
    transition: none;
}

.fab-icon-close {
    display: none;
    font-size: 22px;
}

.fab-toggle:checked ~ .fab-main .fab-icon-chat {
    display: none;
}

.fab-toggle:checked ~ .fab-main .fab-icon-close {
    display: block;
}

.fab-toggle:checked ~ .fab-main {
    background: var(--slate-600);
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.4);
}

.fab-menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    transform-origin: bottom center;
}

.fab-toggle:checked ~ .fab-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Open downward when near the top of the viewport */
.fab-container--top .fab-menu {
    bottom: auto;
    top: calc(100% + 12px);
    transform: translateX(-50%) translateY(-8px) scale(0.88);
    transform-origin: top center;
}

.fab-container--top .fab-toggle:checked ~ .fab-menu {
    transform: translateX(-50%) translateY(0) scale(1);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.fab-item:hover {
    transform: scale(1.1);
}

.fab-wa { background: #25D366; }
.fab-ms { background: #00B2FF; }
.fab-fb { background: #1877F2; }
.fab-ph { background: var(--success); }

/* Mobil: FAB biztosan a viewport jobb alsó sarkában */
@media (max-width: 900px) {
    .fab-container {
        bottom: max(20px, calc(18px + env(safe-area-inset-bottom, 0px))) !important;
        right: max(14px, calc(12px + env(safe-area-inset-right, 0px))) !important;
        left: auto !important;
        top: auto !important;
        z-index: 10050 !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    .fab-main {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

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