/* =========================================================
   Ровный метр — стили сайта
   Цвета и шрифты меняются в блоке :root ниже.
   ========================================================= */

:root {
  --paper: #F3F0EA;      /* тёплый светлый фон */
  --ink: #151514;        /* почти чёрный */
  --ink-2: #252422;
  --red: #CF483A;        /* красный из логотипа */
  --red-d: #B53A2E;

  --pad: clamp(20px, 4.2vw, 64px);

  /* Положение фото на первом экране до прокрутки: отступы слева, справа, сверху, снизу */
  --hero-ml: 52%;
  --hero-mr: var(--pad);
  --hero-mt: 118px;
  --hero-mb: 56px;
  --gap: clamp(16px, 2vw, 32px);
  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-logo: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Темы секций */
.t-paper { --bg: var(--paper); --fg: var(--ink); --muted: #6B665E; --faint: #9C968D; --line: rgba(21, 21, 20, .14); --accent: var(--red); --accent-sm: #B23A2D; --card: #FFFFFF; }
.t-white { --bg: #FFFFFF; --fg: var(--ink); --muted: #6B665E; --faint: #A39E96; --line: rgba(21, 21, 20, .13); --accent: var(--red); --accent-sm: #B23A2D; --card: var(--paper); }
.t-dark  { --bg: var(--ink); --fg: var(--paper); --muted: rgba(243, 240, 234, .62); --faint: rgba(243, 240, 234, .34); --line: rgba(243, 240, 234, .16); --accent: #DB5445; --accent-sm: #EC7466; --card: #1F1E1C; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
html.is-locked { overflow: hidden; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: 1760px; margin-inline: auto; padding-inline: var(--pad); }
.sec { position: relative; background: var(--bg); color: var(--fg); padding-block: clamp(76px, 9.5vw, 150px); }

.label { display: block; font-size: 11.5px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Стрелка в кнопках */
.ar { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .3s var(--ease); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 58px; padding: 0 26px; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--ink); color: var(--paper); transition: background-color .3s, color .3s; }
.btn:hover { background: var(--red); color: #fff; }
.btn:hover .ar { transform: translate(2px, -2px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; gap: 18px; font-size: 11.5px; border-radius: 9px; }

.link { position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .4s var(--ease); }
.link:hover::after { transform: scaleX(.35); }

/* ---------- Логотип ---------- */
.logo-link { display: inline-flex; flex: none; }
.logo { display: block; height: 58px; width: auto; overflow: visible; transition: height .4s var(--ease); }
.logo text { font-family: var(--font-logo); font-weight: 800; font-size: 34px; }
.logo__mark, .logo__w2 { fill: var(--red); }
.logo__w1 { fill: currentColor; }
.logo--lg { height: clamp(84px, 9vw, 132px); }

/* ---------- Шапка ---------- */
.header { position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--pad); color: var(--ink); border-radius: 0; background: rgba(21, 21, 20, 0); transition: top .45s var(--ease), left .45s var(--ease), right .45s var(--ease), padding .45s var(--ease), background-color .45s, color .3s, border-radius .45s; }
.header.is-stuck { top: 12px; left: var(--pad); right: var(--pad); padding: 9px 10px 9px 20px; color: var(--paper); background: rgba(21, 21, 20, .86); border-radius: 14px; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.header.is-stuck .logo { height: 42px; }
.header.is-menu { color: var(--paper); background: rgba(21, 21, 20, 0); -webkit-backdrop-filter: none; backdrop-filter: none; }

.nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 36px); margin-left: auto; }
.nav a { position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; padding: 8px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }

/* Белая копия шапки: видна только там, где под шапкой уже раскрылось фото первого экрана */
.header { --k: calc(1 - var(--p, 0)); }
.header__light { position: absolute; inset: 0; display: none; align-items: center; justify-content: space-between; gap: 24px; padding: inherit; color: #fff; pointer-events: none; }
.header.is-pin:not(.is-stuck):not(.is-menu) .header__light { display: flex; clip-path: inset(calc(var(--hero-mt) * var(--k)) calc(var(--hero-mr) * var(--k)) 0 calc(var(--hero-ml) * var(--k))); }

.header__cta { display: none; }
.header.is-stuck .header__cta { display: inline-flex; }

.burger { display: none; position: relative; width: 44px; height: 44px; flex: none; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* Мобильное меню */
.menu { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 120px var(--pad) 36px; background: var(--ink); color: var(--paper); overflow-y: auto; animation: menuIn .4s var(--ease); }
.menu[hidden] { display: none; }
.menu__nav { display: grid; gap: 2px; }
.menu__nav a { font-size: clamp(28px, 8vw, 40px); font-weight: 300; letter-spacing: -.035em; line-height: 1.22; }
.menu__foot { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid rgba(243, 240, 234, .16); font-size: 18px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Первый экран ---------- */
/* Фото лежит на весь экран и обрезано до блока справа. При прокрутке скрипт
   меняет --p от 0 до 1: обрезка уменьшается, фото раскрывается на весь экран,
   а текст и меню над ним становятся белыми. */
.hero { --ml: var(--hero-ml); --mr: var(--hero-mr); --mt: var(--hero-mt); --mb: var(--hero-mb); --p: 0; --k: calc(1 - var(--p)); --cut: inset(calc(var(--mt) * var(--k)) calc(var(--mr) * var(--k)) calc(var(--mb) * var(--k)) calc(var(--ml) * var(--k))); position: relative; background: var(--bg); color: var(--fg); }
.hero.is-pin { height: 162vh; }
.hero__stage { position: relative; display: grid; min-height: max(100svh, 700px); overflow: hidden; }
.hero.is-pin .hero__stage { position: sticky; top: 0; height: 100vh; min-height: 0; }

.hero__media { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--ink-2); pointer-events: none; clip-path: var(--cut); will-change: clip-path; }
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; transform: scale(calc(1.01 + .04 * var(--k))); animation: heroImg 1.8s var(--ease) backwards; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 21, 20, .74) 0%, rgba(21, 21, 20, .46) 52%, rgba(21, 21, 20, .14) 100%); }
.hero__angle { position: absolute; z-index: 4; left: calc(var(--ml) * var(--k) - 15px); bottom: calc(var(--mb) * var(--k) - 15px); width: clamp(60px, 6.6vw, 100px); height: auto; fill: var(--red); opacity: calc(1 - var(--p) * 2.6); pointer-events: none; animation: angleIn 1s var(--ease) 1s backwards; }

.hero__layer { grid-area: 1 / 1; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: var(--mt) var(--pad) var(--mb); min-width: 0; }
.hero__layer--over { z-index: 3; color: #fff; pointer-events: none; clip-path: var(--cut); will-change: clip-path; }
.hero__layer--over .hero__eyebrow { color: rgba(255, 255, 255, .86); }
.hero__layer--over .hero__desc { visibility: hidden; }
.hero__layer:has(.btn:hover) + .hero__layer--over .btn { background: var(--red); color: #fff; }

.hero__top { margin-top: clamp(20px, 8.5vh, 92px); }
.hero__eyebrow { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.hero__title { font-size: clamp(38px, 5.7vw, 100px); font-weight: 500; line-height: .93; letter-spacing: -.037em; text-transform: uppercase; }
.hero__title .ln { display: block; overflow: hidden; padding: .09em 0 .06em; margin: -.09em 0 -.06em; }
.hero__title .ln > span { display: block; white-space: nowrap; animation: lineUp 1.1s var(--ease) var(--d, 0s) both; }
.hero__title .hero__sub { font-size: .375em; line-height: 1.12; letter-spacing: -.02em; margin-top: 1.05em; }

.hero__bottom { display: grid; gap: 28px; max-width: 44%; }
.hero__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 48ch; opacity: calc(1 - var(--p) * 2.4); animation: fadeUp 1s var(--ease) .6s backwards; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; animation: fadeUp 1s var(--ease) .72s backwards; }
.hero__claim { position: absolute; left: 60%; right: var(--pad); bottom: calc(var(--mb) + 4px); font-size: clamp(22px, 2.35vw, 38px); line-height: 1.08; letter-spacing: -.035em; opacity: calc((var(--p) - .5) * 2.4); transform: translateY(calc(var(--k) * 28px)); }

@keyframes lineUp { from { transform: translateY(112%); } }
@keyframes heroImg { from { opacity: 0; transform: scale(1.12); } }
@keyframes angleIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Заголовок секции ---------- */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px var(--gap); align-items: start; margin-bottom: clamp(44px, 6.5vw, 104px); }
.head > .label { grid-column: 1 / -1; margin-bottom: 4px; }
.head__title { grid-column: 1 / span 7; font-size: clamp(27px, 2.35vw, 36px); font-weight: 400; line-height: 1.05; letter-spacing: -.032em; text-wrap: balance; }
.head__title em { display: block; font-style: normal; color: var(--accent); }
.head__text { grid-column: 9 / span 4; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 42ch; padding-top: 4px; }

/* ---------- Объекты: список с картинкой ---------- */
.pick__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.pick__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.5s var(--ease); }
.pick__item.is-active .pick__img img { transform: none; }
.pick__detail p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 54ch; margin-top: 22px; }

.specs { margin-top: 22px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.specs dt { color: var(--muted); }

@media (min-width: 1000px) {
  .pick__list { display: grid; grid-template-columns: 5fr 6fr; grid-template-rows: 1fr repeat(4, auto); column-gap: calc(var(--gap) * 2); }
  .pick__item { display: contents; }
  .pick__detail { grid-column: 2; grid-row: 1 / -1; opacity: 0; visibility: hidden; transition: opacity .55s, visibility .55s; }
  .pick__item.is-active .pick__detail { opacity: 1; visibility: visible; }
}

/* ---------- Этапы: линейка сроков ---------- */
/* Слева идёт линейка с делениями. Красная метка едет по ней к текущему этапу. */
.steps { --tape-x: clamp(8px, 2.2vw, 34px); position: relative; display: grid; gap: clamp(40px, 5vw, 76px); padding-left: clamp(150px, 17vw, 270px); }
.steps::before { content: ""; position: absolute; left: var(--tape-x); top: 0; bottom: 0; width: 20px; border-left: 1px solid var(--faint); background: repeating-linear-gradient(180deg, var(--faint) 0 1px, transparent 1px 70px) left top / 20px 100% no-repeat, repeating-linear-gradient(180deg, var(--faint) 0 1px, transparent 1px 14px) left top / 9px 100% no-repeat; }
.steps__mark { position: absolute; left: calc(var(--tape-x) - 7px); top: 0; width: 38px; height: 3px; background: var(--red); transform: translateY(var(--y, 0px)); transition: transform .65s var(--ease); pointer-events: none; }
.step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: start; max-width: 860px; }
.step__when { position: absolute; right: calc(100% + 30px); top: clamp(13px, 1.75vw, 27px); white-space: nowrap; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-sm); }
.step__num { font-size: 12px; color: var(--muted); padding-top: .95em; font-variant-numeric: tabular-nums; }
.step__title { font-size: clamp(38px, 4.7vw, 72px); font-weight: 300; line-height: .97; letter-spacing: -.042em; }
.step__text { grid-column: 2; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 44ch; margin-top: 16px; }
.js .step { opacity: .28; transition: opacity .5s; }
.js .step.is-active { opacity: 1; }

.statement { margin-top: clamp(72px, 10vw, 160px); font-size: clamp(34px, 5.3vw, 82px); font-weight: 300; line-height: .99; letter-spacing: -.045em; text-wrap: balance; }
.statement em { display: block; font-style: normal; color: var(--accent); }
.statement--sm { font-size: clamp(28px, 3.5vw, 54px); margin-top: clamp(56px, 7vw, 110px); letter-spacing: -.04em; line-height: 1.04; }

/* ---------- Для кого ---------- */
.roles__panel { animation: fadeUp .6s var(--ease); }
.roles__panel[hidden] { display: none; }
.roles__title { font-size: clamp(30px, 3.5vw, 52px); font-weight: 400; line-height: 1.03; letter-spacing: -.037em; margin-bottom: clamp(24px, 3vw, 44px); text-wrap: balance; }
.roles__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gap); align-items: start; }
.roles__img { grid-column: 1 / span 6; aspect-ratio: 16 / 10; overflow: hidden; background: var(--card); }
.roles__img img { width: 100%; height: 100%; object-fit: cover; }
.roles__txt { grid-column: 8 / span 5; }
.roles__txt p { font-size: 16px; line-height: 1.55; max-width: 46ch; }

/* Список с маленьким угольником, как знак в логотипе */
.ticks { margin-top: 26px; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 1px; top: 1.2em; width: 11px; height: 11px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); }
.ticks--tight { margin-top: 12px; }
.ticks--tight li { padding-block: 11px; }

/* ---------- Работы: интерактивный план офиса ---------- */
.plan { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--gap); align-items: start; }
.plan__draw { grid-column: 1 / span 8; min-width: 0; }
.plan__scroll { overflow-x: auto; }
.plan__svg { display: block; width: 100%; min-width: 620px; height: auto; font-family: var(--font); }
.plan__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.plan__side { grid-column: 9 / span 4; display: grid; gap: 28px; align-content: start; }
.plan__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.plan__tab { padding: 8px 12px; border: 1px solid var(--line); font-size: 13px; line-height: 1.2; color: var(--muted); transition: color .25s, background-color .25s, border-color .25s; }
.plan__tab:hover { color: var(--fg); border-color: var(--faint); }
.plan__tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.plan__panel { animation: fadeUp .5s var(--ease); }
.plan__panel[hidden] { display: none; }
.plan__name { font-size: clamp(28px, 2.9vw, 44px); font-weight: 300; line-height: 1.03; letter-spacing: -.04em; margin: 10px 0 6px; }

.plan__grid { fill: none; stroke: var(--line); stroke-width: 1; }
.plan__wall { fill: none; stroke: var(--fg); stroke-width: 6; }
.plan__wall--in { stroke-width: 3; }
.plan__gap { fill: none; stroke: var(--bg); stroke-width: 9; }
.plan__win { fill: none; stroke: var(--bg); stroke-width: 2; }
.plan__furn { fill: none; stroke: var(--fg); stroke-width: 1.3; opacity: .36; pointer-events: none; }
.plan__zone { fill: transparent; cursor: pointer; transition: fill .3s; }
.plan__zone:hover { fill: rgba(243, 240, 234, .07); }
.plan__zone.is-active { fill: url(#plan-hatch); }
.plan__lbl { fill: var(--muted); font-size: 16px; letter-spacing: .08em; text-anchor: middle; pointer-events: none; transition: fill .3s; }
.plan__lbl tspan + tspan { font-size: 14px; letter-spacing: 0; }
.plan__lbl.is-active { fill: #fff; }
.plan__dim { opacity: 0; transition: opacity .4s; pointer-events: none; }
.plan__dim.is-active { opacity: 1; }
.plan__dim path { fill: none; stroke: var(--accent-sm); stroke-width: 1.5; }
.plan__dim text { fill: var(--accent-sm); font-size: 16px; text-anchor: middle; font-variant-numeric: tabular-nums; }

/* ---------- Форматы ---------- */
.fmt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--gap); padding-top: clamp(26px, 3.2vw, 46px); border-top: 1px solid var(--line); }
.fmt__tabs { grid-column: 1 / span 4; display: grid; align-content: start; }
.fmt__panels { grid-column: 6 / span 7; }
.fmt__panel { animation: fadeUp .6s var(--ease); }
.fmt__panel[hidden] { display: none; }
.fmt__title { font-size: clamp(28px, 3.1vw, 46px); font-weight: 400; line-height: 1.04; letter-spacing: -.037em; margin: 14px 0 clamp(24px, 2.8vw, 40px); max-width: 17ch; text-wrap: balance; }
.fmt__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }
.fmt__cols p { font-size: 15px; line-height: 1.55; margin-top: 12px; max-width: 40ch; }
.fmt__term { display: flex; align-items: baseline; gap: 18px; margin-top: 30px; }
.fmt__term b { font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.03em; }
.fmt__note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- Договор ---------- */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.promise { display: grid; gap: 18px; align-content: start; padding: clamp(28px, 3.4vw, 54px) clamp(16px, 3vw, 54px) clamp(30px, 3.6vw, 58px) 0; border-bottom: 1px solid var(--line); }
.promise:nth-child(even) { padding-left: clamp(20px, 3vw, 54px); padding-right: 0; border-left: 1px solid var(--line); }
.promise__num { font-size: 12px; color: var(--accent-sm); font-variant-numeric: tabular-nums; }
.promise__title { font-size: clamp(36px, 4.4vw, 68px); font-weight: 300; line-height: 1; letter-spacing: -.042em; }
.promise p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 44ch; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: stretch; }
.calc__controls { display: grid; gap: clamp(26px, 3vw, 40px); align-content: start; padding-top: clamp(22px, 2.6vw, 36px); border-top: 1px solid var(--line); }
.calc__group { display: grid; gap: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 12px 18px; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.2; transition: background-color .25s, color .25s, border-color .25s; }
.seg label:hover span { border-color: var(--fg); }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 3px; }

.calc__area { display: flex; align-items: baseline; gap: 12px; }
.calc__area input { width: 4.2ch; min-width: 3ch; font: inherit; font-size: clamp(44px, 5.2vw, 78px); font-weight: 300; letter-spacing: -.045em; line-height: 1; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid transparent; padding: 0; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.calc__area input::-webkit-outer-spin-button, .calc__area input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__area input:hover, .calc__area input:focus { border-bottom-color: var(--line); outline: none; }
.calc__area input:focus-visible { border-bottom-color: var(--red); }
.calc__area span { font-size: clamp(18px, 1.8vw, 26px); color: var(--muted); }
.calc__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.range { --fill: 12%; -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--red) var(--fill), rgba(21, 21, 20, .14) var(--fill)); }
.range::-moz-range-track { height: 3px; background: rgba(21, 21, 20, .14); }
.range::-moz-range-progress { height: 3px; background: var(--red); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 0; background: var(--red); border: 0; transition: transform .2s; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 0; background: var(--red); border: 0; }
.range:hover::-webkit-slider-thumb, .range:active::-webkit-slider-thumb { transform: scale(1.15); }

.calc__result { display: grid; gap: clamp(18px, 2vw, 26px); align-content: space-between; padding: clamp(24px, 3vw, 46px); background: var(--ink); color: var(--paper); }
.calc__result .label, .calc__result dt, .calc__note { color: rgba(243, 240, 234, .62); }
.calc__sum { display: block; font-size: clamp(34px, 4vw, 62px); font-weight: 300; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.calc__kv { display: grid; border-top: 1px solid rgba(243, 240, 234, .16); }
.calc__kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(243, 240, 234, .16); }
.calc__kv dt { font-size: 13px; }
.calc__kv dd { font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.calc__note { font-size: 12.5px; line-height: 1.5; }
.calc__result .btn { width: 100%; }

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--line); }
.team__item { display: grid; gap: 10px; align-content: start; padding: 24px 0 32px; border-bottom: 1px solid var(--line); }
.team__num { font-size: 12px; color: var(--accent-sm); font-variant-numeric: tabular-nums; }
.team__role { font-size: clamp(21px, 1.95vw, 28px); font-weight: 400; letter-spacing: -.03em; line-height: 1.12; }
.team__item p { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 34ch; }

/* ---------- Вопросы ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--gap); align-items: start; }
.faq__head { grid-column: 1 / span 4; }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; font-size: clamp(18px, 1.65vw, 23px); letter-spacing: -.025em; line-height: 1.25; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-sm); }
.faq__icon { position: relative; flex: none; width: 13px; height: 13px; top: 1px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 40px 26px 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 64ch; animation: fadeUp .45s var(--ease); }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 52px var(--gap); align-items: start; }
.contact__info { grid-column: 1 / span 5; display: grid; gap: 24px; align-content: start; }
.contact__title { font-size: clamp(38px, 4.6vw, 70px); font-weight: 300; line-height: .98; letter-spacing: -.045em; }
.contact__title em { display: block; font-style: normal; color: var(--accent); }
.contact__text { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 42ch; }
.contact__lines { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.contact__lines div { display: grid; gap: 5px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__lines a { font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -.025em; line-height: 1.15; transition: color .3s; }
.contact__lines a:hover { color: var(--accent-sm); }
.contact__card { grid-column: 7 / span 6; display: grid; gap: 14px; padding: clamp(22px, 3.2vw, 52px); background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 var(--red); margin-right: 14px; }
.contact__h { font-size: clamp(28px, 3vw, 44px); font-weight: 400; letter-spacing: -.037em; line-height: 1.04; margin-bottom: 12px; }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); }
.field { display: grid; gap: 4px; align-content: start; }
.field label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(21, 21, 20, .32); border-radius: 0; padding: 9px 0; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #A29D95; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field textarea { resize: vertical; min-height: 64px; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 24px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23151514' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 11px; }
.field.is-error input { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.field__err { font-size: 12px; line-height: 1.3; color: #B23A2D; }
.field__err:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 12.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; display: grid; place-content: center; width: 18px; height: 18px; margin: 0; border: 1px solid currentColor; border-radius: 0; background: transparent; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: translateY(-1px) rotate(-45deg); }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.check.is-error { color: #B23A2D; }
.check--line { font-size: 14.5px; color: var(--fg); align-items: center; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .55; cursor: progress; }
.form__status { font-size: 13.5px; line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1F6B3A; }
.form__status.is-err { color: #B23A2D; }

/* ---------- Подвал ---------- */
.footer { background: var(--bg); color: var(--fg); padding-block: clamp(48px, 6vw, 88px) 32px; border-top: 1px solid var(--line); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer__up { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.footer__up:hover { color: var(--fg); }
.footer__mid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); align-items: end; margin-top: clamp(40px, 5vw, 76px); }
.footer__nav { grid-column: 1 / span 4; display: grid; gap: 3px; justify-items: start; }
.footer__nav a { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; color: var(--muted); transition: color .3s; }
.footer__nav a:hover { color: var(--fg); }
.footer__contacts { grid-column: 6 / span 7; display: grid; gap: 4px; justify-items: start; }
.footer__contacts a { font-size: clamp(26px, 3.6vw, 56px); font-weight: 300; letter-spacing: -.04em; line-height: 1.12; transition: color .3s; }
.footer__contacts a:hover { color: var(--accent); }
.footer__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: clamp(40px, 5vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer__bot a:hover { color: var(--fg); }

/* ---------- Страница с текстом (политика) ---------- */
.doc { background: var(--paper); padding: 150px var(--pad) 96px; }
.doc__in { max-width: 760px; margin-inline: auto; }
.doc h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: -.037em; line-height: 1.05; margin-bottom: 14px; }
.doc h2 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; margin: 38px 0 12px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: #3A3835; }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.doc mark { background: rgba(207, 72, 58, .16); color: inherit; padding: 1px 4px; }
.doc__meta { font-size: 13.5px; color: #6B665E; }
.doc__back { display: inline-block; margin-top: 44px; }

/* ---------- Уровень: красная полоса с пузырьком ---------- */
.level { background: var(--red); color: #fff; padding-block: clamp(56px, 7vw, 112px); overflow: hidden; }
.level .label { color: rgba(255, 255, 255, .86); }
.level__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--gap); align-items: end; }
.level__txt { grid-column: 1 / span 6; display: grid; gap: 14px; }
.level__word { font-size: clamp(72px, 12vw, 200px); font-weight: 300; line-height: .86; letter-spacing: -.055em; opacity: .42; transition: opacity .45s; }
.level.is-level .level__word { opacity: 1; }
.level__tool { grid-column: 7 / span 6; display: grid; gap: 16px; }
.level__vial { position: relative; height: clamp(62px, 6vw, 84px); border: 2px solid #fff; border-radius: 999px; background: rgba(21, 21, 20, .2); touch-action: pan-y; cursor: ew-resize; }
.level__vial::before, .level__vial::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: .9; }
.level__vial::before { left: calc(50% - clamp(34px, 3.3vw, 46px)); }
.level__vial::after { left: calc(50% + clamp(34px, 3.3vw, 46px) - 2px); }
.level__bubble { position: absolute; left: 50%; top: 50%; width: clamp(46px, 4.6vw, 64px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); box-shadow: inset -6px -6px 0 rgba(21, 21, 20, .1); transform: translate(calc(-50% + var(--x, 0px)), -50%); }
.level__read { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13px; font-variant-numeric: tabular-nums; }
.level__read span:first-child { font-weight: 600; }
.level__note { font-size: 15px; line-height: 1.55; max-width: 52ch; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .4); }

/* ---------- Рулетка у правого края: страница измеряется в метрах ---------- */
.tape { display: none; }
@media (min-width: 1000px) {
  body { position: relative; }
  .tape { --cm: 38px; display: block; position: absolute; z-index: 40; top: 0; right: 0; width: 34px; height: 100%; pointer-events: none; color: #8C877F; background: repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px calc(var(--cm) * 10)) right top / 16px 100% no-repeat, repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px calc(var(--cm) * 5)) right top / 11px 100% no-repeat, repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px var(--cm)) right top / 6px 100% no-repeat; }
  .tape__marks i { position: absolute; right: 20px; font-style: normal; font-size: 9px; line-height: 1; font-variant-numeric: tabular-nums; transform: translateY(-50%); white-space: nowrap; }
  .tape__marks i.is-m { font-weight: 600; color: var(--red); }
  .tape__now { position: fixed; top: 50%; right: 0; display: flex; align-items: center; transform: translateY(-50%); }
  .tape__now span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 7px 2px; background: var(--red); color: #fff; font-size: 10px; line-height: 1.2; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tape__now::after { content: ""; width: 16px; height: 2px; background: var(--red); }
}

/* [ui] */
/* ---------- Подсказка «здесь можно нажать» ---------- */
.hint { display: flex; align-items: center; gap: 9px; font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-sm); }
.hint__ic { width: 14px; height: 14px; flex: none; fill: currentColor; }
.is-in .hint__ic { animation: tap 1.5s var(--ease) .7s 2; }
@keyframes tap { 0%, 100% { transform: none; } 45% { transform: translate(3px, 3px) scale(.84); } }

/* Типы объектов: строки меню с номером и стрелкой */
.pick__btn { display: flex; align-items: baseline; gap: clamp(12px, 1.4vw, 20px); width: 100%; padding: clamp(10px, 1.1vw, 16px) 0; text-align: left; font-size: clamp(27px, 3.1vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -.036em; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.pick__btn i { font-style: normal; font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pick__btn .ar { width: 15px; height: 15px; margin-left: auto; align-self: center; opacity: .4; transition: transform .35s var(--ease), opacity .3s, color .3s; }
.pick__btn:hover { color: var(--fg); border-bottom-color: var(--fg); }
.pick__btn:hover .ar { opacity: 1; transform: translateX(4px); }
.pick__item.is-active .pick__btn { color: var(--fg); border-bottom-color: var(--fg); }
.pick__item.is-active .pick__btn i, .pick__item.is-active .pick__btn .ar { color: var(--red); opacity: 1; }
.pick__hint { margin-bottom: 12px; }

/* Роли заказчика: плитки-кнопки */
.roles__hint { margin-bottom: 16px; }
.roles__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(40px, 5vw, 76px); }
.roles__tab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; text-align: left; border: 1px solid var(--line); font-size: clamp(16px, 1.5vw, 22px); line-height: 1.15; letter-spacing: -.025em; color: var(--fg); transition: background-color .3s, color .3s, border-color .3s; }
.roles__tab i { font-style: normal; font-size: 12px; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s; }
.roles__tab .ar { opacity: .45; transition: transform .35s var(--ease), opacity .3s, color .3s; }
.roles__tab:hover { border-color: var(--fg); }
.roles__tab:hover .ar { opacity: 1; transform: translate(2px, -2px); }
.roles__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.roles__tab[aria-selected="true"] i { color: #EC7466; }
.roles__tab[aria-selected="true"] .ar { opacity: 1; color: #EC7466; transform: rotate(90deg); }

/* Форматы ремонта: строки с номером и стрелкой */
.fmt__tab { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; text-align: left; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.025em; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.fmt__tab i { font-style: normal; font-size: 12px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fmt__tab .ar { width: 13px; height: 13px; margin-left: auto; align-self: center; opacity: .4; transition: transform .35s var(--ease), opacity .3s, color .3s; }
.fmt__tab:hover { color: var(--fg); border-bottom-color: var(--fg); }
.fmt__tab:hover .ar { opacity: 1; transform: translateX(4px); }
.fmt__tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }
.fmt__tab[aria-selected="true"] i, .fmt__tab[aria-selected="true"] .ar { color: var(--red); opacity: 1; }

@media (min-width: 1000px) {
  .pick__hint { grid-column: 1; grid-row: 1; align-self: end; }
  .pick__btn { grid-column: 1; }
  .pick__item:nth-child(2) .pick__btn { grid-row: 2; }
  .pick__item:nth-child(3) .pick__btn { grid-row: 3; }
  .pick__item:nth-child(4) .pick__btn { grid-row: 4; }
  .pick__item:nth-child(5) .pick__btn { grid-row: 5; }
}
@media (max-width: 999px) {
  .roles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .roles__tab { min-height: 64px; padding: 12px 14px; gap: 10px; }
}
@media (max-width: 480px) {
  .roles__tab { grid-template-columns: auto minmax(0, 1fr); font-size: 15px; }
  .roles__tab .ar { display: none; }
}
/* [/ui] */
/* [blog] */
/* ---------- Подпись раздела внутри заголовка ---------- */
.head__title .label { margin-bottom: 14px; }

/* ---------- Блог: шапка страницы и список статей ---------- */
.sec--tight { padding-top: 0; }
.page-head { background: var(--bg); color: var(--fg); padding: clamp(150px, 15vw, 220px) 0 clamp(40px, 5vw, 72px); }
.page-head__title { font-size: clamp(38px, 5.4vw, 88px); font-weight: 300; line-height: .98; letter-spacing: -.045em; margin: 22px 0; text-wrap: balance; }
.page-head__title em { display: block; font-style: normal; color: var(--accent); }
.page-head__text { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #6B665E; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(21, 21, 20, .25); transition: color .3s; }
.crumbs a:hover { color: var(--ink); }

.posts { border-top: 1px solid var(--line); }
.posts__link { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 9fr) auto; gap: 14px var(--gap); align-items: baseline; padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.posts__meta { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.posts__text { display: grid; gap: 10px; }
.posts__title { font-size: clamp(22px, 2.5vw, 38px); line-height: 1.08; letter-spacing: -.035em; transition: color .3s; text-wrap: balance; }
.posts__desc { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.posts__link .ar { width: 15px; height: 15px; align-self: center; opacity: .4; transition: transform .35s var(--ease), opacity .3s, color .3s; }
.posts__link:hover { border-bottom-color: var(--fg); }
.posts__link:hover .posts__title { color: var(--accent-sm); }
.posts__link:hover .ar { opacity: 1; color: var(--red); transform: translateX(5px); }
.posts__all { margin-top: 30px; }
.posts__h { margin-bottom: 34px; }

.empty { display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 4vw, 60px); border: 1px solid var(--line); }
.empty__title { font-size: clamp(26px, 3vw, 44px); font-weight: 300; line-height: 1.05; letter-spacing: -.04em; }
.empty__text { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 52ch; }

/* ---------- Блог: страница статьи ---------- */
.post { background: #fff; padding-bottom: clamp(64px, 8vw, 120px); }
.post__head { background: var(--paper); padding: clamp(150px, 15vw, 210px) 0 clamp(36px, 4.5vw, 60px); }
.post__title { font-size: clamp(32px, 4.4vw, 66px); font-weight: 400; line-height: 1.02; letter-spacing: -.04em; max-width: 22ch; margin: 22px 0 20px; text-wrap: balance; }
.post__lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: #4A4742; max-width: 62ch; }
.post__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-size: 12.5px; color: #6B665E; }
.post__body { max-width: 720px; padding-top: clamp(36px, 5vw, 70px); font-size: 17px; line-height: 1.7; color: #26241F; }
.post__body > * + * { margin-top: 1.05em; }
.post__body h2 { font-size: clamp(24px, 2.5vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; margin-top: 1.9em; }
.post__body h3 { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; margin-top: 1.6em; }
.post__body a { color: var(--red-d); text-decoration: underline; text-underline-offset: 3px; }
.post__body ul, .post__body ol { display: grid; gap: .5em; }
.post__body ul li { position: relative; padding-left: 26px; }
.post__body ul li::before { content: ""; position: absolute; left: 1px; top: .58em; width: 10px; height: 10px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); }
.post__body ol { counter-reset: n; }
.post__body ol li { position: relative; padding-left: 38px; counter-increment: n; }
.post__body ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .34em; font-size: 12px; font-weight: 600; color: var(--red-d); font-variant-numeric: tabular-nums; }
.post__body blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red); font-size: 1.15em; line-height: 1.5; letter-spacing: -.01em; }
.post__body img { width: 100%; margin-top: 1.6em; }
.post__cta { max-width: 720px; display: grid; gap: 14px; margin-top: clamp(44px, 6vw, 80px); padding: clamp(24px, 3.2vw, 44px); background: var(--ink); color: var(--paper); }
.post__cta p { font-size: 15px; line-height: 1.55; color: rgba(243, 240, 234, .72); max-width: 52ch; }
.post__cta .post__cta-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 300; line-height: 1.08; letter-spacing: -.035em; color: var(--paper); }
.post__cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; }

@media (max-width: 760px) {
  .posts__link { grid-template-columns: minmax(0, 1fr) auto; }
  .posts__meta { grid-column: 1 / -1; display: flex; gap: 16px; }
}
/* [/blog] */
/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) var(--rd, 0s), transform 1s var(--ease) var(--rd, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =========================================================
   Планшеты и телефоны
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav a { font-size: 11.5px; letter-spacing: .03em; }
}

@media (max-width: 999px) {
  html { scroll-padding-top: 76px; }
  .nav, .header.is-stuck .header__cta { display: none; }
  .burger { display: block; }
  .header { padding: 14px var(--pad); }
  .header.is-stuck { top: 8px; left: 10px; right: 10px; padding: 6px 4px 6px 14px; }
  .logo { height: 48px; }
  .header.is-stuck .logo { height: 38px; }
  .header.is-menu { top: 0; left: 0; right: 0; padding: 14px var(--pad); border-radius: 0; }
  .header.is-menu .logo { height: 48px; }

  /* Первый экран на телефоне: фото стоит карточкой внизу экрана и при прокрутке раскрывается на весь экран */
  :root { --hero-ml: var(--pad); --hero-mt: 44svh; --hero-mb: 0px; }
  .hero { background: #1B1A19; }
  .hero.is-pin { height: 172svh; }
  .hero__stage { min-height: max(100svh, 560px); background: var(--paper); }
  .hero.is-pin .hero__stage { height: 100svh; }
  .hero__layer { padding: 92px var(--pad) 24px; gap: 24px; }
  .hero__top { margin: 0; }
  .hero__bottom { max-width: none; gap: 18px; }
  .hero__eyebrow { margin-bottom: 14px; }
  .hero__title { font-size: clamp(34px, 10.2vw, 76px); }
  .hero__title .ln > span { white-space: normal; }
  .hero__title .hero__sub { font-size: .44em; margin-top: 1em; }
  .hero__angle, .hero__claim { display: none; }
  .hero__desc { font-size: 14.5px; opacity: 1; max-width: 46ch; }
  .hero__layer--over .hero__desc { visibility: visible; color: rgba(255, 255, 255, .92); }
  .hero__cta { gap: 14px 24px; }
  .hero__cta .btn { flex: 1 1 200px; }
  .hero__media::after { background: linear-gradient(180deg, rgba(21, 21, 20, .7) 0%, rgba(21, 21, 20, .28) 44%, rgba(21, 21, 20, .84) 100%); }

  .head__title, .head__text { grid-column: 1 / -1; }
  .head__text { max-width: 52ch; }

  .pick__detail { display: none; padding-bottom: 28px; }
  .pick__item.is-active .pick__detail { display: block; animation: fadeUp .5s var(--ease); }

  .roles__img, .roles__txt { grid-column: 1 / -1; }



  .steps { --tape-x: 0px; padding-left: 36px; }
  .step__when { position: static; grid-column: 1 / -1; margin-bottom: 8px; }
  .plan__draw, .plan__side { grid-column: 1 / -1; }
  .level__txt, .level__tool { grid-column: 1 / -1; }
  .fmt__tabs, .fmt__panels { grid-column: 1 / -1; }
  .fmt__title { max-width: none; }

  .calc { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .contact__info, .contact__card { grid-column: 1 / -1; }
  .contact__card { box-shadow: 10px 10px 0 var(--red); margin-right: 10px; }
  .footer__nav, .footer__contacts { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .promises { grid-template-columns: 1fr; }
  .promise, .promise:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
  .fmt__cols { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 3px; }
  .faq__a { padding-right: 0; }
  .seg span { padding: 11px 14px; font-size: 14px; }
  .footer__bot { flex-direction: column; }
}

/* Меньше движения, если так настроено в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .step { opacity: 1; }
}

/* [mobile] */
/* ---------- Лента-рулетка: бегущая строка после первого экрана ---------- */
.ribbon { overflow: hidden; background-color: var(--ink); color: var(--paper); background-image: repeating-linear-gradient(90deg, rgba(243, 240, 234, .5) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(243, 240, 234, .5) 0 1px, transparent 1px 60px); background-size: 100% 6px, 100% 13px; background-repeat: no-repeat; }
.ribbon__track { display: flex; align-items: center; width: max-content; padding-block: clamp(26px, 3vw, 42px) clamp(18px, 2.2vw, 30px); animation: ribbon 46s linear infinite; }
.ribbon__track span { font-size: clamp(26px, 4.2vw, 62px); font-weight: 300; line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.ribbon__track i { flex: none; width: clamp(13px, 1.5vw, 22px); aspect-ratio: 114 / 144; margin-inline: clamp(18px, 2.4vw, 40px); background: var(--red); clip-path: polygon(0 0, 23% 0, 23% 82%, 100% 82%, 100% 100%, 0 100%); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Отклик на нажатие и мелкая анимация ---------- */
.btn, .roles__tab, .plan__tab, .seg span, .pick__btn, .fmt__tab, .posts__link { -webkit-tap-highlight-color: transparent; }
.btn { transition: background-color .3s, color .3s, transform .2s; }
.btn:active, .roles__tab:active, .plan__tab:active { transform: scale(.975); }
/* красная строка заголовка проявляется слева направо */
.js [data-reveal] .head__title em { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease) .3s; }
.js [data-reveal].is-in .head__title em { clip-path: inset(0 -3% -10% 0); }
/* пункты меню на телефоне появляются по очереди */
.menu__nav a { animation: fadeUp .5s var(--ease) both; }
.menu__nav a:nth-child(2) { animation-delay: .04s; } .menu__nav a:nth-child(3) { animation-delay: .08s; }
.menu__nav a:nth-child(4) { animation-delay: .12s; } .menu__nav a:nth-child(5) { animation-delay: .16s; }
.menu__nav a:nth-child(6) { animation-delay: .2s; } .menu__nav a:nth-child(7) { animation-delay: .24s; }
.menu__nav a:nth-child(8) { animation-delay: .28s; } .menu__nav a:nth-child(9) { animation-delay: .32s; }
.menu__nav a:nth-child(10) { animation-delay: .36s; }

/* ---------- План офиса: номера зон и вид на телефоне ---------- */
.plan__num { display: none; fill: var(--muted); font-size: 46px; font-weight: 300; text-anchor: middle; pointer-events: none; transition: fill .3s; }
.plan__num.is-active { fill: #fff; }
.plan__tab i { font-style: normal; font-size: 10.5px; margin-right: 7px; opacity: .75; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .plan__svg { min-width: 0; }
  .plan__lbl { display: none; }
  .plan__num { display: block; }
  .plan__dim text { font-size: 34px; }
  .plan__dim path { stroke-width: 3; }
  .plan__wall { stroke-width: 8; }
  .plan__wall--in { stroke-width: 5; }
  .plan__furn { stroke-width: 2.4; }
}

/* ---------- Уровень: кнопка включения датчика на айфоне ---------- */
.level__btn { justify-self: start; }
.level__btn[hidden] { display: none; }

/* ---------- Листаемые карточки на телефоне ---------- */
.promises, .team { position: relative; }
.swipe { display: none; }
@media (max-width: 640px) {
  .promises, .team { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); border-top: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .promises::-webkit-scrollbar, .team::-webkit-scrollbar { display: none; }
  .promise, .promise:nth-child(even), .team__item { flex: 0 0 84%; scroll-snap-align: start; padding: 22px 20px 28px; border: 1px solid var(--line); }
  .swipe { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
}

/* ---------- Панель быстрых кнопок и рулетка на телефоне ---------- */
.dock { display: none; }
@media (max-width: 999px) {
  .dock { position: fixed; z-index: 50; left: 10px; right: 18px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; gap: 8px; transform: translateY(170%); transition: transform .55s var(--ease); pointer-events: none; }
  .dock.is-on { transform: none; pointer-events: auto; }
  .dock .btn { flex: 1 1 0; justify-content: center; min-height: 52px; padding: 0 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(21, 21, 20, .3); }
  .dock .btn:last-child { flex: 0 0 auto; }

  body { position: relative; }
  .tape { --cm: 38px; display: block; position: absolute; z-index: 40; top: 0; right: 0; width: 10px; height: 100%; pointer-events: none; color: #8C877F; background: repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px calc(var(--cm) * 5)) right top / 9px 100% no-repeat, repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px var(--cm)) right top / 5px 100% no-repeat; }
  .tape__marks { display: none; }
  .tape__now { position: fixed; top: 50%; right: 0; display: flex; align-items: center; transform: translateY(-50%); }
  .tape__now span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 5px 1px; background: var(--red); color: #fff; font-size: 9px; line-height: 1.15; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
}
/* [/mobile] */

/* заголовок зоны занимает две строки, чтобы блок не прыгал при автопереключении зон */
.plan__name { min-height: 2.06em; }
@media (max-width: 999px) { .plan__name { min-height: 0; } }

/* на телефоне главная кнопка поверх фото красная: светлая сливалась с фоном страницы */
@media (max-width: 999px) {
  .hero__layer--over .btn { background: var(--red); color: #fff; }
}
