/* Шаблон «оффер»: короткая страница действия с формой на первом экране.
   Светлая, воздушная, без тёмной шапки и без фотографии во всю ширину. */

:root {
    --primary: #1f2a44;
    --accent: #2f6f4e;
    --accent-dark: #245840;
    --ink: #1b2030;
    --muted: #5d6577;
    --line: #e2e6ee;
    --paper: #ffffff;
    --sheet: #f6f7fb;
    --radius: 12px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.h2 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.sub { color: var(--muted); margin-top: 8px; max-width: 620px; }

/* ── Узкая панель сверху, без меню ───────────────────────────────────────── */
.bar { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,0.92);
       backdrop-filter: blur(10px); z-index: 50; }
.bar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.bar__logo { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; }
.bar__right { display: flex; align-items: center; gap: 18px; }
.bar__phone { font-weight: 700; white-space: nowrap; }
.bar__cta { background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 8px;
            font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.bar__cta:hover { background: var(--accent-dark); }

/* ── Первый экран: слева обещание, справа форма ──────────────────────────── */
.offer { padding: 56px 0 64px; background: linear-gradient(180deg, var(--sheet) 0%, var(--paper) 100%); }
.offer__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.offer__title { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.offer__desc { margin-top: 18px; font-size: 1.08rem; color: var(--muted); max-width: 520px; }
.offer__points { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.offer__points li { padding-left: 26px; position: relative; }
.offer__points li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.offer__points b { font-weight: 800; }
.offer__hint { margin-top: 24px; font-size: 0.9rem; color: var(--muted); max-width: 480px; }
/* Фотография занимает низ левой колонки: фоном во весь экран она стоит в
   «классике», внутри плитки — в «карточках»; здесь третья роль. */
.offer__pic {
    margin-top: 28px;
    height: 260px;
    border-radius: var(--radius);
    background: url('/static/img/hero-bg.jpg?v=7d02f4b1') center 40% / cover no-repeat;
}

.offer__box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
              padding: 28px; box-shadow: 0 18px 50px rgba(20, 30, 60, 0.09); }
.offer__box-title { font-weight: 800; font-size: 1.2rem; }
.offer__box-sub { color: var(--muted); font-size: 0.92rem; margin: 6px 0 18px; }

/* ── Полоса цифр: тонкая, светлая ────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sheet); }
.strip__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.strip__cell { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.strip__cell:last-child { border-right: none; }
.strip__value { display: block; font-weight: 800; font-size: clamp(1rem, 0.8vw + 0.7rem, 1.45rem);
                color: var(--primary); text-wrap: balance; }
.strip__label { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ── Выгоды: крупные карточки в две колонки ──────────────────────────────── */
.plus { padding: 72px 0; }
.plus__grid { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.plus__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.plus__card h3 { font-size: 1.05rem; font-weight: 800; }
.plus__card p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

/* ── Этапы: нумерованный список, без таймлайна ───────────────────────────── */
.path { padding: 0 0 72px; }
.path__list { list-style: none; margin-top: 30px; display: grid; gap: 14px; counter-reset: step; }
.path__item { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px;
              background: var(--sheet); border-radius: var(--radius); }
.path__num { flex: 0 0 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff;
             display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; }
.path__item h3 { font-size: 1rem; font-weight: 800; }
.path__item p { color: var(--muted); font-size: 0.94rem; margin-top: 4px; }

/* ── Вопросы: две колонки, нативный details ──────────────────────────────── */
.ask { padding: 0 0 72px; }
.ask__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.ask__list { display: grid; gap: 10px; }
.ask__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: var(--paper); }
.ask__item summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.ask__item summary::-webkit-details-marker { display: none; }
.ask__item summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 1.3rem;
                            color: var(--accent); font-weight: 700; }
.ask__item[open] summary::after { content: '–'; }
.ask__item p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }

/* ── Завершение ──────────────────────────────────────────────────────────── */
.end { background: var(--primary); color: #fff; padding: 64px 0; }
.end__inner { text-align: center; }
.end__title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.end__sub { color: rgba(255,255,255,0.72); margin-top: 10px; }
.end__btn { display: inline-block; margin-top: 24px; background: var(--accent); color: #fff;
            padding: 15px 38px; border-radius: 8px; font-weight: 800; }
.end__btn:hover { background: var(--accent-dark); }
.end__or { margin-top: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.end__or a { text-decoration: underline; }

/* ── Подвал ──────────────────────────────────────────────────────────────── */
.foot { padding: 40px 0 28px; border-top: 1px solid var(--line); }
.foot__inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot__logo { font-weight: 800; }
.foot__tag { color: var(--muted); font-size: 0.9rem; }
.foot__legal { color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.foot__legal a { text-decoration: underline; }
.foot__note { margin-top: 22px; color: var(--muted); font-size: 0.76rem; line-height: 1.6; }

/* ── Форма ───────────────────────────────────────────────────────────────── */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Подпись блочная, а не сеточная: при display:grid звёздочка обязательного
   поля вставала отдельной строкой под названием. */
.lead-form__label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.lead-form__label > span:first-of-type { color: var(--accent); }
.lead-form__label .lead-form__input,
.lead-form__label .lead-form__phone { margin-top: 5px; }
.lead-form__label--wide { grid-column: 1 / -1; }
.lead-form__input { border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px;
                    font: inherit; font-weight: 500; color: var(--ink); background: var(--paper); width: 100%; }
.lead-form__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.lead-form__phone { display: flex; align-items: center; gap: 8px; }
.lead-form__code { font-weight: 800; color: var(--ink); }
.lead-form__consent { grid-column: 1 / -1; display: flex; gap: 9px; align-items: flex-start;
                      font-size: 0.84rem; color: var(--muted); }
.lead-form__error { grid-column: 1 / -1; color: #b3261e; font-size: 0.85rem; font-weight: 600; }
.lead-form__submit { grid-column: 1 / -1; background: var(--accent); color: #fff; border: none;
                     border-radius: 8px; padding: 15px; font: inherit; font-weight: 800; cursor: pointer; }
.lead-form__submit:hover:not(:disabled) { background: var(--accent-dark); }
.lead-form__submit:disabled { opacity: 0.6; cursor: default; }
.lead-form__legal { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); }
.lead-form__legal a { text-decoration: underline; }
.lead-form__done { text-align: center; padding: 22px 0; }
.lead-form__done-mark { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
                        background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.lead-form__done-title { font-weight: 800; font-size: 1.1rem; }
.lead-form__done-text { color: var(--muted); margin-top: 6px; }

@media (max-width: 900px) {
    .offer__grid, .ask__inner { grid-template-columns: 1fr; gap: 30px; }
    .bar__phone { display: none; }
    .lead-form { grid-template-columns: 1fr; }
}


/* Палитра сайта */
:root {
    --primary: #1F3A5B;
    --color-primary: #1F3A5B;
    --primary-dark: #162941;
    --color-primary-dark: #162941;
    --primary-light: #6d7e94;
    --primary-deep: #1a314d;
    --primary-darker: #0d1a28;
    --accent: #6B8FA6;
    --color-accent: #6B8FA6;
    --accent-hover: #536f81;
    --color-accent-hover: #536f81;
    --accent-light: #adc1ce;
}
