/* Scoped to the header: footer and sidebar links keep their own layout. */
@media (min-width: 769px) {
    .header .header-content {
        gap: 16px;
    }

    .header .logo,
    .header .header-contacts,
    .header .hamburger {
        flex-shrink: 0;
    }

    .header .header-phone,
    .header .header-address {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    .header .nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .header .nav-list {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .header .nav-list > li {
        flex: 0 0 auto;
    }

    .header .nav-list > li > a {
        display: block;
        padding: 8px 0;
        font-size: clamp(14px, 1.05vw, 15px);
        line-height: 1.35;
        white-space: nowrap;
    }


}

/* Use the existing sidebar before the full navigation runs out of room. */
@media (min-width: 769px) and (max-width: 1199px) {
    .header .nav.desktop-only {
        display: none;
    }

    .header .header-contacts {
        margin-left: auto;
    }

    .header .hamburger {
        display: flex;
    }
}

/* Transparent source logo, sized independently of the previous wide logo. */
.header .logo .specservis-brand-logo {
    display: block;
    width: 68px;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
}
.header .header-content { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 768px) {
    .header .logo .specservis-brand-logo { width: 50px; }
    .header .header-content { padding-top: 0; padding-bottom: 0; }
}
