.site__header {
    left: 0;
    padding: 16px 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: padding 0.3s;
    z-index: 9;
}

.site__header.scrolling {
    padding: 10px 0;
    transition: padding 0.3s;
}

.site__header .header__content {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    height: 72px;
    justify-content: space-between;
    padding: 0 35px;
    transition: border-radius 0.3s, box-shadow 0.3s, height 0.3s;
}

.site__header.scrolling .header__content {
    border-radius: 20px;
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.05);
    height: 64px;
    transition: border-radius 0.3s, box-shadow 0.3s, height 0.3s;
}

.site__header .header__logo {
    align-self: center;
}

.site__header .header__logo img {
    display: block;
    height: 36px;
    transition: height 0.3s;
    width: auto;
}

.site__header.scrolling .header__logo img {
    height: 32px;
    transition: height 0.3s;
}

.site__header .header__toggle,
.site__header .header__toggle .toggle__content {
    height: 100%;
}

.site__header .header__toggle .toggle__content {
    display: flex;
    gap: 40px;
}

.site__header .header__btn {
    display: none;
}

.site__header .header__menu > ul {
    display: flex;
    gap: 30px;
    height: 100%;
    list-style: none;
}

.site__header .header__menu > ul > li {
    height: 100%;
    position: relative;
}

.site__header .header__menu > ul > li > a {
    align-items: center;
    color: #666;
    display: flex;
    font-size: var(--fs-body);
    font-weight: 500;
    height: 100%;
    justify-content: center;
    line-height: 1.6;
    text-align: center;
    transition: box-shadow 0.3s, color 0.3s;
}

.site__header .header__menu > ul > li:hover > a,
.site__header .header__menu > ul > li.active > a {
    box-shadow: inset 0 -3px 0 0 var(--first-color);
    color: #000;
    transition: box-shadow 0.3s, color 0.3s;
}

.site__header .header__menu > ul > li > ul {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
    left: 50%;
    list-style: none;
    min-width: 160px;
    opacity: 0;
    padding: 20px 15px;
    position: absolute;
    top: 110%;
    transform: translateX(-50%);
    transition: opacity 0.3s, top 0.3s, visibility 0.3s;
    visibility: hidden;
}

.site__header .header__menu > ul > li > ul:before {
    border-bottom: 8px solid #fff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    bottom: 100%;
    content: '';
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.site__header .header__menu > ul > li:hover > ul {
    opacity: 1;
    top: 85%;
    transition: opacity 0.3s, top 0.3s, visibility 0.3s;
    visibility: visible;
}

.site__header .header__menu > ul > li > ul > li > a {
    color: #666;
    display: block;
    font-size: 15px;
    text-align: center;
    transition: color 0.3s;
}

.site__header .header__menu > ul > li > ul > li:hover > a {
    color: #000;
    transition: color 0.3s;
}

.site__header .header__buttons {
    align-self: center;
    display: flex;
    gap: 20px;
}

.site__header .header__buttons a {
    align-items: center;
    border-radius: 50px;
    display: flex;
    font-size: var(--fs-body);
    font-weight: 500;
    justify-content: center;
    line-height: 1.5;
    padding: 6px 28px;
    text-align: center;
}

/* Large Desktops */
@media (max-width: 1399px) {
    .site__header .header__content {
        height: 72px;
        padding: 0 30px;
    }

    .site__header .header__toggle .toggle__content {
        gap: 25px;
    }

    .site__header .header__menu > ul {
        gap: 25px;
    }

    .site__header .header__buttons {
        gap: 15px;
    }

    .site__header .header__buttons a {
        padding: 6px 24px;
    }
}

/* Desktops */
@media (max-width: 1199px) {
    .site__header,
    .site__header.scrolling {
        padding: 12px 0;
    }

    .site__header .header__content {
        backdrop-filter: inherit;
        border-radius: 20px;
        height: 64px;
    }

    .site__header .header__logo img {
        height: 36px;
    }

    .site__header .header__btn {
        align-items: center;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 5px;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: transparent;
        transition: background 0.2s ease;
    }

    .site__header .header__btn:hover,
    .site__header .header__btn.active {
        background: rgba(0, 0, 0, 0.05);
    }

    .site__header .header__btn span {
        background-color: var(--color-text-primary, #0A0E1A);
        border-radius: 2px;
        height: 2px;
        width: 22px;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .site__header .header__btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .site__header .header__btn.active span:nth-child(2) {
        opacity: 0;
    }
    .site__header .header__btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site__header .header__toggle {
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        height: 100vh;
        inset: 0;
        opacity: 0;
        position: fixed;
        transition: opacity 0.3s, visibility 0.3s;
        visibility: hidden;
        width: 100vw;
    }

    .site__header .header__toggle.active {
        opacity: 1;
        transition: opacity 0.3s, visibility 0.3s;
        visibility: visible;
    }

    .site__header .header__toggle .toggle__content {
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        height: 100%;
        margin-left: -260px;
        overflow-y: auto;
        transition: margin-left 0.3s;
        width: 260px;
    }

    .site__header .header__toggle.active .toggle__content {
        margin-left: 0;
        transition: margin-left 0.3s;
    }

    .site__header .header__menu {
        align-self: flex-start;
        width: 100%;
    }

    .site__header .header__menu > ul {
        align-self: flex-start;
        flex-direction: column;
        gap: 0;
        height: inherit;
    }

    .site__header .header__menu > ul > li {
        border-bottom: 1px solid #eee;
    }

    .site__header .header__menu > ul > li > a {
        color: var(--color-text-primary, #0A0E1A);
        font-size: 17px;
        font-weight: 600;
        justify-content: flex-start;
        padding: 18px 20px;
        text-align: left;
        letter-spacing: -0.01em;
    }

    .site__header .header__menu > ul > li:hover > a,
    .site__header .header__menu > ul > li.active > a {
        box-shadow: inherit;
        color: var(--first-color, #0024f8);
        background-color: rgba(0, 36, 248, 0.04);
    }

    .site__header .header__menu > ul > li.active > a {
        color: var(--first-color, #0024f8);
        font-weight: 700;
        position: relative;
    }
    .site__header .header__menu > ul > li.active > a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 3px;
        background: var(--first-color, #0024f8);
        border-radius: 0 3px 3px 0;
    }

    .site__header .header__menu > ul > li > ul {
        background-color: #f8f8f8;
        border-radius: 0;
        box-shadow: inherit;
        left: inherit;
        opacity: 1;
        position: relative;
        top: inherit;
        transform: inherit;
        visibility: visible;
    }

    .site__header .header__menu > ul > li > ul:before {
        border-bottom-color: #f8f8f8;
        left: 20px;
        transform: inherit;
    }

    .site__header .header__menu > ul > li > ul > li > a {
        justify-content: flex-start;
        padding: 5px;
        text-align: left;
    }

    .site__header .header__buttons {
        flex-direction: column;
        padding: 20px;
        width: 100%;
    }
}

/* Smartphones - Landscape */
@media (max-width: 767px) {
    .site__header .header__content,
    .site__header.scrolling .header__content {
        border-radius: 15px;
        height: 56px;
        padding: 0 20px;
    }

    .site__header .header__logo img,
    .site__header.scrolling .header__logo img {
        height: 30px;
    }
}
