/* =========================================================
   QuantumTurbo VPN — основной файл стилей
   ========================================================= */

/* ---------------------------------------------------------
   Базовый сброс стилей
   Убирает стандартные отступы браузера и делает расчёт
   размеров элементов более предсказуемым.
   --------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   Общий стиль страницы
   Тёмная тема, основной шрифт, цвет текста,
   запрет горизонтальной прокрутки.
   --------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff !important;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---------------------------------------------------------
   Декоративный фон: цветные светящиеся градиенты
   Создаёт эффект неонового/космического фона.
   --------------------------------------------------------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(100, 100, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255, 100, 150, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(100, 255, 200, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 200, 100, 0.08) 0%, transparent 40%);
    animation: psFloat 15s ease-in-out infinite;
    z-index: -2;
}

/* Анимация плавного движения и вращения фоновых градиентов */
@keyframes psFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg) translate(0, 0);
        opacity: 0.6;
    }

    25% {
        transform: scale(1.1) rotate(90deg) translate(10px, -10px);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05) rotate(180deg) translate(-10px, 10px);
        opacity: 0.7;
    }

    75% {
        transform: scale(1.15) rotate(270deg) translate(5px, -5px);
        opacity: 0.9;
    }
}

/* ---------------------------------------------------------
   Декоративные частицы на фоне
   Лёгкие светящиеся точки, которые медленно движутся вверх.
   --------------------------------------------------------- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90px 70px, rgba(100, 200, 255, 0.4), transparent),
        radial-gradient(1px 1px at 50px 90px, rgba(255, 100, 100, 0.5), transparent);
    animation: psParticles 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* Анимация движения частиц */
@keyframes psParticles {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

/* ---------------------------------------------------------
   Боковое меню (сайдбар)
   Фиксированная панель справа с навигацией по сайту.
   На экранах до 1024px скрывается за правым краем.
   --------------------------------------------------------- */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(0, 150, 255, 0.4);
    padding: 30px 0;
    z-index: 1000;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

/* Список пунктов меню */
.nav-list {
    list-style: none;
    padding: 20px 0;
}

/* Отступы между пунктами меню */
.nav-item {
    margin: 5px 25px;
}

/* Ссылки в боковом меню */
.nav-link {
    display: block;
    color: #e5e5e7;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 25px;
    border-radius: 12px 0 0 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Голубая полоса у активного или наведённого пункта меню */
.nav-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

/* Состояние пункта меню при наведении и на текущей странице */
.nav-link:hover,
.nav-link.active {
    background: rgba(0, 120, 255, 0.25);
    border-right-color: #00d4ff;
    transform: translateX(-8px);
    box-shadow: -6px 0 25px rgba(0, 120, 255, 0.3);
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   Основная область страницы
   Оставляет место под сайдбар справа.
   --------------------------------------------------------- */
.main-content {
    padding-right: 280px;
    padding-left: 40px;
    padding-top: 40px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------------------------------------------------------
   Заголовки
   --------------------------------------------------------- */
h1 {
    color: #e5e5e7 !important;
    font-size: 3em;
    font-weight: 700;
    margin: 0 0 50px 0;
    text-align: center;
}

h2 {
    color: #e5e5e7 !important;
    font-weight: 700;
    font-size: 1.8em;
    margin-bottom: 20px;
}

/* ---------------------------------------------------------
   Контейнер и секции контента
   --------------------------------------------------------- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Карточка с блоком текста или информации */
.section {
    background: rgba(26, 26, 30, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.section h2 {
    color: #ffffff !important;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.section h3 {
    color: #e5e5e7 !important;
    font-size: 1.4em;
    margin: 25px 0 15px;
    border-left: 4px solid #666;
    padding-left: 15px;
}

/* Выделенный блок с важной информацией */
.highlight {
    background: rgba(42, 42, 46, 0.9) !important;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

/* ---------------------------------------------------------
   Преимущества сервиса
   --------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(37, 37, 41, 0.9);
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #666 !important;
    color: #000 !important;
    border-radius: 10px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ---------------------------------------------------------
   Кнопки быстрого доступа на главной странице
   --------------------------------------------------------- */
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.nav-btn {
    background: rgba(37, 37, 41, 0.9);
    border: 2px solid #404040;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #e5e5e7 !important;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* Световая полоса при наведении на кнопку */
.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 102, 102, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(50, 50, 54, 0.9);
}

.nav-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

/* Жирный текст всегда белый */
strong {
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   Тарифы
   --------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.plan-card {
    background: rgba(37, 37, 41, 0.9);
    border: 2px solid #404040;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

/* Верхняя световая полоса карточки тарифа */
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #666, #999, #666);
    opacity: 0;
    transition: all 0.3s;
}

.plan-card:hover::before {
    opacity: 1;
}

/* Выделенный популярный тариф */
.plan-card.popular {
    border-color: #666;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.popular::before {
    background: linear-gradient(90deg, #666, #a0a0a5, #666);
    opacity: 1;
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(66, 66, 70, 0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.plan-name {
    color: #e5e5e7 !important;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 2.8em;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 10px;
}

.plan-period {
    color: #a0a0a5;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 102, 102, 0.2);
    color: #e5e5e7;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Кнопка покупки тарифа */
.buy-button {
    display: inline-block;
    background: rgba(66, 66, 70, 0.9);
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    border: 2px solid #555;
    transition: all 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.buy-button:hover {
    background: rgba(100, 100, 105, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: #666;
}

.buy-steps {
    font-size: 1.3em;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Личный кабинет: VPN-ключи
   --------------------------------------------------------- */
.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.key-card {
    background: rgba(37, 37, 41, 0.9);
    border: 2px solid #404040;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: left;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.key-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #666, #999, #666);
    opacity: 0;
    transition: all 0.3s;
}

.key-card:hover::before {
    opacity: 1;
}

.key-card:hover {
    transform: translateY(-5px);
    border-color: #666;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.key-title {
    color: #e5e5e7 !important;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

.key-line {
    margin: 10px 0;
    color: #d7d7da;
    word-break: break-all;
}

.key-label {
    color: #a0a0a5;
    font-weight: 600;
}

.key-value {
    color: #ffffff;
}

/* Блок с VPN-ссылкой */
.link-box {
    margin-top: 16px;
    padding: 14px;
    background: rgba(20, 20, 24, 0.95);
    border: 1px solid #444;
    border-radius: 10px;
    word-break: break-all;
    color: #dfefff;
    font-size: 0.95em;
}

.copy-hint {
    margin-top: 12px;
    text-align: center;
    font-size: 0.92em;
    color: #a0a0a5;
}

/* Сообщение, если подписок или ключей нет */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #a0a0a5;
    font-size: 1.1em;
}

.usage-steps {
    font-size: 1.2em;
    font-weight: 700;
}

/* Кнопки в карточке ключа */
.key-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.key-actions .action-btn {
    flex: 1;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
}

/* Синяя кнопка копирования */
.copy-btn {
    background: rgba(0, 120, 255, 0.9) !important;
    border-color: #0099cc !important;
}

.copy-btn:hover {
    background: rgba(0, 140, 255, 0.95) !important;
    border-color: #00b0e0 !important;
}

/* Зелёная кнопка открытия */
.open-btn {
    background: rgba(50, 150, 50, 0.9) !important;
    border-color: #4a9a4a !important;
}

.open-btn:hover {
    background: rgba(70, 170, 70, 0.95) !important;
    border-color: #5cb85c !important;
}

/* ---------------------------------------------------------
   Блок пользователя в боковом меню
   --------------------------------------------------------- */
.sidebar-account {
    margin: 30px 25px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 150, 255, 0.3);
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.sidebar-user-label {
    color: #a0a0a5;
    font-size: 0.85em;
}

.sidebar-user-email {
    color: #e5e5e7;
    font-weight: 600;
    word-break: break-all;
}

.sidebar-logout {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
}

/* Красная кнопка выхода */
.logout-btn {
    display: inline-block;
    background: rgba(150, 50, 50, 0.9) !important;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #a05050;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(180, 60, 60, 0.95) !important;
    border-color: #c06060 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */
.faq-list {
    max-height: 100vh;
    overflow-y: auto;
}

.faq-item {
    background: rgba(37, 37, 41, 0.9);
    border: 1px solid #404040;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: #e5e5e7 !important;
    user-select: none;
}

.faq-question:hover {
    background: rgba(50, 50, 54, 0.9);
}

/* Значок "+" у вопроса */
.faq-toggle {
    font-size: 1.2em;
    transition: transform 0.3s;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

/* Скрывающийся ответ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(42, 42, 46, 0.9);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer.active {
    max-height: 500px;
    padding: 25px;
}

.faq-answer p {
    color: #ffffff !important;
    margin-bottom: 10px;
}

.faq-app-list {
    color: #e5e5e7;
    padding-left: 20px;
}

.faq-answer a {
    color: #a0a0a5;
}

/* Кнопка/ссылка поддержки */
.support-link,
.support-link:link,
.support-link:visited,
.support-link:hover,
.support-link:active {
    color: #e5e5e7 !important;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px dashed #e5e5e7;
    border-radius: 10px;
}

/* ---------------------------------------------------------
   Страница «Как подключить»
   --------------------------------------------------------- */
.platform-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-btn {
    background: rgba(37, 37, 41, 0.9);
    border: 1px solid #404040;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: 500;
    color: #e5e5e7;
}

.tab-btn.active {
    background: rgba(66, 66, 70, 0.9);
    border-color: #666;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Скрытая вкладка */
.tab-content {
    display: none;
}

/* Активная вкладка */
.tab-content.active {
    display: block;
}

.qr-code-demo {
    background: rgba(42, 42, 46, 0.9);
    border: 2px dashed #555;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.download-link {
    display: inline-block;
    background: rgba(66, 66, 70, 0.8);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin: 10px 5px;
    transition: all 0.3s;
    border: 1px solid #555;
    font-weight: 500;
}

.download-link:hover {
    background: rgba(100, 100, 105, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.connection-check {
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
}

/* ---------------------------------------------------------
   Страница «Скачать»
   --------------------------------------------------------- */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.app-card {
    background: rgba(37, 37, 41, 0.9);
    border: 2px solid #404040;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #666, #999, #666);
    opacity: 0;
    transition: all 0.3s;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: #666;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.app-icon {
    width: 80px;
    height: 80px;
    background: rgba(66, 66, 70, 0.9);
    border-radius: 20px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    border: 2px solid #555;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-name {
    color: #e5e5e7 !important;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 10px;
}

.app-desc {
    color: #a0a0a5;
    margin-bottom: 25px;
    font-size: 0.95em;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-btn {
    display: inline-block;
    background: rgba(66, 66, 70, 0.9);
    color: #ffffff !important;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #555;
    transition: all 0.3s;
}

.download-btn:hover {
    background: rgba(100, 100, 105, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: #666;
}

.download-btn.primary {
    background: rgba(50, 150, 50, 0.9);
    border-color: #666;
}

.download-btn.primary:hover {
    background: rgba(70, 170, 70, 0.95);
}

.connect-steps {
    font-size: 1.2em;
}

.connect-tip {
    font-size: 0.9em;
    color: #a0a0a5;
}

.connect-tip a {
    color: #a0a0a5;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.requirement-card {
    background: rgba(37, 37, 41, 0.7);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #404040;
}

.requirement-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.requirement-text {
    color: #a0a0a5;
}

/* ---------------------------------------------------------
   Страницы входа и регистрации
   --------------------------------------------------------- */
.auth-page .main-content {
    padding: 40px 20px;
    padding-right: 20px;
    max-width: 1200px;
}

.auth-wrapper {
    max-width: 520px;
    margin: 0 auto;
}

.login-card {
    background: rgba(26, 26, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 30px;
    max-width: 420px;
    margin: 0 auto;
}

/* Сообщение об ошибке формы */
.form-error {
    background: rgba(150, 50, 50, 0.9);
    border: 1px solid #a05050;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e5e5e7;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(42, 42, 46, 0.9);
    border: 1px solid #555;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.25);
}

/* Кнопка входа / регистрации */
.form-submit {
    display: block;
    width: 100%;
    background: rgba(0, 120, 255, 0.95);
    border: none;
    color: white;
    padding: 16px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    background: rgba(0, 140, 255, 1);
    box-shadow: 0 10px 25px rgba(0, 120, 255, 0.4);
}

.auth-links {
    margin-top: 15px;
    text-align: center;
    color: #999 !important;
}

.auth-links a {
    color: #00d4ff !important;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   Адаптивность
   ========================================================= */

/* ---------------------------------------------------------
   Планшеты и узкие экраны: до 1024px
   Сайдбар скрыт за правым краем и открывается кнопкой.
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        padding-right: 0;
    }

    /* Кнопка открытия меню на мобильных устройствах */
    .menu-toggle {
        position: fixed;
        top: 25px;
        right: 25px;
        z-index: 1001;
        background: rgba(0, 120, 255, 0.95);
        border: none;
        color: white;
        padding: 15px 18px;
        border-radius: 12px;
        cursor: pointer;
        font-size: 20px;
        box-shadow: 0 4px 20px rgba(0, 120, 255, 0.4);
    }
}

/* ---------------------------------------------------------
   Телефоны: до 768px
   Упрощает сетки и уменьшает отступы.
   --------------------------------------------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
        margin: 20px 0 40px 0;
    }

    .main-content {
        padding: 20px 20px 20px 20px;
    }

    .section {
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .plan-card.popular {
        transform: none;
    }

    .keys-grid {
        grid-template-columns: 1fr;
    }

    .key-actions {
        flex-direction: column;
    }

    .faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .platform-tabs {
        flex-direction: column;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   Компьютеры: от 1024px
   Скрывается только кнопка открытия меню.
   Сам сайдбар остаётся видимым.
   --------------------------------------------------------- */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none !important;
    }
}

/* =========================================================
   Нижний футер сайта
   ========================================================= */

/* ---------------------------------------------------------
   Основной контейнер футера
   --------------------------------------------------------- */
.site-footer {
    margin-top: 30px;
    padding: 22px 40px 16px;
    background: rgba(15, 15, 18, 0.95);
    border-top: 1px solid #26262b;
    color: #a9a9b0;
}

/* ---------------------------------------------------------
   Внутренняя сетка футера
   --------------------------------------------------------- */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

/* ---------------------------------------------------------
   Блок с названием и описанием сервиса
   --------------------------------------------------------- */
.footer-brand {
    max-width: 360px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    color: #c7c7cc;
    margin-bottom: 8px;
}

.footer-logo span {
    color: #4fb8d8;
}

.footer-text {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    color: #a9a9b0;
}

/* ---------------------------------------------------------
   Заголовки колонок футера
   --------------------------------------------------------- */
.footer-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #8cddf5;
}

/* ---------------------------------------------------------
   Ссылки на Telegram-бот, поддержку и документы
   --------------------------------------------------------- */
.footer-contacts,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contacts a,
.footer-legal a {
    color: #a9a9b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-contacts a:hover,
.footer-legal a:hover {
    color: #00d4ff;
}

/* ---------------------------------------------------------
   Нижняя строка с копирайтом
   --------------------------------------------------------- */
.footer-bottom {
    max-width: 1200px;
    margin: 18px auto 0;
    padding-top: 14px;
    border-top: 1px solid #26262b;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #71717a;
}

/* ---------------------------------------------------------
   Адаптивность футера для мобильных устройств
   --------------------------------------------------------- */
@media (max-width: 768px) {
    .site-footer {
        padding: 18px 20px 14px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-title {
        margin-bottom: 8px;
    }

    .footer-contacts,
    .footer-legal {
        gap: 6px;
    }

    .footer-bottom {
        margin-top: 14px;
        padding-top: 10px;
    }
}