/* --- ПЕРЕМЕННЫЕ И ГЛОБАЛЬНЫЕ СТИЛИ --- */
:root {
    --bg-dark: #12121F;
    --bg-secondary: #1C1C2D;
    --accent-yellow: #FCCE00;
    --accent-blue: #3E66F4;
    --text-light: #EFEFEF;
    --text-muted: #8A8A9E;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    margin: 0;
    padding-top: 80px; /* Отступ для фиксированной шапки */
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-header);
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: #111;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(252, 206, 0, 0.2);
}

/* --- АНИМАЦИИ --- */
.fade-in {
    animation: fadeInAnimation 0.8s ease-out forwards;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInAnimation {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- ШАПКА --- */
.site-header {
    background: rgba(28, 28, 45, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-yellow);
}

.header-cta {
    background: var(--accent-blue);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.header-cta:hover {
    background: #2a52d1;
}

/* --- СЕКЦИИ --- */
section {
    padding: 100px 0;
}

/* Hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.hero-text h1 {
    font-family: var(--font-header);
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}
.hero-image img {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
}

/* Advantages */
.advantages-section {
    background-color: var(--bg-secondary);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.advantage-card {
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}
.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}
.advantage-card h3 {
    font-family: var(--font-header);
    font-size: 22px;
    margin-bottom: 10px;
}
.advantage-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Features */
.features-section { padding: 0; }
.feature-block { padding: 100px 0; }
.feature-block:nth-child(even) { background-color: var(--bg-secondary); }
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}
.feature-grid.reverse {
    grid-template-columns: 1fr 1fr; /* Reset for clarity */
}
.feature-grid.reverse .feature-text { order: 1; }
.feature-grid.reverse .feature-image { order: 2; }

.feature-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature-text h3 {
    font-family: var(--font-header);
    font-size: 36px;
    margin-bottom: 20px;
}
.feature-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(45deg, var(--accent-blue), #6a34e9);
    text-align: center;
}
.cta-section h2 {
    font-family: var(--font-header);
    font-size: 42px;
    color: var(--text-light);
}
.cta-section p {
    font-size: 18px;
    max-width: 600px;
    margin: 20px auto 40px;
}

/* Community */
.community-section { text-align: center; }
.community-section p { max-width: 500px; margin: 20px auto 40px; color: var(--text-muted); }
.social-links { display: flex; justify-content: center; gap: 20px; }
.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-secondary);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: transform 0.2s;
}
.social-icon:hover { transform: translateY(-3px); }
.social-icon img { height: 24px; }

/* FAQ */
.faq-section { background-color: var(--bg-secondary); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-accordion details {
    background: var(--bg-dark);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
.faq-accordion summary {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Убираем стандартную стрелку */
    position: relative;
    padding-right: 40px;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { /* Рисуем свою стрелку */
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--accent-yellow);
    transition: transform 0.2s;
}
.faq-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-accordion p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.site-footer-bottom {
    background: #0C0C14;
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-info p { color: var(--text-muted); }
.footer-links h4, .footer-contacts h4, .footer-info h3 {
    font-family: var(--font-header);
    margin-bottom: 15px;
    color: var(--text-light);
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-contacts a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover, .footer-contacts a:hover {
    color: var(--accent-yellow);
}


/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .main-nav, .header-cta { display: none; } /* Скроем меню на мобилках для простоты */
    .hero-grid, .feature-grid, .feature-grid.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .feature-grid.reverse .feature-text { order: 2; }
    .feature-grid.reverse .feature-image { order: 1; }
    .hero-image { margin-top: 40px; }
    .hero-text h1 { font-size: 40px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center;}
}

@media (max-width: 576px) {
    body { padding-top: 70px; }
    .header-container { height: 70px; }
    section { padding: 60px 0; }
    .section-title { font-size: 32px; margin-bottom: 40px; }
    .hero-text h1 { font-size: 34px; }
    .social-links { flex-direction: column; }
}