/* css/style.css */
:root {
    /* Основная глубокая палитра */
    --bg-primary: #0A0E1A;
    --bg-secondary: #111827;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Индиго-синий градиент */
    --gradient-main: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #6366F1 100%);
    --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(124, 58, 237, 0.1));
    
    --accent-primary: #6366F1;
    --accent-secondary: #8B5CF6;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
}

/* Подключение шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- HEADER (стеклянный) ---------- */
.site-header {
    position: sticky;
    top: 20px;
    z-index: 1000;
    margin: 0 20px;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 12px 24px;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 14, 26, 0.92);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Логотип LocateVPN */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    /*background: var(--gradient-main);*/
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    /*box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);*/
    transition: var(--transition);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-icon:hover {
    transform: scale(1.05) rotate(-5deg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    font-weight: 400;
    -webkit-text-fill-color: var(--text-secondary);
}

/* ===== АДАПТИВ ЛОГОТИПА ===== */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    }
    
    .logo a {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 0.95rem;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(99, 102, 241, 0.2);
    }
    
    .logo a {
        gap: 6px;
    }
}

/* Навигация */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Кнопки в хедере */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: left;
}

.btn {
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* Мобильное меню (бургер) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    margin-left: 10px;
}

.mobile-toggle span {
    width: 28px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
}

/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: auto;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 20px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   FAQ (АККОРДЕОН) — В СТИЛЕ LOCATEVPN
   ============================================ */

.faq-section {
    padding: 40px 0 60px;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.4;
}

.faq-question:hover {
    color: #ffffff;
}

.faq-question span:first-child {
    flex: 1;
}

.faq-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 24px 24px;
}

.faq-answer strong {
    color: var(--text-primary);
}

.faq-answer code {
    background: rgba(99, 102, 241, 0.12);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
}

.faq-answer a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    border-bottom-color: var(--accent-primary);
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ (полноценное)
   ============================================ */

@media (max-width: 768px) {
    /* Хедер на мобилках */
    .site-header {
        margin: 10px;
        padding: 12px 16px;
        top: 10px;
        border-radius: 16px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    /* Скрываем навигацию и кнопки по умолчанию */
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: -16px;
        right: -16px;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px 20px 8px;
        border-radius: 0 0 16px 16px;
        border: 1px solid var(--border-glass);
        border-top: none;
        z-index: 999;
    }

    .main-nav.open {
        display: block !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 1.05rem;
        transition: var(--transition);
    }

    .main-nav ul li a:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .main-nav ul li a.active {
        background: rgba(99, 102, 241, 0.15);
    }

    .main-nav ul li a.active::after {
        display: none;
    }

    /* Кнопки в мобильном меню */
    .header-actions {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 8px 20px 20px;
        background: rgba(17, 24, 39, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 0 0 16px 16px;
        border: 1px solid var(--border-glass);
        border-top: none;
        position: absolute;
        top: calc(100% + 8px);
        left: -16px;
        right: -16px;
        z-index: 998;
        margin-top: 0;
    }

    .header-actions.open {
        display: flex !important;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 1rem;
    }

    /* Бургер */
    .mobile-toggle {
        display: flex !important;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Футер */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* FAQ */
    .faq-question {
        font-size: 0.95rem;
        padding: 16px 18px;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 18px 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .site-header {
        margin: 8px;
        border-radius: 14px;
        padding: 10px 14px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .main-nav ul li a {
        font-size: 0.95rem;
        padding: 10px 14px;
    }

    .header-actions .btn {
        font-size: 0.9rem;
        padding: 12px;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 14px 16px;
    }
}

/* ============================================
   ИКОНКИ СОЦСЕТЕЙ (Font Awesome)
   ============================================ */

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

/* Цвета соцсетей при наведении */
.social-links a:hover .fa-telegram-plane {
    color: #0088cc;
}

.social-links a:hover .fa-youtube {
    color: #FF0033;
}


.social-links a:hover .fa-github {
    color: #ffffff;
}

/* ===== МОБИЛЬНЫЕ КНОПКИ ===== */

/* Скрываем мобильные кнопки на десктопе */
.mobile-actions {
    display: none !important;
}

/* Показываем десктопные кнопки */
.desktop-only {
    display: flex !important;
}

/* Мобильные кнопки: только ЛК */
@media (max-width: 768px) {
    .mobile-actions {
        display: flex !important;
        align-items: center;
        margin-left: auto !important;
        margin-right: 8px !important;
    }
    
    .mobile-actions .mobile-account-btn {
        padding: 8px 12px !important;
        font-size: 1.1rem !important;
        min-width: 40px;
        justify-content: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--border-glass);
        border-radius: 40px;
        color: var(--text-primary);
    }
    
    .mobile-actions .mobile-account-btn:hover {
        background: rgba(255, 255, 255, 0.12);
    }
    
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .mobile-actions .mobile-account-btn {
        padding: 6px 10px !important;
        font-size: 1rem !important;
        min-width: 36px;
    }
    
    .mobile-actions {
        margin-right: 6px !important;
    }
}