/* Подключение шрифта */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
/* Подключение Gilroy Regular */
@font-face {
    font-family: 'Gilroy';
    src: url('../fonts/gilroy-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gilroy', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
html, body {height: 100%;overflow: auto;scrollbar-color: #3C4FFF #111111;scrollbar-width: thin;}

/* Для Firefox */
body {
    background-color: #161616 !important;
    color: #ffffff;
}

/* Навигационная панель */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(22, 22, 22, 0.8);
    padding: 10px 0;
    z-index: 1000;
    user-select: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between; /* Изменено с flex-start на space-between */
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    padding: 0 15%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-grow: 1;
    user-select: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    letter-spacing: .1rem;
}

.nav-links a:hover {
    color: #3C4FFF;
}

.gradient-link {
    font-weight: 600 !important;
    text-decoration: none;
    color: #3C4FFF !important; /* Основной цвет текста */
    transition: color 0.5s ease;
}

.gradient-link:hover {
    color: #5028c0 !important; /* Цвет текста при наведении */
}

.logo-img {
    width: 50px;
    height: auto;
}

.login-btn {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    padding: 8px 16px;
    transition: color 0.3s;
}

.login-icon {
    margin-right: 5px;
    transition: 0.2s;
}

.login-btn:hover,
.login-btn:hover {
    color: #4B76F6;
}

.login-btn:hover .login-icon {
    filter: invert(56%) sepia(66%) saturate(2980%) hue-rotate(210deg) brightness(96%) contrast(101%);
    margin-right: 2.5px;
    transition: 0.2s ease;
}

/* Обёртка для кнопки и списка */
.lang-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Убрано margin-left: -40px; для корректного отображения на мобильных */
}

/* Обёртка для SVG и кнопки */
.svg-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG-картинка с границей */
.lang-border {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Текст кнопки для смены языка */
.lang-button {
    font-size: 20px;
    color: transparent;
    background: linear-gradient(135deg, #3C4FFF, #242F99);
    -webkit-background-clip: text;
    background-clip: text;
    border: none;
    border-radius: 50%;
    width: 80%;
    height: 80%;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Выпадающий список */
.language-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    background-color: #161616;
    border-radius: 8px;
    width: 120px;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transform-origin: top;
    transform: scaleY(0);
    transition: opacity 0.3s, transform 0.3s ease;
}

/* Список внутри выпадающего меню */
.language-dropdown ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.language-dropdown li {
    padding: 10px;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.language-dropdown li:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

/* Анимация при показе */
.language-dropdown.show {
    display: block;
    opacity: 1;
    transform: scaleY(1);
}

/* Главный баннер */
.main-banner {
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    color: #ffffff;
}

.container.full-width {
    width: 100%;
    max-width: none;
    padding: 0 15%;
}

/* Лейблы */
.labels {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.label {
    background-color: #3A4049;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    letter-spacing: .05rem;
    font-weight: 600;
}

.gradient-background {
    background: linear-gradient(90deg, #3C4FFF, #382276);
    padding: 10px 15px;
    border-radius: 20px;
    color: #ffffff;
    box-shadow: 0 0 10px #382785;
}

/* Градиент на заголовке */
.gradient-text {
    background: linear-gradient(90deg, #3C4FFF, #382276);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: .3rem;
}

.main-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: .3rem;
}

.description {
    max-width: 600px;
    margin-bottom: 30px;
    font-size: 1.2rem;
    letter-spacing: .1rem;
    font-weight: 600;
}

/* Кнопки */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
    letter-spacing: .1rem;
}

.btn.primary {
    background-color: #3C4FFF;
    color: #ffffff;
    transition: 0.2s;
}

.btn.primary:hover {
    transform: scale(0.95);
    transition: 0.3s ease;
}

.btn.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #3A4049;
    transition: 0.2s;
}

.btn.secondary:hover {
    border-color: #3C4FFF;
    color: #3C4FFF;
    transform: scale(0.95);
    transition: 0.3s ease;
}

/* Класс note */
.note {
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 20px;
    text-align: left;
}

/* Скрываем мобильное меню по умолчанию */
.mobile-nav {
    display: none;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        flex-direction: row; /* Горизонтальное расположение элементов */
        align-items: center;
        justify-content: space-between; /* Равномерное распределение */
        padding: 10px 5%; /* Отступы сверху и по бокам */
    }

    /* Убираем десктопные элементы */
    .navbar .nav-links,
    .navbar .login-btn,
    .navbar .lang-container {
        display: none;
    }

    /* Кнопка гамбургера */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    /* Стили для гамбургер-меню */
    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px 0;
    }

    .mobile-nav {
        display: none; /* По умолчанию скрыто */
        position: fixed; /* Исправлено: фиксированное позиционирование */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Заполнение всего экрана */
        background-color: rgba(22, 22, 22, 0.9);
        z-index: 9999; /* Обеспечиваем, что меню всегда сверху */
        overflow-y: auto; /* Добавляем прокрутку для длинных меню */
    }

    .mobile-nav.show {
        display: block; /* Показываем при клике */
    }

    .mobile-nav.show {
        display: block; /* Показываем при клике */
        background-color: rgba(22, 22, 22, 0.9);
        position: absolute;
        top: 60px; /* Отступ от верха */
        left: 0;
        width: 100%;
        z-index: 999;
    }

    /* Стили для элементов мобильного меню */
    .mobile-nav ul {
        list-style: none;
        padding: 10px; /* Внутренний отступ */
        margin-top: 50px;
    }

    .mobile-nav ul li {
        margin-top: 10px; /* Отступ между элементами */
        border-bottom: 1px solid #3A4049;
    }

    .mobile-nav ul li a {
        display: block;
        padding: 15px;
        color: #ffffff;
        text-decoration: none;
    }

    .mobile-nav ul li a:hover {
        background-color: #3A4049;
    }

    /* Исправление для переключателя языка */
    .mobile-nav .lang-container {
        display: flex;
        justify-content: center;
        padding: 15px;
    }

    /* Отступы и позиционирование логотипа */
    .navbar .logo {
        margin-right: 10px;
    }

    /* Коррекция, чтобы меню не перекрывалось */
    .navbar {
        position: relative;
        z-index: 1000;
    }

    /* Обеспечение корректного выравнивания кнопок */
    .menu-toggle {
        margin-left: auto;
    }

    .main-banner {
        padding: 100px 0;
    }

    .container.full-width {
        padding: 0 5%;
    }

    .main-banner h1 {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Блок преимуществ */
.features {
    background-color: #1a1a1a;
    padding: 100px 0;
    margin-top: 50px;
    border-radius: 50px;
}

.features h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: .1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Настройка для растягивания блока */
.feature-item.stretch {
    grid-column: span 2; /* Блок занимает две колонки */
}

.feature-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    min-height: 160px;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-header {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 25px;
    padding: 5px 15px;
    margin-bottom: 15px;
    gap: 5px;
}

.feature-header .icon {
    width: 30px;
    height: 30px;
}

.feature-header .icon img {
    width: 100%;
    max-height: 26px;
}

.feature-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3C4FFF;
    margin: 0;
}

.feature-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.08rem;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Сбрасываем растягивание на мобильных устройствах */
    .feature-item.stretch {
        grid-column: auto;
    }

    .feature-item {
        min-height: auto; /* Убираем фиксированную высоту */
    }
}

/* Основные стили для подписок */
.subscriptions {
    background-color: #121212;
    padding: 50px 0;
    margin-top: 50px;
    border-radius: 50px;
    font-family: 'Gilroy', sans-serif;
}

.subscriptions h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: .1rem;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.subscription-card {
    background-color: #1F1F1F;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    font-family: 'Gilroy', sans-serif;
}

.subscription-card .badge {
    background-color: #2a2a2a;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    position: absolute;
    top: 20px;
    left: 20px;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: .08rem;
}

.subscription-card .user-choice,
.subscription-card .sponsor {
    background: linear-gradient(90deg, #3C4FFF, #382276);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    position: absolute;
    top: 20px;
    text-transform: uppercase;
    font-weight: 600;
    transition: 0.2s;
    letter-spacing: .08rem;
}

.subscription-card .user-choice:hover,
.subscription-card .sponsor:hover {
    box-shadow: 0 0 10px #382785;
    transition: 0.3s ease;
}

.subscription-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 45px 0 1px;
    letter-spacing: .07rem;
}

.subscription-card .price {
    font-size: 1.1rem;
    color: #3C4FFF;
    margin-bottom: 15px;
    margin-top: 10px;
    font-weight: 600;
}

.subscription-card ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.subscription-card ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: .03rem;
}

.subscription-card ul li img {
    width: 18px;
    height: 18px;
}

/* Кнопки */
.subscription-card .btn {
    padding: 6px;
    text-decoration: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Gilroy', sans-serif;
    font-size: 0.8rem;
}

/* Кнопка с иконкой */
.subscription-card .btn img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Темные кнопки для X-LITE и X-PREMIUM */
.subscription-card:nth-child(1) .btn,
.subscription-card:nth-child(3) .btn {
    background-color: #191919;
    color: #ffffff;
}

.subscription-card:nth-child(1) .btn:hover,
.subscription-card:nth-child(3) .btn:hover {
    background-color: #333333;
}

/* Градиентная кнопка для X-PLUS */
.subscription-card:nth-child(2) .btn {
    background: linear-gradient(90deg, #3C4FFF, #382276);
    color: #ffffff;
    transition: 0.2s;
}

.subscription-card:nth-child(2) .btn:hover {
    box-shadow: 0 0 10px #382785;
    transition: 0.3s ease;
}

/* Эффект при наведении */
.subscription-card .btn:hover {
    transform: scale(0.95);
    cursor: pointer;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .subscription-grid {
        grid-template-columns: 1fr;
    }

    .subscription-card {
        min-height: auto; /* Убираем фиксированную высоту */
        padding: 20px;
    }
}

/* Стили для футера со статистикой */
.footer-stats {
    background-color: #1a1a1a;
    padding: 80px 0;
    text-align: center;
    margin-top: 40px;
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.footer-header .gradient-background {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(90deg, #3C4FFF, #382276);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 20px #382785;
    font-weight: 600;
}

.footer-header .footer-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    letter-spacing: .6rem;
}

.stats-text, .connect-text {
    font-size: 2rem;
    margin: 20px 0;
    color: #ffffff;
    letter-spacing: .06rem;
}

.footer-stats .highlight-number {
    background: linear-gradient(90deg, #3C4FFF, #382276);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-weight: 700;
}

.footer-stats .highlight-block {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(90deg, #3C4FFF, #382276);
    color: #ffffff;
    border-radius: 20px;
    transform: rotate(-1.31deg);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .1rem;
}

.foot-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.footer-stats .btn {
    padding: 18px 30px;
    text-decoration: none;
    border-radius: 15px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Gilroy', sans-serif;
    font-size: 1.2rem;
    letter-spacing: .1rem;
}

.footer-stats .btn.primary {
    background: linear-gradient(90deg, #3C4FFF, #382276);
    color: #ffffff;
    border: none;
}

.footer-stats .btn.primary:hover {
    transform: scale(0.95);
}

.footer-stats .btn.secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.footer-stats .btn.secondary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: scale(0.95);
}

/* Адаптация для экранов от 1000px до 1400px */
@media (min-width: 1000px) and (max-width: 1400px) {
    .navbar .container {
        padding: 0 15%;
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .main-banner {
        padding: 120px 0;
    }

    .main-banner h1 {
        font-size: 3rem;
    }

    .description {
        font-size: 1.1rem;
        max-width: 500px;
    }

    .features {
        padding: 100px 0;
        margin-top: 40px;
    }

    .features h2 {
        font-size: 2.3rem;
    }

    .feature-item {
        min-height: 140px;
        padding: 15px;
    }

    .feature-header h3 {
        font-size: 1rem;
    }

    .subscription-card {
        min-height: 370px;
        padding: 15px;
    }

    .subscription-card h3 {
        font-size: 1.2rem;
    }

    .subscription-card .price {
        font-size: 1rem;
    }

    .subscription-card ul li {
        font-size: 0.85rem;
    }

    .footer-stats {
        padding: 60px 0;
    }

    .footer-header .footer-title {
        font-size: 3rem;
    }

    .stats-text, .connect-text {
        font-size: 1.8rem;
    }

    .footer-stats .highlight-block {
        font-size: 1.2rem;
    }

    .foot-buttons {
        gap: 15px;
    }

    .footer-stats .btn {
        padding: 15px 25px;
        font-size: 1.1rem;
    }
}

/* Мобильная адаптация для экранов до 768px */
@media (max-width: 768px) {
    .footer-stats {
        padding: 50px 20px;
    }

    .footer-header .footer-title {
        font-size: 2.5rem;
    }

    .stats-text, .connect-text {
        font-size: 1.5rem;
    }

    .footer-stats .highlight-block {
        font-size: 1rem;
    }

    .foot-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .footer-stats .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}


