/* =========================================
   Стили для страниц направлений (SEO-лендинги)
   ========================================= */

.direction-page {
    padding: 60px 0 80px;
    background: var(--color-bg-light, #f8f9fa);
    min-height: 80vh;
}

.direction-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
.direction-page h1 {
    font-size: 38px;
    color: var(--color-dark, #1a202c);
    margin-bottom: 15px;
    line-height: 1.2;
}

.direction-page .subtitle {
    font-size: 18px;
    color: var(--color-text-muted, #6b7280);
    margin-bottom: 40px;
    line-height: 1.5;
}

.direction-page h2 {
    font-size: 26px;
    color: var(--color-dark, #1a202c);
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-primary, #dc2626);
    padding-bottom: 10px;
}

/* Текст */
.direction-page p,
.direction-page li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text, #333);
    margin-bottom: 15px;
}

.direction-page ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.direction-page strong {
    color: var(--color-dark, #1a202c);
}

/* Таблица программ */
.direction-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 15px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.direction-page table th,
.direction-page table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.direction-page table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--color-dark, #1a202c);
}

.direction-page table tr:last-child td {
    border-bottom: none;
}

.direction-page table tr:hover td {
    background-color: #f8fafc;
}

/* Блок преимуществ (сетка) */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.advantage-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.advantage-card:hover {
    transform: translateY(-3px);
}

.advantage-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--color-primary, #dc2626);
}

.advantage-card p {
    font-size: 15px;
    margin-bottom: 0;
    color: var(--color-text-muted, #6b7280);
}

/* Блок с кнопкой призыва к действию (CTA) */
.btn-wrapper {
    margin: 50px 0 0 0;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.btn-wrapper p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-dark, #1a202c);
}

/* Адаптивность */
@media (max-width: 768px) {
    .direction-page {
        padding: 30px 0 50px;
    }

    .direction-page h1 {
        font-size: 28px;
    }

    .direction-page h2 {
        font-size: 22px;
        margin-top: 30px;
    }

    .direction-page table th,
    .direction-page table td {
        padding: 10px;
        font-size: 14px;
    }

    .btn-wrapper {
        padding: 25px 15px;
    }
    
    .btn-wrapper p {
        font-size: 18px;
    }
}