/* ==========================================================================
   Mongeza — таблица стилей
   Написана с нуля. Ни одного класса, переменной или приёма из прежней сборки.
   Порядок: токены -> сброс -> примитивы -> компоненты -> секции -> адаптив.
   ========================================================================== */

/* --- 1. Токены --------------------------------------------------------- */

:root {
    --ink:          #12211c;
    --ink-soft:     #35463f;
    --muted:        #6b7a73;
    --line:         #e2ded4;
    --line-soft:    #efece4;

    --canvas:       #f7f4ed;
    --surface:      #ffffff;
    --surface-alt:  #f1ede3;

    --brand:        #0e7c66;
    --brand-deep:   #0a5f4e;
    --brand-tint:   #e3f1ec;
    --accent:       #d9932c;
    --accent-tint:  #fbf1de;

    --danger:       #b03a2e;
    --danger-tint:  #fbeae7;
    --ok:           #2f7d4f;

    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  22px;
    --r-pill: 999px;

    --shadow-low:  0 1px 2px rgba(18, 33, 28, .06), 0 2px 8px rgba(18, 33, 28, .04);
    --shadow-mid:  0 2px 6px rgba(18, 33, 28, .07), 0 14px 34px rgba(18, 33, 28, .08);
    --shadow-high: 0 8px 20px rgba(18, 33, 28, .10), 0 30px 70px rgba(18, 33, 28, .14);

    --shell: 1140px;
    --gap:   clamp(18px, 3vw, 34px);

    --font: "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, system-ui, sans-serif;
    --font-num: "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
}

/* --- 2. Сброс ---------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- 3. Примитивы ------------------------------------------------------ */

.m-shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 28px);
}

.m-shell--narrow { max-width: 780px; }
.m-shell--mid    { max-width: 940px; }

.m-skip {
    position: absolute;
    left: -9999px;
}
.m-skip:focus {
    left: 12px; top: 12px; z-index: 200;
    background: var(--surface); padding: 10px 16px;
    border-radius: var(--r-sm); box-shadow: var(--shadow-mid);
}

.m-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand-deep);
    background: var(--brand-tint);
    padding: 6px 12px;
    border-radius: var(--r-pill);
}

.m-h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.1;  font-weight: 800; letter-spacing: -.02em; }
.m-h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.18; font-weight: 750; letter-spacing: -.015em; }
.m-h3 { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.3;  font-weight: 700; }

.m-lead  { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-soft); }
.m-note  { font-size: 14px; color: var(--muted); }
.m-tiny  { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

.m-stack > * + * { margin-top: 14px; }
.m-stack-lg > * + * { margin-top: 26px; }

.m-band { padding-block: clamp(44px, 7vw, 84px); }
.m-band--tint    { background: var(--surface-alt); }
.m-band--surface { background: var(--surface); }
.m-band--ink     { background: var(--ink); color: #eef3f0; }
.m-band--ink .m-h2 { color: #fff; }
.m-band--ink .m-lead { color: #b9c6c0; }

.m-band__head { max-width: 620px; margin-bottom: clamp(24px, 4vw, 44px); }
.m-band__head .m-lead { margin-top: 10px; }

/* Кнопки */

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-weight: 650;
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .1s ease, color .18s ease;
}
.m-btn:active { transform: translateY(1px); }

.m-btn--primary { background: var(--brand); color: #fff; }
.m-btn--primary:hover { background: var(--brand-deep); color: #fff; }

.m-btn--ghost { background: transparent; color: var(--brand-deep); border-color: var(--line); }
.m-btn--ghost:hover { border-color: var(--brand); background: var(--brand-tint); }

.m-btn--quiet { background: var(--surface-alt); color: var(--ink); }
.m-btn--quiet:hover { background: var(--line-soft); }

.m-btn--wide { width: 100%; }
.m-btn--sm { padding: 10px 18px; font-size: 14px; }

.m-btn[disabled], .m-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

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

.m-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 30px);
    box-shadow: var(--shadow-low);
}
.m-card--flat { box-shadow: none; }
.m-card--pad-sm { padding: 18px; }

.m-grid { display: grid; gap: var(--gap); }
.m-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- 4. Шапка ---------------------------------------------------------- */

.m-top {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(247, 244, 237, .88);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.m-top__row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.m-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.m-mark__glyph { width: 34px; height: 34px; flex: none; }
.m-mark__word  { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }

.m-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.m-menu__link {
    padding: 9px 14px;
    border-radius: var(--r-pill);
    font-size: 15px;
    font-weight: 550;
    color: var(--ink-soft);
    text-decoration: none;
}
.m-menu__link:hover { background: var(--surface-alt); color: var(--ink); }
.m-menu__link[aria-current="page"] { background: var(--brand-tint); color: var(--brand-deep); }

.m-burger {
    display: none;
    margin-left: auto;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    align-items: center; justify-content: center;
}
.m-burger span {
    display: block; width: 18px; height: 2px; background: var(--ink);
    box-shadow: 0 -6px 0 var(--ink), 0 6px 0 var(--ink);
}

/* --- 5. Первый экран --------------------------------------------------- */

.m-hero { padding-block: clamp(34px, 6vw, 70px) clamp(30px, 5vw, 60px); }

.m-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(26px, 4vw, 54px);
    align-items: start;
}

.m-hero__copy > * + * { margin-top: 18px; }
.m-hero__title strong { color: var(--brand); font-weight: 800; }

.m-hero__pledges {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}
.m-pledge { display: flex; gap: 12px; align-items: flex-start; }
.m-pledge__icon {
    flex: none; width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--brand-tint); color: var(--brand-deep);
}
.m-pledge__title { display: block; font-weight: 650; font-size: 15.5px; }
.m-pledge__text  { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* Калькулятор */

.m-calc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-mid);
    padding: clamp(20px, 3vw, 28px);
}

.m-calc__row + .m-calc__row { margin-top: 24px; }

.m-calc__label {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    margin-bottom: 10px;
}
.m-calc__name { font-size: 14px; color: var(--muted); }
.m-calc__value { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }

.m-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px; border-radius: var(--r-pill);
    background: var(--line-soft);
    outline: none;
}
.m-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand); border: 4px solid #fff;
    box-shadow: var(--shadow-low); cursor: grab;
}
.m-slider::-moz-range-thumb {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand); border: 4px solid #fff;
    box-shadow: var(--shadow-low); cursor: grab;
}
.m-slider:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }

.m-calc__ends {
    display: flex; justify-content: space-between;
    margin-top: 8px; font-size: 12.5px; color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.m-calc__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.m-calc__price { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 14px; }

/* --- 6. Шаги, преимущества, статистика --------------------------------- */

.m-step { position: relative; padding-top: 8px; }
.m-step__num {
    font-family: var(--font-num);
    font-size: 13px; font-weight: 700; letter-spacing: .08em;
    color: var(--accent);
}
.m-step__line { height: 2px; background: var(--line); margin: 12px 0 16px; position: relative; }
.m-step__line::before {
    content: ""; position: absolute; inset: 0 auto 0 0;
    width: 26px; background: var(--accent); border-radius: var(--r-pill);
}
.m-step__title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.m-step__text  { font-size: 14.5px; color: var(--muted); }

.m-perk__icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--accent-tint); color: #8a5c14;
    margin-bottom: 14px;
}
.m-perk__title { font-weight: 700; font-size: 16.5px; margin-bottom: 6px; }
.m-perk__text  { font-size: 14.5px; color: var(--muted); }

.m-figure { text-align: left; }
.m-figure__value {
    font-size: clamp(28px, 4vw, 40px); font-weight: 800;
    letter-spacing: -.02em; color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.m-figure__label { font-size: 14.5px; color: #b9c6c0; margin-top: 4px; }

/* --- 7. Отзывы --------------------------------------------------------- */

.m-quotes {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr);
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.m-quote { scroll-snap-align: start; }
.m-quote__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.m-quote__badge {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand); color: #fff;
    font-weight: 700; font-size: 17px;
}
.m-quote__name { font-weight: 650; }
.m-quote__city { font-size: 13px; color: var(--muted); }
.m-quote__text { font-size: 15px; color: var(--ink-soft); }

/* --- 8. Формы ---------------------------------------------------------- */

.m-form { display: grid; gap: 18px; }

.m-field { display: block; }
.m-field__label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.m-field__input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.m-field__input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
.m-field__input::placeholder { color: #a9b3ae; }
.m-field__hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.m-field.is-bad .m-field__input { border-color: var(--danger); background: var(--danger-tint); }
.m-field__error {
    display: none;
    font-size: 12.5px; color: var(--danger); margin-top: 6px;
}
.m-field.is-bad .m-field__error { display: block; }

textarea.m-field__input { min-height: 130px; resize: vertical; }

/* Согласия */

.m-consents { display: grid; gap: 12px; }

.m-consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
    cursor: pointer;
}
.m-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.m-consent__box {
    width: 22px; height: 22px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    display: grid; place-items: center;
    transition: background .15s ease, border-color .15s ease;
}
.m-consent__box::after {
    content: "";
    width: 11px; height: 6px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(.4);
    opacity: 0; transition: opacity .12s ease, transform .12s ease;
}
.m-consent input:checked + .m-consent__box { background: var(--brand); border-color: var(--brand); }
.m-consent input:checked + .m-consent__box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.m-consent input:focus-visible + .m-consent__box { box-shadow: 0 0 0 3px var(--brand-tint); }
.m-consent.is-bad .m-consent__box { border-color: var(--danger); background: var(--danger-tint); }

/* --- 9. Мастер заявки -------------------------------------------------- */

.m-flow { padding-block: clamp(26px, 4vw, 46px) clamp(40px, 6vw, 70px); }

.m-summary {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px 18px;
    margin-bottom: 22px;
}
.m-summary__cell { display: grid; gap: 1px; }
.m-summary__key { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.m-summary__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-summary__sep { width: 1px; align-self: stretch; background: var(--line-soft); }
.m-summary__edit {
    margin-left: auto;
    background: none; border: 0;
    color: var(--brand-deep); font-weight: 600; font-size: 14px;
    text-decoration: underline; text-underline-offset: 3px;
}

.m-progress { margin-bottom: 24px; }
.m-progress__steps { display: flex; gap: 22px; margin-bottom: 12px; }
.m-progress__step { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.m-progress__step[data-state="on"] { color: var(--ink); font-weight: 650; }
.m-progress__dot {
    width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 700;
    background: var(--surface-alt); color: var(--muted);
}
.m-progress__step[data-state="on"] .m-progress__dot { background: var(--brand); color: #fff; }
.m-progress__bar { height: 4px; background: var(--line-soft); border-radius: var(--r-pill); overflow: hidden; }
.m-progress__fill { height: 100%; background: var(--brand); border-radius: inherit; transition: width .35s ease; }

.m-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.m-actions .m-btn--primary { flex: 1; }

/* Экран обработки */

.m-working { text-align: center; padding: clamp(30px, 6vw, 60px) 0; }
.m-working__ring {
    width: 62px; height: 62px; margin: 0 auto 20px;
    border-radius: 50%;
    border: 4px solid var(--brand-tint);
    border-top-color: var(--brand);
    animation: m-spin .9s linear infinite;
}
@keyframes m-spin { to { transform: rotate(360deg); } }

.m-working__bar { height: 5px; background: var(--line-soft); border-radius: var(--r-pill); overflow: hidden; margin-top: 22px; }
.m-working__bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 5.5s linear; }

.m-verdict { text-align: center; }
.m-verdict__seal {
    width: 58px; height: 58px; margin: 0 auto 16px;
    border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-tint); color: var(--brand-deep);
}

/* Форма карты */

.m-pay {
    max-width: 360px; margin: 24px auto 0;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px; background: var(--surface);
}
.m-pay__title { font-weight: 700; margin-bottom: 16px; }
.m-pay__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-pay__stub {
    margin-top: 14px; padding: 10px 12px;
    background: var(--accent-tint); border-radius: var(--r-sm);
    font-size: 12px; color: #8a5c14;
}
.m-pay__skip { display: block; text-align: center; margin-top: 16px; font-size: 14px; }

/* --- 10. Витрина ------------------------------------------------------- */

.m-deck { display: grid; gap: 16px; }

.m-offer {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 18px; align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-low);
}
.m-offer__logo {
    width: 64px; height: 64px; border-radius: var(--r-md);
    display: grid; place-items: center;
    font-weight: 800; font-size: 20px; color: #fff;
    background: var(--brand);
}
.m-offer__name { font-weight: 700; font-size: 17px; }
.m-offer__text { font-size: 14px; color: var(--muted); margin-top: 3px; }
.m-offer__facts { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.m-offer__fact { font-size: 13px; }
.m-offer__fact b { font-variant-numeric: tabular-nums; }
.m-offer__side { display: grid; gap: 8px; justify-items: end; }

.m-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 650;
    padding: 5px 11px; border-radius: var(--r-pill);
    background: var(--brand-tint); color: var(--brand-deep);
}

.m-countdown {
    display: inline-flex; align-items: baseline; gap: 8px;
    font-size: 14px; color: var(--muted);
}
.m-countdown b { font-family: var(--font-num); font-size: 17px; color: var(--ink); }

/* --- 11. Аккордеон, документы ------------------------------------------ */

.m-ask { border-bottom: 1px solid var(--line); }
.m-ask__q {
    width: 100%; text-align: left;
    display: flex; align-items: center; gap: 16px;
    padding: 18px 0; background: none; border: 0;
    font-size: 16.5px; font-weight: 650; color: var(--ink);
}
.m-ask__sign { margin-left: auto; flex: none; width: 20px; height: 20px; position: relative; }
.m-ask__sign::before, .m-ask__sign::after {
    content: ""; position: absolute; inset: 50% 0 auto 0;
    height: 2px; background: var(--brand); border-radius: 2px;
    transition: transform .2s ease;
}
.m-ask__sign::after { transform: rotate(90deg); }
.m-ask[open] .m-ask__sign::after { transform: rotate(0); }
.m-ask__a { padding-bottom: 20px; font-size: 15px; color: var(--ink-soft); max-width: 68ch; }

.m-docs { display: grid; gap: 10px; }
.m-doc-link {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); text-decoration: none; color: var(--ink);
}
.m-doc-link:hover { border-color: var(--brand); background: var(--brand-tint); }
.m-doc-link__arrow { margin-left: auto; color: var(--brand); }

.m-legal { max-width: 78ch; }
.m-legal__meta {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    font-size: 13px; color: var(--muted);
    padding-bottom: 18px; margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}
.m-legal__intro { font-size: 17px; color: var(--ink-soft); margin-bottom: 30px; }
.m-legal__section + .m-legal__section { margin-top: 34px; }
.m-legal__section h2 {
    font-size: 19px; font-weight: 750; margin-bottom: 14px;
    padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.m-legal__clauses { counter-reset: none; }
.m-legal__clause {
    display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px;
    font-size: 15px; color: var(--ink-soft);
}
.m-legal__clause + .m-legal__clause { margin-top: 12px; }
.m-legal__no { font-family: var(--font-num); font-size: 13px; color: var(--muted); padding-top: 3px; }
.m-legal__breakdown { margin: 10px 0 0; display: grid; gap: 6px; }
.m-legal__breakdown li { display: flex; gap: 10px; font-size: 14.5px; }
.m-legal__breakdown b { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Реквизиты оператора */

.m-requisites {
    margin-top: 38px;
    padding: 24px 26px;
    background: var(--surface-alt);
    border-radius: var(--r-lg);
}
.m-requisites__title { font-size: 16px; font-weight: 750; margin-bottom: 16px; }
.m-requisites__list { margin: 0; display: grid; gap: 9px; }
.m-requisites__row {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 14px;
    font-size: 14.5px;
}
.m-requisites__row dt { color: var(--muted); }
.m-requisites__row dd { margin: 0; font-weight: 550; }

@media (max-width: 620px) {
    .m-requisites__row { grid-template-columns: minmax(0, 1fr); gap: 1px; }
    .m-requisites__row dt { font-size: 12.5px; }
}

/* --- 12. Оповещения ---------------------------------------------------- */

.m-alert {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 18px; border-radius: var(--r-md);
    font-size: 15px;
}
.m-alert--ok   { background: var(--brand-tint); color: #0a4b3d; }
.m-alert--bad  { background: var(--danger-tint); color: #7d2b22; }
.m-alert--warn { background: var(--accent-tint); color: #7a5011; }
.m-alert__icon { flex: none; margin-top: 2px; }

/* --- 13. Модальное окно ------------------------------------------------ */

.m-modal { border: 0; padding: 0; background: transparent; max-width: 440px; width: calc(100% - 32px); }
.m-modal::backdrop { background: rgba(18, 33, 28, .55); backdrop-filter: blur(3px); }
.m-modal__body {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: 28px;
    box-shadow: var(--shadow-high);
}
.m-modal__title { font-size: 20px; font-weight: 750; margin-bottom: 10px; }
.m-modal__text { font-size: 15px; color: var(--ink-soft); }
.m-modal__foot { display: grid; gap: 10px; margin-top: 22px; }

.m-terms-list { display: grid; gap: 8px; margin-top: 14px; font-size: 14px; }

/* --- 14. Подвал -------------------------------------------------------- */

.m-foot { background: var(--ink); color: #a9b8b1; padding-block: clamp(38px, 5vw, 60px) 34px; }
.m-foot a { color: #d8e3de; }
.m-foot a:hover { color: #fff; }

.m-foot__top {
    display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center;
    padding-bottom: 26px; margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.m-foot__mark { color: #fff; }
.m-foot__mark .m-mark__word { color: #fff; }
.m-foot__age {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px;
}
.m-foot__age i {
    display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid #6f817a; color: #fff;
    font-style: normal; font-weight: 700; font-size: 13px;
}
.m-foot__schemes { display: flex; gap: 12px; margin-left: auto; align-items: center; }
.m-foot__schemes svg { height: 24px; width: auto; opacity: .85; }

.m-foot__prose { font-size: 13px; line-height: 1.65; display: grid; gap: 14px; max-width: 95ch; }
.m-foot__prose h3 { font-size: 14px; color: #e6efeb; margin-top: 12px; }
.m-foot__prose ul { display: grid; gap: 4px; padding-left: 18px; list-style: disc; }
.m-foot__copy { margin-top: 28px; font-size: 12.5px; color: #7d8f88; }

/* --- 15. Плашка cookie ------------------------------------------------- */

.m-cookie {
    position: fixed; inset: auto 16px 16px; z-index: 90;
    max-width: 720px; margin-inline: auto;
    display: none;
    gap: 16px; align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-high);
    font-size: 13.5px;
}
.m-cookie[data-open="1"] { display: flex; animation: m-rise .35s ease both; }
@keyframes m-rise { from { transform: translateY(120%); opacity: 0; } }
.m-cookie__actions { margin-left: auto; display: flex; gap: 8px; }
.m-cookie__actions .m-btn { white-space: nowrap; }

/* --- 16. Адаптив ------------------------------------------------------- */

@media (max-width: 980px) {
    .m-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .m-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .m-menu {
        position: fixed; inset: 68px 0 auto;
        flex-direction: column; align-items: stretch;
        gap: 2px; padding: 14px 18px 22px;
        background: var(--canvas);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-mid);
        display: none;
    }
    .m-menu[data-open="1"] { display: flex; }
    .m-menu__link { padding: 13px 14px; font-size: 16px; }
    .m-burger { display: flex; }

    .m-grid--2, .m-grid--3, .m-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .m-offer { grid-template-columns: 52px minmax(0, 1fr); }
    .m-offer__logo { width: 52px; height: 52px; font-size: 17px; }
    .m-offer__side { grid-column: 1 / -1; justify-items: stretch; }
    .m-legal__clause { grid-template-columns: 42px minmax(0, 1fr); }
    .m-summary { gap: 12px; }
    .m-summary__sep { display: none; }
    .m-cookie { flex-direction: column; align-items: stretch; }
    .m-cookie__actions { margin-left: 0; }
}

@media (max-width: 420px) {
    .m-pay__pair { grid-template-columns: 1fr; }
    .m-actions { flex-wrap: wrap; }
}

/* --- 17. Печать -------------------------------------------------------- */

@media print {
    .m-top, .m-foot, .m-cookie, .m-btn { display: none !important; }
    body { background: #fff; }
    .m-legal { max-width: none; }
}
