/* ============================================================
   FMH‑VPN — Porcelain · Shadow Grey · Bright Teal Blue
   Фон: #FBFEF9 · Текст: #191923 · Акцент: #0E79B2
   nav и sidebar: фон #FBFEF9
   Сохранена полная структура и размеры элементов
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* Шрифт 1: CIQUITA */
@font-face {
    font-family: 'Ciquita';
    src: url('Fonts/CIQUITA.woff?v=2') format('woff'); /* Добавлено ?v=2 */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Шрифт 2: Hemico (теперь .woff) */
@font-face {
    font-family: 'Hemico';
    src: url('Fonts/Hemico.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Шрифт 3: SKARTANICK (с разными форматами для совместимости) */
@font-face {
    font-family: 'MyCustomFont';
    src: url('Fonts/SKARTANICK.ttf.eot') format('embedded-opentype');
    src: url('Fonts/SKARTANICK.ttf.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ---------- ОСНОВНОЙ ФОН (светлый) ---------- */
body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    color: #191923;
    background: #FBFEF9;
    position: relative;
    z-index: 1;
    text-shadow: none;
}

body::before {
    display: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50vh;
    background: 0;
    z-index: -1;
    pointer-events: none;
}

/* ========== КНОПКИ (размеры сохранены) ========== */
button {
    background: #0E79B2;
    color: #FFFFFF;
    border: #0E79B2;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(14, 121, 178, 0.2);
    border: 2px solid #0E79B2;
    backdrop-filter: none;
}

button:hover {
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
    transform: translateY(-2px);
    background: #0B5F8C;
}

/* ========== ЗАГОЛОВКИ И ССЫЛКИ ========== */
h1, h2, h3 {
    color: #191923;
    text-shadow: none;
}

a {
    color: #0E79B2;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: none;
}

a:hover {
    color: #191923;
    text-shadow: none;
}

.card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(25, 25, 35, 0.04);
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 40px rgba(0,0,0,0.06);
}

/* ===== ВЕРХНЯЯ НАВИГАЦИЯ (фон #FBFEF9, текст тёмный) ===== */
nav {
    display: flex;
    justify-content: flex-start;
    align-items: left;
    padding: 20px 40px;
    background: #FBFEF9;               /* ← ИЗМЕНЕНО на #FBFEF9 */
    backdrop-filter: blur(10px), contrast(1.2), brightness(0.8);
    border-bottom: 0;
    margin-bottom: 0;
    gap: 0px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    color: #191923;
    font-size: 22px;
    font-weight: 2000;
    letter-spacing: 5px;
    text-shadow: none;
    font-family: 'MyCustomFont', 'Arial', sans-serif;
}

.nav-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.04));
}

.nav-center {
    display: flex;
    gap: 50px;
    flex: 0 1 auto;
    margin-left: 150px;
}

.nav-right {
    display: none;
}

nav a {
    color: #191923;
    text-decoration: none;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 30px;
    transition: all 0.2s ease;
    text-shadow:  #0E79B2;
    border: 1px solid #0E79B2;
    outline: #0E79B2;
    box-shadow: #0E79B2;
}

nav a:hover {
    color: #FFFFFF;          /* текст белый */
    background: #0E79B2;      /* фон полностью синий (сплошной) */
    text-shadow: none;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-wrapper {
    display: flex;
    min-height: calc(100vh - 100px);
}


/* ===== ИКОНКИ ===== */
.sidebar-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
    filter: invert(0.2);
    transition: filter 0.2s ease;
}

.sidebar a:hover .sidebar-icon {
    filter: invert(0.3) sepia(1) saturate(10) hue-rotate(170deg);
}

.sidebar .logout .sidebar-icon {
    filter: invert(0.5);
}

.sidebar .logout:hover .sidebar-icon {
    filter: invert(0.2);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    flex: 1;
    padding: 30px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ===== ГЛАВНАЯ СТРАНИЦА ===== */
.hero-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 10px 0;
}

.hero-left {
    flex: 1;
    max-width: 450px;
}

.hero-title {
    color: #191923;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: none;
    
}

.hero-title span:first-child,
.hero-title span:last-child {
    color: #191923;
}

.hero-subtitle {
    color: rgba(25, 25, 35, 0.7);
    font-size: 16px;
    line-height: 1.6;
    text-shadow: none;
}

.hero-right {
    flex: 1.5;
}

.tariffs-row {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

.tariff-card {
    flex: 1;
    max-width: 1000px;
    background: #FBFEF9;
    border-radius: 24px;
    padding: 30px 25px 25px;
    border: 1px solid #191923;
    box-shadow: 100px 100px 100px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.tariff-card:hover {
    border-color: #0E79B2;
    transform: translateY(-5px);
    box-shadow: 0px 20px 40px rgba(0,0,0,0.06);
}

.pro-card {
    border-color: #191923;
    box-shadow: 100px 100px 100px rgba(0,0,0,0.06);
}

.pro-card:hover {
    border-color: #0E79B2;
    box-shadow: 0px 20px 40px rgba(0,0,0,0.06);
}

.tariff-name {
    font-family:'Ciquita', sans-serif;
    color: #191923;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEEEEE;
    text-shadow: none;
    font-family: 'Ciquita', sans-serif;
}

.tariff-options {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.tariff-options li {
    color: rgba(25, 25, 35, 0.8);
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tariff-options li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("images/есть.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
    vertical-align: middle;
}

.tariff-options li:last-child {
    border-bottom: none;
}

/* Стили для слова "Безопасный" в заголовке */
.highlight-text {
    color: #0E79B2 !important;  /* Синий цвет (как в вашем дизайне) */
    font-weight: 700;
}

/* ===== КНОПКА ТАРИФА ===== */
.tariff-btn {
    display: inline-block;
    padding: 10px 35px;
    border-radius: 22px;
    background: #0E79B2;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #0E79B2;
    box-shadow: 0 2px 12px rgba(14, 121, 178, 0.2);
}

.tariff-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
    background: #0B5F8C;
    color: #FFFFFF;
}

.pro-card .tariff-btn {
    background: #0E79B2;
    color: #FFFFFF;
}

.pro-card .tariff-btn:hover {
    background: #0B5F8C;
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
}



/* ===== СТРАНИЦА ИНСТРУКЦИЙ ===== */
.instructions-title {
    font-size: 32px;
    font-weight: 700;
    color: #191923;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: none;
}

.instructions-subtitle {
    font-size: 16px;
    color: rgba(25, 25, 35, 0.7);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: none;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.device-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 35px 20px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 40px rgba(0,0,0,0.06);
    border-color: #0E79B2;
}

.device-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #FBFEF9;
    border-radius: 16px;
    border: 2px dashed rgba(25, 25, 35, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #191923;
}

.device-name {
    color: #191923;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    text-shadow: none;
}

/* ===== КНОПКА УСТРОЙСТВА ===== */
.device-btn {
    background: #FBFEF9;
    color: #191923;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    letter-spacing: 0.5px;
    border: 1px solid #0E79B2;
}

.device-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
    background: #0B5F8C;
    color: #FFFFFF;
}

.device-btn:active {
    transform: scale(0.95);
}

/* ===== РЕКОМЕНДАЦИИ ===== */
.recommendations-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.recommendations-title {
    color: #191923;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: none;
}

.recommendations-content {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 40px 50px;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
}

.recommendations-left {
    flex: 1;
    text-align: left;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li {
    color: rgba(25, 25, 35, 0.8);
    font-size: 16px;
    line-height: 1.8;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F5F5F5;
    text-shadow: none;
}

.recommendations-list li:last-child {
    border-bottom: none;
}

.check-icon {
    font-size: 20px;
    flex-shrink: 0;
    color: #0E79B2;
}

.recommendations-right {
    flex: 0 0 200px;
    min-height: 200px;
    background: #FBFEF9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(25, 25, 35, 0.3);
    font-size: 14px;
}

/* ===== СТРАНИЦА ОПЛАТЫ ===== */
.payment-page-title {
    color: #191923;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: none;
    text-align: right;
    padding-right: 350px
}

.payment-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 0px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: 0;
    margin-top: -25px;
}

.payment-plan-card {
    background: #FBFEF9;
    border-radius: 66px;
    padding: 40px 35px 35px;
    border: 1px solid #EEEEEE;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.payment-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 20px 40px rgba(0,0,0,0.06);
    border-color: #0E79B2;
}

.payment-plan-popular {
    border-color: #0E79B2;
    box-shadow: 0px 10px 40px rgba(14, 121, 178, 0.06);
}

.payment-plan-popular:hover {
    border-color: #0E79B2;
}

.payment-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #0E79B2;
    color: #FFFFFF;
    padding: 6px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(14, 121, 178, 0.2);
    border: 1px solid #0E79B2;
}

.payment-plan-name {
    color: #191923;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: none;
}

.payment-plan-features {
    flex: 1;
    margin-bottom: 25px;
}

.payment-plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.payment-plan-features li {
    color: rgba(25, 25, 35, 0.8);
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
    text-shadow: none;
}

.payment-plan-features li:last-child {
    border-bottom: none;
}

/* ===== КНОПКА ОПЛАТЫ ===== */
.payment-plan-btn {
    background: #FBFEF9;
    color: #191923;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    border: 1px solid #0E79B2;
}

.payment-plan-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
    background: #0B5F8C;
    color: #FFFFFF;
}

.payment-plan-btn.active {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
}

.payment-plan-popular .payment-plan-btn {
    background: #0E79B2;
    color: #FFFFFF;
}

.payment-plan-popular .payment-plan-btn:hover {
    background: #0B5F8C;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.payment-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #EEEEEE;
    box-shadow: 0px 20px 40px rgba(0,0,0,0.06);
    display: none;
    z-index: 9999;
    overflow: hidden;
    padding: 8px 0;
}

.payment-dropdown-menu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #F5F5F5;
}

.payment-dropdown-item:last-child {
    border-bottom: none;
}

.payment-dropdown-item:hover {
    background: #FBFEF9;
}

.payment-dropdown-item .dropdown-duration {
    color: #191923;
    font-size: 16px;
    font-weight: 500;
    text-shadow: none;
}

.payment-dropdown-item .dropdown-price {
    color: #0E79B2;
    font-size: 18px;
    font-weight: 700;
    text-shadow: none;
}

.payment-dropdown-item.active {
    background: rgba(14, 121, 178, 0.06);
}

/* ===== ИНФО КАРТОЧКА ===== */
.payment-info-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 25px 30px;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
    max-width: 1000px;
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.payment-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
}

.payment-info-row:last-child {
    border-bottom: none;
}

.payment-info-label {
    color: rgba(25, 25, 35, 0.6);
    font-size: 15px;
    text-shadow: none;
}

.payment-info-value {
    color: #191923;
    font-size: 16px;
    font-weight: 500;
    text-shadow: none;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.payment-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 25, 35, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.payment-modal-overlay.active {
    display: flex;
}

.payment-modal {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 45px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 40px 80px rgba(0,0,0,0.08);
    animation: slideUp 0.4s ease;
}

.payment-modal-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.payment-modal-title {
    color: #191923;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: none;
}

.payment-modal-text {
    color: rgba(25, 25, 35, 0.7);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    text-shadow: none;
}

.payment-modal-buttons {
    display: flex;
    gap: 12px;
}

.payment-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    text-align: center;
}

.login-modal-btn {
    background: #0E79B2;
    color: #FFFFFF;
    border: 1px solid #0E79B2;
}

.login-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
    background: #0B5F8C;
}

.close-modal-btn {
    background: #FBFEF9;
    color: #191923;
    border: 1px solid #E5E5E5;
    text-shadow: none;
}

.close-modal-btn:hover {
    border-color: #191923;
    background: #F0F0F0;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== АДАПТИВНОСТЬ (сохранена) ===== */
@media (max-width: 1024px) {
    .hero-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .hero-left {
        max-width: 100%;
        text-align: center;
    }
    .tariffs-row {
        justify-content: center;
    }
    .why-us-wrapper {
        flex-direction: column;
    }
    .devices-grid {
        gap: 20px;
    }
    .device-card {
        padding: 25px 15px 20px;
    }
    .device-icon {
        width: 80px;
        height: 80px;
    }
    .recommendations-content {
        padding: 30px;
        gap: 30px;
    }
    .recommendations-right {
        flex: 0 0 150px;
        min-height: 150px;
    }
    .payment-plans {
        gap: 30px;
        margin-bottom: 80px;
    }
    .payment-plan-card {
        padding: 30px 25px 25px;
    }
}

@media (max-width: 768px) {
    .tariffs-row {
        flex-direction: column;
        align-items: center;
    }
    .tariff-card {
        max-width: 100%;
        width: 100%;
    }
    .hero-title {
        font-size: 32px;
    }
    .features-row {
        flex-direction: column;
        align-items: center;
    }
    .feature-card {
        max-width: 100%;
        width: 100%;
    }
    .main-content {
        padding: 20px;
    }
    .why-us-wrapper {
        gap: 30px;
    }
    .devices-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .instructions-title {
        font-size: 24px;
    }
    .recommendations-content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    .recommendations-title {
        text-align: center;
    }
    .recommendations-left {
        text-align: center;
    }
    .recommendations-list li {
        justify-content: center;
    }
    .recommendations-right {
        flex: 0 0 auto;
        min-height: 100px;
        width: 100%;
        margin-top: 10px;
    }
    .payment-plans {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 70px;
    }
    .payment-page-title {
        font-size: 26px;
    }
    .payment-info-card {
        padding: 20px;
        margin-top: 10px;
    }
    .payment-plan-name {
        font-size: 26px;
    }
    .payment-modal {
        padding: 30px 25px;
    }
    .payment-modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .device-card {
        padding: 20px 10px 15px;
    }
    .device-icon {
        width: 60px;
        height: 60px;
    }
    .device-name {
        font-size: 16px;
    }
    .device-btn {
        font-size: 13px;
        padding: 10px 15px;
    }
    .recommendations-content {
        padding: 20px;
    }
    .recommendations-right {
        min-height: 80px;
    }
    .main-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .payment-plan-card {
        padding: 25px 20px 20px;
    }
    .payment-dropdown-item {
        padding: 10px 15px;
        font-size: 14px;
    }
    .payment-plans {
        margin-bottom: 50px;
    }
}

/* ===== ЛИЧНЫЙ КАБИНЕТ ===== */
.subscription-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 45px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
}

.subscription-title {
    color: #191923;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: left;
    text-shadow: none;
}

.subscription-info-block {
    background: #FBFEF9;
    border-radius: 16px;
    padding: 22px 25px;
    margin-bottom: 20px;
    border: 1px solid #EEEEEE;
    box-shadow: none;
}

.subscription-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.plan-name {
    color: #191923;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: none;
}

.plan-period {
    color: rgba(25, 25, 35, 0.6);
    font-size: 16px;
    text-shadow: none;
}

.subscription-status {
    text-align: right;
    margin-bottom: 10px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.active {
    background: rgba(34,197,94,0.12);
    color: #22C55E;
    border: 1px solid rgba(34,197,94,0.2);
}

.status-badge.inactive {
    background: rgba(229,62,62,0.12);
    color: #E53E3E;
    border: 1px solid rgba(229,62,62,0.2);
}

.subscription-expiry {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    border-top: 1px solid #EEEEEE;
    padding-top: 10px;
}

.expiry-label {
    color: rgba(25, 25, 35, 0.6);
    text-shadow: none;
}

.expiry-date {
    color: #191923;
    font-weight: 500;
    text-shadow: none;
}

.subscription-row {
    display: flex;
    gap: 20px;
}

.subscription-devices-block,
.subscription-userid-block {
    flex: 1;
    background: #FBFEF9;
    border-radius: 16px;
    padding: 22px 25px;
    border: 1px solid #EEEEEE;
    box-shadow: none;
}

.block-title {
    color: rgba(25, 25, 35, 0.5);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-shadow: none;
}

.devices-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.devices-used {
    color: #191923;
    font-size: 30px;
    font-weight: 700;
    text-shadow: none;
}

.devices-separator {
    color: rgba(25, 25, 35, 0.3);
    font-size: 22px;
    text-shadow: none;
}

.devices-total {
    color: rgba(25, 25, 35, 0.5);
    font-size: 22px;
    text-shadow: none;
}

.devices-hint {
    color: rgba(25, 25, 35, 0.5);
    font-size: 15px;
    text-shadow: none;
}

.userid-value {
    color: #191923;
    font-size: 22px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-shadow: none;
}

.userid-hint {
    color: rgba(25, 25, 35, 0.5);
    font-size: 15px;
    text-shadow: none;
}

/* ===== НИЖНИЕ КНОПКИ ===== */
.bottom-buttons-wrapper {
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
}

.bottom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid #0E79B2;
    background: #FBFEF9;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    color: #191923;
    flex: 1;
    box-sizing: border-box;
    min-height: 80px;
    text-shadow: none;
}

.bottom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    color: #FFFFFF;
    border-color: #0E79B2;
}

.bottom-btn-icon {
    width: 32px;
    height: 32px;
    filter: invert(0.2);
    transition: filter 0.2s ease;
}

.bottom-btn-text {
    font-size: 20px;
    font-weight: 600;
}

.support-btn:hover {
    background: #0E79B2;
}

.support-btn:hover .bottom-btn-icon {
    filter: invert(0.3) sepia(1) saturate(10) hue-rotate(170deg);
}

.telegram-btn:hover {
    background: #0E79B2;
}

.telegram-btn:hover .bottom-btn-icon {
    filter: invert(0.3) sepia(1) saturate(10) hue-rotate(170deg);
}

/* ===== СТРАНИЦА ПОДДЕРЖКИ ===== */
.support-wrapper {
    width: 100%;
    max-width: 600px;
}

.support-title {
    color: #191923;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-shadow: none;
}

.support-subtitle {
    color: rgba(25, 25, 35, 0.7);
    font-size: 15px;
    margin-bottom: 25px;
    text-shadow: none;
}

.support-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 30px 35px;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
}

.support-email-box {
    background: #FBFEF9;
    border-radius: 12px;
    padding: 14px 20px;
    border: 1px solid #EEEEEE;
    text-align: center;
    margin-bottom: 20px;
}

.support-email {
    color: #191923;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: none;
}

.support-email:hover {
    color: #0E79B2;
    text-shadow: none;
}

.support-info-title {
    color: #191923;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: none;
}

.support-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.support-list li {
    color: rgba(25, 25, 35, 0.8);
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: none;
}

.support-list li:last-child {
    border-bottom: none;
}

.support-list .support-label {
    font-weight: 600;
    color: #191923;
    white-space: nowrap;
    min-width: 130px;
    font-size: 14px;
}

.support-list .support-value {
    color: rgba(25, 25, 35, 0.8);
    font-weight: 500;
    font-size: 14px;
}

.support-list .support-value.user-id {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.support-note {
    background: rgba(14, 121, 178, 0.04);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(14, 121, 178, 0.1);
    margin-top: 6px;
}

.support-note p {
    color: #191923;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-note .note-icon {
    font-size: 18px;
    color: #0E79B2;
}

/* ===== СТРАНИЦЫ АВТОРИЗАЦИИ ===== */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: #FBFEF9;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 45px 40px 40px;
    max-width: 420px;
    width: 100%;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 20px 60px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-3px);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-logo img {
    height: 48px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.auth-logo span {
    color: #191923;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: none;
}

.auth-card h1 {
    color: #191923;
    font-size: 28px;
    text-align: center;
    margin-bottom: 6px;
    font-weight: 700;
    text-shadow: none;
}

.auth-subtitle {
    color: rgba(25, 25, 35, 0.7);
    text-align: center;
    font-size: 15px;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    color: #191923;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    color: #191923;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.2s ease;
    text-shadow: none;
}

.auth-form input::placeholder {
    color: rgba(25, 25, 35, 0.4);
    font-size: 15px;
}

.auth-form input:focus {
    outline: none;
    border-color: #0E79B2;
    box-shadow: 0 0 0 3px rgba(14, 121, 178, 0.06);
}

.auth-form input:hover {
    border-color: #0E79B2;
}

/* ===== КНОПКА АВТОРИЗАЦИИ ===== */
.auth-form button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #0E79B2;
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(14, 121, 178, 0.2);
    border: 1px solid #0E79B2;
}

.auth-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
    background: #0B5F8C;
}

.auth-form button:active {
    transform: translateY(0);
}

.auth-error {
    color: #E53E3E;
    font-size: 14px;
    text-align: center;
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(229,62,62,0.06);
    border-radius: 12px;
    border: 1px solid rgba(229,62,62,0.1);
    display: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 24px 0 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #EEEEEE;
}

.auth-divider span {
    color: rgba(25, 25, 35, 0.3);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* ===== КНОПКА ГОСТЯ ===== */
.guest-login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #FBFEF9;
    color: #191923;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #E5E5E5;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.guest-login-btn:hover {
    background: #F0F0F0;
    color: #0E79B2;
    transform: translateY(-2px);
    border-color: #0E79B2;
}

.auth-link {
    text-align: center;
    color: rgba(25, 25, 35, 0.4);
    font-size: 14px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid #F0F0F0;
}

.auth-link a {
    color: #191923;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    text-shadow: none;
}

.auth-link a:hover {
    color: #0E79B2;
    text-shadow: none;
}

/* ===== АДАПТИВ АВТОРИЗАЦИИ ===== */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px 28px;
    }
    .auth-card h1 {
        font-size: 24px;
    }
    .auth-logo span {
        font-size: 22px;
    }
    .auth-logo img {
        height: 40px;
    }
    .auth-form input {
        padding: 12px 14px;
        font-size: 15px;
    }
    .auth-form button {
        padding: 14px;
        font-size: 16px;
    }
}

/* ===== СТИЛИ ДЛЯ ШАГОВ (общие) ===== */
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 24px 30px;
    border: 1px solid #F0F0F0;
    box-shadow: 0px 10px 40px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(6px);
    box-shadow: 0px 15px 35px rgba(0,0,0,0.06);
    border-color: #0E79B2;
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0E79B2;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(14, 121, 178, 0.2);
}

.step-content {
    flex: 1;
}

.step-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(25, 25, 35, 0.85);
    margin: 0;
    text-shadow: none;
}

.step-text strong {
    color: #191923;
    font-weight: 600;
}

.step-link {
    color: #0E79B2;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.step-link:hover {
    color: #0B5F8C;
}

@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .step-text {
        font-size: 16px;
    }
}

/* ===== КНОПКА-ТРИГГЕР ДЛЯ ИНСТРУКЦИИ ===== */
.instructions-toggle-btn {
    display: inline-block;
    background: #0E79B2;
    color: #FFFFFF;
    border: none;
    border-radius: 40px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(14, 121, 178, 0.25);
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
    min-width: auto;
    max-width: 100%;
}

.instructions-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(14, 121, 178, 0.35);
    background: #0B5F8C;
}

.instructions-toggle-btn:active {
    transform: scale(0.96);
}

/* ===== ВЫПАДАЮЩИЙ БЛОК С ИНСТРУКЦИЕЙ ===== */
.instructions-dropdown {
    animation: fadeSlideDown 0.4s ease forwards;
    max-width: 900px;
    margin: 0 auto;
}

@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== СТРАНИЦА ВЫХОДА ===== */

/* Логотип и название */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-logo img {
    height: 48px;
    width: auto;
}

.auth-logo span {
    font-family: 'MyCustomFont', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #191923;
    letter-spacing: 1px;
}

/* Блок с кнопками */
.logout-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Общий стиль для обеих кнопок – теперь они одинаковой ширины */
.logout-confirm,
.logout-cancel {
    background: #FBFEF9;
    border: 1px solid #0E79B2;
    color: #191923;
    padding: 14px 20px;        /* отступы по бокам уменьшены для лучшего вида */
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    text-align: center;
    /* Задаём одинаковую ширину */
    flex: 0 0 200px;           /* фиксированная ширина 200px */
    max-width: 200px;          /* чтобы не растягивались */
    box-sizing: border-box;
}

/* При наведении – синий фон, текст белый (исправлено для контраста) */
.logout-confirm:hover,
.logout-cancel:hover {
    background: #0E79B2;
    color: #FFFFFF;            /* белый текст на синем фоне (лучше читается) */
    box-shadow: 0 4px 16px rgba(14, 121, 178, 0.25);
    transform: translateY(-2px);
}

/* При нажатии – уменьшение */
.logout-confirm:active,
.logout-cancel:active {
    transform: scale(0.97);
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .logout-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .logout-confirm,
    .logout-cancel {
        flex: 0 0 auto;        /* сбрасываем фиксированную ширину */
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Кнопка входа через Telegram */
.telegram-login-btn {
    background: #0E79B2;
    color: #FFFFFF;
    border: 2px solid #0E79B2;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.telegram-login-btn:hover {
    background: #0B5F8C;
    border-color: #0B5F8C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
}

/* Ссылка "Забыли пароль?" */
.forgot-password-link {
    display: block;               /* чтобы занимала отдельную строку */
    text-align: right;            /* прижимаем вправо */
    font-size: 13px;              /* мелкий шрифт */
    color: #0E79B2;               /* синий, как акцент */
    margin-top: 4px;              /* небольшой отступ сверху */
    text-decoration: none;        /* убираем подчёркивание по умолчанию */
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #191923;               /* тёмный при наведении */
    text-decoration: underline;   /* появляется подчёркивание */
}

/* ===== КНОПКА TELEGRAM (общая для входа и регистрации) ===== */
.telegram-login-btn {
    background: #0E79B2;
    color: #FFFFFF;
    border: 2px solid #0E79B2;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.telegram-login-btn:hover {
    background: #0B5F8C;
    border-color: #0B5F8C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 121, 178, 0.3);
}

/* ===== СОГЛАСИЕ С УСЛОВИЯМИ ===== */
.terms-agreement {
    margin: 16px 0 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #191923;
    cursor: pointer;
    flex-wrap: wrap;
}

.terms-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0E79B2;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.terms-link {
    color: #0E79B2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #191923;
    text-decoration: underline;
}

/* ===== СТИЛИ ДЛЯ ОШИБОК ФОРМЫ ===== */
.auth-error {
    color: #E53E3E;
    font-size: 14px;
    text-align: center;
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(229, 62, 62, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(229, 62, 62, 0.1);
    display: none;
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 480px) {
    .terms-checkbox {
        font-size: 13px;
    }
    .terms-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* ===== ТРЕБОВАНИЯ К ПАРОЛЮ ===== */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px 0;
    font-size: 14px;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: #888;
    transition: color 0.2s ease;
}

.password-requirements li .req-icon {
    font-weight: bold;
    width: 16px;
    display: inline-block;
    text-align: center;
}

.password-requirements li.valid {
    color: #2ecc71;
}

.password-requirements li.invalid {
    color: #e74c3c;
}

/* ===== ОШИБКА ПОД ПОЛЕМ ===== */
.field-error {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 4px;
    min-height: 16px;
}

/* ===== СОГЛАШЕНИЕ (галочка СЛЕВА от текста) ===== */
.agreement-label {
    display: flex;
    flex-direction: row;        /* галочка и текст в одну строку */
    align-items: flex-start;    /* выравнивание по верху (галочка у первой строки) */
    gap: 10px;
    font-size: 14px;
    color: #555;
    margin: 16px 0 20px 0;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.agreement-label input[type="checkbox"] {
    margin-top: 3px;            /* тонкая подстройка, чтобы галочка была на уровне первой строки текста */
    cursor: pointer;
    flex-shrink: 0;             /* галочка не сжимается */
    width: 16px;
    height: 16px;
}

.agreement-text {
    flex: 1;                    /* текст занимает всё оставшееся пространство */
}

.agreement-label a {
    color: #3498db;
    text-decoration: underline;
}

.agreement-label a:hover {
    color: #2980b9;
}

/* ===== ЗАБЛОКИРОВАННАЯ КНОПКА ===== */
button[type="submit"]:disabled {
    background-color: #bdc3c7 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    pointer-events: none;
}

/* ===== КУРСОР И ТЕКСТ В ПОЛЯХ ВВОДА ===== */
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"] {
    color: #1a1a1a !important;          /* Цвет текста — почти чёрный */
    caret-color: #000000 !important;     /* Цвет курсора (мигающей палочки) — чёрный */
}

/* Цвет плейсхолдера (подсказки) — серый, чтобы отличался от введённого текста */
input::placeholder {
    color: #999 !important;
    opacity: 1;
}

/* При фокусе — подсветка рамки и курсор */
input:focus {
    outline: none;
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    caret-color: #000000 !important;
}

/* ===== СТРАНИЦА ПОДТВЕРЖДЕНИЯ EMAIL ===== */
#codeInput {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    font-weight: 600;
    padding: 16px !important;
}

.resend-section {
    margin-top: 24px;
    text-align: center;
}

.resend-text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.resend-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.resend-link:hover {
    color: #2980b9;
}

.resend-link.disabled {
    color: #999;
    pointer-events: none;
    text-decoration: none;
}

.resend-timer {
    color: #999;
    font-size: 13px;
    margin-left: 4px;
}

.resend-timer.active {
    color: #e74c3c;
    font-weight: 500;
}

/* ===== КНОПКА TELEGRAM (Регистрация) ===== */
.telegram-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: #0E79B2; /* ИЗМЕНЕНО: фирменный синий цвет */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(14, 121, 178, 0.3); /* ИЗМЕНЕНО: тень под новый цвет */
    font-family: inherit;
    margin-bottom: 8px;
}

.telegram-btn:hover {
    background: #0B5F8C; /* ИЗМЕНЕНО: более темный оттенок для эффекта наведения (как у остальных кнопок) */
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 121, 178, 0.4);
}

.telegram-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 121, 178, 0.3);
}

.telegram-icon {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    flex-shrink: 0;
}

/* ===== РАЗДЕЛИТЕЛЬ "или" ===== */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-content {
    display: none;
    margin-top: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    text-align: left;
}
.dropdown-content.open {
    display: block;
}
.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dropdown-list li {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 14px;
}
.step-num {
    font-weight: 700;
    color: #66ccff;
    margin-right: 6px;
}
.dropdown-link {
    color: #66ccff;
    word-break: break-all;
}
.device-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    font-size: 11px;
}
.device-btn[aria-expanded="true"] .btn-arrow {
    transform: rotate(180deg);
}

.subscription-key-block { margin-top: 16px; }
.key-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px 12px;
}
.subscription-key {
    flex: 1;
    word-break: break-all;
    font-size: 13px;
    color: #66ccff;
}
.copy-key-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: #66ccff;
    color: #0a0a0a;
    cursor: pointer;
    font-weight: 600;
}
.key-hint { margin-top: 6px; font-size: 12px; opacity: 0.7; }

/* ===== ДОПОЛНЕНИЯ ДЛЯ СТРАНИЦЫ ВХОДА ===== */

/* Контейнер для логических секций */
.auth-section {
    margin-bottom: 8px;
}

/* Текст-подсказка над кнопками/полями */
.auth-hint {
    text-align: center;
    font-size: 14px;
    color: #5a6b7c; /* Спокойный серо-синий цвет, хорошо читается */
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

/* Стильный разделитель "или" с линиями по бокам */
.section-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #8899a6;
    font-size: 14px;
    font-weight: 500;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e0e6ed; /* Цвет линии */
}

.section-divider span {
    padding: 0 16px;
    /* Укажите здесь точный цвет фона вашей карточки (.auth-card), 
       чтобы линия не перечеркивала текст. Обычно это #ffffff или #FBFEF9 */
    background-color: #ffffff; 
}

/* Небольшой отступ для гостевой кнопки, чтобы она визуально отделялась от формы */
.guest-login-btn {
    margin-top: 16px;
    /* Добавьте сюда остальные стили для guest-login-btn, если они у вас уже есть */
}


/* ===== МОДАЛЬНОЕ ОКНО ВОССТАНОВЛЕНИЯ ПАРОЛЯ ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(25, 25, 35, 0.7); /* Темный полупрозрачный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-card {
    background: #ffffff; /* Или #FBFEF9, как у вашей auth-card */
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none; border: none;
    font-size: 28px; color: #8899a6;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: #191923; }

.modal-card h2 {
    font-size: 22px; color: #191923; margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    margin-top: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.modal-input:focus {
    outline: none;
    border-color: #0E79B2;
}

.fp-step { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* ===== ТРЕБОВАНИЯ К ПАРОЛЮ (для модалки и регистрации) ===== */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    font-size: 13px;
    color: #5a6b7c;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.req-icon {
    font-weight: bold;
    width: 16px;
    text-align: center;
}

/* Состояние: выполнено */
.req-item.valid {
    color: #10b981; /* Зеленый */
}
.req-item.valid .req-icon {
    color: #10b981;
}

/* Состояние: не выполнено */
.req-item.invalid {
    color: #ef4444; /* Красный */
}
.req-item.invalid .req-icon {
    color: #ef4444;
}

/* Стиль отключенной кнопки */
.telegram-login-btn:disabled {
    background: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   ДОПОЛНЕНИЯ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (Светлый Glassmorphism)
   ============================================================ */

/* Анимация всплывания при скролле */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для каскадного появления элементов */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Секции */
.hero-section, .tariffs-section, .steps-section, .cta-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #191923;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Сетка преимуществ (4 карточки) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px 24px;
    border: 1px solid rgba(14, 121, 178, 0.1);
    box-shadow: 0 8px 32px rgba(14, 121, 178, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(14, 121, 178, 0.12);
    border-color: rgba(14, 121, 178, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(14, 121, 178, 0.08);
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #191923;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: rgba(25, 25, 35, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ===== КАРТОЧКИ ТАРИФОВ ===== */
.tariff-card {
    flex: 1;
    max-width: 1000px;
    background: #FBFEF9;
    border-radius: 24px;
    padding: 30px 25px 25px;
    border: 1px solid #191923;
    box-shadow: 100px 100px 100px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible; /* ВАЖНО: чтобы бейдж не обрезался */
    display: flex;
    flex-direction: column;
}

.tariff-card:hover {
    border-color: #0E79B2;
    transform: translateY(-5px);
    box-shadow: 0px 20px 40px rgba(0,0,0,0.06);
}

/* ===== БЕЙДЖ "ПОПУЛЯРНЫЙ" НА РАМКЕ ===== */
.tariff-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #0E79B2;
    color: #FFFFFF;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(14, 121, 178, 0.3);
    border: 2px solid #FBFEF9; /* Цвет фона страницы */
    z-index: 10;
}

/* ===== СПИСОК ОПЦИЙ (растягивается) ===== */
.tariff-options {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1; /* Растягивается, толкая кнопку вниз */
}

/* ===== КНОПКА ТАРИФА (прижата к низу) ===== */
.tariff-btn {
    display: inline-block;
    color: #191923;
    text-decoration: none;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 30px;
    transition: all 0.2s ease;
    border: 1px solid #0E79B2;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    margin-top: auto; /* Прижимает кнопку к низу */
}

.tariff-btn:hover {
    color: #FFFFFF;
    background: #0E79B2;
    text-shadow: none;
}

/* Сетка шагов */
.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 28px 32px;
    border: 1px solid rgba(14, 121, 178, 0.1);
    box-shadow: 0 8px 32px rgba(14, 121, 178, 0.04);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(8px);
    border-color: #0E79B2;
    box-shadow: 0 12px 40px rgba(14, 121, 178, 0.1);
}

.step-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0E79B2 0%, #38bdf8 100%);
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(14, 121, 178, 0.3);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #191923;
    margin: 0 0 6px 0;
}

.step-content p {
    font-size: 16px;
    color: rgba(25, 25, 35, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Блок призыва к действию (Инструкции) */
.cta-card {
    background: linear-gradient(135deg, rgba(14, 121, 178, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    border: 1px solid rgba(14, 121, 178, 0.15);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.cta-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #191923;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 17px;
    color: rgba(25, 25, 35, 0.7);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== КНОПКА ИНСТРУКЦИЙ (как в навигации) ===== */
.instructions-toggle-btn {
    display: inline-block;
    color: #191923;
    text-decoration: none;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 30px;
    transition: all 0.2s ease;
    border: 1px solid #0E79B2;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    margin-top: 20px;
}

.instructions-toggle-btn:hover {
    color: #FFFFFF;
    background: #0E79B2;
    text-shadow: none;
}

/* ============================================================
   АДАПТИВНОСТЬ (Mobile First)
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
        text-align: center;
    }
    .hero-subtitle {
        text-align: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center; /* ИСПРАВЛЕНИЕ 3: Центрируем содержимое сетки */
    }
    .tariffs-row {
        flex-direction: column;
        align-items: center;
    }
    .feature-card {
        max-width: 100%;
        width: 100%;
        margin: 0 auto; /* ИСПРАВЛЕНИЕ 3: Гарантированное центрирование самой карточки */
    }
    .step-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .step-card:hover {
        transform: translateY(-5px);
    }
    .cta-card {
        padding: 30px 20px;
    }
    .instructions-toggle-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* ============================================================
   ЭФФЕКТ ЗЕРКАЛЬНОГО БЛЕСКА ДЛЯ ТЕКСТА (Shimmer)
   ============================================================ */
.shimmer-text {
    /* Градиент с белым бликом посередине */
    background: linear-gradient(
        40deg, 
        #0E79B2 0%,
        #0E79B2 35%,
        #4A90E2 42%,
        #E0F7FA 48%,
        #FFFFFF 50%,
        #E0F7FA 52%,
        #4A90E2 58%,
        #0E79B2 65%,
        #0E79B2 100%
    );
    background-size: 200% 100%;
    background-position: 200% center;
    
    /* Критически важные свойства для работы эффекта */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    
    /* Анимация перелива */
    animation: shimmer-pan 7s ease-in-out infinite;
    
    /* Дополнительные настройки */
    display: inline-block;
    font-weight: 800;
    text-shadow: none !important;
}

@keyframes shimmer-pan {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

/* Фоллбэк для старых браузеров */
@supports not (background-clip: text) {
    .shimmer-text {
        color: #0E79B2;
        animation: none;
    }
}
/* ============================================================
   2. ФОНОВЫЙ БЛОК "НУЖНА ПОМОЩЬ" (Тёплый бежевый + Аура)
   ============================================================ */
.cta-section-wrapper {
    position: relative;
    background-color: #2A221A;
    border-radius: 32px;
    padding: 80px 40px;
    overflow: hidden;
    margin-top: 40px;
}

.cta-section-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(184, 134, 11, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(210, 180, 140, 0.1) 0%, transparent 50%);
    animation: aurora-breathe 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes aurora-breathe {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: translate(-5%, 3%) scale(1.05) rotate(2deg); opacity: 1; }
    100% { transform: translate(3%, -5%) scale(1) rotate(-2deg); opacity: 0.8; }
}

/* ============================================================
   3. ПЛАВАЮЩИЕ ИНТЕРАКТИВНЫЕ ИКОНКИ
   ============================================================ */
.floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Внешний слой — для JS-трансформации (отталкивание) */
.floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    will-change: transform;
}

.floating-icon:nth-child(1) { top: 15%; left: 10%; }
.floating-icon:nth-child(2) { top: 25%; right: 15%; }
.floating-icon:nth-child(3) { top: 60%; left: 5%; }
.floating-icon:nth-child(4) { top: 70%; right: 10%; }
.floating-icon:nth-child(5) { top: 40%; left: 85%; }
.floating-icon:nth-child(6) { top: 85%; left: 40%; }
.floating-icon:nth-child(7) { top: 10%; left: 50%; }

/* Внутренний слой — для CSS-анимации (парение) */
.floating-icon-inner {
    width: 100%;
    height: 100%;
    color: rgba(14, 121, 178, 0.15);
    filter: drop-shadow(0 0 8px rgba(14, 121, 178, 0.1));
    animation: float-organic 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) .floating-icon-inner { animation-duration: 9s; animation-delay: 0s; }
.floating-icon:nth-child(2) .floating-icon-inner { animation-duration: 11s; animation-delay: 1s; }
.floating-icon:nth-child(3) .floating-icon-inner { animation-duration: 10s; animation-delay: 2s; }
.floating-icon:nth-child(4) .floating-icon-inner { animation-duration: 12s; animation-delay: 0.5s; }
.floating-icon:nth-child(5) .floating-icon-inner { animation-duration: 9.5s; animation-delay: 1.5s; }
.floating-icon:nth-child(6) .floating-icon-inner { animation-duration: 10.5s; animation-delay: 3s; }
.floating-icon:nth-child(7) .floating-icon-inner { animation-duration: 11.5s; animation-delay: 2.5s; }

.floating-icon-inner svg {
    width: 100%;
    height: 100%;
}

@keyframes float-organic {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-15px) rotate(3deg) scale(1.05); }
    66% { transform: translateY(10px) rotate(-2deg) scale(0.95); }
}

@media (max-width: 768px) {
    .floating-icon { width: 32px; height: 32px; }
    .floating-icon-inner { opacity: 0.5; }
}

/* ===== АНИМАЦИИ ПЛАВНОГО ВСПЛЫВАНИЯ ПРИ СКРОЛЛЕ ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для красивого каскадного появления (один за другим) */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ===== БАЗОВАЯ СТРУКТУРА ===== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FBFEF9;
    overflow-x: hidden;
}

/* ===== ШАПКА (фиксированная) ===== */
.site-header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #FBFEF9;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(14, 121, 178, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: #191923;
    letter-spacing: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    padding: 8px 20px;
    background: #0E79B2;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #0B5F8C;
    transform: translateY(-1px);
}

/* ===== КНОПКА ГАМБУРГЕР ===== */
.menu-toggle {
    display: none; /* Показываем только на мобильных */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-icon {
    display: block;
    width: 100%;
    height: 3px;
    background: #0E79B2;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0E79B2;
    border-radius: 3px;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -10px;
}

.hamburger-icon::after {
    top: 10px;
}

/* Анимация превращения в крестик */
.menu-toggle.active .hamburger-icon {
    background: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
    background: #0E79B2;
}

.menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
    background: #0E79B2;
}

/* ===== МОБИЛЬНОЕ МЕНЮ (PUSH-DOWN) ===== */
.mobile-menu {
    /* КРИТИЧЕСКИ ВАЖНО: меню в потоке документа! */
    position: relative;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(14, 121, 178, 0.1);
    
    /* Скрыто по умолчанию */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    
    /* Плавная анимация */
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    
    z-index: 999;
}

.mobile-menu.is-open {
    max-height: 500px; /* Достаточно для всего содержимого */
    opacity: 1;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-list li a {
    display: block;
    padding: 18px 24px;
    font-size: 17px;
    color: #191923;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-list li a:hover {
    background: rgba(14, 121, 178, 0.05);
    border-left-color: #0E79B2;
    color: #0E79B2;
}

.menu-list li a:active {
    background: rgba(14, 121, 178, 0.1);
}

.logout-link {
    color: #ef4444 !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-left-color: #ef4444 !important;
}

.menu-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 8px 0;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    /* Контент автоматически сдвигается вниз благодаря flow layout */
    padding: 30px 20px;
    transition: transform 0.35s ease;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(14, 121, 178, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    border-radius: 24px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #191923;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-section h1 span {
    color: #0E79B2;
}

.hero-section p {
    font-size: 16px;
    color: rgba(25, 25, 35, 0.7);
    line-height: 1.6;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    /* Показываем гамбургер на мобильных */
    .menu-toggle {
        display: flex;
    }
    
    /* Скрываем кнопку входа на мобильных (она есть в меню) */
    .btn-login {
        display: none;
    }
    
    .nav-brand {
        display: none;
    }
    
    .nav-logo {
        height: 36px;
    }
    
    .site-header {
        padding: 12px 16px;
    }
    
    .hero-section h1 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .menu-list li a {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .main-content {
        padding: 20px 16px;
    }
}