/* =========================================================================
   БЕЛЫЙ КВАДРАТ — дизайн-система
   Светлый премиум: воздух, тауп-акцент, Trajan Pro + Montserrat
   ========================================================================= */

/* ---------- Шрифты ---------- */
@font-face {
    font-family: 'Trajan Pro 3';
    src: url('../fonts/TrajanPro3-Regular.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-Light.ttf') format('truetype');    font-weight:300; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-Regular.ttf') format('truetype');  font-weight:400; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-Medium.ttf') format('truetype');   font-weight:500; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family:'Montserrat'; src:url('../fonts/Montserrat-Bold.ttf') format('truetype');     font-weight:700; font-display:swap; }

/* ---------- Палитра и токены ---------- */
:root {
    --bg:         #F8F8F8;   /* основной фон */
    --surface:    #FFFFFF;   /* карточки, формы */
    --accent:     #A89781;   /* тёплый тауп */
    --accent-dk:  #8E7D67;   /* тауп тёмнее для ховеров */
    --ink:        #20211B;   /* почти чёрный — заголовки */
    --text:       #524F48;   /* основной текст */
    --muted:      #8A867D;   /* приглушённый */
    --line:       #E4E1DA;   /* тонкие линии */
    --line-dk:    #CFC9BD;
    --dark:       #20211B;   /* тёмные зоны */
    --dark-soft:  #2B2C24;

    --serif: 'Trajan Pro 3', 'Times New Roman', serif;
    --sans:  'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --container: 1240px;
    --radius:    14px;
    --radius-sm: 8px;
    --shadow:    0 40px 80px -44px rgba(32,33,27,.20);
    --shadow-sm: 0 20px 44px -28px rgba(32,33,27,.16);
    --ease: cubic-bezier(.4,0,.2,1);
    --header-h: 84px;
}

/* ---------- Сброс / база ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(72px, 9.5vw, 148px) 0; }
.section--tight { padding: clamp(52px, 6.5vw, 96px) 0; }
.section--surface { background: var(--surface); }
.section--cream { background: var(--bg); }

/* ---------- Стекло (liquid-glass light: blur + saturate, без SVG-искажений) ---------- */
.glass {
    background: rgba(255,255,255,.58);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7);
}
.glass--dark {
    background: rgba(32,33,27,.42);
    border-color: rgba(255,255,255,.16);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass { background: rgba(255,255,255,.94); }
    .glass--dark { background: rgba(32,33,27,.88); }
}

.skip-link { position:absolute; left:-9999px; top:0; background:var(--ink); color:#fff; padding:10px 16px; z-index:200; }
.skip-link:focus { left:12px; top:12px; }
.hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }

/* ---------- Типографика ---------- */
h1,h2,h3,h4 { color: var(--ink); font-weight: 600; line-height: 1.18; }
.serif, .sec-head__title, .hero__title, .stat__num, .cta__title, .tariff__price, .quiz__title {
    font-family: var(--serif); font-weight: 400; letter-spacing: .01em;
}
.accent-text { color: var(--accent); }
p + p { margin-top: 1em; }
strong { font-weight: 600; color: var(--ink); }

/* Eyebrow — надзаголовок с тауп-точкой */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--accent-dk); font-weight: 600;
}
.eyebrow--light { color: var(--accent); }
.eyebrow__dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: none; }

/* Заголовок секции в фирменной рамке */
.sec-head { margin-bottom: clamp(44px, 5.5vw, 80px); max-width: 760px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head__title {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12;
    margin: 22px 0 0; text-transform: uppercase; letter-spacing: .015em;
}
.sec-head__title span { color: var(--accent); }
.sec-head__sub { margin-top: 22px; color: var(--text); font-size: 18px; max-width: 600px; }
.sec-head--center .sec-head__sub { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .02em;
    padding: 16px 28px; border: 1px solid transparent; border-radius: 999px;
    transition: all .25s var(--ease); white-space: nowrap; text-align: center;
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-dk); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dk); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); color: #fff; }
.btn--sm { padding: 14px 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--arrow::after { content: '→'; font-size: 18px; transition: transform .25s var(--ease); }
.btn--arrow:hover::after { transform: translateX(4px); }
.btn:disabled, .btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }

/* ---------- Шапка ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-scrolled {
    box-shadow: 0 6px 30px -18px rgba(32,33,27,.3);
    background: rgba(248,248,248,.7);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom-color: rgba(228,225,218,.6);
}
.header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__name { white-space: nowrap; }
.logo__mono { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; }
.logo__mono img { width: 100%; height: 100%; object-fit: cover; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.logo__tagline { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent-dk); margin-top: 3px; }

.header__cta { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }
.header__phone { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--accent-dk); }

/* Прозрачная шапка поверх фото-героя */
.header--transparent:not(.is-scrolled) {
    background: transparent; border-color: transparent; position: fixed; left: 0; right: 0;
}
.header--transparent:not(.is-scrolled) .logo__name,
.header--transparent:not(.is-scrolled) .header__phone { color: #fff; }
.header--transparent:not(.is-scrolled) .menu-trigger { border-color: rgba(255,255,255,.4); color: #fff; }
.header--transparent:not(.is-scrolled) .menu-trigger__icon span { background: #fff; }
.has-transparent-header .main { /* контент стартует под фиксированной шапкой только если нужно */ }

/* ---------- Кнопка вызова меню (вместо текстового меню в шапке) ---------- */
.menu-trigger {
    display: flex; align-items: center; gap: 11px; flex: none;
    background: none; border: 1px solid var(--line-dk); border-radius: 999px;
    padding: 9px 18px 9px 14px; transition: border-color .25s var(--ease), background .25s var(--ease);
}
.menu-trigger:hover { border-color: var(--accent); background: rgba(168,151,129,.08); }
.menu-trigger__icon { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.menu-trigger__icon span { width: 100%; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.menu-trigger__label { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.menu-trigger.is-open .menu-trigger__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-trigger.is-open .menu-trigger__icon span:nth-child(2) { opacity: 0; }
.menu-trigger.is-open .menu-trigger__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Выездная панель меню (стекло + классический список разделов) ---------- */
.mobile-menu {
    position: fixed; inset: 0; z-index: 160;
    background: rgba(32,33,27,.82);
    -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%);
    padding: clamp(88px,12vh,130px) 24px 32px; display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: clamp(40px,8vw,120px);
    transform: translateX(100%); opacity: 0; transition: transform .45s var(--ease), opacity .4s var(--ease); overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); opacity: 1; }

/* Верхняя панель оверлея: переиспользует .container, поэтому кнопка «Закрыть»
   встаёт ровно на место кнопки «Меню» в шапке на любом разрешении */
.mobile-menu__bar { position: absolute; top: 0; left: 0; right: 0; height: var(--header-h); display: flex; align-items: center; }
.mobile-menu__bar .container { display: flex; }
.menu-trigger--close { margin-left: auto; border-color: rgba(255,255,255,.4); }
.menu-trigger--close:hover { border-color: var(--accent); background: rgba(255,255,255,.08); }
.menu-trigger--close .menu-trigger__icon span { background: #fff; }
.menu-trigger--close .menu-trigger__label { color: #fff; }
/* Три полоски бургера сведены в крестик */
.menu-trigger--close .menu-trigger__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-trigger--close .menu-trigger__icon span:nth-child(2) { opacity: 0; }
.menu-trigger--close .menu-trigger__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Список разделов (правая колонка на широких экранах) */
.menu-list { width: 100%; max-width: 460px; flex: none; }
.menu-list ul { display: flex; flex-direction: column; }
.menu-list__item {
    display: flex; align-items: baseline; gap: 18px;
    padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.14);
    font-family: var(--serif); font-size: clamp(22px,4vw,30px); text-transform: uppercase; letter-spacing: .03em;
    color: rgba(255,255,255,.72); transition: color .25s var(--ease), padding-left .25s var(--ease), gap .25s var(--ease);
}
.menu-list li:first-child .menu-list__item { border-top: 1px solid rgba(255,255,255,.14); }
.menu-list__num { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .08em; flex: none; }
.menu-list__item:hover, .menu-list__item.is-active { color: #fff; gap: 26px; }
.menu-list__item.is-active .menu-list__num { color: #fff; }

/* Контакты/CTA (левая колонка на широких экранах) */
.mobile-menu__footer { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; max-width: 320px; flex: none; }
.mobile-menu__email { font-size: 22px; font-weight: 700; color: #fff; }
.mobile-menu__phone { font-size: 22px; font-weight: 700; color: #fff; }
.mobile-menu__msg { display: flex; gap: 16px; }
.mobile-menu__msg a { color: var(--accent); font-weight: 600; }

/* На узких экранах возвращаем единую центрированную колонку: список сверху, контакты снизу */
@media (max-width: 760px){
    .mobile-menu { flex-direction: column; justify-content: flex-start; gap: 40px; }
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(20px,2.5vw,32px) 0 clamp(48px,6vw,88px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px,4vw,56px); align-items: center; }
.hero__content { max-width: 600px; }
.hero__title { font-size: clamp(32px, 5vw, 58px); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; margin: 22px 0 0; }
.hero__title span { color: var(--accent); }
.hero__sub { margin-top: 22px; font-size: clamp(17px,1.6vw,20px); color: var(--text); max-width: 500px; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__mini { display: none; }
/* Плашки фактов объекта (тип/площадь/срок/смета) на странице кейса.
   Базовый .hero__mini скрыт (в герое главной там демо-примеры) — включаем точечно. */
.hero__mini--facts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__mini-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px 18px; box-shadow: var(--shadow-sm); min-width: 150px;
}
.hero__mini-card b { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); display: block; }
.hero__mini-card span { font-size: 14px; color: var(--muted); }

.hero__media { position: relative; }
.hero__photo {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); aspect-ratio: 4/5;
    background: linear-gradient(135deg, #efece6, #e2ddd3);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero__form-float {
    position: absolute; right: -8px; bottom: -28px; width: min(360px, 86%);
    z-index: 3;
}
.hero__form-float .lead-form { background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border: 1px solid rgba(255,255,255,.55); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.7); }
.hero__form-float .field input { background: rgba(255,255,255,.7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero__form-float .lead-form { background: rgba(255,255,255,.96); }
}
@media (max-width: 980px){ .hero__form-float { position: static; width: 100%; margin-top: 24px; } }

/* ---------- Карточки преимуществ ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(36px,5vw,72px) clamp(32px,4vw,64px); }
.adv-card {
    background: transparent; border: none; border-radius: 0; padding: 0;
    position: relative; padding-top: 28px; border-top: 1px solid var(--line);
}
.adv-card__icon { display: none; }
.adv-card__num { display: block; font-family: var(--serif); font-size: 13px; color: var(--accent); letter-spacing: .12em; margin-bottom: 20px; }
.adv-card h3 { font-size: 19px; margin-bottom: 12px; }
.adv-card p { font-size: 15px; color: var(--text); }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(28px,4vw,56px); }
.stat { padding: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(40px,5vw,64px); color: var(--ink); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Сетка проектов ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,40px); }
.cases-grid--feature { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: auto; align-items: stretch; }
.cases-grid--feature .case-card--big { grid-row: span 2; }
.case-card {
    display: flex; flex-direction: column; background: transparent; border: none;
    border-radius: 0; overflow: visible;
}
.case-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; flex: none; border-radius: var(--radius-sm); background: linear-gradient(135deg, #efece6, #e2ddd3); }
.case-card--big .case-card__media { aspect-ratio: 16/15; flex: 1; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.03); }
.case-card__type {
    position: absolute; top: 16px; left: 16px; background: rgba(248,248,248,.86);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .1em;
    padding: 6px 13px; border-radius: 999px; text-transform: uppercase;
}
.case-card__body { padding: 18px 2px 0; }
.case-card__title { font-size: 17px; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card__meta { font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.case-card__budget { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent-dk); }

/* ---------- Аккордеон (услуги/FAQ) ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
    width: 100%; background: none; border: none; display: flex; align-items: center; gap: 20px;
    padding: 32px 2px; text-align: left;
    border-radius: 0; transition: opacity .25s var(--ease);
}
.acc-head:hover .acc-head__title { color: var(--accent-dk); }
.acc-head__title { font-family: var(--serif); font-size: clamp(18px,2vw,24px); color: var(--ink); text-transform: uppercase; letter-spacing: .02em; flex: 1; transition: color .2s var(--ease); }
.acc-head__price { font-size: 16px; font-weight: 600; color: var(--accent-dk); white-space: nowrap; }
.acc-head__icon { position: relative; width: 22px; height: 22px; flex: none; }
.acc-head__icon::before, .acc-head__icon::after { content:''; position:absolute; background: var(--accent); transition: transform .3s var(--ease); }
.acc-head__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.acc-head__icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.acc-item.is-open .acc-head__icon::after { transform: translateX(-50%) scaleY(0); }
.acc-body { overflow: hidden; max-height: 0; transition: max-height .35s var(--ease); }
.acc-body__inner { padding: 0 4px 28px; max-width: 760px; }
.acc-body__inner p { color: var(--text); }
.acc-body__actions { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Процесс ---------- */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(32px,4vw,56px) clamp(28px,3vw,44px); }
.process__step { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.process__num { font-family: var(--serif); font-size: clamp(40px,5vw,60px); color: var(--accent); line-height: 1; }
.process__name { font-family: var(--serif); font-size: 18px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 12px 0 8px; }
.process__step p { font-size: 14px; color: var(--text); }
.process__banner { margin-top: 40px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21/7; }
.process__banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,40px); align-items: start; }
.tariff {
    background: transparent; border: none; border-top: 1px solid var(--line); border-radius: 0;
    padding: 34px 4px 0; position: relative; transition: opacity .25s var(--ease);
}
.tariff--accent { border-top-color: var(--accent); }
.tariff__badge { position: absolute; top: -13px; left: 4px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 14px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase; }
.tariff__name { font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; min-height: 1.2em; display: flex; align-items: flex-end; }
.tariff__price { font-size: 26px; color: var(--accent-dk); margin: 12px 0 16px; }
.tariff__desc { font-size: 15px; color: var(--text); padding-bottom: 0; }
.tariff__feat { margin: 22px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.tariff__feat li { position: relative; padding-left: 28px; font-size: 15px; color: var(--text); }
.tariff__feat li::before { content:''; position:absolute; left:0; top:7px; width:7px; height:7px; border-radius:50%; background: var(--accent); }

/* ---------- Калькулятор стоимости ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.15fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.calc__media { position: relative; min-height: 240px; background: linear-gradient(135deg, #efece6, #e2ddd3); }
/* абсолютно, чтобы высоту блока задавала панель, а не портретное фото; фото обрезается по колонке */
.calc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.calc__panel {
    background: linear-gradient(160deg, #8d8975, #6c6957);
    padding: clamp(20px,2.2vw,30px); color: #fff; display: flex; flex-direction: column; gap: 18px;
}
.calc__group { display: flex; flex-direction: column; gap: 12px; }
.calc__label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.68); font-weight: 600; }
.calc__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__value { font-family: var(--serif); font-size: 24px; color: #fff; }
.calc__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__chip {
    padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
    font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
    transition: all .25s var(--ease); cursor: pointer;
}
.calc__chip:hover { border-color: rgba(255,255,255,.55); }
.calc__chip.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.calc__slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.28); outline: none; cursor: pointer;
}
.calc__slider:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.calc__slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 10px rgba(32,33,27,.25); cursor: pointer; border: none;
}
.calc__slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: none; cursor: pointer; box-shadow: 0 2px 10px rgba(32,33,27,.25); }
.calc__result { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); }
.calc__result-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.calc__result-row span { font-size: 14px; color: rgba(255,255,255,.7); }
.calc__result-row strong { font-family: var(--serif); font-weight: 400; font-size: 24px; color: #fff; }
.calc__note { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.5; }
@media (max-width: 860px){
    .calc { grid-template-columns: 1fr; }
    .calc__media { min-height: 220px; }
}

/* ---------- Команда ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card__photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg,#efece6,#e2ddd3); margin-bottom: 18px; display:grid; place-items:center; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__initials { font-family: var(--serif); font-size: clamp(44px,6vw,60px); color: var(--accent-dk); line-height: 1; }
.team-card h3 { font-size: 18px; }
.team-card__role { color: var(--accent-dk); font-weight: 600; font-size: 14px; margin: 4px 0 10px; }
.team-card p { font-size: 14px; color: var(--text); }

/* ---------- Отзывы ---------- */
.reviews { display: flex; gap: clamp(32px,4vw,64px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.review {
    flex: 0 0 min(400px, 84vw); scroll-snap-align: start; background: transparent;
    border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 30px 0 0;
    display: flex; flex-direction: column; gap: 20px;
}
.review__badge { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dk); background: none; padding: 0; border-radius: 0; }
.review__text { font-family: var(--serif); font-weight: 400; font-size: clamp(18px,1.6vw,21px); line-height: 1.45; color: var(--ink); flex: 1; letter-spacing: .005em; }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,#efece6,#ddd6ca); display: grid; place-items: center; font-family: var(--serif); color: var(--accent-dk); font-size: 18px; flex: none; }
.review__name { font-weight: 600; color: var(--ink); }
.review__obj { font-size: 14px; color: var(--muted); }

/* ---------- Формы ---------- */
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.lead-form--inline { box-shadow: none; }
.lead-form--dark { background: var(--dark-soft); border-color: rgba(255,255,255,.12); }
.lead-form__title { font-size: 21px; margin-bottom: 20px; line-height: 1.3; }
.lead-form--dark .lead-form__title { color: #fff; }
.lead-form__fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.field { display: block; }
.field__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.lead-form--dark .field__label { color: rgba(255,255,255,.6); }
.field input {
    width: 100%; padding: 14px 16px; font-family: var(--sans); font-size: 15px; color: var(--ink);
    background: var(--bg); border: 1px solid var(--line-dk); border-radius: var(--radius-sm); transition: border-color .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--accent); background: #fff; }
.lead-form--dark .field input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.field input.is-invalid { border-color: #c0584e; }
.field--check { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; cursor: pointer; }
.field--check input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--accent); cursor: pointer; }
.field--check span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.field--check a { color: var(--accent-dk); text-decoration: underline; }
.lead-form--dark .field--check span { color: rgba(255,255,255,.55); }
.lead-form__note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.lead-form__note a { color: var(--accent-dk); text-decoration: underline; }
.lead-form--dark .lead-form__note { color: rgba(255,255,255,.55); }
.lead-form__status, .quiz__status { font-size: 14px; margin-top: 12px; }
.is-success { color: #4a7c59; } .is-error { color: #c0584e; }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(32,33,27,.5); -webkit-backdrop-filter: blur(6px) saturate(150%); backdrop-filter: blur(6px) saturate(150%); animation: fade .25s; }
.modal__dialog {
    position: relative; background: var(--surface); border-radius: var(--radius); width: min(560px, 100%);
    max-height: 92vh; overflow: auto; box-shadow: var(--shadow); animation: pop .3s var(--ease); display: grid;
}
.modal__dialog--wide { width: min(680px, 100%); }
.modal--quiz .modal__dialog { padding: 0; }
.modal__media { display: none; }
.modal__content { padding: 8px; }
.modal__content .lead-form { box-shadow: none; border: none; }
.modal__content .field--check { justify-content: center; align-items: center; margin-bottom: 20px; }
.modal__content .field--check input { margin-top: 0; }
.modal__close { position: absolute; top: 14px; right: 16px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 24px; line-height: 1; color: var(--ink); display: grid; place-items: center; }
.modal__close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Квиз ---------- */
.quiz { padding: 40px 36px; }
.quiz__head { margin-bottom: 28px; }
.quiz__title { font-size: 24px; margin-bottom: 18px; }
.quiz__progress { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.quiz__bar { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 999px; transition: width .35s var(--ease); }
.quiz__counter { font-size: 13px; color: var(--muted); margin-top: 10px; }
.quiz__step { border: none; padding: 0; display: none; }
.quiz__step.is-active { display: block; animation: fade .3s; }
.quiz__q { font-family: var(--serif); font-size: 20px; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 20px; padding: 0; }
.quiz__options { display: grid; gap: 12px; }
.quiz__opt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line-dk); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.quiz__opt:hover { border-color: var(--accent); }
.quiz__opt input { position: absolute; opacity: 0; }
.quiz__opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.quiz__opt span { font-weight: 500; color: var(--ink); }
.quiz__opt::before { content:''; width: 20px; height: 20px; border: 2px solid var(--line-dk); border-radius: 50%; flex: none; transition: .2s; }
.quiz__opt:has(input:checked) { border-color: var(--accent); background: rgba(168,151,129,.08); }
.quiz__opt:has(input:checked)::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 42%, transparent 46%); }
.quiz__contact { display: grid; gap: 14px; }
.quiz__note { font-size: 12px; color: var(--muted); margin-top: 16px; }
.quiz__note a { color: var(--accent-dk); text-decoration: underline; }
.quiz__nav { display: flex; gap: 14px; margin-top: 30px; }
.quiz__nav .btn--accent { margin-left: auto; }

/* ---------- Плавающая кнопка мессенджера ---------- */
.float-msg { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-msg__toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; border: none; box-shadow: var(--shadow); display: grid; place-items: center; transition: transform .25s, background .25s; }
.float-msg__toggle:hover { background: var(--accent-dk); transform: scale(1.06); }
.float-msg__list { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.float-msg__list[hidden] { display: none; }
.float-msg__item {
    display: flex; align-items: center; min-height: 44px;
    background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.55);
    padding: 13px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink); animation: pop .25s var(--ease);
}
.float-msg__item:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Уведомление о cookie ---------- */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--dark); border-top: 1px solid rgba(255,255,255,.12); animation: cookie-up .35s var(--ease); }
.cookie-bar[hidden] { display: none; }
.cookie-bar__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 0; }
.cookie-bar__inner p { flex: 1 1 380px; font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.5; margin: 0; }
.cookie-bar__inner p a { color: #fff; text-decoration: underline; }
.cookie-bar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cookie-bar .btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); }
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ---------- Тёмная секция / CTA ---------- */
.cta { background: var(--dark); color: #fff; }
.cta__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,72px); align-items: center; }
.cta__title { font-family: var(--serif); font-weight: 400; color: #fff; font-size: clamp(26px,3.4vw,40px); line-height: 1.18; margin: 20px 0 18px; text-transform: uppercase; letter-spacing: .01em; }
.cta__lead { color: rgba(255,255,255,.78); font-size: 17px; }
.cta__list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.cta__list li { position: relative; padding-left: 30px; color: rgba(255,255,255,.85); }
.cta__list li::before { content:'✓'; position:absolute; left:0; color: var(--accent); font-weight: 700; }

/* ---------- Слайдер до/после ---------- */
.ba { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; user-select: none; box-shadow: var(--shadow-sm); }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 50%); }
/* «До» — то же фото объекта, но обесцвеченное (реальных фото до ремонта нет) */
.ba__before { filter: grayscale(1) contrast(.92) brightness(1.02); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; cursor: ew-resize; }
.ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--accent-dk); font-size: 18px; }
.ba__label { position: absolute; bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: rgba(32,33,27,.6); padding: 5px 12px; border-radius: 999px; }
.ba__label--before { left: 14px; } .ba__label--after { right: 14px; }

/* ---------- Лид-магнит ---------- */
.magnet { background: var(--surface); border: none; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: .8fr 1.2fr; box-shadow: none; }
.magnet__media { background: linear-gradient(135deg,var(--dark),var(--dark-soft)); display: grid; place-items: center; padding: 0; position: relative; }
.magnet__cover { width: 100%; max-width: 100%; border-radius: 0; display: block; }
.magnet__body { padding: clamp(28px,4vw,48px); }
.magnet__body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px,3vw,34px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 16px; }
.magnet__body p { color: var(--text); margin-bottom: 24px; }
.magnet__list { margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.magnet__list li { position: relative; padding-left: 26px; }
.magnet__list li::before { content:'✓'; position:absolute; left:0; color: var(--accent); font-weight: 700; }

/* ---------- Хлебные крошки / интро страниц ---------- */
.page-hero { padding: clamp(48px,6vw,90px) 0 clamp(32px,4vw,56px); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent-dk); }
.breadcrumbs span { color: var(--accent-dk); }
.page-hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px,4.5vw,52px); text-transform: uppercase; letter-spacing: .02em; line-height: 1.12; max-width: 800px; }
.page-hero__sub { margin-top: 20px; font-size: 18px; color: var(--text); max-width: 680px; }

/* ---------- Доверие / промо-блоки ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,60px); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; background: linear-gradient(135deg, #efece6, #e2ddd3); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.prose p { margin-bottom: 1em; color: var(--text); }
.prose h2 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(22px,2.6vw,30px); margin: 32px 0 14px; }
.prose h3 { font-size: 20px; margin: 24px 0 10px; }
.prose ul { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.prose ul li { position: relative; padding-left: 26px; color: var(--text); }
.prose ul li::before { content:''; position:absolute; left:0; top:9px; width:7px; height:7px; border-radius:50%; background: var(--accent); }

/* ---------- Фильтр кейсов ---------- */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter__btn.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cases-empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 16px; }

/* ---------- Список с тауп-маркерами (услуги, «что входит») ---------- */
.bullet-list { display: flex; flex-direction: column; gap: 10px; }
.bullet-list li { position: relative; padding-left: 26px; color: var(--text); }
.bullet-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.bullet-list__head { margin: 28px 0 14px; }

/* Статичный «бейдж-цена» в виде кнопки (не кликабельно) */
.btn--static { pointer-events: none; cursor: default; border-style: dashed; }
/* Отзыв вне карусели (в grid) */
.review--static { flex: initial; }

/* ---------- Утилиты ---------- */
.text-center { text-align: center; }
.mt-l { margin-top: 40px; } .mt-m { margin-top: 24px; } .mt-s { margin-top: 16px; }
.text-muted { color: var(--muted); }
.link-accent { color: var(--accent-dk); }
.container--narrow { max-width: 840px; }
.container--tight { max-width: 620px; }
.section--center { min-height: 54vh; display: grid; place-items: center; text-align: center; }
.section--center .page-hero__sub { margin-inline: auto; }
.section--center .hero__actions { justify-content: center; }
.section--center .eyebrow { justify-content: center; }
.error-num { font-family: var(--serif); font-size: clamp(72px,12vw,140px); color: var(--accent); line-height: 1; }
.center-btn { display: flex; justify-content: center; margin-top: 44px; }
.framed { border: 1px solid var(--line-dk); padding: 6px; border-radius: calc(var(--radius) + 6px); }
.lead-text { font-size: clamp(20px,2.4vw,30px); font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.4; letter-spacing: .01em; }
.lead-text span { color: var(--accent); }

/* ---------- Подвал ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding: clamp(48px,6vw,80px) 0 30px; }
.footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1.3fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand { max-width: 300px; }
.footer__logo { width: 210px; max-width: 80%; margin-bottom: 20px; }
.footer__slogan { color: rgba(255,255,255,.58); font-size: 15px; margin-bottom: 24px; line-height: 1.6; }
.footer__title { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { color: rgba(255,255,255,.62); font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__contacts > a, .footer__contacts > p { display: block; color: rgba(255,255,255,.62); margin-bottom: 10px; font-size: 15px; }
.footer__contacts .footer__phone { font-family: var(--serif); font-size: 21px; color: #fff; letter-spacing: .02em; }
.footer__contacts .footer__phone:hover { color: var(--accent); }
.footer__hours { font-size: 13px; color: rgba(255,255,255,.42); }
.footer__msg { display: flex; gap: 18px; margin-top: 6px; }
.footer__msg a { color: var(--accent); font-weight: 600; }
.footer__msg a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-top: 26px; font-size: 14px; color: rgba(255,255,255,.42); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer__legal a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--accent); }
.float-msg__item--tg:hover, .float-msg__item--call:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Узкий десктоп/ноутбук — телефон скрывается, чтобы кнопки в шапке не вылезали */
@media (max-width: 1480px) and (min-width: 1281px){
    .header__inner { gap: 14px; }
    .header__phone { display: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1280px){
    .header__cta .btn { display: none; }
    .adv-grid, .process { grid-template-columns: repeat(2,1fr); }
    .cases-grid, .cases-grid--feature, .tariffs, .team-grid { grid-template-columns: repeat(2,1fr); }
    .stats { grid-template-columns: repeat(2,1fr); }
    .cases-grid--feature .case-card--big { grid-column: span 2; grid-row: span 1; }
    .cases-grid--feature .case-card--big .case-card__media { aspect-ratio: 21/9; }
}
@media (max-width: 980px){
    .hero__grid, .cta__inner, .split, .magnet { grid-template-columns: 1fr; }
    .magnet__media { padding: 32px; }
    .magnet__cover { max-width: 340px; border-radius: 8px; box-shadow: 0 24px 50px -18px rgba(32,33,27,.4); }
    .header__phone { display: none; }
    .header__email { display: none; }
    /* Подвал: компактнее в 2 колонки */
    .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .footer__brand { grid-column: 1 / -1; max-width: none; }
}

/* Планшет/мобайл: подвал */
@media (max-width: 760px){
    .footer { padding: 48px 0 28px; }
    .footer__top { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-bottom: 34px; }
    .footer__brand { display: flex; flex-direction: column; align-items: center; }
    .footer__logo { margin-inline: auto; }
    .footer__slogan { margin-inline: auto; }
    .footer__col ul { align-items: center; }
    .footer__contacts > a, .footer__contacts > p { margin-inline: auto; }
    .footer__msg { justify-content: center; }
    .footer__bottom { flex-direction: column; text-align: center; gap: 12px; }
    .footer__legal { justify-content: center; }
}

@media (max-width: 680px){
    body { font-size: 16px; }
    .section { padding: 52px 0; }
    .section--tight { padding: 38px 0; }
    .container { padding-inline: 18px; }

    /* Сетки в одну колонку */
    .adv-grid, .process, .cases-grid, .cases-grid--feature, .tariffs, .team-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 18px; }
    .cases-grid--feature .case-card--big { grid-column: auto; }

    /* Заголовки секций — крупнее воздуха, ровный левый край */
    .sec-head { margin-bottom: 28px; }
    .sec-head__sub { font-size: 16px; }

    /* HERO: чёткий порядок — заголовок, фото, форма */
    .hero { padding: 24px 0 40px; }
    .hero__title { font-size: clamp(28px,8vw,38px); margin-top: 16px; }
    .hero__sub { margin-top: 16px; font-size: 16px; }
    .hero__actions { margin-top: 24px; gap: 10px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .hero__photo { aspect-ratio: 4/3; max-height: 56vh; }
    .hero__form-float { display: none; }

    /* Тарифы — без смещения акцентного */
    .tariff--accent { transform: none; }
    .tariff { padding: 30px 24px; }
    .tariff__badge { left: 24px; }

    /* Команда — фото не на весь экран */
    .team-card { display: grid; grid-template-columns: 84px 1fr; gap: 16px; text-align: left; align-items: center; }
    .team-card__photo { margin-bottom: 0; }
    .team-card p { grid-column: 1 / -1; }

    /* Аккордеон */
    .acc-head { flex-wrap: wrap; gap: 6px 14px; padding: 20px 2px; }
    .acc-head__price { order: 3; width: 100%; }
    .acc-body__actions { flex-direction: column; }
    .acc-body__actions .btn { width: 100%; }

    /* Процесс — баннер не сплющен */
    .process__banner { aspect-ratio: 4/3; }

    /* Финальный CTA */
    .cta__list li { padding-left: 26px; }

    .float-msg { right: 14px; bottom: 14px; }
    .center-btn .btn, .magnet__body .btn { width: 100%; }
    /* Длинный текст в кнопках на всю ширину — переносим, а не вылезаем за карточку */
    .btn--block, .center-btn .btn, .magnet__body .btn, .hero__actions .btn, .acc-body__actions .btn {
        white-space: normal; line-height: 1.3; text-align: center; padding-block: 14px;
    }
}

/* Узкие телефоны */
@media (max-width: 420px){
    .stats { grid-template-columns: 1fr; }
    .logo__tagline { display: none; }
    .hero__mini-card { flex: 1 1 100%; }
    .menu-trigger__label { display: none; }
    .menu-trigger { padding: 12px; }
	.logo__name {
 
    font-size: 15px;
  
}
.page-hero__title {
 
    font-size: 26px;
   
}
}

/* ---------- Модальные окна / квиз на мобильных ---------- */
@media (max-width: 600px){
    .modal { padding: 10px; align-items: start; padding-top: 24px; }
    .modal__dialog { width: 100%; max-width: 100%; overflow-x: hidden; }
    .modal__dialog--wide { width: 100%; }
    .modal__close { top: 10px; right: 10px; width: 44px; height: 44px; }
    .quiz { padding: 30px 18px 24px; }
    .quiz, .quiz * { min-width: 0; }
    .quiz__title { font-size: 19px; padding-right: 36px; }
    .quiz__q { font-size: 17px; }
    .quiz__opt { padding: 14px 16px; }
    .quiz__contact { grid-template-columns: 1fr; }
    .quiz__nav { flex-wrap: wrap; gap: 10px; }
    .quiz__nav .btn { flex: 1 1 auto; padding: 14px 18px; }
    .quiz__nav .btn--accent { margin-left: 0; }
    .lead-form { padding: 24px 18px; }
    .lead-form__title { font-size: 19px; }
}
/* ---------- Анимации интерактива ---------- */
.shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0);} 20%,60%{transform:translateX(-7px);} 40%,80%{transform:translateX(7px);} }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce){
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
