/* Header redesign */
.header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
}

.header__bar {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.header__logo {
    display: flex;
    flex: 0 0 219px;
    align-items: center;
    justify-content: center;
    width: 219px;
    max-width: none;
    height: 192px;
    padding: 30px 50px;
    overflow: hidden;
    background-color: var(--color-white);
    border-radius: 0 0 34px;
}

.header__logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 119px;
    height: 132px;
}

.header__logo img {
    display: block;
    width: 119px;
    height: auto;
    max-height: 132px;
    object-fit: contain;
}

.header__navigation {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    min-height: 70px;
    padding: 24px 60px 24px 30px;
    background-color: var(--color-white);
}

.header__menu {
    display: block;
}

.header__menu ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
}

.header__menu li {
    display: block;
}

.header__menu li + li {
    margin-left: 0;
}

.header__menu li.colors {
    display: none;
}

.header__menu a {
    display: block;
    padding: 0;
    color: var(--color-brand-violet);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.header__menu a::after {
    display: none;
}

.home .header__menu li:first-child a {
    font-weight: 600;
}

.header__menu a:hover,
.header__menu a:focus-visible {
    color: var(--color-brand-violet);
}

.header__menu a:hover {
    opacity: 0.72;
}

.header__quick-actions {
    position: fixed;
    top: 232px;
    right: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 46px;
}

.header__languages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 46px;
    padding: 10px;
    background-color: var(--color-brand-magenta);
    border-radius: 20px 0 0 20px;
}

.header__languages .languages__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-height: 22px;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
}

.header__languages .languages__item + .languages__item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
}

.header__languages .languages__item.active {
    font-weight: 600;
}

.header__quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 10px;
    border-radius: 20px 0 0 20px;
}

.header__quick-action img {
    display: block;
    width: 26px;
    height: 26px;
}

.header__quick-action--search {
    background-color: var(--color-brand-violet);
}

.header-search {
    position: relative;
    width: 46px;
    height: 46px;
}

.header-search > button {
    border: 0;
    cursor: pointer;
}

.header-search__panel {
    position: absolute;
    top: 0;
    right: 56px;
    width: 320px;
}

.header-search__panel[hidden] {
    display: none;
}

.header-search__form {
    display: flex;
    width: 100%;
    height: 46px;
    overflow: hidden;
    border: 2px solid var(--color-brand-violet);
    border-radius: 23px;
    background-color: var(--color-white);
    box-shadow: 0 8px 24px rgba(49, 49, 49, 0.16);
}

.header-search__field {
    min-width: 0;
    flex: 1 1 auto;
    padding: 8px 16px;
    border: 0;
    color: var(--color-form-placeholder);
    background-color: var(--color-white);
    font-size: 16px;
    line-height: 1.2;
}

.header-search__submit {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 9px;
    border: 0;
    background-color: var(--color-brand-violet);
    cursor: pointer;
}

.header-search__submit img {
    width: 26px;
    height: 26px;
}

.header-search__suggestions {
    width: 100%;
    max-height: 320px;
    margin-top: 8px;
    overflow-y: auto;
    border-radius: 20px;
    background-color: var(--color-white);
    box-shadow: 0 8px 24px rgba(49, 49, 49, 0.16);
}

.header-search__suggestions:empty {
    display: none;
}

.header-search__suggestion {
    display: block;
    padding: 12px 16px;
    color: var(--color-form-placeholder);
    background-color: var(--color-white);
    font-size: 16px;
    line-height: 1.2;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.header-search__suggestion + .header-search__suggestion {
    border-top: 1px solid var(--color-form-field);
}

.header-search__suggestion:hover,
.header-search__suggestion:focus-visible,
.header-search__suggestion.is-active {
    color: var(--color-white);
    background-color: var(--color-brand-violet);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.header__quick-action--phone {
    background-color: var(--color-brand-green);
}

.header__quick-action--email {
    background-color: var(--color-brand-orange);
}

.header__quick-action--viber {
    background-color: var(--color-white);
}

.header__quick-action--viber img {
    width: 24px;
    height: 26px;
}

.burger__btn {
    display: none;
    color: var(--color-brand-violet);
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: pointer;
}

.burger__btn svg {
    display: block;
}

.burger__btn svg path {
    transform-box: fill-box;
    transform-origin: center;
    transition:
        opacity 0.2s ease,
        transform 0.3s ease;
}

.burger__btn.burger__btn--active .line1 {
    transform: translateY(8px) rotate(45deg);
}

.burger__btn.burger__btn--active .line2 {
    opacity: 0;
}

.burger__btn.burger__btn--active .line3 {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1199.8px) {
    .header__navigation {
        padding-right: 30px;
        padding-left: 24px;
    }

    .header__menu ul {
        gap: 16px;
    }

    .header__menu a {
        font-size: 15px;
    }
}

@media (max-width: 991.8px) {
    .header {
        position: fixed;
    }

    .header__bar {
        min-height: 95px;
    }

    .header__logo {
        flex-basis: 100px;
        width: 100px;
        height: 95px;
        padding: 14px 20px;
        border-radius: 0 0 24px;
    }

    .header__logo a {
        width: 60px;
        height: 67px;
    }

    .header__logo img {
        width: 60px;
        height: 67px;
        max-height: none;
    }

    .header__navigation {
        height: 54px;
        min-height: 54px;
        padding: 10px 20px;
    }

    .header__menu,
    .header__quick-actions {
        display: none;
    }

    .burger__btn {
        display: block;
        width: 34px;
        height: 34px;
    }

    .mobile__menu {
        top: 95px;
        min-height: calc(100vh - 95px);
        padding-top: 50px;
        background-color: rgba(88, 100, 209, 0.96);
    }

    .mobile__menu a {
        color: var(--color-white);
        font-family: var(--font-body);
        font-size: 18px;
        font-weight: 500;
        line-height: 1.2;
    }

    .mobile-lang {
        margin-top: 40px;
    }

    .mobile-lang a,
    .mobile-lang a.active {
        color: var(--color-white);
    }
}

@media (max-width: 575.8px) {
    .mobile__menu {
        padding-top: 40px;
    }
}
