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

.header ul,
.mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header img,
.mobile-menu img {
    max-width: 100%;
    max-height: 100%;
}

body.b-hidden {
    overflow: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    padding-top: .7291666667vw;
    padding-bottom: .7291666667vw;
    background-color: #62c3ea;
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: .8333333333vw;
    font-weight: 400;
    line-height: 1.2;
    transition: .3s;
}

.header > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75vw;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.header__contacts {
    display: flex;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    color: #222759;
    font-family: "Playfair Display", sans-serif;
    font-size: 1.6666666667vw;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .3s;
}

.header__logo img {
    width: 3.6979166667vw;
    margin-right: .7291666667vw;
}

.header__menu {
    display: flex;
    gap: 3.125vw;
}

.header .header__menu > li {
    padding: 8px 0;
}

.header__menu li a,
.header__menu li button,
.header__phone {
    color: #222759;
    font-size: .9375vw;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: color .3s;
}

.header__menu li a:hover,
.header__menu li button:hover,
.header__menu li:hover button,
.header__phone:hover {
    color: #ffffff;
}

.header__submenu {
    position: relative;
}

.header__submenu-toggle {
    display: flex;
    align-items: center;
    gap: .45vw;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: opacity .3s ease;
}

.header__submenu-toggle:hover {
    opacity: .75;
}

.header__submenu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: .7vw;
    min-width: 10px;
    transition: transform .3s ease;
}

.header__submenu-dropdown {
    position: absolute;
    top: calc(100% - 2px);
    right: -50px;
    z-index: 999;
    display: flex;
    width: max-content;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 1.2vw;
    border-radius: 1.3vw;
    background: #2f4e9d;
    box-shadow: 0 1vw 2vw rgba(0, 0, 0, .16);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.header__submenu-dropdown a {
    color: #fff !important;
    font-size: 1.95vw;
    line-height: 1.2;
    text-align: right !important;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

.header__submenu-dropdown a:hover {
    color: #62c3ea !important;
    transform: translateX(-.2vw);
}

.header__submenu:hover .header__submenu-dropdown {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.header__submenu:hover .header__submenu-arrow {
    transform: rotate(180deg);
}

.header .header__soc {
    display: flex;
    gap: .78125vw;
    margin-right: 1.4583333333vw;
    margin-left: 2.0833333333vw;
}

.header__soc li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5520833333vw;
    height: 2.5520833333vw;
    border-radius: 50%;
    background: #2e4e9d;
    transition: opacity .3s;
}

.header__soc li a:hover {
    opacity: .7;
}

.header__phone-mobile,
.mobile-menu-open {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    overflow: auto;
    padding: 157px 20px 27px;
    background: #61c4eb;
    transform: translateX(-100%);
    transition: transform .3s;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 36px;
}

.mobile-menu__list li {
    text-align: center;
}

.mobile-menu__list li a,
.mobile-menu__list li button {
    color: #fff;
    font-family: "Playfair Display", sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
}

.mobile-menu__soc {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.mobile-menu__soc ul {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu__soc ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2e4e9d;
}

.mobile-menu__soc ul li a img {
    max-width: 60%;
    max-height: 60%;
}

.mobile-menu__phone {
    margin-bottom: 17px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 768px) {
    .header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header > .container {
        width: 100%;
        padding: 0 20px;
    }

    .header__contacts {
        margin-left: auto;
    }

    .header__logo {
        font-size: 18px;
    }

    .header__logo img {
        width: 48px;
        margin-right: 8px;
    }

    .header__menu,
    .header__phone {
        display: none;
    }

    .header__soc {
        gap: 10px;
        margin-right: 12px;
        margin-left: 12px;
    }

    .header__soc li a {
        width: 38px;
        height: 38px;
    }

    .header__soc li a img {
        width: auto !important;
    }

    .header__soc li:not(.header__inst) {
        display: none;
    }

    .header__inst img {
        width: 21px !important;
    }

    .header__phone-mobile {
        display: flex !important;
    }

    .mobile-menu-open {
        position: relative;
        display: block;
        width: 28px;
        height: 18px;
        margin-right: 4px;
        margin-left: 20px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-open span,
    .mobile-menu-open::before,
    .mobile-menu-open::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        border-radius: 6px;
        background: #222759;
        transition: all .5s ease;
    }

    .mobile-menu-open span {
        top: 50%;
        margin-top: -1px;
    }

    .mobile-menu-open::before {
        top: 0;
    }

    .mobile-menu-open::after {
        bottom: 0;
    }

    .mobile-menu-open.active span {
        opacity: 0;
    }

    .mobile-menu-open.active::before {
        top: 50%;
        transform: rotate(45deg);
    }

    .mobile-menu-open.active::after {
        top: 50%;
        transform: rotate(-45deg);
    }

    .mobile-menu .header__submenu {
        width: 100%;
    }

    .mobile-menu .header__submenu-toggle {
        width: 100%;
        justify-content: center;
        gap: 10px;
        border: 0;
        background: transparent;
        color: #fff;
        font-family: "Playfair Display", sans-serif;
        font-size: 42px;
        font-weight: 600;
        line-height: 1.1;
    }

    .mobile-menu .header__submenu-arrow {
        display: inline-flex;
        width: 24px;
        transition: transform .3s ease;
    }

    .mobile-menu .header__submenu.mobile-menu__submenu:hover .header__submenu-arrow {
        transform: none;
    }

    .mobile-menu .header__submenu.mobile-menu__submenu.is-open .header__submenu-arrow {
        transform: rotate(180deg);
    }

    .mobile-menu .header__submenu-dropdown {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin-top: 16px;
        padding: 18px 20px;
        border-radius: 18px;
        background: #2f4e9d;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        visibility: visible;
    }

    .mobile-menu .header__submenu-dropdown a {
        display: block;
        color: #fff;
        font-family: "Inter", sans-serif;
        font-size: 32px;
        line-height: 1.25;
        text-align: center !important;
        text-decoration: none;
    }

    .mobile-menu .header__submenu.is-open .header__submenu-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        padding: 0;
        background-color: transparent;
    }
}
