/* ТопСтройка — светлая шапка (референс: чисто / воздушно, наши цвета) */
.mz-header.mz-header--light,
.mz-header--light {
    --mz-header: #ffffff;
    --mz-header-border: #e6e9ef;
    --mz-header-muted: #6b7385;
    --mz-header-text: #1a1f2e;
    --mz-header-soft: #f4f6f9;
    --mz-header-nav-height: 36px;
    background: #fff;
    color: var(--mz-header-text);
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(18, 24, 32, 0.06);
}

.mz-header--light.is-scrolled {
    box-shadow: 0 8px 20px rgba(18, 24, 32, 0.07);
}

/* —— верхняя полоса —— */
.mz-header--light .mz-header-top {
    background: #fff;
    color: var(--mz-header-text);
    border-bottom: 0;
    font-size: 12px;
}

.mz-header--light .mz-header-top__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 44px;
    padding: 10px 0;
    flex-wrap: nowrap;
}

.mz-header--light .mz-header-top__left {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.mz-header--light .mz-header-top__right {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
    flex-shrink: 0;
}

.mz-header--light .mz-header-sell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: var(--mz-accent, #c45c26);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.mz-header--light .mz-header-sell:hover {
    background: transparent;
    border: 0;
    color: #9a4318;
    text-decoration: none;
    opacity: 1;
}

.mz-header--light .mz-header-sell i {
    font-size: 10px;
    transition: transform 0.18s ease;
}

.mz-header--light .mz-header-sell:hover i {
    transform: rotate(90deg);
}

.mz-header--light .mz-city-form {
    gap: 4px;
}

.mz-header--light .mz-city-form__label {
    color: var(--mz-header-muted);
    font-size: 12px;
}

.mz-header--light .mz-city-trigger {
    color: var(--mz-header-text);
    font-weight: 600;
    background: transparent;
    border: 0;
    padding: 0;
}

.mz-header--light .mz-city-trigger:hover {
    color: var(--mz-accent, #c45c26);
}

.mz-header--light .mz-header-contacts {
    gap: 8px;
}

.mz-header--light .mz-header-contacts__phone {
    color: var(--mz-header-text);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}

.mz-header--light .mz-header-contacts__phone:hover {
    color: var(--mz-accent, #c45c26);
    text-decoration: none;
}

.mz-header--light .mz-header-contacts__hours {
    color: var(--mz-header-muted);
    font-size: 11px;
    white-space: nowrap;
}

.mz-header--light .mz-header-info-nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 4px 16px;
    padding: 0 4px;
    min-width: 0;
}

.mz-header--light .mz-header-info-nav__link,
.mz-header--light .mz-header-info-nav__trigger {
    color: #3d4556;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    padding: 2px 0;
    position: relative;
    transition: color 0.18s ease;
}

.mz-header--light .mz-header-info-nav__link:hover,
.mz-header--light .mz-header-info-nav__trigger:hover {
    color: var(--mz-header-text);
    text-decoration: none;
}

.mz-header--light .mz-header-info-nav__link::after,
.mz-header--light .mz-header-info-nav__trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--mz-accent, #c45c26);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

.mz-header--light .mz-header-info-nav__link:hover::after,
.mz-header--light .mz-header-info-nav__trigger:hover::after {
    transform: scaleX(1);
}

.mz-header--light .mz-header-info-nav__caret {
    opacity: 0.55;
}

.mz-header--light .mz-header-info-nav__menu {
    top: calc(100% + 8px);
    min-width: 180px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--mz-header-border);
    border-radius: 4px;
    box-shadow: 0 12px 28px rgba(18, 24, 32, 0.1);
}

.mz-header--light .mz-header-info-nav__menu a {
    color: #2a3140;
    font-size: 12px;
    padding: 7px 14px;
}

.mz-header--light .mz-header-info-nav__menu a:hover {
    color: var(--mz-header-text);
    background: #f7f8fa;
    text-decoration: none;
}

.mz-header--light .mz-header-auth {
    color: #3d4556;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.18s ease;
}

.mz-header--light .mz-header-auth:hover {
    color: var(--mz-header-text);
    text-decoration: none;
}

.mz-header--light .mz-header-auth--accent {
    color: var(--mz-accent, #c45c26);
}

.mz-header--light .mz-header-auth--accent:hover {
    color: #9a4318;
}

.mz-header--light .mz-social-link {
    width: 22px;
    height: 22px;
    background: transparent;
    color: #6b7385;
    border: 0;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease;
}

.mz-header--light .mz-social-link:hover {
    background: #f3f5f8;
    border: 0;
    color: var(--mz-header-text);
    text-decoration: none;
}

/* —— основной бар —— */
.mz-header--light .mz-header-bar {
    background: #fff;
    border-bottom: 0;
}

.mz-header--light .mz-header-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 14px 0;
    flex-wrap: nowrap;
}

.mz-header--light .mz-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mz-header-text);
    text-decoration: none;
    flex-shrink: 0;
}

.mz-header--light .mz-logo:hover {
    color: var(--mz-header-text);
    text-decoration: none;
    opacity: 0.92;
}

.mz-header--light .mz-logo__icon {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    overflow: hidden;
}

.mz-header--light .mz-logo__image {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.mz-header--light .mz-logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: linear-gradient(145deg, #d9793a, var(--mz-accent, #c45c26));
    color: #fff;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(196, 92, 38, 0.22);
}

.mz-header--light .mz-logo__brand {
    font-size: clamp(15px, 1.35vw, 18px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.mz-header--light .mz-logo__brand-top {
    color: var(--mz-header-text);
}

.mz-header--light .mz-logo__brand-rest {
    color: var(--mz-accent, #c45c26);
}

.mz-header--light .mz-logo__tagline {
    color: var(--mz-header-muted);
    font-size: 10px;
    max-width: 170px;
}

.mz-header--light .mz-btn-catalog {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: var(--mz-primary, #1e3a5f);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: none;
    transition: background 0.15s ease;
}

.mz-header--light .mz-btn-catalog:hover {
    background: #274866;
    transform: none;
    text-decoration: none;
    color: #fff;
}

.mz-header--light .mz-btn-catalog[aria-expanded="true"] {
    background: var(--mz-accent, #c45c26);
    box-shadow: none;
}

.mz-header--light .mz-btn-catalog__icon--burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5px;
    width: 14px;
}

.mz-header--light .mz-btn-catalog__icon--burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    border-radius: 0;
    background: currentColor;
}

.mz-header--light .mz-header-bar .mz-search--bar {
    position: relative;
    display: flex;
    align-items: stretch;
    flex: 1 1 300px;
    max-width: none;
    min-width: 160px;
    height: 36px;
    box-sizing: border-box;
}

.mz-header--light .mz-header-bar .mz-search__lead-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a93a5;
    pointer-events: none;
    z-index: 1;
    display: inline-flex;
    line-height: 0;
}

.mz-header--light .mz-header-bar .mz-search__lead-icon svg {
    width: 14px;
    height: 14px;
}

.mz-header--light .mz-header-bar .mz-search__input {
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    flex: 1 1 auto;
    width: 0;
    margin: 0;
    border: 1px solid #d5dae3;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 10px 0 32px;
    background: #fff;
    color: var(--mz-header-text);
    font: inherit;
    font-size: 12px;
    line-height: 34px;
    appearance: none;
    -webkit-appearance: none;
}

.mz-header--light .mz-header-bar .mz-search__input::placeholder {
    color: #939aac;
}

.mz-header--light .mz-header-bar .mz-search__input:focus {
    outline: none;
    border-color: var(--mz-primary, #1e3a5f);
    background: #fff;
    box-shadow: none;
}

.mz-header--light .mz-header-bar .mz-search__btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    min-width: 72px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--mz-primary, #1e3a5f);
    border-radius: 0 4px 4px 0;
    background: var(--mz-primary, #1e3a5f);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.mz-header--light .mz-header-bar .mz-search__btn:hover {
    background: var(--mz-primary-hover, #152a45);
    border-color: var(--mz-primary-hover, #152a45);
}

.mz-header--light .mz-header-tenders {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mz-header--light .mz-header-tenders__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mz-header--light .mz-header-tenders__btn--outline {
    color: var(--mz-primary, #1e3a5f);
    background: transparent;
    border: 1px solid transparent;
}

.mz-header--light .mz-header-tenders__btn--outline:hover {
    color: var(--mz-primary, #1e3a5f);
    background: #f3f5f8;
    border-color: transparent;
    text-decoration: none;
}

.mz-header--light .mz-header-tenders__btn--accent {
    color: #fff;
    background: var(--mz-accent, #c45c26);
    border: 1px solid transparent;
}

.mz-header--light .mz-header-tenders__btn--accent:hover {
    background: #b35220;
    border-color: transparent;
    color: #fff;
    text-decoration: none;
}

.mz-header--light .mz-header-tenders__label-short {
    display: none;
}

.mz-header--light .mz-header-actions {
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin-left: auto;
    flex-shrink: 0;
}

.mz-header--light .mz-header-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 44px;
    padding: 4px 6px;
    color: var(--mz-header-text);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mz-header--light .mz-header-action:hover {
    background: #f3f5f8;
    border-color: transparent;
    color: var(--mz-header-text);
    text-decoration: none;
}

.mz-header--light .mz-header-action__icon {
    color: #3d4556;
    line-height: 0;
    transition: color 0.18s ease;
}

.mz-header--light .mz-header-action__icon i {
    font-size: 15px;
    line-height: 1;
}

.mz-header--light .mz-header-action:hover .mz-header-action__icon {
    color: var(--mz-header-text);
}

.mz-header--light .mz-header-action__label {
    color: var(--mz-header-muted);
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.mz-header--light .mz-header-action:hover .mz-header-action__label {
    color: var(--mz-header-text);
}

.mz-header--light .mz-header-action__badge {
    position: absolute;
    top: 2px;
    right: 4px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--mz-accent, #c45c26);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

/* —— mega-меню —— */
.mz-header--light .mz-mega {
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 16px 32px rgba(18, 24, 32, 0.08);
}

.mz-header--light .mz-mega__title {
    color: var(--mz-header-text);
}

.mz-header--light .mz-mega__title:hover {
    color: var(--mz-accent, #c45c26);
    text-decoration: none;
}

.mz-header--light .mz-mega__list a {
    color: var(--mz-header-muted);
}

.mz-header--light .mz-mega__list a:hover {
    color: var(--mz-accent, #c45c26);
    text-decoration: none;
}

.mz-header--light .mz-mega .mz-menu-icon svg {
    stroke: #7a8498;
}

.mz-header--light .mz-mega__title:hover .mz-menu-icon svg {
    stroke: var(--mz-accent, #c45c26);
}

/* —— быстрые разделы (текстовые ссылки как в референсе) —— */
.mz-header--light .mz-header-nav {
    background: #fff;
    border-bottom: 0;
}

.mz-header--light .mz-quick-nav {
    gap: 4px 18px;
    padding: 8px 0;
    scrollbar-color: rgba(30, 58, 95, 0.2) transparent;
}

.mz-header--light .mz-quick-nav::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 95, 0.18);
}

.mz-header--light .mz-cat-pill {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #2a3140;
    padding: 2px 0;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.mz-header--light .mz-cat-pill:hover {
    background: transparent;
    border: 0;
    color: var(--mz-header-text);
    text-decoration: none;
}

.mz-header--light .mz-cat-pill.is-current {
    background: transparent;
    border: 0;
    color: var(--mz-accent, #c45c26);
    font-weight: 650;
}

.mz-header--light .mz-cat-pill .mz-menu-icon svg {
    stroke: #8a93a5;
}

.mz-header--light .mz-cat-pill:hover .mz-menu-icon svg,
.mz-header--light .mz-cat-pill.is-current .mz-menu-icon svg {
    stroke: currentColor;
}

/* —— адаптив —— */
@media (max-width: 1200px) {
    .mz-header--light .mz-logo__tagline {
        display: none;
    }

    .mz-header--light .mz-header-action__label {
        display: none;
    }

    .mz-header--light .mz-header-action {
        min-width: 40px;
        padding: 8px;
    }

    .mz-header--light .mz-header-tenders__label-long {
        display: none;
    }

    .mz-header--light .mz-header-tenders__label-short {
        display: inline;
    }
}

@media (max-width: 1100px) {
    .mz-header--light .mz-header-top__inner {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .mz-header--light .mz-header-info-nav {
        order: 4;
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        padding-top: 6px;
        border-top: 1px solid var(--mz-header-border);
        row-gap: 6px;
    }
}

@media (max-width: 900px) {
    .mz-header--light .mz-header-sell {
        order: 0;
    }

    .mz-header--light .mz-header-bar__inner {
        flex-wrap: wrap;
        min-height: 0;
        gap: 8px;
    }

    .mz-header--light .mz-header-tenders {
        order: 3;
    }

    .mz-header--light .mz-header-actions {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .mz-header--light .mz-header-auth {
        display: none;
    }

    .mz-header--light .mz-header-contacts__hours {
        display: none;
    }

    .mz-header--light .mz-header-bar .mz-search__btn {
        min-width: 44px;
        font-size: 0;
    }

    .mz-header--light .mz-header-bar .mz-search__btn::before {
        content: "";
        display: block;
        width: 15px;
        height: 15px;
        background: center / contain no-repeat
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
    }
}
