/* ==========================================================================
           1. CSS VÁLTOZÓK & ALAPOK
           ========================================================================== */
:root {
    /* Márkaszínek */
    --brand: #0C944B;
    --brand-hover: #09733a;
    --brand-dark: #164666;
    --brand-darkest: #0f2d42;
    --brand-light: #e6f4ec;
    --accent: #f99000;

    /* Semleges színek */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #373a3c;
    --gray-800: #2c2c2c;

    /* Szöveg színek */
    --text-dark: #090909;
    --text-muted: #4f5358;
    --text-light: #f8f9fa;

    /* Térközök és méretek */
    --max-w: 1360px;
    --section-padding-y: 100px;
    --section-padding-x: 32px;

    /* Lekerekítések */
    --radius-global: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    /* Árnyékok */
    --shadow-sm: 0 4px 6px rgba(22, 70, 102, 0.05);
    --shadow-md: 0 8px 15px rgba(22, 70, 102, 0.08);
    --shadow-lg: 0 12px 25px rgba(22, 70, 102, 0.1);
    --shadow-xl: 0 20px 40px rgba(22, 70, 102, 0.15);
    --shadow-brand: 0 10px 25px rgba(12, 148, 75, 0.3);

    /* Animációk (Keep for references, though JS removed) */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);

    /* Z-Index Rétegek */
    --z-base: 1;
    --z-elevated: 10;
    --z-dropdown: 100;
    --z-sticky: 1000;
    --z-fixed: 1050;
}

/* ==========================================================================
           2. RESET & ALAPBEÁLLÍTÁSOK
           ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    -webkit-font-smoothing: antialiased;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.125rem;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-global);
}

strong {
    color: var(--text-dark);
}

svg {
    flex-shrink: 0;
}

/* ==========================================================================
           3. SEGÉDOSZTÁLYOK
           ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    position: relative;
    z-index: var(--z-base);
}

.text-center {
    text-align: center;
}

.text-brand {
    color: var(--brand);
}

.text-white {
    color: var(--white) !important;
}

.text-brand-dark {
    color: var(--brand-dark);
}

.bg-gray {
    background-color: var(--gray-50);
}

.bg-alternate {
    background-color: var(--gray-50);
}

.bg-white {
    background-color: var(--white);
}

.d-flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.no-break-headline {
    white-space: normal;
    overflow-wrap: break-word;
}

/* ==========================================================================
           4. TIPOGRÁFIA & CÍMSOROK
           ========================================================================== */
.section-title {
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    margin-bottom: 18px;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    margin-bottom: 14px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
           5. GOMBOK
           ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: var(--radius-global);
    font-weight: 800;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background-color: var(--brand);
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    color: var(--white);
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(12, 148, 75, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-dark);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ==========================================================================
           6. ŰRLAP ELEMEK & KÁRTYÁK
           ========================================================================== */
.feature-card,
.form-card,
.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-global);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
}

.form-card {
    padding: 40px;
    z-index: var(--z-elevated);
    border: none;
}

.form-card h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 5px;
    color: var(--brand-dark);
}

.form-card p.form-desc {
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-card {
    padding: 35px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--brand-light);
    transform: scale(0);
    transition: transform var(--transition-normal);
    transform-origin: center;
    z-index: -1;
}

.feature-card:hover::before {
    transform: scale(8);
}

.feature-card .icon-wrapper {
    color: var(--brand-dark);
    background: var(--brand-light);
    padding: 15px;
    border-radius: var(--radius-global);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--brand-dark);
}

.feature-card p {
    margin: 0;
    font-size: 1.05rem;
}

/* Űrlap beviteli mezők */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    font-family: 'Montserrat', sans-serif;
}

.input-group input,
.input-group select,
.input-group textarea {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    color: var(--text-dark);
    border-radius: var(--radius-global);
    padding: 14px 18px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
    width: 100%;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(12, 148, 75, 0.15);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Kiemelt "Teaser" kártya (Akkumulátortárolóhoz) */
.teaser-card {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-darkest) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-global);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.teaser-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.teaser-card svg {
    width: 48px;
    height: 48px;
    color: var(--accent);
    flex-shrink: 0;
}

.teaser-card h4 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.teaser-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ==========================================================================
           7. ADVANCED B2B FORM (FIGMA IMPORT READY)
           ========================================================================== */
/* Minden lépés látható a Figma import miatt */
.form-step {
    display: block;
}

.form-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.service-select-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-global);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--white);
}

.service-select-card.selected {
    border-color: var(--brand);
    background: rgba(12, 148, 75, 0.05);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.service-select-card svg {
    width: 32px;
    height: 32px;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.service-select-card.selected svg {
    color: var(--brand);
}

.service-select-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-dark);
    line-height: 1.2;
}

/* ==========================================================================
           8. FEJLÉC ÉS NAVIGÁCIÓ (STICKY & DARK)
           ========================================================================== */
/* The dark top-bar is a plain block that scrolls off naturally; only the white nav below stays pinned */
.top-bar {
    background-color: var(--brand-darkest);
    color: var(--gray-300);
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar a {
    color: var(--gray-300);
    font-weight: 600;
}

.top-bar svg {
    color: var(--brand);
    margin-right: 6px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Wrapper is removed from layout so the nav sticks relative to <body>, not this box */
.header-sticky-wrapper {
    display: contents;
}

.nav-wrapper {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(22, 70, 102, 0.08);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.nav {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* LOGÓ SZÍNEZÉS CSS MASK TECHNIKÁVAL */
.nav-logo-colored {
    height: 56px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--brand-dark);
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background-color: var(--brand);
    border-radius: var(--radius-global);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    /* Keep hidden for raw HTML, standard web behavior */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-global);
    padding: 10px 0;
    z-index: var(--z-dropdown);
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.nav-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    color: var(--brand-dark);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
           9. HERO SZEKCIÓ
           ========================================================================== */
.hero {
    position: relative;
    padding: 80px 0;
    background: #ffffff url('img/home-smci-szigetelt-veszelyesanyag-tarolo.webp') center center / cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 244, 248, 0.86) 100%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3.6vw, 3.1rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
    line-height: 1.16;
}

.hero-text h1 span {
    color: var(--brand);
    position: relative;
    display: inline-block;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(12, 148, 75, 0.3);
    z-index: -1;
    border-radius: var(--radius-global);
}

.hero-text p.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-700);
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-features {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: center;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    background: var(--white);
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    color: var(--brand-dark);
}

.hero-feature-item svg {
    color: var(--brand);
    width: 20px;
    height: 20px;
}

/* ==========================================================================
           10. BIZALOM JELVÉNYEK & LOGÓ FAL (TRUST BADGES & LOGO WALL)
           ========================================================================== */
.trust-badges {
    background: var(--brand-dark);
    padding: 40px 0;
    position: relative;
    z-index: var(--z-elevated);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--white) !important;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white) !important;
}

.trust-item span.warranty-note {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: -10px;
}

.trust-item svg {
    width: 48px;
    height: 48px;
    color: var(--brand);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: var(--radius-global);
}

.logo-wall {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    text-align: center;
}

.logo-wall h4 {
    font-size: 1rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    opacity: 0.6;
}

.logo-grid span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--brand-dark);
    filter: grayscale(100%);
    transition: filter 0.3s, opacity 0.3s;
}

/* ==========================================================================
           11. SZOLGÁLTATÁSOK - EGYFORMA MAGASSÁGÚ GRID (CLIENT REQUEST LAYOUT)
           ========================================================================== */
.services-intro {
    padding: 80px 0 40px 0;
    background: var(--gray-50);
    text-align: center;
}

.services-intro p {
    max-width: 800px;
    margin: 0 auto;
}

.service-detail {
    padding: 80px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.service-detail.bg-alternate {
    background: var(--gray-50);
}

/* Image-side alternation to match design: Veszélyes / Kármentő / Készgarázs = image left */
#veszelyesanyag .service-gallery,
#karmento .service-gallery,
#keszgarazs .service-gallery {
    order: -1;
}

#raktarkontener .content-side {
    order: -1;
}

/* Mandatory "service_section_layout_2" implementation */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-side {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-title {
    display: none;
}

.desktop-title {
    display: block;
}

.service-gallery {
    position: relative;
    width: 100%;
}

.gallery-track-wrapper {
    width: 100%;
}

.gallery-track {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-global);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--gray-200);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-main {
    flex: 0 0 100%;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-md);
}

.gallery-track .gallery-item:not(.item-main) {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 4 / 3;
}

/* Expand Icon (Static for Figma) */
.expand-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(9, 9, 9, 0.65);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.expand-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobil nézet a galériához */
@media (max-width: 992px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mobile-title {
        display: block;
    }

    .desktop-title {
        display: none;
    }

    .gallery-track {
        display: flex;
        overflow-x: auto;
        height: 300px;
    }

    .gallery-item {
        flex: 0 0 70%;
        height: 100%;
    }

    .item-main {
        flex: 0 0 100%;
    }
}

/* ==========================================================================
           12. FOLYAMAT (RENDELÉS)
           ========================================================================== */
.process-section {
    padding: var(--section-padding-y) 0;
    background: var(--gray-50);
    color: var(--text-dark);
    text-align: center;
}

.process-section .section-title {
    color: var(--brand-dark) !important;
}

.process-section p {
    color: #5a6b78 !important;
    max-width: 600px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 80px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.process-step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 60px 30px 40px 30px;
    border-radius: var(--radius-global);
}

.process-number {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--brand);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 0 0 3px var(--brand-darkest);
}

.process-step svg {
    width: 48px;
    height: 48px;
    color: var(--brand);
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.process-step p {
    color: #5a6b78;
}

.process-step h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--brand-dark) !important;
}

/* ==========================================================================
           13. GYAKORI KÉRDÉSEK (FAQ) - ALWAYS OPEN FOR FIGMA
           ========================================================================== */
.faq-section {
    padding: var(--section-padding-y) 0;
    background: var(--white);
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--gray-50);
    border: 1px solid var(--brand);
    border-radius: var(--radius-global);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 22px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    color: var(--brand-dark);
}

.faq-question svg {
    width: 24px;
    height: 24px;
    color: var(--white);
    background: var(--brand);
    padding: 4px;
    border-radius: 50%;
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px 25px 30px;
    color: var(--text-muted);
}

/* Always open */

/* ==========================================================================
           14. REFERENCIÁK / VÉLEMÉNYEK
           ========================================================================== */
.testimonials {
    padding: var(--section-padding-y) 0;
    background: var(--gray-50);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 60px;
}

.test-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-global);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.stars {
    color: var(--accent);
    display: flex;
    gap: 5px;
    margin: 0;
}

.stars svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.test-card p.quote {
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--gray-600);
    line-height: 1.8;
    position: relative;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--gray-100);
    padding-top: 25px;
}

.test-author .avatar {
    width: 50px;
    height: 50px;
    background: var(--brand-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
}

.test-author h4 {
    margin-bottom: 2px;
    font-size: 1.1rem;
    color: var(--brand-dark);
}

.test-author span {
    font-size: 0.9rem;
    color: var(--brand);
    font-weight: 600;
}

/* ==========================================================================
           15. RÓLUNK (CÉGÜNKRŐL & MÉRFÖLDKÖVEK)
           ========================================================================== */
.about-section {
    padding: var(--section-padding-y) 0;
    background: var(--white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.milestone-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.milestone-year {
    background: var(--brand-light);
    color: var(--brand);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.milestone-text h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.milestone-text p {
    margin: 0;
    font-size: 0.95rem;
}

.about-img {
    position: relative;
    background: var(--gray-50);
    border-radius: var(--radius-global);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.about-img>img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.about-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid var(--brand);
    border-radius: var(--radius-global);
    transform: translate(25px, 25px);
    z-index: -1;
}

/* ==========================================================================
           16. KÉPGALÉRIA (MASZÍV RÁCS)
           ========================================================================== */
.gallery-section {
    padding: var(--section-padding-y) 0;
    background: var(--gray-50);
}

.gallery-section .section-title {
    margin-bottom: 50px;
}

.gallery-grid-huge {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 992px) {
    .gallery-grid-huge {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .gallery-grid-huge {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-grid-huge div.img-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-global);
    background-color: var(--brand-darkest);
}

.gallery-grid-huge div.img-box div {
    width: 100%;
    padding-bottom: 75%;
    background-size: cover;
    background-position: center;
    opacity: 0.95;
    border-radius: var(--radius-global);
}

/* ==========================================================================
           17. KAPCSOLAT & LEAD GENERÁLÁS
           ========================================================================== */
.bottom-lead {
    padding: var(--section-padding-y) 0;
    background: var(--white);
}

.bottom-lead .container>div {
    background: var(--white);
    border-radius: var(--radius-global);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.lead-info {
    padding: 60px;
    background-image: url('img/lead-info-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

.lead-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(22, 70, 102, 0.92);
}

.lead-info-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lead-info-content h2 {
    color: var(--white) !important;
    font-size: 1.9rem;
}

.lead-info-content p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.lead-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    border-radius: var(--radius-global);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lead-info-item svg {
    width: 32px;
    height: 32px;
    color: var(--brand);
}

.lead-info-item strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--white);
}

.lead-form-wrapper {
    padding: 60px;
    background: var(--gray-50);
}

/* ==========================================================================
           18. LÁBLÉC
           ========================================================================== */
.footer {
    background: var(--brand-darkest);
    color: var(--white);
    padding: 100px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-hover) 100%);
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--brand);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.05rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links svg {
    width: 16px;
    height: 16px;
    color: var(--brand);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ==========================================================================
           19. MEDIA QUERIES (Reszponzivitás javítása)
           ========================================================================== */
@media (max-width: 1200px) {

    .about-grid,
    .service-grid,
    .bottom-lead .container>div {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px auto;
    }

    .hero-features {
        justify-content: center;
    }

    .about-grid,
    .bottom-lead .container>div {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
    }

    .process-grid::before {
        display: none;
    }

    .test-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding-y: 80px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .test-grid,
    .trust-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .lead-info,
    .lead-form-wrapper {
        padding: 40px 20px;
    }

    .service-gallery {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 25px 20px;
    }

    .service-select-grid {
        grid-template-columns: 1fr;
    }
}

/* USP section */
.usp-section {
    padding: var(--section-padding-y) 0;
    background: var(--white);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 0;
}

.usp-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-global, 12px);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(22, 70, 102, 0.06);
    transition: transform 0.3s;
}

.usp-card:hover {
    transform: translateY(-4px);
}

.usp-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-light, #e6f4ec);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.usp-icon svg {
    width: 30px;
    height: 30px;
    color: var(--brand);
    stroke: var(--brand);
}

.usp-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.usp-card p {
    font-size: 1rem;
    color: var(--text-muted, #4f5358);
    margin: 0;
}

/* Industries section */
.industries-section {
    padding: var(--section-padding-y) 0;
    background: var(--brand-darkest, #0b2c42);
}

.industries-section .section-subtitle {
    color: var(--brand);
}

.industries-section .section-title {
    color: var(--white);
}

.industries-section>.container>p {
    color: rgba(255, 255, 255, 0.7);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.industry-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-global, 12px);
    padding: 50px 35px;
    text-align: center;
    transition: background 0.3s;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.industry-icon {
    width: 70px;
    height: 70px;
    background: rgba(12, 148, 75, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.industry-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--brand);
}

.industry-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.industry-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    margin: 0;
}

@media(max-width:768px) {

    .usp-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
}

/* DATA TABLES (Home) */
.spec-tables-section {
    padding: 80px 0;
    background: var(--white);
}

.spec-tables-section.bg-alt {
    background: var(--gray-50);
}

.spec-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-global);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    min-width: 760px;
}

.spec-table th {
    background: var(--brand-dark);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.0rem;
    padding: 18px 20px;
    font-weight: 700;
}

.spec-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.98rem;
    color: var(--text-dark);
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.spec-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.spec-table td strong {
    color: var(--brand-dark);
}

/* feature-card inline Ajánlatkérés button */
.feature-card .card-ajanlat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px 20px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-global);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
}

.feature-card .card-ajanlat:hover {
    background: var(--brand-hover);
    color: #fff;
}

.feature-card .card-ajanlat svg {
    width: 16px;
    height: 16px;
}

/* SMC product card grid (Típusok és Elérhető Méretek) */
.prod-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin: 36px 0 36px;
    border-bottom: 1px solid var(--gray-200);
}

.prod-tab {
    padding: 14px 26px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--brand-dark);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.prod-tab:hover {
    color: var(--brand);
}

.prod-tab.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.prod-intro-box {
    border: 1px solid var(--brand);
    background: var(--brand-light);
    border-radius: var(--radius-global);
    padding: 30px 35px;
    margin-bottom: 40px;
}

.prod-intro-box h3 {
    font-size: 1.3rem;
    color: var(--brand-dark);
    margin-bottom: 18px;
}

.prod-intro-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 30px;
}

.prod-intro-bullets li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.45;
}

.prod-intro-bullets svg {
    width: 22px;
    height: 22px;
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 1px;
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.prod-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-global);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.prod-card-img {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}

.prod-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .3s ease;
}

.prod-card:hover .prod-card-img img {
    transform: scale(1.05);
}

.prod-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.prod-card-body h4 {
    font-size: 1.4rem;
    color: var(--brand-dark);
    margin: 0;
}

.prod-specs {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.prod-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--gray-200);
    padding-bottom: 8px;
}

.prod-spec-row .lbl {
    color: var(--text-muted);
    white-space: nowrap;
}

.prod-spec-row .val {
    color: var(--brand-dark);
    font-weight: 700;
    text-align: right;
}

.prod-card .btn-outline {
    margin-top: auto;
    width: 100%;
    padding: 13px;
    font-size: 1rem;
}

@media(max-width:992px) {
    .prod-grid {
        grid-template-columns: 1fr 1fr;
    }

    .prod-intro-bullets {
        grid-template-columns: 1fr;
    }
}

@media(max-width:576px) {
    .prod-grid {
        grid-template-columns: 1fr;
    }
}


/* product-card mini thumbnails */
.mini-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.mini-thumbs figure {
    margin: 0;
    text-align: center;
}

.mini-thumbs a {
    display: block;
    width: 72px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.mini-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.mini-thumbs a:hover img {
    transform: scale(1.08);
}

.mini-thumbs figcaption {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 4px;
    font-weight: 700;
}


.type-link {
    cursor: pointer;
    color: #1a56db;
    text-decoration: underline;
    white-space: nowrap;
}

.type-link:hover {
    color: #0c944b;
}

.expand-btn {
    display: none !important;
}

.clients-section {
    padding: 40px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}

.clients-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 28px;
}

.clients-logos {
    width: 100%;
}

.gallery-item.contain-white {
    background: #fff !important;
}

.gallery-item.contain-white img {
    object-fit: contain !important;
}

/* ===== Phosphor icon sizing per container ===== */
.top-bar i {
    font-size: 16px;
    color: var(--brand);
    vertical-align: -2px;
    margin-right: 6px;
}

.nav-links a i {
    font-size: 14px;
}

.btn i {
    font-size: 1.15em;
    line-height: 1;
}

.hero-feature-item i {
    font-size: 19px;
    color: var(--brand);
}

.service-select-card i {
    font-size: 30px;
    color: var(--brand-dark);
    margin-bottom: 8px;
    line-height: 1;
}

.service-select-card.selected i {
    color: var(--brand);
}

.usp-icon i {
    font-size: 30px;
    color: var(--brand);
    line-height: 1;
}

.feature-card .icon-wrapper i {
    font-size: 34px;
    color: var(--brand-dark);
    line-height: 1;
}

.teaser-card>i {
    font-size: 42px;
    color: var(--accent);
    flex-shrink: 0;
}

.trust-item i {
    font-size: 30px;
    color: var(--brand);
    background: rgba(255, 255, 255, 0.06);
    padding: 11px;
    border-radius: var(--radius-global);
    line-height: 1;
}

.industry-icon i {
    font-size: 32px;
    color: var(--brand);
    line-height: 1;
}

.process-step>i {
    font-size: 42px;
    color: var(--brand);
    margin-bottom: 22px;
    display: block;
    line-height: 1;
}

.footer-links a i {
    font-size: 18px;
    color: var(--brand);
}

.lead-info-item>i {
    font-size: 28px;
    color: var(--brand);
    flex-shrink: 0;
}

.prod-intro-bullets i {
    font-size: 20px;
    color: var(--brand);
}

.card-ajanlat i {
    font-size: 15px;
}

.expand-btn i {
    font-size: 20px;
    color: #fff;
}

/* ===== Tabs (functional) ===== */
.prod-tab {
    color: var(--brand-dark);
}

.prod-panel {
    display: none;
}

.prod-panel.active {
    display: block;
}

/* ===== Intro box restyle (white + green left border) ===== */
.prod-intro-box {
    border: 1px solid var(--gray-200);
    border-left: 5px solid var(--brand);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.prod-intro-bullets {
    grid-template-columns: repeat(3, 1fr);
}

@media(max-width:992px) {
    .prod-intro-bullets {
        grid-template-columns: 1fr;
    }
}

/* ===== FAQ accordion (collapsible + animated) ===== */
.faq-question {
    cursor: pointer;
}

.faq-question i {
    transition: transform var(--transition-normal);
    color: var(--white);
    background: var(--brand);
    padding: 5px;
    border-radius: 50%;
    font-size: 14px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transition: max-height var(--transition-normal) ease, padding var(--transition-normal) ease;
}

.faq-item.open .faq-answer {
    max-height: 800px;
    padding-bottom: 25px !important;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(9, 16, 24, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 24px;
    right: 24px;
}

.lightbox-close i {
    font-size: 26px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav i {
    font-size: 30px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-item.item-main img,
.gallery-grid-huge .img-box {
    cursor: pointer;
}

/* ===== Swappable thumbnail affordance ===== */
.gallery-item:not(.item-main) {
    position: relative;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.gallery-item:not(.item-main):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.gallery-item:not(.item-main)::after {
    content: "\21C4";
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 30px;
    height: 30px;
    background: rgba(12, 148, 75, 0.92);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}

.gallery-item:not(.item-main):hover::after {
    opacity: 1;
    transform: scale(1);
}

/* ===== Product detail popup ===== */
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 40, 0.85);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-modal.open {
    display: flex;
}

.product-modal-card {
    background: #fff;
    border-radius: 14px;
    max-width: 920px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.product-modal-media {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--gray-50);
}

.product-modal-media .pm-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    background: #fff;
}

.product-modal-thumbs {
    display: flex;
    gap: 10px;
}

.product-modal-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.product-modal-body {
    padding: 34px 34px 30px;
    display: flex;
    flex-direction: column;
}

.product-modal-body h3 {
    font-size: 1.9rem;
    color: var(--brand-dark);
    margin-bottom: 22px;
}

.pm-specs {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.pm-spec {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.98rem;
}

.pm-spec .lbl {
    color: var(--text-muted);
}

.pm-spec .val {
    color: var(--brand-dark);
    font-weight: 700;
}

.pm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.pm-actions .btn-outline {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 18px;
    font-size: 0.98rem;
}

.product-modal-body .pm-note {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.product-modal-body .btn-primary {
    width: 100%;
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-modal-close i {
    font-size: 20px;
    color: var(--brand-dark);
}

@media(max-width:768px) {
    .product-modal-card {
        grid-template-columns: 1fr;
        max-width: 460px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ===== Multi-step form (footer/hero) ===== */
.lead-step {
    display: none;
}

.lead-step.active {
    display: block;
}

.service-select-card {
    cursor: pointer;
}

/* ==========================================================================
   Dropdown nav, mobile menu panel, client marquee, model popup,
   table details column, transparent bottom-lead form, responsive rules
   ========================================================================== */

/* ----- Termékeink dropdown ----- */
.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 290px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-global);
    box-shadow: var(--shadow-xl);
    padding: 10px;
    z-index: var(--z-dropdown);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.dropdown-menu a {
    display: block;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-dark);
    white-space: nowrap;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.dropdown-toggle i {
    transition: transform var(--transition-normal);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* ----- nav collapse wrapper: invisible on desktop, panel on mobile ----- */
.nav-collapse {
    display: contents;
}

/* ----- Client logos: bigger on desktop, marquee on mobile ----- */
.clients-logos {
    overflow: hidden;
}

.clients-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    gap: 30px 50px;
}

.clients-track img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.78;
    transition: opacity .2s, filter .2s;
}

.clients-track img[aria-hidden="true"] {
    display: none;
}

.clients-track img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .clients-logos {
        position: relative;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    }

    .clients-track {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        width: max-content;
        animation: clients-marquee 22s linear infinite;
    }

    .clients-track img {
        height: 42px;
        margin: 0 28px;
        flex: 0 0 auto;
    }

    .clients-track img[aria-hidden="true"] {
        display: block;
    }

    @keyframes clients-marquee {
        from { transform: translateX(0); }
        to   { transform: translateX(-50%); }
    }
}

/* ----- Pavilon table: Részletek column + details button ----- */
.spec-table .col-details {
    text-align: center;
    white-space: nowrap;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: var(--radius-global);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.btn-details:hover {
    background: var(--brand);
    color: #fff;
}

.btn-details i {
    font-size: 16px;
}

/* ----- Model detail popup ----- */
.model-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 40, 0.85);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.model-modal.open {
    display: flex;
}

.model-modal-card {
    background: #fff;
    border-radius: 14px;
    max-width: 760px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.model-modal-media {
    background: var(--gray-50);
}

.model-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.model-modal-body {
    padding: 38px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.model-modal-body h3 {
    font-size: 1.55rem;
    color: var(--brand-dark);
    margin-bottom: 14px;
}

.model-modal-body .mm-note {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.model-modal-body .btn-primary {
    width: 100%;
}

.model-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.model-modal-close i {
    font-size: 20px;
    color: var(--brand-dark);
}

@media (max-width: 600px) {
    .model-modal-card {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .model-modal-media {
        aspect-ratio: 16 / 10;
    }
}

/* ----- Transparent form-card ONLY inside bottom-lead ----- */
.bottom-lead .form-card {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* ==========================================================================
   MOBILE NAV PANEL + RESPONSIVE HARDENING
   ========================================================================== */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: var(--white);
        padding: 16px 22px 22px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-wrapper.open .nav-collapse {
        display: flex;
    }

    .nav-collapse .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }

    .nav-collapse .nav-links > a,
    .dropdown-toggle {
        padding: 13px 6px;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-links a::after {
        display: none;
    }

    .dropdown {
        width: 100%;
    }

    /* On mobile the submenu is always expanded inline (no hover), visually nested */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--brand-light);
        border-radius: 0;
        min-width: 0;
        margin: 4px 0 8px 10px;
        padding: 2px 0 2px 12px;
        background: transparent;
    }

    .dropdown-menu a {
        padding: 10px 10px;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-muted);
        border-bottom: none;
    }

    .dropdown-menu a::before {
        content: "\2013";
        margin-right: 8px;
        color: var(--brand);
    }

    .dropdown:hover .dropdown-toggle i {
        transform: none;
    }

    .nav-collapse .nav-cta {
        display: flex;
        width: 100%;
        margin-top: 12px;
    }

    .nav-collapse .nav-cta .btn {
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Prevent any horizontal overflow on small screens */
@media (max-width: 768px) {
    .lead-info-item {
        gap: 14px;
        padding: 14px 16px;
    }

    .lead-info-item strong {
        font-size: 1.05rem;
        letter-spacing: 0;
        word-break: break-word;
    }

    .teaser-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-col[style*="span 2"] p {
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1.05rem;
    }

    .hero-feature-item {
        font-size: 0.85rem;
        padding: 8px 14px;
    }

    .prod-tabs {
        gap: 0;
    }

    .prod-tab {
        padding: 12px 14px;
        font-size: 0.92rem;
    }

    .lead-info,
    .lead-form-wrapper {
        padding: 32px 18px;
    }
}

/* ==========================================================================
   SUBPAGE COMPONENTS (veszelyesanyag-tarolo, dohanyzopavilonok, raktarkontenerek, karmentotalcak)
   Additive only — no existing rule is altered, so index.html is unaffected.
   ========================================================================== */

/* Active nav link (current page) */
.nav-links a.active,
.dropdown-menu a.active {
    color: var(--brand);
}

/* Technical form section divider ("MŰSZAKI SPECIFIKÁCIÓK") */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px 0 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Image-left modifier for service-detail blocks (default grid = image right) */
.service-detail.img-left .service-gallery {
    order: -1;
}

/* Descriptive data tables (kept off .spec-table so site.js does NOT auto-linkify them) */
.data-table-title {
    font-size: 1.3rem;
    color: var(--brand-dark);
    margin: 46px 0 16px;
}

.data-table-title:first-of-type {
    margin-top: 0;
}

.data-table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius-global);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    min-width: 880px;
}

.data-table th {
    background: var(--brand-dark);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98rem;
    padding: 16px 22px;
    font-weight: 700;
}

.data-table td {
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
    color: var(--text-muted);
    vertical-align: top;
    line-height: 1.5;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.data-table .tcode {
    color: var(--brand);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

/* Dark process variant (A Megrendelés és Kivitelezés Folyamata) */
.process-section.dark {
    background: var(--brand-dark);
}

.process-section.dark .section-title {
    color: var(--white) !important;
}

.process-section.dark > .container > p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.process-section.dark .process-step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.process-section.dark .process-step h3 {
    color: var(--white) !important;
}

.process-section.dark .process-step p {
    color: rgba(255, 255, 255, 0.7);
}

.process-section.dark .process-grid::before {
    background: rgba(255, 255, 255, 0.12);
}

.process-section.dark .process-number {
    box-shadow: 0 0 0 4px var(--brand-dark);
}

/* Permits / standards (Engedélyek és Szabványok) — dark band, 2 cards + check bullets */
.permits-section {
    padding: var(--section-padding-y) 0;
    background: var(--brand-dark);
}

.permits-section .section-subtitle {
    color: var(--brand);
}

.permits-section .section-title {
    color: var(--white);
}

.permits-intro {
    color: rgba(255, 255, 255, 0.72) !important;
    max-width: 780px;
    margin: 0 auto 56px;
    text-align: center;
}

.permits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.permit-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.permit-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.permit-card-head i {
    font-size: 36px;
    color: var(--brand);
    line-height: 1;
}

.permit-card-head h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.45rem;
}

.permit-card > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.permit-checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.permit-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.4;
}

.permit-checks i {
    color: var(--brand);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Why-choose cards: subtle green border accent */
.why-section .usp-card {
    border: 1px solid var(--brand-light);
}

.why-section .usp-card:hover {
    border-color: var(--brand);
}

/* Dark reference-gallery variant (Válogatás Referenciáinkból) */
.gallery-section.dark {
    background: var(--brand-dark);
}

.gallery-section.dark .section-subtitle {
    color: var(--brand);
}

.gallery-section.dark .section-title {
    color: var(--white);
}

.gallery-section.dark .text-center > p {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 768px) {
    .permits-grid {
        grid-template-columns: 1fr;
    }
}