/**
 * Лендинговая раскладка карточки курса.
 * Шрифты намеренно не задаются — наследуются от шаблона сайта (Circe/TTNorms).
 * Палитра совпадает с основной: акцент #102cc8, светлый фон #eee8ff.
 */

.vf-l {
    --vf-l-accent: #102cc8;
    --vf-l-accent-soft: #eee8ff;
    --vf-l-ink: #1a1a1a;
    --vf-l-muted: #4a4d55;
    --vf-l-line: #e3e6ea;
    --vf-l-radius: 14px;
    --vf-l-radius-lg: 24px;
    padding: clamp(40px, 6vw, 80px) 0;
    background: #fff;
    color: var(--vf-l-ink);
}

.vf-l--muted {
    background: #f4f6f8;
}

.vf-l__inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.vf-l__title {
    font-size: clamp(26px, 3.4vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.vf-l__text {
    max-width: 860px;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
    color: var(--vf-l-muted);
    margin: 0 0 12px;
}

.vf-l__text--strong {
    color: var(--vf-l-ink);
    font-weight: 700;
}

.vf-l__text--muted {
    font-size: 15px;
}

/* ───── Первый экран ───── */

.vf-l-hero__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(24px, 4vw, 56px);
}

.vf-l-hero__left {
    flex: 1.5 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.vf-l-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--vf-l-accent-soft);
    color: var(--vf-l-accent);
    font-size: 15px;
    font-weight: 700;
}

.vf-l-hero__title {
    font-size: clamp(30px, 4.6vw, 60px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0;
}

.vf-l-hero__lead {
    max-width: 640px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    font-weight: 500;
    color: var(--vf-l-muted);
    margin: 0;
}

.vf-l-hero__accent {
    max-width: 640px;
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.45;
    font-weight: 700;
    margin: 0;
}

.vf-l-hero__card {
    flex: 1 1 320px;
    min-width: 0;
    min-height: clamp(320px, 32vw, 420px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: clamp(24px, 3vw, 40px);
    border-radius: var(--vf-l-radius-lg);
    background: var(--vf-l-accent);
    color: #fff;
}

.vf-l-hero__card-bg {
    position: absolute;
    top: -36px;
    right: -10px;
    font-size: clamp(150px, 18vw, 240px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.13);
    pointer-events: none;
}

.vf-l-hero__start,
.vf-l-hero__term,
.vf-l-hero__price,
.vf-l-hero__note {
    position: relative;
    margin: 0;
}

.vf-l-hero__start {
    font-size: 17px;
    font-weight: 700;
}

.vf-l-hero__price-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vf-l-hero__term {
    font-size: 17px;
    font-weight: 600;
}

.vf-l-hero__price {
    font-size: clamp(40px, 4.2vw, 58px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.vf-l-hero__note {
    font-size: 14px;
    opacity: 0.85;
}

/* ───── Кнопки ───── */

.vf-l-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.vf-l-btn:hover {
    opacity: 0.9;
}

.vf-l-btn:active {
    transform: translateY(1px);
}

.vf-l-btn--light {
    width: 100%;
    background: #fff;
    color: var(--vf-l-accent);
}

.vf-l-btn--accent {
    margin-top: 28px;
    background: var(--vf-l-accent);
    color: #fff;
}

.vf-l--banner .vf-l-btn--light {
    width: auto;
}

/* ───── Карточки ───── */

.vf-l-cards {
    display: grid;
    gap: clamp(14px, 1.6vw, 20px);
    margin-top: clamp(24px, 3vw, 40px);
}

.vf-l-cards--4 {
    grid-template-columns: repeat(4, 1fr);
}

.vf-l-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.vf-l-cards--2 {
    grid-template-columns: repeat(2, 1fr);
}

.vf-l-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: clamp(18px, 2vw, 26px);
    border-radius: var(--vf-l-radius);
    background: #fff;
    border: 1px solid var(--vf-l-line);
}

.vf-l--muted .vf-l-card--plain,
.vf-l-card--plain {
    background: #f4f6f8;
    border-color: transparent;
}

.vf-l--muted .vf-l-card--plain {
    background: #fff;
}

.vf-l-card--accent {
    background: var(--vf-l-accent-soft);
    border-color: transparent;
}

.vf-l-card__num {
    font-size: 14px;
    font-weight: 800;
    color: var(--vf-l-accent);
}

.vf-l-card__title {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
}

.vf-l-card__title--accent {
    color: var(--vf-l-accent);
}

.vf-l-card__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--vf-l-muted);
    margin: 0;
}

.vf-l-card__text--strong {
    color: var(--vf-l-ink);
    font-weight: 700;
}

/* ───── Что внутри ───── */

.vf-l-feats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 28px);
    margin-top: clamp(24px, 3vw, 36px);
}

.vf-l-feat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 2px solid var(--vf-l-accent);
}

.vf-l-feat__ico {
    color: var(--vf-l-accent);
    line-height: 0;
}

.vf-l-feat__title {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
}

.vf-l-feat__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--vf-l-muted);
    margin: 0;
}

.vf-l-note {
    margin-top: clamp(24px, 3vw, 36px);
    padding: clamp(18px, 2.4vw, 28px);
    border-radius: var(--vf-l-radius);
    background: var(--vf-l-accent-soft);
}

.vf-l-note p {
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.55;
    margin: 0;
}

/* ───── Список «поможет» ───── */

.vf-l-rows {
    margin: clamp(20px, 3vw, 32px) 0 0;
}

.vf-l-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 1.6fr;
    gap: clamp(16px, 3vw, 40px);
    padding: clamp(16px, 2vw, 24px) 0;
    border-top: 1px solid var(--vf-l-line);
}

.vf-l-row:last-child {
    border-bottom: 1px solid var(--vf-l-line);
}

.vf-l-row__term {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
}

.vf-l-row__desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--vf-l-muted);
    margin: 0;
}

.vf-l-after {
    margin-top: clamp(24px, 3vw, 36px);
}

/* ───── Баннер ───── */

/* Цвет задаётся каждому элементу явно: наследования от секции недостаточно —
   общие стили сайта красят заголовки и абзацы в тёмный, и на синем фоне
   текст сливается. То же касается карточки с ценой на первом экране. */
.vf-l--banner,
.vf-l--banner h1,
.vf-l--banner h2,
.vf-l--banner h3,
.vf-l--banner p,
.vf-l-hero__card,
.vf-l-hero__card h1,
.vf-l-hero__card h2,
.vf-l-hero__card h3,
.vf-l-hero__card p {
    color: #fff;
}

.vf-l--banner {
    background: var(--vf-l-accent);
}

.vf-l-banner__title {
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    max-width: 900px;
}

.vf-l-banner__text {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 600;
    margin: 0 0 24px;
}

/* ───── Блок оплаты ─────
   Стили формы продублированы из шаблона .default: Bitrix подключает
   style.css только текущего шаблона, а без них у согласий терялось
   выравнивание по левому краю и оформление чекбоксов.
   При правках формы менять оба файла. */

.courses-detail-pay-form-right-policy.courses-detail-pay-form-other-bank {
    margin-bottom: 10px;
}

/* Блок 3 чекбоксов согласий. Полностью независим от старого policy-блока. */
.consents-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.consents-block__item {
    position: relative;
    width: 100%;
    margin: 0;
}

.consents-block__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.consents-block__label {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.consents-block__label:before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    box-sizing: border-box;
    background: #eee8ff;
    border: 1px solid #eee8ff;
    border-radius: 4px;
}

.consents-block__checkbox:checked + .consents-block__label:before {
    background-color: #eee8ff;
    border-color: #102cc8;
}

.consents-block__checkbox:checked + .consents-block__label:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 9px;
    height: 5px;
    border-left: 2px solid #102cc8;
    border-bottom: 2px solid #102cc8;
    transform: rotate(-45deg);
}

.consents-block__checkbox:focus-visible + .consents-block__label:before {
    outline: 2px solid #102cc8;
    outline-offset: 2px;
}

.consents-block__label span {
    display: block;
    min-width: 0;
    text-wrap: pretty;
    hyphens: none;
    word-break: normal;
}

.consents-block__link,
.consents-block__link:hover,
.consents-block__link:focus,
.consents-block__link:active,
.consents-block__link:visited {
    color: inherit;
    text-decoration: underline;
}

.consents-block__link:hover {
    text-decoration: none;
}

.courses-detail-pay-form-other-bank .courses-detail-pay-form-right-policy__label {
    width: 100%;
}

.courses-detail-pay-form-other-bank .courses-detail-pay-form-right-policy__label span {
    width: 100%;
}

.courses-detail__feedback {
    margin-top: 100px;
}

.courses-detail-steps-block-item__ico {
    margin-right: auto;
    margin-top: 20px;
}

.courses-detail-steps-block-item__title,
.courses-detail-steps-block-item__desc,
.courses-detail-possibility-item-block__text {
    width: 100%;
    text-align: left;
}

.courses-detail-possibility-item-block__ico {
    margin-right: auto;
}

@media (max-width: 719px) {
    .courses-detail__feedback {
        margin-top: 60px;
    }

    .courses-detail-pay-form-left-btn {
        display: block !important;
        position: relative !important;
        bottom: 0 !important;
        margin-top: 20px;
    }

    .courses-detail-pay-form-left-btn__consultation {
        max-width: 267px !important;
        width: 100% !important;
    }

    .courses-detail-pay-form-left-btn__consultation:hover {
        background: #ffffff !important;
        color: #102cc8 !important;
    }
}

/* Блок оплаты оставлен штатным: раскладку и оформление формы задают общие
   стили сайта. Своё здесь — только воздух вокруг секции, иначе форма
   вплотную прилипает к баннеру сверху и к блоку вопросов снизу. */
.vf-l-pay {
    padding-top: clamp(40px, 6vw, 80px);
}

.vf-l-pay .courses-detail-pay {
    margin-bottom: clamp(32px, 4vw, 56px);
}

/* ───── Адаптив ───── */

@media (max-width: 1024px) {
    .vf-l-cards--4,
    .vf-l-feats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vf-l-cards--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .vf-l-cards--4,
    .vf-l-cards--3,
    .vf-l-cards--2,
    .vf-l-feats {
        grid-template-columns: 1fr;
    }

    .vf-l-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .vf-l-hero__card {
        min-height: 0;
    }

    .vf-l--banner .vf-l-btn--light {
        width: 100%;
    }
}
