/* --- GUIDES GRID --- */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.guide-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}

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

.guide-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-main);
}

.guide-item p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.guide-item .btn-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- SEO SELECTION GUIDE BLOCK --- */
.selection-guide {
    background: linear-gradient(135deg, rgba(30, 35, 41, 0.4) 0%, rgba(14, 17, 22, 0.4) 100%);
    border: 1px solid var(--border);
    padding: 60px 40px;
    border-radius: 24px;
    margin-top: 60px;
}

.guide-steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.guide-step {
    text-align: center;
}

.step-icon {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 177, 26, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 1px solid rgba(255, 177, 26, 0.2);
}

.guide-step h4 {
    margin-bottom: 12px;
    font-size: 18px;
}

/* Стили для панелей (дублируем из p2p, так как они тут нужны) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.panel h3 {
    margin-bottom: 15px;
}

.panel li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .selection-guide {
        padding: 30px 20px;
    }
}

/* --- ГЛОБАЛЬНЫЙ ВОЗДУХ --- */
.section {
    padding: 80px 0;
}

.section.compact {
    padding: 40px 0;
}

.section-title {
    margin-bottom: 50px;
}

.guides-grid {
    gap: 32px;
    margin-top: 40px;
}

/* --- БЛОК С ПАРТНЕРКАМИ (TOOLS) --- */
.tools-banner {
    background: linear-gradient(135deg, rgba(255, 177, 26, 0.1) 0%, rgba(30, 35, 41, 1) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 40px 0;
}

.tools-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.tools-info p {
    color: var(--text-muted);
    font-size: 15px;
}

.tools-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .tools-banner {
        flex-direction: column;
        text-align: center;
    }

    .tools-links {
        justify-content: center;
    }
}

/* ========================================= */
/* CHECKLISTS — PREMIUM CLEAN (A) */
/* ========================================= */
#checklists .scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 50px;
}

@media (max-width: 900px) {
    #checklists .scenario-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CARD (flex column) ===== */
#checklists .scenario-card {
    display: flex;
    flex-direction: column;
    padding: 25px;
    border-radius: 26px;
    background: linear-gradient(145deg, #1a2028 0%, #12161c 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform .25s ease, border-color .25s ease;
}

#checklists .scenario-card:hover {
    transform: translateY(-6px);
}

/* ===== TOP (art + content) ===== */
#checklists .card-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    flex: 1;
}

/* ===== ICON — усиленная тень ===== */
#checklists .scenario-art img {
    width: auto;
    height: 100px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.70));
}

/* ===== TEXT (правый блок) ===== */
#checklists .scenario-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#checklists .scenario-content h3 {
    margin: 0 0 12px 0;
    font-weight: 800;
    color: #ffffff;
}

#checklists .scenario-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 400px;
}

/* ===== BOTTOM (кнопка прижата вправо) ===== */
#checklists .card-bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}


/* ===== MOBILE ===== */
@media (max-width: 640px) {
    #checklists .scenario-card {
        padding: 20px;
    }

    #checklists .card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    #checklists .scenario-art {
        flex: 0 0 auto;
        width: 100px;
        align-self: center;
    }

    #checklists .scenario-art img {
        height: 80px !important;
        max-height: 80px !important;
        filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.68));
    }

    #checklists .scenario-content h3 {
        font-size: 20px;
    }

    #checklists .card-bottom {
        justify-content: center;
        margin-top: 16px;
    }
}

/* ===== Catalog section (was inline styles) ===== */
.section-guides-catalog {
    background: rgba(255, 255, 255, 0.01);
    padding: 80px 0;
}

/* ===== Badges: remove inline margin/background ===== */
.guides-grid .badge {
    margin-bottom: 12px;
}

/* Если best-badge в base.css уже есть — эта часть просто закрепит вид */
.guides-grid .badge.best-badge {
    background: rgba(0, 192, 135, 0.10);
}

.pagination {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

.pagination-pages {
    display: inline-flex;
    gap: 8px;
}

.pagination-page.is-active {
    border-color: rgba(255, 177, 26, 0.65);
    background: rgba(255, 177, 26, 0.12);
}

.pagination-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}