

.courses-section {
    padding: 80px 24px;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 8px 0;
    color: #0f172a;
}
.section-subtitle {
    text-align: center;
    color: #475569;
    margin: 0 0 48px 0;
    font-size: 1.05rem;
}

.courses-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.course-item-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.course-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.course-card-banner {
    height: 160px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.course-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.course-card-body h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: #0f172a;
    line-height: 1.3;
}
.course-short-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 24px 0;
    flex: 1;
}

.course-card-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.course-price-tag {
    display: flex;
    flex-direction: column;
}
.price-lbl { font-size: 0.75rem; text-transform: uppercase; color: #64748b; font-weight: 700; }
.price-val { font-size: 1.25rem; font-weight: 800; color: #0284c7; }

/* 🌟 ИСПРАВЛЕНО: Кнопка перекрашена из фиолетовой в глубокий синий Ocean Blue */
.btn-course-more {
    background-color: #0284c7;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s;
}
.btn-course-more:hover {
    background-color: #0369a1;
}

.empty-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #64748b;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 480px) {
    .courses-grid { grid-template-columns: 1fr; }
    .course-card-footer { flex-direction: column; align-items: stretch; gap: 16px; text-align: center; }
}

/* ─── ДЕТАЛЬНАЯ СТРАНИЦА КУРСА ─── */

.course-detail-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 64px 24px;
    border-bottom: 1px solid #334155;
}

.detail-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge-tag {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.course-detail-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.2;
    color: #ffffff;
}

.hero-short-description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 800px;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.hero-meta-panel {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #1e293b;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #334155;
}

.meta-icon {
    font-size: 1.5rem;
}

.meta-text {
    display: flex;
    flex-direction: column;
}

.meta-lbl {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #38bdf8;
}

/* СЕТКА ДЕТАЛЬНОЙ СТРАНИЦЫ */
.course-detail-layout {
    padding: 48px 24px;
    background-color: #f8fafc;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
}

.course-main-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.course-sidebar-widget {
    flex: 1;
    min-width: 320px;
}

.info-block-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.info-block-card h2 {
    margin: 0 0 20px 0;
    font-size: 1.4rem;
    color: #0f172a;
    font-weight: 700;
}

.block-content-text {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
}

.target-audience {
    background-color: #f0f9ff;
    padding: 16px 20px;
    border-left: 4px solid #0284c7;
    border-radius: 0 8px 8px 0;
}

/* СПИСОК ПРОГРАММЫ */
.curriculum-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #e0f2fe;
    color: #0369a1;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

.step-text {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}

/* ФИКСИРОВАННЫЙ ВИДЖЕТ ЗАПИСИ */
.sticky-widget-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}

.widget-price-head {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.widget-price-title {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
}

/* 🌟 ИСПРАВЛЕНО: Главный ценник перекрашен в фирменный Ocean Blue */
.widget-price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #0284c7; 
}

.widget-perks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.perk-row {
    font-size: 0.9rem;
    color: #475569;
    display: flex;
    gap: 8px;
    font-weight: 500;
}

.perk-row span {
    color: #10b981;
    font-weight: 700;
}

/* 🌟 СТРАХОВОЧНЫЙ АЛИАС: Название класса сохранено, чтобы вёрстка во view-файлах не ломалась, 
   но сама кнопка перекрашена в строгий синий Ocean Blue */
.btn-enroll-purple {
    display: block;
    text-align: center;
    background-color: #0284c7;
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
}

.btn-enroll-purple:hover {
    background-color: #0369a1;
    transform: translateY(-1px);
}

.widget-guarantee {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin: 16px 0 0 0;
    line-height: 1.4;
}

/* АДАПТИВНОСТЬ СТРАНИЦЫ КУРСА */
@media (max-width: 992px) {
    .detail-container {
        flex-direction: column;
    }
    .course-sidebar-widget {
        width: 100%;
    }
    .sticky-widget-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .course-detail-hero h1 { font-size: 2rem; }
    .info-block-card { padding: 20px; }
}


.marketer-flex-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.courses-list-column {
    flex: 1.5;
    min-width: 320px;
}
.courses-form-column {
    flex: 1;
    min-width: 320px;
    max-width: 750px;
}
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-row-mix {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 16px;
    align-items: start;
}
.table-responsive-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Адаптивность под планшеты и мобильные устройства */
@media (max-width: 992px) {
    .form-row-mix {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
}