@media (max-width: 1180px) {
    .header-container {
        gap: 12px;
    }

    .navbar-collapse {
        gap: 10px;
    }

    .navbar-collapse a {
        min-height: 40px;
        padding: 0 10px;
        font-size: 0.95rem;
    }

    .language-switcher {
        padding: 4px;
        gap: 4px;
    }

    .lang-btn {
        min-width: 42px;
        height: 36px;
        padding: 0 10px;
    }
}

@media (max-width: 1080px) {
    .hero-stats,
    .products-grid,
    .about-grid,
    .documents-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout,
    .address-map-grid,
    .contact-cta,
    .contact-main-layout {
        grid-template-columns: 1fr;
        display: grid;
    }

    .contact-main-layout {
        max-width: 720px;
        margin: 0 auto;
        align-items: stretch;
    }

    .contact-team-column {
        height: auto;
    }

    .contact-team-grid {
        grid-template-rows: auto;
    }

    .contact-company-strip {
        grid-column: auto;
    }

    .contact-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1080px) {
    :root {
        --header-height: 78px;
    }

    .navbar-toggler {
        display: block;
        margin-left: auto;
    }

    .navbar-collapse {
        position: fixed;
        top: calc(var(--header-height) + 8px);
        left: 16px;
        right: 16px;
        z-index: 1099;
        width: auto;
        max-height: calc(100dvh - var(--header-height) - 24px);
        overflow-y: auto;
        padding: 18px;
        border-radius: 24px;
        background: rgba(7, 19, 31, 0.96);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
        flex: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 18px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity var(--transition), transform var(--transition);
    }

    .navbar-collapse.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar-collapse ul,
    .header-tools {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .navbar-collapse a {
        justify-content: flex-start;
        min-height: 46px;
        width: 100%;
        padding: 0 16px;
        border-radius: 16px;
    }

    .navbar-collapse a::after {
        left: 16px;
        right: auto;
        width: 42px;
        bottom: 8px;
        transform-origin: left center;
    }

    .language-switcher {
        width: 100%;
        max-width: 320px;
        margin: 4px auto 0;
        justify-content: space-between;
        padding: 5px;
    }

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

    .nav-cta {
        width: 100%;
    }

    .logo-img {
        width: 82px;
        height: 82px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 70px;
    }

    .hero-copy {
        margin-left: clamp(10px, 3vw, 28px);
    }

    .hero-copy h1 {
        line-height: 1.02;
    }
}

@media (max-width: 720px) {
    .section {
        padding: 84px 0;
    }

    .hero-stats,
    .products-grid,
    .about-grid,
    .documents-grid {
        grid-template-columns: 1fr;
    }

    .contact-panel,
    .product-card,
    .info-panel,
    .document-card,
    .contact-cta,
    .modal-dialog,
    .contact-form-card,
    .team-contact-card,
    .contact-company-strip,
    .contact-info-card {
        padding: 24px;
        border-radius: 24px;
    }

    .address-map-grid {
        grid-template-columns: 1fr;
    }

    .address-map-card iframe {
        height: 360px;
        min-height: 360px;
        flex: 0 0 auto;
    }

    .contact-form-card,
    .team-contact-card,
    .contact-team-column {
        height: auto;
    }

    .hero-copy {
        margin-left: 0;
        padding-bottom: 54px;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 11vw, 3.8rem);
    }

    .hero-actions,
    .modal-actions,
    .contact-cta-actions,
    .document-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .modal-actions .btn,
    .contact-cta-actions .btn,
    .document-actions .btn,
    .document-actions .btn-link {
        width: 100%;
    }

    .team-contact-top {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 16px;
    }

    .team-photo-wrap {
        width: 110px;
        height: 125px;
    }
}

@media (max-width: 560px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(100% - 22px, var(--container));
    }

    .logo-mark {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .logo-text {
        font-size: 1rem;
        white-space: normal;
        max-width: 140px;
    }

    .logo-img {
        width: 70px;
        height: 70px;
    }

    .navbar-toggler {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .floating-contact {
        right: 14px;
        bottom: 14px;
        padding: 13px 16px;
    }

    .team-contact-top {
        grid-template-columns: 1fr;
    }

    .team-photo-wrap {
        width: 100%;
        height: 240px;
    }

    .team-contact-content h4 {
        font-size: 1.35rem;
    }

    .team-contact-link {
        font-size: 0.96rem;
        padding: 14px 16px;
    }
}


@media (max-width: 1080px) {
    .contact-company-strip {
        grid-column: auto;
    }
}


/* Mobile safety: v jednom stĺpci nech fakturačné údaje prirodzene nasledujú pod kontaktmi */
@media (max-width: 1080px) {
    .contact-company-strip {
        grid-column: auto;
    }
}
