/* --- HERO SECTION --- */
.hero {
    padding: 80px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 780px;
    margin: 0 auto 26px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-tags span {
    background: rgba(255, 177, 26, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 177, 26, 0.2);
}

/* ✅ ВПИСЫВАЕМ КНОПКИ В HERO */
.hero-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- TOP RATING (Money Maker) --- */
.top-rating {
    padding: 40px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 34px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.section-note {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.85;
}

.rating-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ✅ Главное: карточка = стабильная сетка (лево | центр | право) */
.rating-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: grid;
    grid-template-columns: 320px 1fr 180px;
    gap: 18px;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
}

.rating-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Ранг/сценарий слева */
.rating-rank {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-muted);
    width: auto;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.rating-item:first-child .rating-rank {
    color: var(--primary);
}

/* Левый блок */
.rating-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rating-name h3 {
    font-size: 20px;
    margin: 0;
}

.exch-logo {
    width: 100px;
    height: 40px;
}

.exch-card-meta {
    display: flex;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

.best-badge {
    background: rgba(0, 192, 135, 0.15);
    color: var(--accent-green);
}

.simple-badge {
    background: rgba(132, 142, 156, 0.15);
    color: var(--text-muted);
}

/* Центр: аккуратная “табличка” параметров */
.rating-features {
    padding: 0 22px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.rating-features ul {
    display: grid;
    gap: 10px;
}

.rating-features li {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: baseline;
    font-size: 14px;
    color: var(--text-muted);
}

.feat-label {
    color: var(--text-muted);
    opacity: 0.95;
}

.feat-val {
    color: var(--text-main);
    font-weight: 700;
}

/* Правый блок: кнопки одной ширины, без “баннера” */
.rating-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.rating-actions .btn {
    width: 100%;
}

.center-link {
    text-align: center;
    margin-top: 30px;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px dashed var(--primary);
}

.text-link:hover {
    border-bottom-style: solid;
}

/* --- HUB NAVIGATION (Grid) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s;
}

.hub-card:hover {
    background: var(--bg-card-hover);
    border-color: #3e4550;
}

.card-header h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-main);
}

.hub-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-list {
    margin-bottom: 20px;
}

.card-list li {
    margin-bottom: 10px;
}

.card-list a {
    color: var(--text-main);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-list a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.muted {
    color: var(--text-muted);
    font-size: 15px;
    opacity: 0.9;
}

.card-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
}

/* --- GUIDES (block on home) --- */
.guides {
    padding: 40px 20px;
}

.guides h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-item {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(30, 35, 41, 0.5) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: 0.3s;
}

.guide-item:hover {
    border-color: var(--text-muted);
}

.guide-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.guide-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.guide-item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* --- FAQ --- */
.faq {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-grid summary {
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

.faq-grid summary::-webkit-details-marker {
    display: none;
}

.faq-grid summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-grid details[open] summary::after {
    transform: rotate(45deg);
}

.faq-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* --- MEDIA QUERIES (Home) --- */
@media (max-width: 900px) {
    .rating-item {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: stretch;
        position: relative;
    }

    .rating-rank {
        position: absolute;
        top: 18px;
        right: 18px;
        font-size: 28px;
    }

    .rating-features {
        border: none;
        padding: 14px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 12px;
    }

    .rating-features li {
        grid-template-columns: 160px 1fr;
    }

    .rating-actions {
        flex-direction: row;
        width: 100%;
    }

    .rating-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .rating-actions {
        flex-direction: column;
    }

    .rating-features li {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .feat-label {
        font-size: 12px;
        opacity: 0.85;
    }
}