/* ===== CSS Variables & Reset ===== */
:root {
    --primary: #ff1a6d;
    --secondary: #9d00ff;
    --bg-dark: #0f0f1a;
    --card-bg: rgba(30, 30, 60, 0.6);
    --text-light: #f0f0ff;
    --glass: rgba(255, 255, 255, 0.08);
    --border-glow: 0 0 20px rgba(255, 26, 109, 0.3);
    --online-glow: 0 0 15px rgba(0, 255, 100, 0.4);
    --popup-shadow: 0 0 50px rgba(255, 26, 109, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Градиентный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(157, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 26, 109, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, #0f0f1a 0%, #1a0f2a 100%);
    z-index: -2;
}

/* Текстурный эффект */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    z-index: -1;
    pointer-events: none;
}

/* ===== Загрузочный экран ===== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin-bottom: 25px;
    box-shadow: var(--border-glow);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--primary);
    text-align: center;
}

.progress-bar {
    width: 300px;
    max-width: 90%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ===== Онлайн-счётчик ===== */
.online-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f0;
    box-shadow: var(--online-glow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 255, 100, 0.3);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #0f0;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

/* ===== Всплывающее окно ===== */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    padding: 20px;
}

.popup.active {
    display: flex;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.popup__content {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: 25px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: var(--popup-shadow);
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup__close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.popup__close:hover {
    transform: rotate(90deg);
}

.popup__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--primary);
}

.popup__text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.popup__text strong {
    color: var(--primary);
    font-size: 1.4rem;
}

.popup__stats {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 26, 109, 0.15);
    border-radius: 15px;
    border: 1px solid var(--primary);
}

.popup__btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 35px rgba(255, 26, 109, 0.5);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.popup__btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(157, 0, 255, 0.6);
}

.popup__btn:active {
    transform: translateY(-2px);
}

/* ===== Основные стили ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    text-align: center;
    padding: 100px 20px 80px;
    opacity: 0;
    animation: fadeInUp 0.9s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: var(--border-glow);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(255, 26, 109, 0.3);
}

.subtitle {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.highlight {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 26, 109, 0.4);
}

.timer-box {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 26, 109, 0.4);
    border-radius: 25px;
    padding: 25px 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: var(--border-glow);
    opacity: 0;
    animation: fadeInUp 0.9s ease-out 0.6s forwards;
}

.timer-title {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.timer {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: white;
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--primary);
}

.btn-cta {
    display: inline-block;
    padding: clamp(18px, 3vw, 22px) clamp(45px, 6vw, 70px);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 35px rgba(255, 26, 109, 0.5);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.9s ease-out 0.9s forwards;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(157, 0, 255, 0.6);
}

.btn-cta:active {
    transform: translateY(-2px);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.7s;
}

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

/* ===== Секции ===== */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    color: var(--primary);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--secondary);
    display: block;
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--secondary);
}

/* ===== Карточки возможностей ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 35px 30px;
    border: 1px solid rgba(255, 26, 109, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 15px 35px rgba(157, 0, 255, 0.25);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 20px;
    text-shadow: 0 0 15px currentColor;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ===== Слайдер отзывов ===== */
.reviews-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 25px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 40px;
    border: 1px solid rgba(255, 26, 109, 0.2);
}

.reviews-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    margin-bottom: 40px;
}

.review {
    min-width: 100%;
    padding: 0 20px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.review.active {
    opacity: 1;
    transform: translateX(0);
}

.review blockquote {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border-left: 5px solid var(--primary);
    position: relative;
}

.review blockquote::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 10px;
    font-family: serif;
}

.review cite {
    display: block;
    margin-top: 25px;
    font-style: normal;
    font-weight: 700;
    color: var(--secondary);
    text-align: right;
    font-size: 1.1rem;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.slider-prev,
.slider-next {
    background: var(--glass);
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary);
}

/* ===== Секция обновлений ===== */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.update-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(157, 0, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.update-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(255, 26, 109, 0.2);
}

.update-card time {
    display: inline-block;
    background: rgba(157, 0, 255, 0.2);
    color: var(--secondary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.update-card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
}

.update-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* ===== Футер ===== */
.footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid rgba(255, 26, 109, 0.2);
    margin-top: 60px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-date {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Адаптивность ===== */
@media (max-width: 992px) {
    .reviews-slider {
        padding: 30px;
    }
    
    .review blockquote {
        font-size: 1.1rem;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 80px 20px 60px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
        font-size: 2.8rem;
    }
    
    .online-counter {
        top: 15px;
        right: 15px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .timer-box {
        padding: 20px 30px;
        margin: 30px auto;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .features-grid,
    .updates-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .reviews-slider {
        padding: 25px 20px;
    }
    
    .review blockquote {
        padding: 20px;
        font-size: 1rem;
    }
    
    .slider-nav {
        gap: 20px;
    }
    
    .popup__content {
        padding: 30px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.4rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .highlight {
        padding: 6px 14px;
        font-size: 0.95rem;
    }
    
    .btn-cta {
        padding: 16px 40px;
        font-size: 1.2rem;
        width: 100%;
        max-width: 300px;
    }
    
    .timer {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .popup__title {
        font-size: 1.8rem;
    }
    
    .popup__stats {
        font-size: 1.5rem;
        padding: 12px;
    }
    
    .popup__btn {
        padding: 15px 40px;
        font-size: 1.2rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}


/* В style.css - полная замена FAQ стилей */
.faq-container {
    max-width: 800px;
    margin: 0 auto 40px;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 26, 109, 0.2);
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Скрываем чекбоксы */
.faq-input {
    display: none;
}

/* Заголовок вопроса */
.faq-question {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--primary);
    min-width: 30px;
    text-align: center;
}

/* Ответ скрыт по умолчанию */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: all 0.4s ease-out;
    opacity: 0;
}

/* При активном чекбоксе показываем */
.faq-input:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
    opacity: 1;
}

.faq-input:checked ~ .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Стили для кнопок навигации в футере */
.footer-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.footer-nav-btn:active {
    transform: translateY(-1px);
}

/* Анимация при наведении для каждой кнопки */
.footer-nav-btn:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(255,26,109,0.3), rgba(255,26,109,0.2)) !important;
    box-shadow: 0 8px 25px rgba(255,26,109,0.3) !important;
}

.footer-nav-btn:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(157,0,255,0.3), rgba(157,0,255,0.2)) !important;
    box-shadow: 0 8px 25px rgba(157,0,255,0.3) !important;
}

.footer-nav-btn:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(0,255,100,0.3), rgba(0,255,100,0.2)) !important;
    box-shadow: 0 8px 25px rgba(0,255,100,0.3) !important;
}


@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-nav-btn {
        width: 220px;
        justify-content: center;
    }
}


/* Стили для верхних кнопок навигации */
.top-nav-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.top-nav-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Активная кнопка */
.top-nav-btn.active {
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0%, 100% { border-color: rgba(157,0,255,0.6); }
    50% { border-color: rgba(157,0,255,0.9); }
}

/* Анимация при наведении для каждой кнопки */
.top-nav-btn:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(255,26,109,0.35), rgba(255,26,109,0.25)) !important;
    box-shadow: 0 10px 30px rgba(255,26,109,0.3) !important;
}

.top-nav-btn:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(157,0,255,0.35), rgba(157,0,255,0.25)) !important;
    box-shadow: 0 10px 30px rgba(157,0,255,0.3) !important;
}

.top-nav-btn:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(0,255,100,0.35), rgba(0,255,100,0.25)) !important;
    box-shadow: 0 10px 30px rgba(0,255,100,0.3) !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .top-nav-btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
    
    .top-nav-btn span {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .top-nav-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}