/* style.css — стили страницы конкретной программы (/programmy/<slug>/) */

/* Фон страницы программы — белый (не общий кремовый var(--color-bg)): переопределяем
   body только для этой страницы, как и разрешает "3 файла" — общий body.css не трогаем. */
body { background: var(--color-surface); }

.page-hero {
    padding: 44px 0 26px;
    background: var(--color-surface);
}
/* Заголовок — с золотой чертой слева, как «Программы центра» на главной
   (.programs__head в /style.css): черта стоит в левом отступе блока и не
   сдвигает текст кикера и лида, только визуально отмечает h1. */
.page-hero .container { position: relative; padding-left: 74px; }
.page-hero .container::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 52px;
    width: 38px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-gold);
}
.page-hero__kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-gold);
}
.page-hero h1 { max-width: 26ch; }
.page-hero__lead { max-width: 78ch; margin: 0; font-size: 17px; color: var(--color-text-soft); }

.detail { max-width: 900px; margin: 0 auto; padding: 36px 20px 0; }
.detail__block { margin-bottom: 34px; }
.detail__block h2 { padding-bottom: 10px; font-size: 26px; border-bottom: 1px solid var(--color-border); }
.detail__block p:last-child { margin-bottom: 0; }
.detail__note { font-size: 14px; color: var(--color-text-soft); }

/* Карточки «параметр — значение» (формат, продолжительность, посещения) */
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.spec-list li {
    padding: 14px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    font-weight: 600;
}
.spec-list span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-gold);
}

/* Варианты курсов */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.plan {
    padding: 22px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.plan__name { margin: 0 0 12px; font-family: var(--font-display); font-size: 24px; }
.plan__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed var(--color-border); }
.plan__row:last-of-type { border-bottom: none; }
.plan__price { margin: 12px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--color-graphite); }

/* Списки «что входит / результаты» */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.check-list li::before { position: absolute; left: 0; font-weight: 700; color: var(--color-gold); content: "✓"; }

/* Блок стоимости */
.price-box {
    padding: 28px;
    margin-bottom: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.price-box h2 { margin-bottom: 12px; font-size: 26px; }
.price-table { width: 100%; margin-bottom: 16px; border-collapse: collapse; }
.price-table th,
.price-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border-soft); text-align: left; font-size: 16px; }
.price-table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-gold); }
.price-table td:last-child,
.price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-box__note { font-size: 14px; color: var(--color-text-soft); }

.related { margin-bottom: 56px; }
.related h2 { padding-bottom: 10px; font-size: 24px; border-bottom: 1px solid var(--color-border); }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 20px; }
.related__card {
    display: block;
    padding: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    transition: transform .18s ease, border-color .18s ease;
}
.related__card:hover { transform: translateY(-2px); border-color: var(--color-gold); }
.related__title { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--color-graphite); }
.related__text { display: block; margin: 6px 0 10px; font-size: 14px; color: var(--color-text-soft); }
.related__price { display: block; font-weight: 600; color: var(--color-graphite); }

@media (max-width: 620px) {
    .page-hero { padding: 32px 0 22px; }
    .page-hero .container { padding-left: 56px; }
    .page-hero .container::before { left: 20px; top: 46px; width: 26px; }
}
