/* ============================================================
   INDEX — главная страница
   ============================================================ */

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
    z-index: 1000;
}

.nav-container {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links > a {
    color: #cdd3dc;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    transition: color 0.15s;
}

.nav-links > a:hover { color: #4CAF50; }

.btn-nav {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
}

.btn-login {
    background: transparent;
    border: 1px solid #4CAF50;
    color: #4CAF50;
    text-decoration: none;
}

.btn-login:hover { background: rgba(76, 175, 80, 0.1); }

.btn-register {
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    color: white;
    text-decoration: none;
}

/* ---------- Avatar menu ---------- */
.avatar-container { position: relative; cursor: pointer; }

.avatar-circle {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    transition: transform 0.15s;
}

.avatar-circle:hover { transform: scale(1.05); }

.avatar-menu {
    position: absolute;
    top: 44px;
    right: 0;
    background: rgba(18, 24, 32, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    min-width: 170px;
    overflow: hidden;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.avatar-menu.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

.avatar-menu-item {
    padding: 0.6rem 1rem;
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.15s;
    font-size: 12px;
}

.avatar-menu-item:hover { background: rgba(76, 175, 80, 0.08); }

.avatar-menu-item.logout {
    color: #f44336;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-menu-item.logout:hover { background: rgba(244, 67, 54, 0.1); }

/* ---------- Hero ---------- */
.hero {
    display: flex;
    align-items: center;
    padding: 90px 1.5rem 3rem;
}

.hero-container {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);   /* Было 1.9-2.6 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.9rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, #4CAF50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1vw, 0.95rem);  /* Было 0.95-1.05 */
    color: #b0b8d0;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 0.9rem;
    color: #4CAF50;
}

.stats-hero {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.stat-number {
    font-size: 1.3rem;               /* Было 1.5 */
    font-weight: 800;
    color: #4CAF50;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 10px;
    color: #8a92b0;
    margin-top: 2px;
}

.hero-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 0.65rem 1.35rem;
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    padding: 0.65rem 1.35rem;
    background: transparent;
    border: 1px solid #4CAF50;
    border-radius: 40px;
    color: #4CAF50;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.15s;
}

.btn-secondary:hover { background: rgba(76, 175, 80, 0.1); }

.hero-image {
    width: 100%;
    border-radius: 14px;
}

/* ---------- Sections ---------- */
section { padding: 3rem 1.5rem; }

.section-title {
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 1.6rem);   /* Было 1.4-1.9 */
    margin-bottom: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- Steps ---------- */
.steps-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

.step-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.15rem 0.9rem;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.15);
    transition: transform 0.15s;
}

.step-card:hover { transform: translateY(-2px); }

.step-card h3 {
    font-size: 13px;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.step-card p {
    color: #8a92b0;
    font-size: 11px;
    margin-top: 0.35rem;
    line-height: 1.5;
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    margin: 0 auto 0.6rem;
}

.step-percent {
    margin-top: 0.6rem;
    font-size: 1.1rem;
    color: #4CAF50;
    font-weight: 700;
}

.step-label {
    font-size: 9px;
    color: #6a7290;
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Top streamers ---------- */
.top-streamers-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
}

.top-streamer-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.15);
    transition: transform 0.15s, border-color 0.15s;
}

.top-streamer-card:hover {
    transform: translateY(-2px);
    border-color: #4CAF50;
}

.streamer-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 auto 0.65rem;
}

.streamer-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.streamer-name a {
    color: white;
    text-decoration: none;
    transition: color 0.15s;
}

.streamer-name a:hover { color: #4CAF50; }

.streamer-stats {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 0.6rem;
}

.streamer-stat { text-align: center; }

.streamer-stat-value {
    font-weight: 700;
    color: #4CAF50;
    font-size: 13px;
}

.streamer-stat-label {
    font-size: 9px;
    color: #8a92b0;
    margin-top: 1px;
}

/* ---------- Commission ---------- */
.commission-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

.commission-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.1rem 0.9rem;
    text-align: center;
    border: 1px solid rgba(76, 175, 80, 0.15);
    transition: transform 0.15s, border-color 0.15s;
}

.commission-card:hover {
    transform: translateY(-2px);
    border-color: #4CAF50;
}

.commission-percent {
    font-size: 1.6rem;
    font-weight: 800;
    color: #4CAF50;
    letter-spacing: -0.02em;
}

.commission-name {
    font-size: 12px;
    margin: 0.35rem 0;
    font-weight: 600;
}

.commission-desc {
    font-size: 10px;
    color: #8a92b0;
}

/* ---------- Features ---------- */
.features-grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.feature-card {
    background: rgba(26, 31, 46, 0.4);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.15s, border-color 0.15s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.4);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.65rem;
}

.feature-card h3 {
    font-size: 13px;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.feature-card p {
    color: #8a92b0;
    margin-top: 0.35rem;
    font-size: 11px;
    line-height: 1.5;
}

/* ---------- Support ---------- */
.support-grid {
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    text-align: center;
}

.support-item {
    background: rgba(26, 31, 46, 0.4);
    border-radius: 14px;
    padding: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.15s;
}

.support-item:hover { transform: translateY(-2px); }

.support-item i {
    font-size: 1.35rem;
    color: #4CAF50;
    margin-bottom: 0.6rem;
}

.support-item h4 {
    margin-bottom: 0.3rem;
    font-size: 13px;
}

.support-item a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.15s;
}

.support-item a:hover { color: #81c784; }

/* ---------- FAQ ---------- */
.faq-grid {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 31, 46, 0.3);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.65rem;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover { background: rgba(26, 31, 46, 0.5); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 12px;
    gap: 1rem;
}

.faq-question i {
    transition: transform 0.25s;
    color: #4CAF50;
    flex-shrink: 0;
    font-size: 11px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    margin-top: 0.65rem;
    color: #b0b8d0;
    line-height: 1.6;
    font-size: 11px;
}

.faq-item.active .faq-answer { display: block; }

/* ---------- CTA ---------- */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #1a2a1a, #0a1a0a);
    border-radius: 16px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.cta-title {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    margin-bottom: 1.25rem;
    color: #b0b8d0;
    font-size: 13px;
}

.cta-btn { font-size: 13px; }

/* ---------- Footer ---------- */
.footer {
    background: #070a12;
    text-align: center;
    padding: 1.75rem 1.5rem;
    border-top: 1px solid rgba(76, 175, 80, 0.1);
    margin-top: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #8a92b0;
    text-decoration: none;
    transition: color 0.15s;
    font-size: 12px;
}

.footer-links a:hover { color: #4CAF50; }

.footer p { color: #8a92b0; margin-bottom: 0.35rem; font-size: 11px; }

.footer-note {
    margin-top: 0.35rem;
    font-size: 10px;
    color: #6a7290;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeInUp 0.5s ease forwards; }

/* ---------- Responsive ---------- */
/* Переход на 1 колонку — на 900px, а не на 1024 */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-actions { justify-content: center; }

    .stats-hero { justify-content: center; }

    .steps-grid,
    .commission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image { max-width: 500px; margin: 0 auto; }
}

/* Мобильные */
@media (max-width: 640px) {
    section { padding: 2rem 1rem; }

    .hero { padding: 80px 1rem 2rem; }

    .section-title { margin-bottom: 1.25rem; }

    .nav-links { display: none; }

    .steps-grid,
    .commission-grid,
    .features-grid,
    .support-grid,
    .top-streamers-grid {
        grid-template-columns: 1fr;
    }

    .navbar { padding: 0.65rem 1rem; }
}