.header {
    position: relative;
    z-index: 10;
}

.header.main {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
}

.header.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

.header-wrapper {
    display: flex;
    flex-direction: column;
}

.header.active .header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1;
}

.header-top {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: var(--color-blue);
    position: relative;
}

.header-top-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.header-top-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-top-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    color: #ffffff;
    font-size: 0.75rem;
    line-height: 150%;
    white-space: nowrap;
}

.header-top-list > .header-top-item:first-child {
    display: none;
}

.header-top-item svg {
    width: 1rem;
    height: 1rem;
}

.header-bottom {
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-blue-5);
}

.header-bottom.fixed {
    position: fixed;
    top: 0;
}

.header-bottom.fixed .header-list-item {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.header.main .header-bottom {
    background-color: transparent;
    border-color: #ffffff;
    transition: all 0.4s ease;
}

.header.main:hover .header-bottom,
.header.main.active .header-bottom,
.header.main .header-bottom.fixed {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-blue-5);
}

.header-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.header-logo {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-image {
    position: absolute;
    left: 0;
    width: 10rem;
    height: auto;
    transition: all 0.4s ease;
}

.header-logo-image.white {
    opacity: 0;
    visibility: hidden;
}

.header.main .header-logo {
    color: #ffffff;
    transition: all 0.4s ease;
}

.header.main:hover .header-logo,
.header.main.active .header-logo {
    color: var(--color-primary);
}

.header.main .header-logo-image.white {
    opacity: 1;
    visibility: visible;
}

.header.main .header-logo-image.blue {
    opacity: 0;
    visibility: hidden;
}

.header.main:hover .header-logo-image.blue,
.header.main.active .header-logo-image.blue,
.header.main .header-bottom.fixed .header-logo-image.blue {
    opacity: 1;
    visibility: visible;
}

.header.main:hover .header-logo-image.white,
.header.main.active .header-logo-image.white {
    opacity: 0;
    visibility: hidden;
}

.header-bottom.fixed .header-logo-image,
.header-bottom .header-logo-small {
    display: none;
}

.header-bottom.fixed .header-logo-small {
    display: block;
    width: auto;
    height: 3.5rem;
    object-fit: contain;
}

.header-logo-description {
    transition: all 0.4s ease;
}

.menu-button-wrapper {
    display: flex;
    align-items: center;
}

.menu-button {
    position: relative;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #ffffff;
    border: none;
    box-shadow: -2px 5px 15px 0 #09095c0a;
    cursor: pointer;
}

.menu-button-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.625rem;
    height: 0.0625rem;
    background-color: var(--color-primary);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}
.menu-button-icon:first-child {
    transform: translate(-50%, -0.3125rem);
    animation-delay: 100ms;
}

.menu-button-icon:last-child {
    transform: translate(-50%, 4px);
    animation-delay: 100ms;
}

.menu-button.active .menu-button-icon {
    width: 0.9375rem;
}

.menu-button.active .menu-button-icon:first-child {
    transform: translateX(-50%) rotate(45deg);
}

.menu-button.active .menu-button-icon:nth-child(2) {
    opacity: 0;
}

.menu-button.active .menu-button-icon:last-child {
    transform: translateX(-50%) rotate(-45deg);
}

.menu-button:hover .menu-button-icon {
    background-color: var(--color-blue);
}

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

.header-nav .header-list {
    display: none;
}

.menu-nav,
.categories-nav {
    position: absolute;
    top: 8.7rem;
    left: 0;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    background-color: var(--color-background);
    transition: opacity 0.4s ease;
    width: 100%;
    overflow: auto;
    border-bottom: 1px solid var(--color-blue-5);
}

.header.active .menu-nav,
.categories-nav.active {
    opacity: 1;
    visibility: visible;
}

.categories-nav {
    z-index: 2;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-list-item-name {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1.375rem;
    line-height: 120%;
    font-weight: 600;
    transition: all 0.4s ease;
}

.menu-list-item-name svg {
    flex-shrink: 0;
    transition: all 0.4s ease;
    transform: rotate(180deg);
}

.menu-list-item.active .menu-list-item-name svg {
    transform: rotate(0);
}

.menu-list-item-name:hover {
    color: var(--color-blue);
}

.menu-list-item.active .menu-list-item-name {
    color: var(--color-blue);
}

.menu-list-item.active .menu-list-item-name::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-blue);
}

.submenu-list {
    display: none;
}

.submenu-list.active:not(.outer) {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    margin-top: 0.5rem;
}

.submenu-list-item-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    line-height: 130%;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.4s ease;
}

.submenu-list-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.submenu-list-item-icon svg {
    transition: all 0.4s ease;
}

.submenu-list-item-name:hover,
.submenu-list-item.active .submenu-list-item-name {
    color: var(--color-blue);
}

.submenu-list-item .submenu-list-item-icon svg {
    transform: rotate(180deg);
    transition: all 0.4s ease;
}

.submenu-list-item-icon:hover svg {
    color: var(--color-blue);
}

.submenu-list-item.active .submenu-list-item-icon svg {
    transform: rotate(0);
}

.submenu-list-item.active {
    display: block;
}

.menu-category-list {
    display: none;
}

.submenu-list-item.active .menu-category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.menu-category-link {
    font-size: 0.75rem;
    line-height: 150%;
    color: var(--color-primary);
    font-weight: 400;
    transition: all 0.4s ease;
}

.menu-category-link:hover {
    color: var(--color-blue);
}

.menu-content {
    display: none;
}

.menu-content.active {
    display: block;
    height: calc(100vh - 9.4375rem);
}

.categories-menu-content {
    display: none;
}

.header-search-button {
    border: none;
    background: transparent;
    cursor: pointer;
}

.header-search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 3;
    height: fit-content;
    padding: 0.5rem;
    border-radius: 1rem;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    width: 90%;
    max-width: 21.875rem;
}

.header-search-dropdown-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-search-dropdown-label svg {
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    transform: translateY(-50%);
    color: var(--color-grey-dark);
}

.header-search-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-search-dropdown-input {
    width: 100%;
    height: 3.75rem;
    padding: 1rem 1rem 1rem 3.125rem;
    font-size: 1rem;
    line-height: 150%;
    color: var(--color-grey-2);
    border: 1px solid var(--color-blue);
    border-radius: 1rem;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.header-search-dropdown-input::placeholder {
    color: #ffffff;
    opacity: 1;
}

.header-search-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    padding: 1rem;
    font-size: 1.1rem;
    line-height: 120%;
    border-radius: 0.625rem;
    color: white;
    background: linear-gradient(93.85deg, #1da0ff 0%, #0058dc 100%);
    cursor: pointer;
    border: none;
}

.header-search-dropdown-list {
    max-height: 20rem;
    width: 100%;
    margin-top: 0.5rem;
    transition: all 0.4s ease;
    overflow: auto;
}

.header-search-dropdown-list-item {
    padding: 0.8rem 1.4rem;
    font-size: 1.25rem;
    line-height: 130%;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.4s ease;
}

.header-search-no-result {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    line-height: 130%;
    font-weight: 500;
    color: var(--color-primary);
}

.header-search-dropdown-list-item:hover,
.header-search-dropdown-list-item.active {
    color: var(--color-blue);
    background-color: var(--color-background);
}

.header-search-dropdown.active {
    opacity: 1;
    visibility: visible;
}

@media screen and (min-width: 768px) {
    .header-top-content {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .header-top-list {
        gap: 1rem;
    }

    .header-top-item {
        font-size: 0.875rem;
    }

    .header-top-item:nth-child(2) {
        order: 1;
    }

    .header-top-item:nth-child(4) {
        order: 2;
    }

    .header-top-item svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .header-bottom {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .header-logo-image {
        width: 15rem;
    }

    .menu-button {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.625rem;
    }

    .menu-button-icon {
        width: 0.9375rem;
    }

    .menu-button.active .menu-button-icon {
        width: 1.25rem;
    }

    .menu-wrapper {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .menu-list {
        gap: 1rem;
    }

    .menu-list-item-name {
        padding: 1.75rem 1rem;
        font-size: 2rem;
        font-weight: 700;
    }

    .submenu-list.active:not(.outer) {
        gap: 2rem;
        padding: 1.75rem 2.5rem;
        margin-top: 1rem;
    }

    .submenu-list-item-name {
        font-size: 1.5rem;
    }

    .menu-category-link {
        font-size: 1rem;
    }

    .menu-nav {
        top: 10rem;
    }

    .menu-nav, .categories-nav {
        top: 8.52rem;
    }

}

@media screen and (min-width: 1280px) {
    .header-top-item {
        font-size: 1.125rem;
    }

    .header-top-list {
        gap: 2.5rem;
    }

    .header-top-list > .header-top-item:first-child {
        display: flex;
    }

    .header-bottom {
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-logo-image {
        width: 367px;
    }

    .header-nav .header-list {
        display: flex;
        margin-left: auto;
    }

    .header-list {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .header-list-item,
    .header.main.active .header-list-item {
        position: relative;
        padding-top: 3.5625rem;
        padding-bottom: 3.5625rem;
        cursor: pointer;
        transition: all 0.4s ease;
    }

    .header-list-item-name {
        font-size: 0.95rem;
        line-height: 120%;
        font-weight: 600;
        color: var(--color-primary);
        text-transform: uppercase;
        transition: all 0.4s ease;
    }

    .header-list-item:not(:last-child) .header-list-item-name {
        padding-right: 0.625rem;
        border-right: 1px solid var(--color-primary);
    }

    .header-list-item:not(:first-child) .header-list-item-name {
        padding-left: 0.625rem;
    }

    .header-list-item:hover .header-list-item-name,
    .header-list-item.active .header-list-item-name {
        color: var(--color-blue);
    }

    .header-list-item.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-blue);
    }

    .header-list-item:not(:last-child).active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: calc(100% - 0.625rem);
        height: 2px;
        background-color: var(--color-blue);
    }

    /*.header-list-item.additional {*/
    /*    display: none;*/
    /*}*/

    .header.main .header-list-item-name,
    .header.main .header-bottom.fixed  .header-list-item-name{
        color: #ffffff;
    }

    .header.main:hover .header-list-item-name,
    .header.main.active .header-list-item-name,
    .header.main .header-bottom.fixed .header-list-item-name {
        color: var(--color-primary);
    }

    .header.main .header-list-item-name:hover {
        color: var(--color-blue);
    }

    .header.main .header-list-item::after {
        background-color: #ffffff;
    }

    .header.main:hover .header-list-item::after,
    .header.main.active .header-list-item::after,
    .header.main .header-bottom.fixed .header-list-item::after {
        background-color: var(--color-blue);
    }

    .header.main .header-list-item-name {
        border-color: #ffffff;
    }

    .header.main:hover .header-list-item-name,
    .header.main.active .header-list-item-name,
    .header.main .header-bottom.fixed .header-list-item-name{
        border-color: var(--color-primary);
    }

    .menu-container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .menu-content.active {
        display: flex;
        flex-direction: row;
        gap: 5rem;
    }

    .submenu-list.active:not(.outer) {
        display: none;
    }

    .submenu-list.active.outer {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .menu-list-item-name {
        width: fit-content;
        white-space: nowrap;
    }

    .categories-menu-content.active {
        display: block;
    }

    .categories-list:not(.active) {
        display: none;
    }

    .categories-list {
        columns: 2;
    }

    .categories-list-link {
        display: block;
        font-size: 1.5rem;
        line-height: 120%;
        font-weight: 600;
        color: var(--color-primary);
        transition: all 0.4s ease;
        cursor: pointer;
        break-inside: avoid;
    }

    .categories-list-link:not(:nth-child(3n)) {
        margin-bottom: 2rem;
    }
    .categories-list-link:hover {
        color: var(--color-blue);
        transform: translateX(1rem);
    }

    .menu-nav, .categories-nav {
        top: 11.84rem;
    }

    .header-bottom.fixed .categories-nav {
        top: 4.5625rem;
    }

    .header-search {
        position: relative;
    }

    .header-search-dropdown {
        top: 2.625rem;
        width: fit-content;
        max-width: unset;
    }

    .menu-content.active {
        height: calc(100vh - 12rem);
    }

    .header-bottom.fixed .header-logo-image {
        width: 22.9375rem;
    }

    .menu-list-item-name svg {
        transform: rotate(90deg);
    }

    .menu-list-item.active .menu-list-item-name svg {
        transform: rotate(270deg);
    }

    .header-search-input-container {
        flex-direction: row;
    }

    .header-search-dropdown-label svg {
        left: 1.5rem;
        width: 2rem;
        height: 2rem;
    }

    .header-search-dropdown-input {
        width: 400px;
        height: 80px;
        padding: 1.5rem 1.5rem 1.5rem 4.125rem;
        font-size: 1.125rem;
    }

    .header-search-dropdown-button {
        width: 8.0625rem;
        height: 5rem;
        padding: 1.5rem;
        font-size: 1.375rem;
    }

    .header-search-dropdown-list-item {
        padding: 1rem 1.5rem;
        font-size: 1.5rem;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1439px) {
    .header-top-content,
    .header-bottom-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        max-width: 100%;
    }
}


@media screen and (min-width: 1440px) {
    .header-top-content,
    .header-bottom-container,
    .menu-container {
        max-width: 100%;
    }
}

@media screen and (min-width: 1920px) {
    .header-list-item:not(:last-child) .header-list-item-name {
        padding-right: 1rem;
    }

    .header-list-item:not(:first-child) .header-list-item-name {
        padding-left: 1rem;
    }

    .header-list-item:not(:last-child).active::after {
        width: calc(100% - 0.1rem);
    }

    /*.header-list-item.additional {*/
    /*    display: block;*/
    /*}*/

    .menu-content {
        gap: 10rem;
    }
}

body.bvi-active .header {
    margin-top: 6.5625rem;
}

body.bvi-active .header.active .header-wrapper {
    top: 6.5625rem;;
}

.footer {
    padding: 1.5rem 1rem;
    background: linear-gradient(93.85deg, #1da0ff 0%, #0058dc 100%);
    color: white;
}

.footer-container {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-blue-5);
}

.footer-block {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    height: 4.5rem;
    width: auto;
    object-fit: contain;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    line-height: 130%;
    color: #ffffff;
    font-weight: 500;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.socials-title {
    font-size: 1.25rem;
    line-height: 120%;
    text-transform: uppercase;
}

.socials-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socials-link {
    color: var(--color-background)
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-title {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 120%;
    text-transform: uppercase;
}

.footer-link {
    font-size: 0.75rem;
    line-height: 120%;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contacts-item {
    font-size: 0.75rem;
    line-height: 150%;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    line-height: 150%;
}

@media screen and (min-width: 768px) {
    .footer {
        padding-top: 2.5rem;
        padding-right: 4rem;
        padding-left: 4rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12.75rem;
        row-gap: 5rem;
    }

    .footer-bottom {
        font-size: 0.875rem;
    }
}

@media screen and (min-width: 1280px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 6.25rem;
    }
}

@media screen and (min-width: 1920px) {
    .footer {
        padding-right: 5rem;
        padding-left: 5rem;
    }
}



@media screen and (max-width: 1500px) {
  .header-list-item.additional {
    display: none;
  }
}
