/*
 * Busya: стили шаблона templates/top-page.php (пакет 8г, Е.15; раньше — блок <style> в HTML страницы).
 * Подключается в Busya::enqueue_assets() после busya-site.css, когда выбран этот шаблон (Busya::remember_template()).
 */

/* ===== Блок 1 ===== */

/* Принудительно задаем фон странице на случай, если тема лезет */
body.home,
body.front-page {
    background-color: #eff6ff !important;
}

.busya-top-page-wrapper {
    width: 100%;
    background-color: #eff6ff;
    /* Наш серый фон */
    min-height: 80vh;
    padding: 40px 0 40px 0;
    /* Increased top padding */
    box-sizing: border-box;
}

.busya-top-container {
    width: 100%;
    max-width: var(--busya-w, 1000px);
    /* Ширина как у всех наших страниц */
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.busya-home-h1 {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
    text-align: center;
}

.busya-home-sub {
    margin: 0 0 24px;
    font-size: 15px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 600px) {
    .busya-home-h1 { font-size: 22px; margin-bottom: 16px; }
}

/* ===== Блок 2: Сетка «Популярные | Истекающие» (печатался ниже, в конце страницы) ===== */

.busya-top-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
    /* Reduced from 40px to fix double margin */
}

.busya-top-full-row {
    margin-bottom: 0;
    /* Reduced from 40px */
}

@media (max-width: 900px) {
    .busya-top-grid-row {
        grid-template-columns: 1fr;
    }
}
