/* ===== FAQ СТРАНИЦА С ТЕМНОЙ ТЕМОЙ ===== */

/* БАЗОВЫЕ ЦВЕТА (должны совпадать с главной страницей) */
:root {
    --primary: #ff6b00;
    --primary-dark: #e55a00;
    --dark: #121212;
    --dark-light: #1e1e1e;
    --gray: #333;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --error: #ff4444;
    --activ: #ff4757;
    --beeline: #ffd700;
    --tele2: #00a8ff;
    --telegram: #0088cc;
    --whatsapp: #25d366;
}

/* ОСНОВНЫЕ СТИЛИ FAQ СТРАНИЦЫ */
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* СТИЛИ КАРТ НА ФОНЕ ДЛЯ FAQ */
.background-joker-cards {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.background-joker-card {
    position: absolute;
    font-size: 1.2rem; /* МАЛЕНЬКИЕ карты */
    opacity: 0.25; /* ЯРКО ВЫРАЖЕННЫЕ */
    user-select: none;
    z-index: -1;
    animation: parallaxFloat 20s infinite ease-in-out;
    filter: drop-shadow(0 0 3px rgba(255, 107, 0, 0.3));
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5px, -3px) rotate(2deg);
    }
    50% {
        transform: translate(-3px, 4px) rotate(-1deg);
    }
    75% {
        transform: translate(4px, 2px) rotate(1deg);
    }
}

/* ШАПКА FAQ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(15deg);
}

.logo h1 {
    font-family: 'Russo One', sans-serif;
    font-size: 2.5rem;
    color: white;
}

.logo .highlight {
    color: var(--primary);
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 5px;
    background: rgba(255, 107, 0, 0.2);
    padding: 5px;
    border-radius: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.lang-btn.active {
    background: var(--primary);
}

/* КНОПКИ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* ГЕРОЙ СЕКЦИЯ FAQ */
.hero {
    padding: 60px 20px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.hero h2 .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* БЫСТРЫЕ ССЫЛКИ */
.quick-links {
    margin: 40px 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.quick-card {
    background: var(--dark-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-card:hover {
    border-color: var(--primary);
    background: rgba(255, 107, 0, 0.05);
    transform: translateY(-5px);
}

.quick-card i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.quick-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* FAQ ВОПРОСЫ */
.faq-section {
    margin: 40px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--dark-light);
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--gray);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.2);
}

.faq-question {
    width: 100%;
    padding: 22px 25px;
    text-align: left;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: rgba(255, 107, 0, 0.05);
}

.faq-question.active {
    background: rgba(255, 107, 0, 0.1);
}

.faq-question.active .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-question span {
    flex: 1;
    text-align: left;
    margin-right: 20px;
    line-height: 1.4;
}

.faq-question i {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    min-width: 24px;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    line-height: 1.6;
}

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

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ФУТЕР FAQ */
.footer {
    background: var(--dark-light);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    text-align: left;
}

.footer-logo .logo-icon {
    font-size: 2.5rem;
}

.footer-logo div {
    font-family: 'Russo One', sans-serif;
    font-size: 1.8rem;
    color: white;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contacts p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s;
}

.back-home:hover {
    color: white;
}

/* КНОПКА НАВЕРХ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ПРЕЛОАДЕР */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.preloader-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary);
    font-weight: 600;
}

.loader {
    border: 4px solid rgba(255, 107, 0, 0.3);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* КАРТЫ ПРИ КЛИКАХ */
#jokerCardsContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.joker-card {
    position: absolute;
    font-size: 1.5rem; /* МАЛЕНЬКИЕ карты */
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    filter: drop-shadow(0 0 5px rgba(255, 107, 0, 0.7)); /* ЯРКИЕ */
    animation: floatCard 1.5s ease-out forwards;
}

@keyframes floatCard {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    10% {
        opacity: 1;
        transform: translate(var(--tx), var(--ty)) scale(0.8) rotate(var(--rot)); /* МАЛЕНЬКИЕ */
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx2), var(--ty2)) scale(0.6) rotate(var(--rot2)); /* МАЛЕНЬКИЕ */
    }
}

/* ДЕКОРАТИВНЫЕ КАРТЫ В УГЛАХ */
.faq-item::before {
    content: '🃏';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    font-size: 1.2rem; /* МАЛЕНЬКИЕ */
    z-index: 0;
    transition: opacity 0.3s;
}

.faq-item:hover::before {
    opacity: 0.3; /* ЯРЧЕ при наведении */
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ ВОПРОСОВ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Задержки для плавного появления */
.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
.faq-item:nth-child(6) { animation-delay: 0.3s; }
.faq-item:nth-child(7) { animation-delay: 0.35s; }
.faq-item:nth-child(8) { animation-delay: 0.4s; }
.faq-item:nth-child(9) { animation-delay: 0.45s; }
.faq-item:nth-child(10) { animation-delay: 0.5s; }
.faq-item:nth-child(11) { animation-delay: 0.55s; }
.faq-item:nth-child(12) { animation-delay: 0.6s; }
.faq-item:nth-child(13) { animation-delay: 0.65s; }
.faq-item:nth-child(14) { animation-delay: 0.7s; }

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .quick-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px 20px;
    }
    
    .quick-card i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }
    
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-answer.active {
        padding: 0 20px 20px 20px;
    }
    
    .footer {
        padding: 30px 20px;
    }
    
    .background-joker-card {
        opacity: 0.15; /* Чуть прозрачнее на мобильных */
        font-size: 1rem;
    }
    
    .joker-card {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .language-switcher {
        position: relative;
        top: 0;
        right: 0;
        margin: 0 auto 20px;
        justify-content: center;
    }
}

/* СКРОЛЛБАР */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
