﻿/* header */
.header {
    position: absolute;
    height: 80px;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(22.45px);
    z-index: 1000;
}

.head-container {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.nav {
    display: flex;
    max-width: 568px;
}

.nav__list {
    display: flex;
    gap: 50px;
}

.nav__item {
    display: flex;
    align-items: center;
}

.nav__link,
.nav__link_tarrifs {
    font-family: 'Inter';
    font-size: 16px;
    line-height: 19px;
    text-decoration: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.nav__link {
    opacity: 0.5;
    color: #FFFFFF;
}

.nav__link_tarrifs {
    opacity: 0.8;
    color: #AEEF35;
    text-shadow: 0px 0px 25px rgba(174, 239, 53, 0.8);
    align-items: center;
}

.nav__link:hover,
.nav__link_tarrifs:hover {
    opacity: 1;
}

/* header social */

.social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    max-width: 688.5px;
}


.social__btn {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 25px;
    gap: 10px;
    width: 149px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    opacity: 0.7;
    transition: all 0.3s;
}

.social__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.social__link {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 110%;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFFFF;
}

/* Обновляем стили для выпадающего меню */
.social__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    width: 180px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;

    background: radial-gradient(94.55% 94.55% at 50% -39.55%,
            rgba(160, 131, 247, 0.484) 0%,
            rgba(160, 131, 247, 0) 100%),
        rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    border-radius: 8px;
}

.social__dropdown-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 40px;
    padding: 12px;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 110%;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    opacity: 0.7;
    text-align: center;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social__dropdown-link:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}


.social__dropdown-link::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.social__dropdown-link img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    flex-shrink: 0;
}

.social__dropdown-link:hover img {
    opacity: 1;
}

.social__dropdown-link span {
    flex-grow: 1;
    text-align: center;
    padding-right: 10px;
}


.social__dropdown-link img,
.social__dropdown-link span {
    pointer-events: none;
}

.order-nav-button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    transform-origin: center center;
    text-decoration: none;
    width: 230px;
    height: 40px;
}

.order-nav-button::before {
    content: '';
    position: absolute;
    inset: -3px;
    z-index: -1;
    background: radial-gradient(50.9% 250.55% at 49.65% 0.7%,
            rgba(160, 131, 247, 0.6) 0%,
            rgba(39, 0, 157, 0.4) 100%);
    filter: blur(10px);
    opacity: 0.5;
    transition: all 0.3s ease;
    border-radius: 28px;
}


.order-nav-button::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(50.9% 250.55% at 49.65% 0.7%, #A083F7 0%, #27009D 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    box-shadow:
        0px 2px 30px rgba(175, 99, 255, 0.3),
        0px 2px 2.7px rgba(0, 0, 0, 0.3),
        inset 0px -5px 14px #996DFF;
    transition: all 0.3s ease;
}

.order-nav-button span {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    display: flex;
    transition: all 0.3s ease;
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 110%;
    text-transform: uppercase;
}

.order-nav-button:hover {
    transform: scale(0.97) translateY(2px);
}

.order-nav-button:hover::before {
    opacity: 0;
    filter: blur(0);
}

.order-nav-button:hover::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        radial-gradient(50.9% 250.55% at 49.65% 0.7%, #A083F7 0%, #27009D 100%);
    box-shadow:
        inset 0px -7px 16.4px #996DFF,
        0px 1px 10px rgba(175, 99, 255, 0.2);
}

.order-nav-button:hover span {
    opacity: 0.9;
    transform: translateY(1px);
}

.order-nav-button:active {
    transform: scale(0.95) translateY(4px);
}

.order-nav-button:active::after {
    box-shadow:
        inset 0px -4px 10px #996DFF,
        0px 1px 5px rgba(175, 99, 255, 0.1);
}


/* Adaptive */
@media (max-width: 1400px) {
    .head-container {
        padding: 0 4%;
    }

    .nav__list {
        gap: 30px;
    }

}

@media(max-width:1100px) {
    .head-container {
        padding: 0 2%;
    }

    .nav__list {
        gap: 15px;
    }

    .social {
        gap: 8px;
    }
}

@media (min-width: 993px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-header {
        display: block !important;
    }

    .header {
        height: 90px;
        position: fixed;
        top: 0;
        z-index: 1000;
    }

    .social__dropdown {
        position: absolute;
        left: 0;
        z-index: 1001;
    }

    .order-nav-button{
        width: unset;
        height: 50px;
    }
}

/* Mobile */
.mobile-header {
    display: none;
    position: relative;
    width: 100%;
    height: 90px;
    padding: 0 20px;
}

.header-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(22.45px);
    z-index: 1;
}

.mobile-logo {
    position: absolute;
    left: 20px;
    top: 25px;
    z-index: 2;
}

.mobile-social-group {
    position: absolute;
    left: 20px;
    top: 25px;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.mobile-social-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-telegram,
.icon-youtube {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.mobile-menu-btn {
    position: absolute;
    right: 25px;
    top: 22px;
    width: 45px;
    height: 45px;

    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn.active .icon-burger-menu {
    display: none;
}

.icon-burger-close {
    display: none;
}

.mobile-menu-btn.active .icon-burger-close {
    display: block;
}


.menu-line {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}



/* Мобильное меню */
.mobile-nav {
    position: fixed;
    top: 90px;
    right: -100%;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.35);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    border-radius: 0;
    padding: 30px 25px;
    border-width: 1px;
    border-bottom-right-radius: 24px;
    border-bottom-left-radius: 24px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mobile-menu-bg {
    position: absolute;
    width: 700px;
    height: 700px;
    background-image: url(../images/common/backgroundImage.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    z-index: -1;
    top:-1px;
    left: 50%;
    transform: translate(-50%, 0);
    pointer-events: none;
}

.mobile-nav-link {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 25px;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.mobile-nav-link-tarrifs {
    color: #AEEF35 !important;
    text-shadow: 0px 0px 25px rgba(174, 239, 53, 0.8);
    opacity: 1 !important;
}

.mobile-nav-link span {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 110%;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #FFFFFF;
    opacity: 0.7;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}
