.v2-header,
.v2-header * {
    box-sizing: border-box;
}

.v2-header {
    --v2-header-height: 128px;
    position: sticky;
    z-index: 11000;
    top: 0;
    width: 100%;
    height: var(--v2-header-height);
    background: transparent;
    color: #f7f8fa;
    pointer-events: none;
}

.v2-header.is-open {
    position: fixed;
    inset: 0;
    height: 100dvh;
    pointer-events: auto;
}

.v2-header__bar {
    position: relative;
    z-index: 2;
    width: 100%;
    height: var(--v2-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: transparent;
    transition: background-color 160ms ease;
    pointer-events: none;
}

.v2-header.is-open .v2-header__bar {
    background: #202124;
    pointer-events: auto;
}

.v2-header__logo {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: block;
    pointer-events: auto;
}

.v2-header__logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.v2-header__toggle {
    position: relative;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    pointer-events: auto;
}

.v2-header.is-open .v2-header__toggle {
    color: #111111;
}

.v2-header__toggle-icon,
.v2-header__toggle-icon::before,
.v2-header__toggle-icon::after {
    position: absolute;
    left: 50%;
    width: 32px;
    height: 2px;
    background: currentColor;
    content: "";
    transform: translateX(-50%);
    transition: transform 160ms ease, top 160ms ease, opacity 160ms ease;
}

.v2-header__toggle-icon {
    top: 29px;
    background: transparent;
}

.v2-header__toggle-icon::before {
    top: -7px;
}

.v2-header__toggle-icon::after {
    top: 7px;
}

.v2-header.is-open .v2-header__toggle-icon {
    background: transparent;
}

.v2-header.is-open .v2-header__toggle-icon::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.v2-header.is-open .v2-header__toggle-icon::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

.v2-header__menu[hidden] {
    display: none !important;
}

.v2-header__menu {
    position: absolute;
    z-index: 1;
    top: var(--v2-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background: rgba(30, 30, 30, 0.32);
    pointer-events: auto;
}

.v2-header__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px 32px;
    border-bottom: 1px solid #525357;
    background: #202124;
    pointer-events: auto;
}

.v2-header__panel-content {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    grid-template-areas:
        "navigation contacts"
        "actions contacts"
        "details details";
    gap: 40px 32px;
}

.v2-header__navigation {
    grid-area: navigation;
    min-width: 0;
    display: grid;
    grid-template-columns: 0.8fr 1fr 0.8fr;
    gap: 32px;
}

.v2-header__navigation-group,
.v2-header__contact-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.v2-header__nav-link,
.v2-header__contact-group a,
.v2-header__details {
    color: rgba(247, 248, 250, 0.8);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}

.v2-header__nav-link:hover,
.v2-header__contact-group a:hover {
    color: #ffffff;
}

.v2-header__nav-link--strong,
.v2-header__contact-group h2 {
    color: #f7f8fa;
    font-weight: 600;
}

.v2-header__contact-group h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.v2-header__contacts {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.v2-header__contact-group a,
.v2-header__details p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.v2-header__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.v2-header__actions {
    grid-area: actions;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 60px;
}

.v2-header__details {
    grid-area: details;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.v2-header__details p {
    min-width: 0;
    margin: 0;
}

.v2-header__search {
    position: relative;
    min-width: 0;
    align-items: center;
    gap: 23px;
    z-index: 3;
}

.v2-header__search--desktop {
    width: min(1000px, calc(100% - 208px));
    display: none;
}

.v2-header.is-open .v2-header__search--desktop {
    display: flex;
}

.v2-header__search--mobile {
    display: none;
}

.v2-header__search-field {
    min-width: 0;
    height: 44px;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #525357;
    border-radius: 8px;
    background: #202124;
    color: #71747e;
}

.v2-header__search-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f7f8fa;
    font: 400 16px/1.6 "Inter", Arial, sans-serif;
}

.v2-header__search-field input::placeholder {
    color: #71747e;
    opacity: 1;
}

.v2-header__search-field .v2-header__icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
}

.v2-header__search-results[hidden] {
    display: none !important;
}

.v2-header__search-results {
    position: absolute;
    z-index: 5;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    max-height: min(680px, calc(100dvh - var(--v2-header-height) - 24px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #d9dde3;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
    color: #202124;
}

.v2-header__search-group + .v2-header__search-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e7e9ed;
}

.v2-header__search-group-title {
    margin: 0;
    padding: 7px 10px 5px;
    color: #69707a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.v2-header__search-group-list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v2-header__search-option-link[hidden] {
    display: none !important;
}

.v2-header__search-option-link {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 66px;
    padding: 7px 9px;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background: #ffffff;
    color: #202124;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.v2-header__search-option-link:hover,
.v2-header__search-option-link:focus-visible,
.v2-header__search-option-link.is-active {
    outline: 0;
    background: #eef4fb;
    border-color: #bfd0e4;
    box-shadow: 0 3px 12px rgba(38, 67, 103, 0.1);
}

.v2-header__search-option-media {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7eb;
    border-radius: 9px;
    background: #f5f6f7;
    color: #526170;
}

.v2-header__search-option-media--product {
    background: #f4f4f1;
    color: #2a568e;
}

.v2-header__search-option-media--category {
    border-color: #eadfc3;
    background: #fff8e8;
    color: #8a6421;
}

.v2-header__search-option-media--page {
    border-color: #d8e4f1;
    background: #eef5fc;
    color: #2a568e;
}

.v2-header__search-option-media--article {
    border-color: #e4dcf1;
    background: #f7f1fc;
    color: #715092;
}

.v2-header__search-option-media--faq {
    border-color: #d7e9dd;
    background: #eef8f1;
    color: #3e7652;
}

.v2-header__search-option-media--vacancy {
    border-color: #dfe3e7;
    background: #f3f5f7;
    color: #4f5e6c;
}

.v2-header__search-option-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.v2-header__search-option-icon {
    width: 25px;
    height: 25px;
}

.v2-header__search-option-content {
    min-width: 0;
}

.v2-header__search-option-title,
.v2-header__search-option-snippet {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-header__search-option-title {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
}

.v2-header__search-option-snippet {
    margin-top: 3px;
    color: #69707a;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.v2-header__search-option-arrow {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #7c8792;
    transition: color 160ms ease, transform 160ms ease;
}

.v2-header__search-option-arrow-icon {
    width: 18px;
    height: 18px;
}

.v2-header__search-option-link:hover .v2-header__search-option-arrow,
.v2-header__search-option-link:focus-visible .v2-header__search-option-arrow,
.v2-header__search-option-link.is-active .v2-header__search-option-arrow {
    color: #2a568e;
    transform: translateX(2px);
}

.v2-header__search-more {
    margin: 3px 10px 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2a568e;
    font: 600 13px/1.4 "Inter", Arial, sans-serif;
    cursor: pointer;
}

.v2-header__search-more:hover {
    text-decoration: underline;
}

.v2-header__search-truncated {
    margin: 6px 10px;
    color: #69707a;
    font-size: 12px;
    line-height: 1.4;
}

.v2-header__search-state {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 16px;
    color: #69707a;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.v2-header__search-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #d9dde3;
    border-top-color: #2a568e;
    border-radius: 50%;
    animation: v2-header-search-spin 700ms linear infinite;
}

@keyframes v2-header-search-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-header__search-spinner {
        animation: none;
    }
}

.v2-header__visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (min-width: 1200px) {
    .v2-header__panel {
        padding: 24px 300px 24px 230px;
    }
}

@media (max-width: 767px) {
    .v2-header {
        --v2-header-height: 56px;
    }

    .v2-header__bar {
        gap: 16px;
        padding: 0 16px;
    }

    .v2-header__logo {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .v2-header__toggle {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .v2-header__toggle-icon {
        top: 21px;
    }

    .v2-header__menu {
        overflow-x: hidden;
        background: #202124;
    }

    .v2-header__panel {
        min-height: 100%;
        padding: 44px 16px 12px;
        border: 0;
    }

    .v2-header__panel-content {
        min-height: calc(100dvh - var(--v2-header-height) - 56px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .v2-header__navigation {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .v2-header__search--desktop {
        display: none !important;
    }

    .v2-header__search--mobile {
        display: flex;
        margin-top: 14px;
    }

    .v2-header__search-results {
        max-height: min(520px, calc(100dvh - 190px));
    }

    .v2-header__search-option-link {
        grid-template-columns: 46px minmax(0, 1fr) 20px;
        gap: 10px;
        min-height: 60px;
        padding: 6px 8px;
    }

    .v2-header__search-option-media {
        width: 46px;
        height: 46px;
    }

    .v2-header__search-option-arrow {
        width: 20px;
        height: 20px;
    }

    .v2-header__search--mobile .v2-header__search-submit {
        flex: 0 0 auto;
    }

    .v2-header__contacts {
        margin-top: 48px;
        gap: 14px;
    }

    .v2-header__details {
        order: 5;
        flex-direction: column-reverse;
        justify-content: flex-start;
        gap: 4px;
        margin-top: 14px;
    }

    .v2-header__actions {
        order: 6;
        width: 100%;
        gap: 14px;
        margin-top: auto;
        padding-top: 28px;
    }

    .v2-header__actions .v2-button {
        flex: 1 1 0;
        padding-right: 12px;
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-header__bar,
    .v2-header__search-option-link,
    .v2-header__search-option-arrow,
    .v2-header__toggle-icon,
    .v2-header__toggle-icon::before,
    .v2-header__toggle-icon::after {
        transition: none;
    }
}
