/* ==========================================================================
   Мебельные технологии — лендинг гостиничной мебели
   Макет: hotel-mebel.pen (Desktop 1920 — основной, Mobile 390).
   Сетка: контейнер 1680, поля 120 (desktop) / 20 (mobile).
   Брейкпоинты: < 768 — телефон, 768–1199 — планшет, ≥ 1200 — десктоп.
   ========================================================================== */

:root {
    /* Цвета (переменные макета mt-*) */
    --ink: #202724;
    --muted: #66716b;
    --accent: #b34f35;
    --accent-hover: #9a4129;
    --accent-tint: #f6eeea;
    --dark: #1d2924;
    --dark-deep: #17221c;
    --surface: #f3f5f3;
    --border: #d9deda;
    --border-strong: #868f8a;
    --white: #ffffff;
    --on-dark: #e1e6e3;
    --on-dark-soft: #c8d2cd;
    --on-dark-muted: #aec0b5;
    --divider-dark: #405147;
    --error: #af352e;
    --success: #456c54;

    /* Шрифты */
    --font-heading: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Golos Text", "Helvetica Neue", Arial, sans-serif;

    /* Плавная шкала: значение на 390 px → значение на 1920 px */
    --fs-h1: clamp(39px, 29.57px + 2.418vw, 76px);
    --fs-h2: clamp(34px, 28.39px + 1.438vw, 56px);
    --fs-display: clamp(52px, 47.92px + 1.046vw, 68px);
    --fs-stat: clamp(28px, 24.94px + 0.784vw, 40px);
    --fs-result: clamp(34px, 30.94px + 0.784vw, 46px);
    --fs-h3-l: clamp(28px, 25.96px + 0.523vw, 36px);
    --fs-h3: clamp(23px, 21.22px + 0.4575vw, 30px);
    --fs-h4: clamp(23px, 22.24px + 0.196vw, 26px);
    --fs-step: clamp(22px, 20.98px + 0.2614vw, 26px);
    --fs-price-l: clamp(25px, 23.22px + 0.4575vw, 32px);
    --fs-phone-l: clamp(28px, 26.98px + 0.2614vw, 32px);
    --fs-lead: clamp(17px, 15.73px + 0.3268vw, 22px);
    --fs-faq: clamp(16px, 14.47px + 0.392vw, 22px);
    --fs-desc: clamp(16px, 14.98px + 0.2614vw, 20px);
    --fs-text: clamp(16px, 15.49px + 0.1307vw, 18px);

    /* Отступы */
    --gutter: clamp(20px, 6.536vw - 5.49px, 120px);
    --container: 1680px;
    --section-pad: clamp(56px, 43.76px + 3.137vw, 104px);
    --section-gap: clamp(28px, 22.9px + 1.307vw, 48px);
    --col-gap: clamp(48px, 6.25vw, 120px);
    --radius: 4px;
    --control-h: 61px;

    --header-h: 80px;
    --sticky-h: 101px;
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */

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

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

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.on-dark :focus-visible,
.hero :focus-visible {
    outline-color: var(--white);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.icon {
    display: inline-block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.br-desktop {
    display: none;
}

@media (min-width: 1200px) {
    .br-desktop {
        display: inline;
    }
}

/* --------------------------------------------------------------------------
   Типографика блоков
   -------------------------------------------------------------------------- */

.eyebrow {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.on-dark .eyebrow {
    color: var(--on-dark-muted);
}

.h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.0286em;
}

.on-dark .h2 {
    color: var(--white);
}

.section {
    padding-block: var(--section-pad);
}

.section--surface {
    background: var(--surface);
}

.section--dark {
    background: var(--dark);
    color: var(--white);
}

.section__inner {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}

@media (min-width: 1200px) {
    .section__inner--tight {
        gap: 32px;
    }
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-head__desc {
    max-width: 600px;
    color: var(--muted);
    font-size: var(--fs-desc);
}

.on-dark .section-head__desc {
    color: var(--on-dark-soft);
}

.section-cta {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .eyebrow {
        letter-spacing: 1.5px;
    }
}

@media (min-width: 1200px) {
    .section-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
        align-items: end;
        column-gap: 80px;
    }

    .section-head--wide-desc {
        column-gap: 100px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 504px);
    }

    .section-head__desc {
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   Кнопки и ссылки
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--control-h);
    padding: 17px 23px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.header .btn,
.sticky-bar .btn,
.collection__actions .btn {
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn--secondary {
    border-color: var(--border);
    color: var(--ink);
}

.btn--secondary:hover {
    background: var(--surface);
    border-color: var(--border-strong);
}

.btn--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.btn--light:hover {
    background: var(--surface);
    border-color: var(--surface);
}

.btn--block {
    width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    background: var(--border);
    border-color: var(--border);
    color: var(--muted);
    cursor: not-allowed;
}

.btn--secondary:disabled {
    background: transparent;
}

.btn.is-loading {
    cursor: progress;
    pointer-events: none;
}

.btn.is-loading .icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    text-underline-offset: 4px;
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow__mark {
    font-size: 1.05em;
    line-height: 1;
}

/* Телефон: область нажатия текстовых ссылок не меньше 44 px по высоте.
   Расширяем невидимым слоем, чтобы не менять отступы макета. */
@media (max-width: 767px) {
    .header__logo,
    .hero__link,
    .project__title a,
    .faq__phone,
    .faq-item__more,
    .contact__phone,
    .contact__email,
    .contact__links a,
    .mobile-menu .link-arrow {
        position: relative;
    }

    .header__logo::after,
    .hero__link::after,
    .project__title a::after,
    .faq__phone::after,
    .faq-item__more::after,
    .contact__phone::after,
    .contact__email::after,
    .contact__links a::after,
    .mobile-menu .link-arrow::after {
        content: "";
        position: absolute;
        inset: -11px -6px;
    }
}

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.header {
    position: relative;
    z-index: 30;
    background: var(--white);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-h);
    padding-right: 10px;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    width: 170px;
    height: 34px;
}

.header__nav {
    display: none;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header__phone,
.header__tg,
.header__cta {
    display: none;
}

.header__phone {
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
}

.header__tg {
    color: var(--ink);
}

.header__tg:hover,
.header__phone:hover,
.header__nav a:hover {
    color: var(--accent);
}

.header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
}

.header__icon-btn .icon {
    width: 24px;
    height: 24px;
}

.header__call .icon {
    width: 22px;
    height: 22px;
}

.header__burger .icon-close {
    display: none;
}

.header__burger[aria-expanded="true"] .icon-open {
    display: none;
}

.header__burger[aria-expanded="true"] .icon-close {
    display: inline-block;
}

@media (min-width: 768px) {
    .header__inner {
        padding-right: var(--gutter);
    }

    .header__actions {
        gap: 20px;
    }

    .header__phone,
    .header__cta {
        display: inline-flex;
    }

    .header__call {
        display: none;
    }
}

@media (min-width: 1280px) {
    :root {
        --header-h: 112px;
    }

    .header__logo img {
        width: 213px;
        height: 42px;
    }

    .header__nav {
        display: flex;
        gap: 20px;
        font-size: 17px;
        white-space: nowrap;
    }

    .header__burger {
        display: none;
    }
}

@media (min-width: 1440px) {
    .header__nav {
        gap: 36px;
    }

    .header__tg {
        display: inline-flex;
    }

    .header__actions {
        gap: 28px;
    }
}

/* Мобильное меню (в макете не нарисовано — собрано из элементов шапки) */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 20px calc(32px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--white);
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-h);
    margin-inline: -20px;
    padding-inline: 20px 10px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu__head img {
    width: 170px;
    height: 34px;
}

.mobile-menu__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.mobile-menu__nav .icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
}

.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu__phone {
    font-size: 23px;
    font-weight: 500;
}

.mobile-menu__note {
    color: var(--muted);
}

@media (min-width: 768px) {
    .mobile-menu {
        padding-inline: var(--gutter);
    }

    .mobile-menu__head {
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
    }
}

@media (min-width: 1280px) {
    .mobile-menu {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   S1 — Первый экран
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--white);
    background: var(--dark-deep);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(20, 34, 27, 0.8);
}

.hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding-block: 40px 28px;
}

.hero__offer {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 970px;
}

.hero__eyebrow {
    color: var(--on-dark);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.0316em;
}

.hero__price {
    font-size: var(--fs-price-l);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.hero__lead {
    color: var(--on-dark);
    font-size: var(--fs-lead);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero__actions .btn {
    width: 100%;
}

.hero__link {
    font-size: 16px;
}

.hero__bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero__proofs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--on-dark);
}

.hero__proofs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__proofs .icon {
    width: 18px;
    height: 18px;
}

.hero__caption {
    color: var(--on-dark);
    font-size: 12px;
}

@media (min-width: 768px) {
    .hero__inner {
        min-height: 640px;
        padding-block: 64px 40px;
    }

    .hero__eyebrow {
        font-size: 14px;
        letter-spacing: 1.5px;
    }

    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero__actions .btn {
        width: auto;
    }

    .hero__link {
        font-size: 18px;
    }

    .hero__price {
        letter-spacing: 0;
    }

    .hero__bottom {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .hero__proofs {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 32px;
    }

    .hero__caption {
        padding: 5px 10px;
        border-radius: var(--radius);
        background: rgba(20, 34, 27, 0.8);
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .hero::after {
        background: linear-gradient(90deg, rgba(20, 34, 27, 0.96) 0%, rgba(20, 34, 27, 0.85) 40%, rgba(20, 34, 27, 0.15) 100%);
    }

    .hero__inner {
        min-height: clamp(700px, 42.71vw, 820px);
        padding-block: 68px 40px;
    }

    .hero__title {
        line-height: 1.08;
    }
}

/* --------------------------------------------------------------------------
   S2 — Факты и клиенты
   -------------------------------------------------------------------------- */

.facts {
    padding-block: 56px;
}

.facts__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.facts__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.facts__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.facts__num {
    font-family: var(--font-heading);
    font-size: var(--fs-stat);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.facts__label {
    color: var(--muted);
}

/* Линии-разделители рисуются внутри блока (как в макете) и не добавляют высоту */
.clients {
    padding-top: 30px;
    box-shadow: inset 0 1px 0 var(--border);
}

.clients__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
}

.clients__list li:last-child {
    grid-column: 1 / -1;
}

.clients__list img {
    width: 100%;
    height: 45px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .facts__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 40px;
        text-align: center;
    }

    .clients__list {
        display: flex;
        justify-content: space-between;
        gap: 24px;
    }

    .clients__list li {
        flex: 1 1 0;
        max-width: 285px;
    }

    .clients__list img {
        height: auto;
        aspect-ratio: 285 / 105;
    }
}

@media (min-width: 1200px) {
    .facts {
        padding-block: 48px;
    }

    .facts__inner {
        gap: 38px;
    }

    .clients__list {
        gap: 40px;
    }
}

/* Шесть фактов в строку — только когда хватает ширины; размер цифр растёт вместе с экраном */
@media (min-width: 1440px) {
    .facts__list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 40px;
    }

    .facts__num {
        font-size: min(40px, 2.05vw);
    }
}

/* --------------------------------------------------------------------------
   S3 — Принципы
   -------------------------------------------------------------------------- */

.principles {
    display: grid;
    gap: 28px;
}

.principle {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 24px;
    box-shadow: inset 0 1px 0 var(--border);
}

.principle .icon {
    width: 30px;
    height: 30px;
    color: var(--accent);
}

.principle__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.principle__text {
    color: var(--muted);
    font-size: var(--fs-text);
}

.principles-cta .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 56px;
    }

    .principles-cta {
        padding-top: 28px;
    }

    .principles-cta .btn {
        width: auto;
    }
}

@media (min-width: 1200px) {
    .principles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   S4 — Коллекции
   -------------------------------------------------------------------------- */

.catalog-filter {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.segments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.segment {
    min-height: 47px;
    padding: 12px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.segment:hover {
    background: var(--border);
}

.segment[aria-pressed="true"] {
    background: var(--dark);
    color: var(--white);
}

.catalog-filter__note {
    color: var(--muted);
}

.collections {
    display: grid;
    gap: 40px 24px;
}

.collection {
    container: collection / inline-size;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.collection__img {
    aspect-ratio: 350 / 220;
    overflow: hidden;
    background: var(--surface);
}

.collection__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.collection__name {
    font-family: var(--font-heading);
    font-size: var(--fs-h3-l);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.044em;
}

.collection__segment {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.collection__price {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.collection__desc {
    color: var(--muted);
    font-size: 17px;
}

.collection__items {
    color: var(--muted);
}

.collection__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
}

.collection__actions .btn {
    padding-inline: 15px;
    gap: 12px;
}

.btn-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--control-h);
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Кнопки карточки подстраиваются под ширину самой карточки, а не экрана */
@container collection (min-width: 420px) {
    .collection__actions .btn {
        padding-inline: 23px;
        gap: 24px;
    }

    .btn-price {
        gap: 10px;
    }
}

@container collection (max-width: 344px) {
    .btn-price .icon-dl {
        display: none;
    }
}

.btn-price:hover {
    background: var(--surface);
    border-color: var(--border-strong);
}

.btn-price .icon {
    width: 18px;
    height: 18px;
}

.btn-price .icon-pdf {
    width: 28px;
    height: 28px;
}

.collection-help {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 24px;
    background: var(--dark);
    color: var(--white);
}

.collection-help__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.collection-help .icon-plan {
    width: 44px;
    height: 44px;
    color: var(--on-dark-muted);
}

.collection-help__title {
    font-family: var(--font-heading);
    font-size: var(--fs-stat);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.collection-help__text {
    color: var(--on-dark-soft);
    font-size: var(--fs-desc);
}

@media (min-width: 768px) {
    .segments {
        gap: 12px;
    }

    .collections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 24px;
    }

    .collection__img {
        aspect-ratio: 544 / 315;
    }

    .collection-help {
        padding: 40px;
        gap: 70px;
    }
}

@media (min-width: 1200px) {
    #collections {
        padding-bottom: 64px;
    }

    .collections {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   S5 — Один подрядчик
   -------------------------------------------------------------------------- */

.process {
    display: grid;
    gap: 28px;
}

.process__intro {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.process__text {
    color: var(--muted);
    font-size: var(--fs-desc);
}

.process__photo {
    aspect-ratio: 350 / 220;
    overflow: hidden;
}

.process__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process__intro .btn {
    width: 100%;
}

.steps__item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) 18px;
    gap: 12px;
    padding-block: 22px;
    box-shadow: inset 0 -1px 0 var(--border);
}

.steps__num {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.steps__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.steps__title {
    font-family: var(--font-heading);
    font-size: var(--fs-step);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.6px;
}

.steps__text {
    color: var(--muted);
    font-size: var(--fs-text);
}

.steps__item .icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

@media (min-width: 768px) {
    .process__photo {
        aspect-ratio: 650 / 270;
    }

    .process__intro .btn {
        width: auto;
        align-self: flex-start;
    }

    .steps__item {
        grid-template-columns: 42px minmax(0, 1fr) 22px;
        gap: 28px;
    }

    .steps__num {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .steps__item .icon {
        width: 22px;
        height: 22px;
        margin-top: 0;
    }
}

/* Планшет: фото справа от текста — исходник фото небольшой, на всю ширину он размыт */
@media (min-width: 768px) and (max-width: 1199px) {
    .process__intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "eyebrow photo"
            "title photo"
            "text photo"
            "cta photo";
        grid-template-rows: auto auto auto 1fr;
        gap: 28px 40px;
    }

    .process__intro > .eyebrow {
        grid-area: eyebrow;
    }

    .process__intro > .h2 {
        grid-area: title;
    }

    .process__intro > .process__text {
        grid-area: text;
    }

    .process__intro > .btn {
        grid-area: cta;
        align-self: end;
        justify-self: start;
    }

    .process__photo {
        grid-area: photo;
        aspect-ratio: auto;
        min-height: 300px;
    }
}

@media (min-width: 1200px) {
    .process {
        grid-template-columns: minmax(0, 650fr) minmax(0, 910fr);
        gap: var(--col-gap);
        align-items: start;
    }
}

/* --------------------------------------------------------------------------
   S6 — Расчёт стоимости (квиз)
   -------------------------------------------------------------------------- */

.calc {
    display: grid;
    gap: 28px;
}

.quiz {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
}

.quiz__progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.quiz__progress span {
    height: 4px;
    background: var(--border);
    transition: background-color 0.2s ease;
}

.quiz__progress span.is-done {
    background: var(--accent);
}

.quiz__step {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.quiz__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.quiz__counter {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.8px;
}

.quiz__question {
    font-family: var(--font-heading);
    font-size: var(--fs-h3-l);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.032em;
}

/* Плитки шага 1 */
.tiles {
    display: grid;
    gap: 12px;
}

.tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 17px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tile input,
.option input,
.check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tile .icon {
    color: var(--muted);
}

.tile:hover {
    border-color: var(--border-strong);
}

.tile:has(input:checked) {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
    background: var(--accent-tint);
    font-weight: 500;
}

.tile:has(input:checked) .icon {
    color: var(--accent);
}

.tile:has(input:focus-visible),
.option:has(input:focus-visible),
.check:has(input:focus-visible) .check__box {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

/* Варианты-радиокнопки шагов 2–4 */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 57px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 17px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.option:hover {
    border-color: var(--border-strong);
}

.option .icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
}

.option .icon-on {
    display: none;
}

.option:has(input:checked) {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
    background: var(--accent-tint);
}

.option:has(input:checked) .icon-off {
    display: none;
}

.option:has(input:checked) .icon-on {
    display: inline-block;
    color: var(--accent);
}

.quiz__field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz__field-label {
    color: var(--muted);
    font-size: 14px;
}

.quiz__hint {
    color: var(--muted);
    font-size: var(--fs-text);
}

.quiz__subtitle {
    font-size: 18px;
    font-weight: 500;
}

.quiz__checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz__note {
    color: var(--muted);
    font-size: 14px;
}

.quiz__nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quiz__nav-text {
    color: var(--muted);
    font-size: 14px;
}

.quiz__nav .btn {
    width: 100%;
}

.quiz__back {
    align-self: flex-start;
    min-height: 44px;
    color: var(--muted);
    font-size: 16px;
}

.quiz__back:hover {
    color: var(--ink);
}

.quiz__nav--steps {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.quiz__nav--steps .btn {
    width: auto;
}

/* Результат */
.quiz.is-result {
    padding: 24px;
    box-shadow: inset 0 0 0 1px var(--divider-dark);
    background: transparent;
    color: var(--white);
}

.result {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.result__label {
    color: var(--on-dark-muted);
}

.result__sum {
    font-family: var(--font-heading);
    font-size: var(--fs-result);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.result__params {
    color: var(--on-dark-soft);
    font-size: 18px;
}

.result__rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-block: 24px;
    border-block: 1px solid var(--divider-dark);
}

.result__rows div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.result__rows dt {
    color: var(--on-dark-soft);
}

.result__rows dd {
    color: var(--white);
    text-align: right;
}

.result__note {
    color: var(--on-dark-muted);
}

.result__download {
    align-self: flex-start;
    color: var(--white);
    font-size: 17px;
    text-underline-offset: 4px;
}

.result__download:hover {
    text-decoration: underline;
}

.result__lead {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
}

.result__lead-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.result__restart {
    align-self: flex-start;
    color: var(--on-dark-muted);
    font-size: 16px;
}

.result__restart:hover {
    color: var(--white);
}

/* Что будет в расчёте */
.calc-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-block: 32px;
}

.calc-info > .icon {
    width: 40px;
    height: 40px;
    color: var(--on-dark-soft);
}

.calc-info__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.7px;
}

.calc-info__list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.calc-info__list li {
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: var(--on-dark);
    font-size: var(--fs-text);
}

.calc-info__num {
    width: 24px;
    color: var(--on-dark-muted);
    font-size: 16px;
}

.calc-info__note {
    color: var(--on-dark-muted);
}

@media (min-width: 600px) {
    .tiles {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }

    .tile {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
        min-height: 124px;
        padding: 20px;
    }

    .quiz__nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .quiz__nav-text {
        font-size: 16px;
    }

    .quiz__nav .btn {
        width: auto;
    }

    .quiz__nav--final {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .quiz__nav--final .btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .quiz {
        padding: 48px;
    }

    .quiz__step {
        gap: 32px;
        margin-top: 32px;
    }

    .quiz__counter {
        letter-spacing: 1.5px;
    }

    .quiz.is-result {
        padding: 36px;
    }

    .calc-info {
        gap: 32px;
    }

    .calc-info__list {
        gap: 32px;
    }

    .calc-info__list li {
        flex-direction: row;
    }
}

@media (min-width: 1200px) {
    .calc {
        grid-template-columns: minmax(0, 1120fr) minmax(0, 504fr);
        gap: 56px;
        align-items: start;
    }

    .tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 32px;
    }
}

/* --------------------------------------------------------------------------
   S7 — Портфолио
   -------------------------------------------------------------------------- */

.projects {
    display: grid;
    gap: 28px;
}

.project {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.project--main {
    gap: 20px;
}

.project__img {
    aspect-ratio: 350 / 220;
    overflow: hidden;
    background: var(--surface);
}

.project__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.6px;
}

.project__title a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.project__title a:hover {
    color: var(--accent);
}

.project__desc {
    color: var(--muted);
    font-size: 17px;
}

.project--main .project__desc {
    font-size: var(--fs-text);
}

.project--main .btn {
    width: 100%;
}

.projects__side {
    display: grid;
    gap: 28px;
}

@media (min-width: 768px) {
    .project--main .project__img {
        aspect-ratio: 1000 / 632;
    }

    .project--main .project__title {
        font-size: var(--fs-h3);
    }

    .project--main .btn {
        width: auto;
        align-self: flex-start;
    }

    .projects__side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .projects__side .project__img {
        aspect-ratio: 656 / 260;
    }
}

@media (min-width: 1200px) {
    .projects {
        grid-template-columns: minmax(0, 1000fr) minmax(0, 656fr);
        gap: 24px;
        align-items: start;
    }

    .projects__side {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --------------------------------------------------------------------------
   S8 — Решения под задачу
   -------------------------------------------------------------------------- */

.solutions {
    display: grid;
    gap: 28px;
}

.solution {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 28px;
    box-shadow: inset 0 1px 0 var(--border);
}

.solution__num {
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.solution__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.solution__sub {
    color: var(--muted);
    font-size: var(--fs-text);
}

.solution__list {
    font-size: 17px;
    line-height: 1.8;
}

.solutions-cta .btn {
    width: 100%;
}

@media (min-width: 768px) {
    .solutions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 56px;
    }

    .solutions-cta .btn {
        width: auto;
    }
}

@media (min-width: 1200px) {
    .solutions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   S9 — Производство
   -------------------------------------------------------------------------- */

.production {
    display: grid;
    gap: 28px;
}

.production__photo {
    aspect-ratio: 350 / 220;
    overflow: hidden;
}

.production__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.production__facts {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.production__area {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.production__num {
    font-family: var(--font-heading);
    font-size: var(--fs-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.production__num-label {
    color: var(--muted);
    font-size: var(--fs-text);
}

.production__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.production__item h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.production__item p {
    color: var(--muted);
    font-size: var(--fs-text);
}

@media (min-width: 768px) {
    .production {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 48px;
        align-items: center;
    }

    .production__photo {
        aspect-ratio: 1000 / 520;
    }

    .production__facts,
    .production__area {
        gap: 32px;
    }
}

@media (min-width: 1200px) {
    .production {
        grid-template-columns: minmax(0, 1000fr) minmax(0, 600fr);
        gap: 80px;
    }
}

/* --------------------------------------------------------------------------
   S10 — Документы
   -------------------------------------------------------------------------- */

.docs {
    display: grid;
    gap: 32px;
}

.doc__link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.doc__preview {
    display: block;
    padding: 10px;
    background: var(--white);
}

.doc__preview img {
    width: 100%;
    aspect-ratio: 92 / 145;
    object-fit: contain;
}

.doc__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.doc__title .icon {
    width: 20px;
    height: 20px;
}

.doc__link:hover .doc__title {
    color: var(--accent);
}

@media (min-width: 768px) {
    .docs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px 24px;
    }

    .doc__link {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .doc__preview {
        padding: 24px;
    }

    .doc__preview img {
        height: 245px;
        aspect-ratio: auto;
    }

    .doc__title {
        gap: 16px;
        font-size: 18px;
    }
}

@media (min-width: 1200px) {
    .docs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   S11 — Вопросы и ответы
   -------------------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 28px;
}

.faq__intro {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.faq__help {
    color: var(--muted);
    font-size: var(--fs-desc);
}

.faq__contact {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.faq__phone {
    font-size: var(--fs-h4);
    font-weight: 500;
}

.faq__phone:hover {
    color: var(--accent);
}

.faq__hours {
    color: var(--muted);
}

.faq-item {
    box-shadow: inset 0 -1px 0 var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 24px;
    font-size: var(--fs-faq);
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.faq-item[open] summary {
    padding-bottom: 18px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary .icon {
    width: 22px;
    height: 22px;
}

.faq-item .icon-minus {
    display: none;
    color: var(--accent);
}

.faq-item[open] .icon-plus {
    display: none;
}

.faq-item[open] .icon-minus {
    display: inline-block;
}

.faq-item__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 24px;
}

.faq-item__answer {
    color: var(--muted);
    font-size: var(--fs-text);
}

.faq-item__more {
    align-self: flex-start;
    color: var(--accent);
}

.faq-item__more:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (min-width: 768px) {
    .faq-item summary {
        gap: 32px;
    }
}

@media (min-width: 1200px) {
    .faq {
        grid-template-columns: minmax(0, 520fr) minmax(0, 1040fr);
        gap: var(--col-gap);
        align-items: start;
    }
}

/* --------------------------------------------------------------------------
   S12 — Обсудить проект и форма
   -------------------------------------------------------------------------- */

.contact {
    display: grid;
    gap: 28px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact__lead {
    color: var(--on-dark-soft);
    font-size: var(--fs-desc);
}

.contact__phone {
    font-size: var(--fs-phone-l);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.contact__email {
    font-size: var(--fs-desc);
}

.contact__phone:hover,
.contact__email:hover,
.contact__links a:hover {
    color: var(--on-dark-soft);
}

.contact__address {
    color: var(--on-dark-muted);
    font-size: var(--fs-text);
    font-style: normal;
}

.contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.contact__links a {
    font-size: 17px;
}

@media (min-width: 768px) {
    .contact__info {
        gap: 32px;
    }
}

@media (min-width: 1200px) {
    .contact {
        grid-template-columns: minmax(0, 680fr) minmax(0, 880fr);
        gap: var(--col-gap);
        align-items: start;
    }
}

/* Форма */
.form-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-form--compact {
    gap: 18px;
}

.lead-form__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3-l);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.032em;
}

.lead-form__desc {
    color: var(--muted);
    font-size: var(--fs-text);
}

.lead-form__grid {
    display: grid;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field__label {
    font-size: 14px;
    font-weight: 500;
}

.input {
    width: 100%;
    min-height: var(--control-h);
    padding: 17px 19px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 17px;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.input:focus {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
    outline: none;
}

.input:disabled {
    border-color: var(--border);
    background: var(--surface);
}

.input.is-invalid {
    border-color: var(--error);
}

.input.is-invalid:focus {
    box-shadow: inset 0 0 0 1px var(--error);
}

textarea.input {
    min-height: 100px;
    resize: vertical;
}

.select {
    position: relative;
}

.select select {
    appearance: none;
    padding-right: 48px;
    cursor: pointer;
}

.select select:invalid,
.select select.is-empty {
    color: var(--muted);
}

.select option {
    color: var(--ink);
}

.select .icon {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.field__error,
.form-error {
    color: var(--error);
    font-size: 14px;
}

.attach {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attach__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    min-height: 44px;
    color: var(--accent);
    cursor: pointer;
}

.attach__btn:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.attach__btn .icon,
.attach__file .icon {
    width: 18px;
    height: 18px;
}

.attach__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.attach__btn:has(+ .attach__input:focus-visible),
.attach__input:focus-visible + .attach__btn {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

.attach__file {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.attach__file > .icon {
    color: var(--accent);
}

.attach__size {
    color: var(--muted);
    font-size: 14px;
}

.attach__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -12px;
    color: var(--muted);
}

.attach__remove:hover {
    color: var(--ink);
}

/* Чекбокс: нажимается вся строка с подписью */
.check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
}

.check__box {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--muted);
    border-radius: 2px;
    background: var(--white);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.check__box .icon {
    position: absolute;
    inset: 2px;
    width: 14px;
    height: 14px;
    color: var(--white);
    opacity: 0;
}

.check input:checked + .check__box {
    border-color: var(--accent);
    background: var(--accent);
}

.check input:checked + .check__box .icon {
    opacity: 1;
}

.check.is-invalid .check__box {
    border: 2px solid var(--error);
}

.check--small {
    color: var(--muted);
    font-size: 14px;
}

.check--tiny {
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.check--small a,
.check--tiny a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.check--small a:hover,
.check--tiny a:hover {
    color: var(--ink);
}

/* Успешная отправка */
.success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.success > .icon {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.success__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.6px;
}

.success__text {
    color: var(--muted);
    font-size: var(--fs-desc);
}

.success__hours {
    color: var(--muted);
}

.success--compact {
    gap: 12px;
}

.success--compact > .icon {
    width: 32px;
    height: 32px;
}

.success--compact .success__text {
    font-size: 16px;
}

@media (min-width: 768px) {
    .form-card {
        padding: 48px;
    }

    .lead-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 20px;
    }

    .lead-form__grid .field--wide {
        grid-column: 1 / -1;
    }
}

/* На десктопе область нажатия 44 px не нужна — высота строки как в макете */
@media (min-width: 1200px) and (hover: hover) {
    .attach__btn {
        min-height: 0;
    }
}

/* --------------------------------------------------------------------------
   Футер
   -------------------------------------------------------------------------- */

.footer {
    padding-block: 56px;
    background: var(--dark-deep);
    color: var(--white);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer__top {
    display: grid;
    gap: 28px;
}

.footer__brand {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col-title {
    font-size: 16px;
    font-weight: 500;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    color: var(--on-dark-muted);
}

.footer__links li + li::before {
    content: "·";
    padding-inline: 6px;
}

.footer__links a:hover,
.footer__policy:hover {
    color: var(--white);
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 24px;
    box-shadow: inset 0 1px 0 var(--divider-dark);
    color: var(--on-dark-muted);
    font-size: 14px;
}

@media (min-width: 768px) {
    .footer__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 64px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        gap: 32px;
    }
}

@media (min-width: 1200px) {
    .footer {
        padding-block: 40px;
    }

    .footer__inner {
        gap: 32px;
    }

    .footer__top {
        grid-template-columns: minmax(0, 520px) minmax(0, 1fr) minmax(0, 1fr);
    }

    .footer__brand {
        grid-column: auto;
    }
}

/* --------------------------------------------------------------------------
   Закреплённые панели
   Появляются после первого экрана, скрываются у финальной формы.
   -------------------------------------------------------------------------- */

.sticky-bar {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    background: var(--white);
    transition: transform 0.25s ease, visibility 0.25s;
    visibility: hidden;
}

.sticky-bar.is-visible {
    transform: none;
    visibility: visible;
}

.sticky-bar--top {
    top: 0;
    display: none;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
}

.sticky-bar--top .sticky-bar__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: var(--sticky-h);
    padding-block: 20px;
}

.sticky-bar__brand {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.5px;
}

.sticky-bar__phone {
    font-size: 20px;
    white-space: nowrap;
}

.sticky-bar__phone:hover {
    color: var(--accent);
}

.sticky-bar--bottom {
    bottom: 0;
    display: flex;
    gap: 12px;
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    transform: translateY(100%);
}

.sticky-bar__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.sticky-bar__call .icon {
    width: 24px;
    height: 24px;
}

.sticky-bar--bottom .btn {
    flex: 1;
    min-height: 54px;
    padding: 15px 17px;
}

@media (min-width: 768px) {
    .sticky-bar--top {
        display: block;
    }

    .sticky-bar--bottom {
        display: none;
    }

    html {
        scroll-padding-top: var(--sticky-h);
    }
}

/* --------------------------------------------------------------------------
   Всплывающее окно — приглашение к квизу
   -------------------------------------------------------------------------- */

.popup {
    width: min(700px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
}

.popup::backdrop {
    background: rgba(23, 34, 28, 0.6);
}

.popup__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

.popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.popup__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -10px;
}

.popup__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3-l);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.028em;
}

.popup__text {
    color: var(--muted);
    font-size: var(--fs-desc);
}

.popup__dismiss {
    align-self: flex-start;
    min-height: 44px;
    color: var(--muted);
    font-size: 16px;
}

.popup__dismiss:hover {
    color: var(--ink);
}

@media (min-width: 768px) {
    .popup__inner {
        padding: 32px;
    }
}

/* --------------------------------------------------------------------------
   Доступность движения
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
