.header {
    box-sizing: border-box;
    box-shadow: 4px 4px 20px 0 rgba(189, 189, 189, 0.3);
    background: var(--white);
    border-radius: 10px;
    padding: clamp(0.5rem, -0.167rem + 1.39vw, 1.5rem) clamp(1rem, 0.333rem + 1.39vw, 2rem);
    margin: 4px 4px 0;

    position: fixed;
    z-index: 1000;
    width: calc(100% - 8px);
    height: 102px;
    /* letterboxing */
    max-width: 1912px;
    display: flex;
    align-items: center;
}

.header__container {
    width: 100%;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__right {
    display: flex;
    gap: clamp(0.313rem, -4.75rem + 5.63vw, 2rem);
}

.header__buttons {
    display: flex;
    gap: 8px;
}

.header__buttons .btn {
    font-weight: 600;
    font-size: clamp(1rem, 0.917rem + 0.17vw, 1.125rem);
    letter-spacing: -0.015em;
}

.header__icons {
    display: flex;
    gap: 16px;
}

.header__icons a {
    transition: all 300ms ease;
}

.header__logo img {
    display: block;
    width: clamp(10.625rem, 4.25rem + 7.08vw, 12.75rem);
}

.header__logo a img:last-of-type {
    margin-top: 10px;
}

.header__logo_desc {
    display: none;
}

.header__mobile-buttons {
    gap: 8px;
}

.header__mobile-buttons .btn-simple {
    padding: 13px 23px;
}

.header__burger {
    border: none;
    outline: none;
    border-radius: 100px;
    background-color: var(--sun-yellow);
}

.header__burger:active, .header__burger:focus {
    outline: none;
    box-shadow: none;
}


.print {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1040;
    background-color: var(--black-1000);
    border: 1px solid var(--grey-700);
    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 37px 18px 24px;
    max-width: 260px;
    transform: translateX(110%);
    transition: all 400ms ease;
}


.print__text {
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: var(--white);
    max-width: 125px;
}

.print__close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    background: none;
    border: none;
}

/* MEDIA */

@media (hover: hover) {
    .header__icons a:hover {
        opacity: 30%;
    }
}

@media screen and (max-width: 1350px) {
    .header nav, .header__right  {
        display: none !important;
    }

    .header__logo {
        margin-right: auto;
    }

    .header__mobile-buttons {
        display: flex !important;
    }

    .header__burger {
        display: flex !important;
        width: 56px;
        height: 56px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        justify-content: center;
        margin-left: 16px;
    }

    .toggle-line {
        width: 36px;
        height: 2px;
        margin-left: -1px;
        background: var(--black-1000);
        border-radius: 16px;
    }

    .header {
        height: 80px;
        border-radius: 8px;
        border: 1px solid var(--grey-200);
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: clamp(0.5rem, 0.261rem + 1.02vw, 0.75rem) clamp(0.5rem, 0.023rem + 2.04vw, 1rem);
        height: 80px;
    }

    .header__logo {
        margin-right: auto;
    }

    .header__logo img {
        width: clamp(9.375rem, 6.99rem + 10.18vw, 11.875rem);
    }

    .header__burger {
        margin-left: clamp(0.313rem, -0.344rem + 2.8vw, 1rem);
    }

    .print {
        padding: 20px 25px 20px 24px;
        max-width: 240px;
        bottom: 8px;
        right: 8px;
    }

    .print img {
        height: 50px;
    }

    .print__text {
        font-size: 16px;
    }
}

@media screen and (max-width: 576px ) {
    .header {
        height: 60px;
        border-radius: 6px;
        padding: 8px;
        margin: 2px 2px 0;
        width: calc(100% - 4px);
    }

    .header__mobile-buttons {
        display: none !important;
    }

    .header__burger {
        width: 44px;
        height: 44px;
        gap: 4px;
    }

    .toggle-line {
        width: 25px;
        height: 2px;
        margin-left: -2px;
    }

    .header__logo a img:last-of-type {
        margin-top: 6px;
    }
}

@media screen and (max-width: 375px) {
    .header__mobile-buttons {
        display: none !important;
    }

    .print {
        max-width: 230px;
        padding: 18px 23px 18px 16px;
        bottom: 4px;
        right: 4px;
    }
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: clamp(0.313rem, -10rem + 11.46vw, 3.75rem);
    align-items: center;
    max-height: 40px;
}

.nav-link {
    color: var(--black-1000);
    font-weight: 600;
    font-size: clamp(1rem, 0.917rem + 0.17vw, 1.125rem);
    line-height: 130%;
    letter-spacing: -0.02em;
    /*padding: 9px clamp(1rem, -0.313rem + 1.46vw, 1.438rem) 9px;*/
    padding: 8px 18px 8px 16px;
}

.nav-link:focus-visible {
    box-shadow: none;
}

.header .navbar-nav .dropdown-menu {
    position: absolute;
    top: 78px !important;
    transform: translateX(-50%) !important;
    left: 50% !important;
}

.header .dropdown-menu {
    min-width: 340px;
    text-align: center;
    border: none;
    border-radius: 10px;
    background: var(--white);
}

.header .dropdown-menu.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 40px 0;

    border: 1px solid var(--grey-200);
    box-shadow: 0 0 20px 0 #BDBDBD80;

}

.header .dropdown-item {
    font-weight: 600;
    padding: 6px 10px;
    transition: all 300ms ease;
    font-size: 18px;
    color: var(--black-1000);
}

.header .dropdown-item img {
    top: 11px;
    left: -20px;
}

.header .dropdown-item:focus, .dropdown-item:active {
    color: var(--grey-600);
    background-color: transparent;
}

.header .nav-link.dropdown-toggle.show{
    color: var(--grey-600);
}

.header .dropdown-toggle::after {
    border-right: 0.2em solid transparent;
    border-left: 0.2em solid transparent;
    vertical-align: 0.15em;
    transition: all 300ms ease;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.header .nav-link.dropdown-toggle.show::after {
    transform: rotate(-180deg);
}

.help-title {
    border-radius: 100px;
    background: var(--grey-100);
    cursor: auto;
}


.help-title .dropdown-item {
    font-size: 16px;
    font-weight: 500;
}

.header .dropdown-menu .help-title:not(:first-of-type) {
    margin-top: 16px;
}

/* MEDIA */

@media (hover: hover) {
    .header .dropdown-item:hover {
        background: none;
        color: var(--grey-1000);
    }

    .header .nav-link:hover {
        color: var(--grey-1000);
    }

    .help-title .dropdown-item:hover, .help-title .dropdown-item:focus, .help-title .dropdown-item:active {
        color: inherit;
        background: var(--grey-100);
        border-radius: 100px;
    }
}

@media screen and (max-width: 1350px) {
    .header .navbar-nav .dropdown-menu {
        top: 150% !important;
    }
}

.offcanvas-fullscreen {
    width: 80vw !important;
}

.mobile-menu .offcanvas-header img:last-of-type {
    margin-top: 10px;
}

.mobile-menu .offcanvas-header {
    /*padding: clamp(1.5rem, 1.023rem + 2.04vw, 2rem) clamp(1rem, 0.523rem + 2.04vw, 1.5rem);*/
    padding:    32px 24px 24px;
}

.mobile-menu .btn-exit {
    position: absolute;
    top: 16px;
    right: 20px;
}

.mobile-menu .offcanvas-body {
    padding-top: 0;
}

.mobile-menu .dropdown-menu {
    position: static !important;
    border: none;
    padding: 0;
}

.mobile-menu .navbar-nav {
    gap: 0;
    max-height: 100%;
}

.mobile-menu .dropdown-menu.show .left-side,
.mobile-menu .dropdown-menu.show .right-side {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu .dropdown-menu.show .right-side {
    margin-bottom: 18px;
}

.mobile-menu .nav-item {
    width: 100%;
}

.mobile-menu .help-title .dropdown-item {
    padding: 4px 10px;
    cursor: auto;
}

.mobile-menu .nav-link:not(.dropdown-toggle) {
    padding: 16px 8px;
}

.mobile-menu .dropdown-toggle::after {
    display: block;
    border: none;
    background: url("../img/icons/menu-arrow-down.svg"), var(--white);
    background-repeat: no-repeat, no-repeat;
    background-position: center center;
    width: 28px;
    height: 28px;
    transition: all 300ms ease;
}

.mobile-menu .dropdown-toggle.show::after {
    background: url("../img/icons/menu-arrow-down.svg"), var(--sun-yellow);
    background-repeat: no-repeat, no-repeat;
    background-position: center center;
    transform: rotate(-180deg);
    border-radius: 100px;
    width: 28px;
    height: 28px;
}

.mobile-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: clamp(1rem, 0.761rem + 1.02vw, 1.25rem);
    font-weight: 700;
    padding: 13px 8px;
}

.mobile-menu .nav-item {
    border-bottom: 1px solid var(--grey-200);
}

.mobile-menu .nav-item:last-child {
    margin-bottom: 10px;
}

.mobile-menu .dropdown-menu {
    border-top: 1px dashed var(--black-1000);
    border-radius: 0;
}

.mobile-menu .dropdown-item {
    padding: 8px;
    font-size: clamp(1rem, 0.761rem + 1.02vw, 1.25rem);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: normal;
}

.mobile-menu .dropdown-item.item-img {
    white-space: nowrap;
}

.mobile-menu .help-title {
    max-width: max-content;
}

.mobile-menu .help-title .dropdown-item {
    font-size: 12px;
    font-weight: 500;
}

.mobile-menu .left-side ul,
.mobile-menu .right-side ul {
    padding: 0;
}

.mobile-menu .left-side .dropdown-item.help-title,
.mobile-menu .right-side .dropdown-item.help-title {
    max-width: 126px;

    font-weight: 500;
    font-size: 12px;
    line-height: 110%;
    text-align: center;

    border-radius: 100px;
    padding: 6px 10px;
    width: 126px;
    height: 25px;
}

.mobile-menu .buttons {
    margin-top: auto;
    gap: 16px;
}

.mobile-menu .icons {
    margin-top: 28px;
    gap: 16px;
}

.mobile-menu .dropdown-menu {
    transform: translateY(0) !important;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.mobile-menu .dropdown-menu.show {
    inset: unset;
    opacity: 1;
    display: block;
}

.mobile-menu .dropdown-menu-grid.show {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.offcanvas-backdrop.show {
    opacity: 0.8;
}

/* MEDIA */

@media (hover: hover) {
    .mobile-menu .dropdown-item:hover,
    .dropdown-item:focus {
        background: none;
    }

    .mobile-menu .help-title:hover {
        background-color: var(--grey-100);
    }

    .mobile-menu .buttons .btn:hover {
        background-color: var(--sun-yellow);
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu .dropdown-menu-grid.show {
        gap: clamp(0.625rem, -1.164rem + 7.63vw, 2.5rem);
    }
}

@media screen and (max-width: 576px) {
    .mobile-menu .dropdown-menu-grid.show {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mobile-menu .dropdown-menu.show .left-side {
        margin-top: 24px;
    }

    .mobile-menu .dropdown-item {
        padding: 6px;
    }

    .mobile-menu .dropdown-menu.show {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding:  8px 0;
    }

    .mobile-menu .dropdown-menu.show.help-dropdown {
        padding: 0;
    }

    .mobile-menu .btn-exit {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .mobile-menu .btn-exit svg {
        max-width: 16px;
    }

    .offcanvas-fullscreen {
        width: 90vw !important;
    }
}

@media screen and (max-width: 375px) {
    .mobile-menu .offcanvas-header {
        padding: 24px 16px;
    }
}

@media screen and (min-width: 1920px) {
    .print {
        right: calc((100vw - 1920px) / 2 + 16px)
    }
}