/* /subscription. Значения — строго из DESIGN.md (цвета, шрифты, радиусы, размеры полей и кнопок).
   Общие блоки bento/steps — landing-blocks.css; FAQ — questions.css; заголовки .title_h2 — typography.css. */

:root {
    --kf-blue: #4450F2;
    --kf-blue-hover: #1D29C7;
    --kf-blue-disabled: #ABAFE3;
    --kf-focus: #4356E9;
    --kf-ink: #141414;
    --kf-muted: #9299A2;
    --kf-border: #D4D4D4;
    --kf-border-hover: #BFC1CC;
    --kf-bg-light: #F8F8F8;
    --kf-bg-tabs: #EEEEEE;
    --kf-lavender: #DAD9FB;
    --kf-success: #7BF78F;
    --kf-warning: #FEF0C7;
    --kf-error: #FD3A57;
}

/* ── Hero ── */
.pricing-hero { max-width: 760px; margin: 48px auto 40px; text-align: center; }
@media (max-width: 1023px) { .pricing-hero { margin-top: 24px; } }
.pricing-hero__title {
    text-wrap: balance; /* ровные строки, без висящих слов */
    margin: 0 0 16px;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 56px;
    line-height: 64px;
    font-weight: 600;
    color: var(--kf-ink);
}
.pricing-hero__title .highlight { font-weight: 600; color: var(--kf-blue); }
.pricing-hero__text { margin: 0; font-family: "Inter", Roboto, sans-serif; font-size: 18px; line-height: 32px; color: var(--kf-ink); }
@media (max-width: 575px) { .pricing-hero__title { font-size: 36px; line-height: 44px; } .pricing-hero__text { font-size: 16px; line-height: 26px; } }

.pricing-alert {
    margin: 20px auto 0;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--kf-warning);
    font-family: "Inter", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--kf-ink);
}

/* ── Поле ввода с плавающей подписью (DESIGN.md → Labeled Input) ── */
.field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 0 16px;
    padding: 10px 16px; /* как .generate__label в new_landing.css */
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--kf-border);
    border-radius: 10px;
    cursor: text;
}
.field:hover { border-color: var(--kf-border-hover); }
.field:focus-within { border-color: var(--kf-focus); }
.field__label { font-family: "Inter", Roboto, sans-serif; font-size: 12px; line-height: 15px; font-weight: 400; color: var(--kf-muted); }
.field__input {
    width: 100%;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: "Inter", Roboto, sans-serif;
    font-size: 16px;
    line-height: 23px;
    font-weight: 500;
    color: var(--kf-ink);
}
.field__input::placeholder { color: #CCCCCC; }
.field__input--code { letter-spacing: 6px; }

/* ── Кнопка (DESIGN.md → Primary Button) ── */
.pricing-card__btn {
    display: block;
    width: 100%;
    height: 60px;
    padding: 0 24px;
    border: none;
    border-radius: 10px;
    background: var(--kf-blue);
    color: #fff;
    font-family: "Inter", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 60px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease-in;
}
.pricing-card__btn:hover { background: var(--kf-blue-hover); }
.pricing-card__btn:disabled { background: var(--kf-blue-disabled); cursor: default; }
.pricing-card__btn .loader-icon { vertical-align: middle; }
.pricing-form__error { margin-top: 8px; font-family: "Inter", Roboto, sans-serif; font-size: 12px; line-height: 16px; color: var(--kf-error); }

/* ── Табы месяц/год (DESIGN.md → Tab Switcher) ── */
.pricing-toggle {
    display: inline-flex;
    height: 52px;
    padding: 4px;
    box-sizing: border-box;
    border-radius: 10px;
    background: var(--kf-bg-tabs);
}
.pricing-toggle__btn {
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: "Inter", Roboto, sans-serif;
    font-size: 16px;
    line-height: 44px;
    color: var(--kf-ink);
    cursor: pointer;
}
.pricing-toggle__btn--active { position: relative; z-index: 1; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .25); }
.pricing-toggle__save {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--kf-success);
    font-size: 12px;
    font-weight: 700;
    color: var(--kf-ink);
}

/* ── Талон ── */
.pass {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--kf-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    overflow: hidden;
    font-family: "Inter", Roboto, sans-serif;
}
.pass--disabled { opacity: .6; pointer-events: none; }

.pass__stub {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    background: var(--kf-blue);
    color: #fff;
}
/* линия отрыва + полукруглые вырезы */
.pass__stub::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; border-right: 2px dashed rgba(255, 255, 255, .6); }
.pass__stub::before,
.pass__notch { content: ""; position: absolute; right: -12px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--kf-border); z-index: 1; }
.pass__stub::before { top: -12px; }
.pass__notch { bottom: -12px; }

.pass__stub-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.pass__brand { font-size: 12px; line-height: 15px; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .8; }
.pass__class { font-family: "Poppins", Roboto, sans-serif; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: .08em; color: #fff; }
.pass__price { margin-bottom: 24px; color: #fff; }
.pass__amount { font-family: "Poppins", Roboto, sans-serif; font-size: 42px; line-height: 50px; font-weight: 600; color: #fff; }
.pass__period { margin-left: 8px; font-size: 16px; line-height: 24px; color: #fff; opacity: .85; }
.pass__billing { margin-top: 4px; font-size: 14px; line-height: 24px; color: #fff; opacity: .8; }

.pass__stub .pricing-form { margin-top: auto; } /* форма прижата к низу — на одной линии с футером справа */
.pass__stub .field { border-color: #fff; }
.pass__stub .pricing-card__btn { background: #fff; color: var(--kf-blue); }
.pass__stub .pricing-card__btn:hover { background: var(--kf-lavender); }
.pass__stub .pricing-form__error { color: #fff; font-weight: 700; }
.pass__stub .field { margin-bottom: 12px; }
.pass__note { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .4); font-size: 12px; line-height: 16px; color: #fff; opacity: .85; }

.pass__body { display: flex; flex-direction: column; padding: 32px; }
.pass__body-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pass__tag { padding: 4px 12px; border-radius: 10px; background: var(--kf-lavender); font-size: 14px; line-height: 24px; font-weight: 500; color: var(--kf-blue); }

.pricing-card__list { list-style: none; margin: 0; padding: 0; }
.pricing-card__list li {
    position: relative;
    padding: 8px 0 8px 36px;
    font-size: 16px;
    line-height: 24px;
    color: var(--kf-ink);
}
.pricing-card__list li b { font-weight: 600; }
.pricing-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--kf-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pass__footer { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--kf-border); font-size: 12px; line-height: 16px; color: var(--kf-muted); }
.pass__footer a { color: var(--kf-blue); }

@media (max-width: 767px) {
    .pass { grid-template-columns: 1fr; }
    .pass__stub::after { top: auto; left: 0; right: 0; bottom: -1px; border-right: none; border-bottom: 2px dashed rgba(255, 255, 255, .6); }
    .pass__stub::before { top: auto; right: auto; left: -12px; bottom: -12px; }
    .pass__notch { right: -12px; bottom: -12px; }
    .pass__body { padding: 24px 16px; }
    .pass__footer { margin-top: 16px; }
}

/* ── Секции тела ── */
.included { padding: 80px 0 0; }
.steps { margin-top: 60px; }
.pricing-faq { padding: 60px 0; }
.pricing-faq .title_h2 { text-align: left; margin-bottom: 24px; }
/* H2 секций заметно меньше H1 (DESIGN.md → Block Heading 32/40) */
.subscription .title_h2 { font-size: 32px; line-height: 40px; font-weight: 700; }
@media (max-width: 575px) { .subscription .title_h2 { font-size: 26px; line-height: 34px; } }

/* форма управления подпиской в тёмной bento-карточке */
.manage__form { margin-top: 20px; }
.manage__form .field { border-color: #fff; }
.manage__error { margin-top: 12px !important; font-weight: 700; }
.manage__error a { color: inherit; text-decoration: underline; }
