﻿.header-dropdown-wrap-new.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
}

html,
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.header.header--main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.header.header--main > .header-top-new {
    margin-top: -18px !important;
}

.header-block-new:focus-within .header-dropdown-wrap-new {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-dropdown-search {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid #e7e9f1;
    border-radius: 12px;
    background: #f7f8fc;
    color: #262633;
    font-size: 14px;
}

.header-dropdown-search:focus {
    outline: none;
    border-color: #d5d9e5;
    background: #fff;
}

.header__searchbar:focus-within,
.header__search:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

.header__search input:focus,
.header__search input:focus-visible {
    outline: none !important;
    border: 2px solid #e6342a !important;
    box-shadow: 0 12px 30px rgba(21, 21, 21, 0.08) !important;
}

.header__search input {
    box-sizing: border-box;
    border: 1px solid #dde2ec !important;
    -webkit-appearance: none;
    appearance: none;
}

.header-dropdown-scroll {
    max-height: 260px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .header-top-new {
        display: none !important;
    }

    .header--main {
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
    }

    .header__inner {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        align-items: center;
        gap: 14px 12px !important;
        position: relative;
        z-index: 30;
    }

    .header__logolink {
        display: inline-flex !important;
        align-items: center;
        width: 96px;
    }

    .header__logolink svg {
        width: 100%;
        height: auto;
    }

    .header__main {
        display: contents !important;
    }

    .header__catbtn,
    .header__find--text,
    .header-search {
        display: none !important;
    }

    .header-mobile-location {
        display: flex !important;
        align-items: center;
        gap: 10px;
        justify-content: flex-end;
        position: relative;
        z-index: 31;
    }

    .header-mobile-language {
        position: relative;
        z-index: 31;
    }

    .header-mobile-language__selected {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 999px;
        background: #f4f5f8;
        color: #6f7484;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        box-shadow: 0 6px 18px rgba(21, 21, 21, 0.04);
        cursor: pointer;
    }

    .header-mobile-language__backdrop {
        position: fixed;
        inset: 0;
        z-index: 39;
        background: transparent;
    }

    .header-mobile-language__dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 40;
    }

    .header-mobile-language__dropdown.is-open {
        display: block !important;
    }

    .header-mobile-language__menu {
        width: min(104px, calc(100vw - 32px));
        padding: 8px;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(21, 21, 21, 0.14);
        display: grid;
        gap: 6px;
    }

    .header-mobile-language__menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 10px;
        border-radius: 12px;
        color: #2b2d3a;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        background: #f6f7fb;
    }

    .header-mobile-language__menu a.is-active {
        background: rgba(230, 52, 42, 0.08);
        color: #e6342a;
    }

    .header-mobile-location__selected {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        background: #f4f5f8;
        color: #6f7484;
        font-size: 16px;
        font-weight: 500;
        box-shadow: 0 6px 18px rgba(21, 21, 21, 0.04);
        position: relative;
        z-index: 32;
        cursor: pointer;
        pointer-events: auto;
    }

    .header-mobile-location__backdrop {
        position: fixed;
        inset: 0;
        z-index: 39;
        background: transparent;
    }

    .header-mobile-location__dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        z-index: 40;
    }

    .header-mobile-location__dropdown.is-open {
        display: block !important;
    }

    .header-mobile-location__menu {
        width: min(320px, calc(100vw - 32px));
        padding: 14px;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(21, 21, 21, 0.14);
    }

    .header-mobile-location__search {
        margin-bottom: 14px;
    }

    .header-mobile-location__search input {
        width: 100%;
        height: 42px;
        padding: 0 14px;
        border: 1px solid #e0e1e3;
        border-radius: 12px;
        background: #f6f7fb;
        font-size: 14px;
        color: #2b2d3a;
    }

    .header-mobile-location__group + .header-mobile-location__group {
        margin-top: 14px;
    }

    .header-mobile-location__title {
        margin-bottom: 8px;
        color: #8e93a3;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .header-mobile-location__list {
        display: grid;
        gap: 6px;
        max-height: 180px;
        overflow-y: auto;
    }

    .header-mobile-location__list a {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 0 12px;
        border-radius: 12px;
        color: #2b2d3a;
        font-size: 14px;
        font-weight: 500;
        background: #f6f7fb;
    }

    .header-mobile-location__list a.is-active {
        background: rgba(230, 52, 42, 0.08);
        color: #e6342a;
    }

    .header-mobile-topline {
        grid-column: 1 / -1;
        display: block !important;
        position: relative;
        z-index: 29;
        margin-top: 6px;
    }

    .header-mobile-info {
        position: relative;
    }

    .header-mobile-info__trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        padding: 0 16px;
        border-radius: 16px;
        background: #f4f5f8;
        color: #262633;
        box-shadow: 0 6px 18px rgba(21, 21, 21, 0.04);
        cursor: pointer;
    }

    .header-mobile-info__lead {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .header-mobile-info__icon {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(230, 52, 42, 0.1);
        color: #e6342a;
        flex-shrink: 0;
    }

    .header-mobile-info__icon svg {
        width: 16px;
        height: 16px;
    }

    .header-mobile-info__label {
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }

    .header-mobile-info__hint {
        margin-left: auto;
        color: #8e93a3;
        font-size: 12px;
        white-space: nowrap;
    }

    .header-mobile-info__arrow {
        width: 16px;
        height: 16px;
        transition: transform 0.2s ease;
        flex-shrink: 0;
    }

    .header-mobile-info__arrow.is-open {
        transform: rotate(180deg);
    }

    .header-mobile-info__backdrop {
        position: fixed;
        inset: 0;
        z-index: 39;
        background: transparent;
    }

    .header-mobile-info__dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 40;
    }

    .header-mobile-info__dropdown.is-open {
        display: block !important;
    }

    .header-mobile-info__menu {
        padding: 10px;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(21, 21, 21, 0.14);
        display: grid;
        gap: 6px;
    }

    .header-mobile-info__menu a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 14px;
        border-radius: 12px;
        background: #f6f7fb;
        color: #2b2d3a;
        font-size: 14px;
        font-weight: 500;
    }

    .header-mobile-info__menu a:active {
        background: rgba(230, 52, 42, 0.08);
        color: #e6342a;
    }

    .header__searchbar {
        grid-column: 1 / -1;
        display: block !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        z-index: 9;
    }

    .header__search {
        position: relative;
        width: 100%;
    }

    .header__search input {
        height: 62px !important;
        padding-left: 20px !important;
        padding-right: 72px !important;
        border: none !important;
        border-radius: 20px !important;
        background: #fff !important;
        box-shadow: 0 12px 30px rgba(21, 21, 21, 0.08) !important;
        color: #2b2d3a;
        font-size: 16px;
    }

    .header__search input::placeholder {
        color: #a0a5b3;
    }

    .header__searchbtn {
        position: absolute !important;
        top: 50% !important;
        right: 16px !important;
        transform: translateY(-50%) !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 14px !important;
        background: #e6342a !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .header__searchbtn img {
        width: 18px !important;
        height: 18px !important;
        filter: brightness(0) invert(1);
    }
}

.header-block-new--topline-end {
    margin-left: auto;
}

.header-block-new--info .header-dropdown-wrap-new {
    left: auto;
    right: 0;
    min-width: 220px;
    max-height: none;
}

.header-block-new--info .header-dropdown-new li a {
    color: #151515;
    font-weight: 500;
}

.header-block-new--info .header-dropdown-new li a:hover {
    background: #f4f5f8;
    color: #e6342a;
}

.header-block-new--info .header-selected-new {
    gap: 6px;
}

.header-info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
