:root {
    --primary-blue: #001A33;
    --accent-orange: #FF6B00;
    --light-bg: #F4F7F9;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }

.navbar {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-mobile-bar {
    display: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-logo {
    display: flex;
}

.logo-icon {
    font-size: 2rem;
    color: #00A8FF;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.brand-sub {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-contact {
    text-align: right;
}

.phone-link {
    color: var(--accent-orange);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
}

.availability {
    font-size: 0.75rem;
    color: #AAA;
}

.hero {
    background: url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--text-light);
}

.hero-overlay {
    background: rgba(0, 26, 51, 0.75);
    padding: 80px 0;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-content h2 {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.features-badge {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-orange);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 4px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-orange { background-color: var(--accent-orange); color: white; }
.btn-orange:hover { background-color: #e56000; }
.btn-outline { border: 2px solid white; color: white; }
.btn-outline:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; }

.services {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
}

.section-subtitle {
    color: #666;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: #00A8FF;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-card li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    position: relative;
    padding-left: 14px;
}

.service-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.card-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 15px;
    padding-top: 5px;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: #e56000;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 26, 51, 0.75);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 28px;
    font-weight: bold;
    color: #627d98;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--primary-blue);
}

.modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content h2 i {
    color: var(--accent-orange);
}

.modal-content h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--accent-orange);
    font-size: 1.05rem;
}

.modal-content ol {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-content ol li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #334e68;
    line-height: 1.5;
}

.modal-content ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background-color: var(--accent-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.modal-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #334e68;
    line-height: 1.5;
}

.modal-content ul li::before {
    content: "✔";
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.modal-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 6px;
}

.about { 
    padding: 60px 0; 
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--primary-blue);
}

.about-badges i {
    color: var(--accent-orange);
}

.references {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #dcdfe6;
    background: #ffffff;
    color: #4a5568;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.filter-btn.active {
    background: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.25);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.reference-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.reference-card.clickable {
    cursor: pointer;
}

.reference-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #0d1b2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reference-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.reference-card:hover .reference-img-container img {
    transform: scale(1.05);
}

.reference-content {
    padding: 18px;
    text-align: left;
}

.reference-content h3 {
    font-size: 1rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.reference-content p {
    font-size: 0.85rem;
    color: #627d98;
    margin: 0;
}

.reference-content i {
    color: var(--accent-orange);
    margin-right: 4px;
}

.gallery-modal-content {
    max-width: 700px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-slide {
    display: none;
    width: 100%;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-slide img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: var(--accent-orange);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.gallery-counter {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: #555;
}

.info-banner {
    background-color: var(--primary-blue);
    color: white;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.banner-grid i {
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-right: 5px;
}

.contact {
    background-color: var(--primary-blue);
    color: white;
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.facebook-link,
.facebook-link:visited {
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.facebook-link:hover,
.facebook-link:active {
    color: var(--accent-orange) !important;
    text-decoration: underline;
}

.contact-cta-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-cta-wrapper h3 {
    color: var(--accent-orange);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-cta-wrapper p {
    font-size: 0.88rem;
    color: #DDD;
    margin-bottom: 20px;
}

.cta-phone-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cta-icon {
    font-size: 1.8rem;
    color: var(--accent-orange);
}

.cta-phone {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFF;
    letter-spacing: 0.5px;
}

.btn-large {
    padding: 14px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

footer {
    background-color: #000d1a;
    color: #888;
    padding: 20px 0;
    font-size: 0.8rem;
}

footer a { color: #888; text-decoration: none; }
footer a:hover { color: #FFF; text-decoration: underline; }

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
}

.chat-toggle-btn {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.chat-toggle-btn:hover {
    transform: scale(1.05);
    background-color: #e56000;
}

.chat-box {
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 60px;
    right: 0;
    overflow: hidden;
}

.hidden { display: none; }

.chat-header {
    background: var(--primary-blue);
    color: white;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: bold;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    max-width: 80%;
}

.bot-message { background: #E9ECEF; color: var(--text-dark); align-self: flex-start; }
.user-message { background: var(--accent-orange); color: white; align-self: flex-end; }

.chat-input-area {
    display: flex;
    border-top: 1px solid #DDD;
}

.chat-input-area input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.chat-input-area button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.typing-dots {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    margin-left: 4px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    animation: wave 1.2s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

/* ==========================================================
   Szolgáltatás kártyák listái (korábban többszörösen duplikálva)
   ========================================================== */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.service-card-header {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-action-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-action-list li {
    min-height: 42px;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.service-action-list li a {
    display: inline-block;
    background-color: transparent;
    color: #ff6b00;
    padding: 4px 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1.25;
}

.service-action-list li a:hover {
    color: #e05e00;
    transform: translateX(3px);
}

.service-action-list li a i {
    margin-right: 6px;
    color: #ff6b00;
}

/* ==========================================================
   Menü elemek, amik csak mobilon látszanak
   ========================================================== */
.mobile-call-btn,
.mobile-menu-cta,
.menu-backdrop {
    display: none;
}

.nav-links a i {
    display: none;
}

a.logo {
    color: inherit;
    text-decoration: none;
}

/* Gombok: ne legyen szürke "tap" villanás, és legyen jól látható fókusz */
a, button {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #00A8FF;
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

/* ==========================================================
   TABLET ÉS TELEFON (max 768px)
   ========================================================== */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 64px;
        -webkit-text-size-adjust: 100%;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* ---------- Fejléc + lenyíló szendvics menü ---------- */
    .navbar {
        padding: 0;
        padding-top: env(safe-area-inset-top);
    }

    .desktop-logo {
        display: none !important;
    }

    .top-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background-color: var(--primary-blue);
        padding: 8px 10px;
        position: relative;
        width: 100%;
        min-height: 60px;
        z-index: 2;
    }

    .hamburger-btn,
    .mobile-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        border: none;
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .hamburger-btn {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .hamburger-btn:active {
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-call-btn {
        background: var(--accent-orange);
        color: #fff;
        font-size: 1.1rem;
        text-decoration: none;
    }

    .mobile-call-btn:active {
        background: #e56000;
    }

    .top-mobile-bar .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .top-mobile-bar .logo-icon {
        font-size: 1.5rem;
    }

    .top-mobile-bar .brand-name {
        font-size: 1.1rem;
    }

    .top-mobile-bar .brand-sub {
        font-size: 0.55rem;
    }

    /* A lenyíló panel: a fejléc alatt, saját görgetéssel */
    .navbar .nav-container {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 60px - env(safe-area-inset-top));
        max-height: calc(100dvh - 60px - env(safe-area-inset-top));
        overflow-y: auto;
        overscroll-behavior: contain;
        background-color: var(--primary-blue);
        padding: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .navbar.menu-open .nav-container {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 6px 16px 0;
        text-align: left;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 52px;
        padding: 6px 4px;
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .nav-links a i {
        display: inline-block;
        width: 22px;
        text-align: center;
        color: var(--accent-orange);
        font-size: 1.05rem;
    }

    .nav-links a:active {
        color: var(--accent-orange);
    }

    .mobile-menu-cta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .mobile-menu-cta .btn {
        min-height: 48px;
        font-size: 0.95rem;
        text-align: center;
    }

    .mobile-menu-note {
        color: #AAA;
        font-size: 0.8rem;
        text-align: center;
    }

    .nav-contact {
        display: none;
    }

    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 10, 25, 0.6);
        z-index: 900;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0s linear 0.2s;
    }

    body.menu-open .menu-backdrop {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.2s ease, visibility 0s;
    }

    /* Amíg nyitva a menü, a chat gomb ne zavarjon */
    body.menu-open .chat-widget {
        display: none;
    }

    /* ---------- Hero ---------- */
    .hero-overlay {
        padding: 40px 0 44px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1rem;
        margin-bottom: 22px;
    }

    .features-badge {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 50px;
        text-align: center;
    }

    /* ---------- Szekciók ---------- */
    .services,
    .about,
    .references {
        padding: 40px 0;
    }

    .contact {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        margin-bottom: 22px;
    }

    .service-card {
        min-height: 0;
        padding: 26px 20px;
    }

    .service-action-list li {
        min-height: 46px;
    }

    .service-action-list li a {
        padding: 8px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-image img {
        height: auto;
        max-height: 320px;
    }

    .about-badges {
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .filter-container {
        gap: 8px;
        margin-bottom: 25px;
    }

    .filter-btn {
        padding: 9px 16px;
        font-size: 0.85rem;
        min-height: 40px;
    }

    .reference-img-container {
        height: 190px;
    }

    .references .btn-large {
        text-align: center;
        line-height: 1.35;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info p {
        margin-bottom: 10px;
    }

    .cta-phone {
        font-size: 1.2rem;
    }

    footer {
        padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
        line-height: 1.8;
    }

    /* ---------- Felugró ablakok (modal) ---------- */
    .modal {
        padding: 10px;
    }

    .modal-content {
        padding: 22px 18px;
        max-height: 92vh;
        max-height: 92dvh;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .modal-content h2 {
        font-size: 1.15rem;
        padding-right: 36px;
        line-height: 1.3;
    }

    .close-btn {
        right: 6px;
        top: 6px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3;
    }

    .modal-call-btn {
        min-height: 48px;
    }

    .gallery-modal-content {
        padding: 14px;
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
    }

    .gallery-modal-content h2 {
        font-size: 1.1rem;
        padding-right: 40px;
        line-height: 1.3;
        color: var(--primary-blue);
    }

    .carousel-slide img {
        max-height: 60vh;
    }

    .prev-btn,
    .next-btn {
        width: 44px;
        height: 44px;
    }

    /* ---------- Chat ---------- */
    .chat-widget {
        bottom: calc(14px + env(safe-area-inset-bottom));
        right: 14px;
    }

    .chat-toggle-btn {
        min-height: 46px;
        padding: 12px 18px;
    }

    .chat-box {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        width: auto;
        height: min(480px, calc(100dvh - 160px));
    }

    /* 16px alatti betűméretnél az iPhone ráközelít a mezőre */
    .chat-input-area input {
        font-size: 16px;
        padding: 12px;
    }

    .chat-input-area button {
        min-width: 52px;
    }

    .message {
        max-width: 88%;
    }
}

/* ==========================================================
   KIS TELEFONOK (max 480px)
   ========================================================== */
@media (max-width: 480px) {
    .container {
        width: 92%;
    }

    .services-grid,
    .reference-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        height: 220px;
    }

    .chat-toggle-btn {
        font-size: 0.9rem;
    }
}

/* Fekvő telefon: alacsony képernyőn ne foglaljon sokat a hero és a galéria */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .hero-overlay {
        padding: 24px 0;
    }

    .carousel-slide img {
        max-height: 55vh;
    }
}

/* Aki kikapcsolta az animációkat a rendszerben */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
