/* Куфко Лаб — mobile-first. Токены и решения: docs/design.md */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F2F3EF;
  --paper-2: #E8EAE4;
  --ink: #1E2320;
  --graphite: #59605A;
  --line: #D3D6CF;
  /* акцент: кирпично-киноварный — белый текст 6,8:1, на фоне страницы 6,1:1 */
  --red: #A33426;
  --red-dark: #86281C;
  --red-soft: #EFE0DB;
  --moss: #29322B;
  --moss-2: #3A453D;
  --on-moss: #EEF0EB;
  --on-moss-2: #B3BCB3;

  --gutter: 20px;
  --wrap: 1200px;
  --section: 72px;
  --radius: 4px;

  --f-body: 1.0625rem;       /* 17px */
  --f-small: 0.875rem;       /* 14px */
  --f-h1: clamp(1.95rem, 1.1rem + 3.9vw, 4.1rem);
  --f-h2: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  --f-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.4rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--f-body)/1.55 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link-accent { color: var(--red); font-weight: 600; text-decoration-color: currentColor; }
.zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(242, 243, 239, .94); color: var(--ink); box-shadow: 0 1px 6px rgba(0,0,0,.18);
}
.zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a:hover > .zoom, .zoom:hover { background: var(--red); color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
/* Экран загрузки: только с JS (класс .js ставится в <head>), скрывается по готовности шрифта, максимум 2 с */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--paper);
  transition: opacity .35s ease, visibility 0s linear .35s;
  animation: loader-failsafe 0s linear 6s forwards; /* если app.js не загрузился — не держим экран */
}
/* animation: none — снимаем страховку loader-failsafe: Firefox, пока она ждёт своих 6 с, удерживал экран видимым */
.js.is-loaded .loader { opacity: 0; visibility: hidden; pointer-events: none; animation: none; }
.loader-demo .loader { animation: none; cursor: pointer; }
.loader__box { display: grid; justify-items: center; gap: 16px; opacity: 0; animation: loader-show .3s ease .5s forwards; }
/* Кран: мачта и стрела — статичный SVG; подвижные части — HTML-элементы: их transform/opacity браузер
   анимирует на видеокарте, поэтому кран не замирает, пока основной поток занят загрузкой страницы (Firefox) */
.crane { position: relative; width: 120px; height: 100px; }
.crane__frame { position: absolute; inset: 0; overflow: visible; }
.crane__line, .crane__thin { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.crane__line { stroke-width: 2; }
.crane__thin { stroke-width: 1.2; }
.crane__fill { fill: var(--ink); }
.crane__carriage { position: absolute; left: 60px; top: 26px; width: 7px; height: 3px; }
.crane__trolley { position: absolute; inset: 0; background: var(--ink); }
.crane__cable { position: absolute; left: 3px; top: 3px; width: 1px; height: 49px; background: var(--ink); transform-origin: 50% 0; }
.crane__hook { position: absolute; left: -1px; top: 8px; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }
.crane__load { position: absolute; left: 57px; top: 41px; width: 13px; height: 9px; background: var(--red); }
.crane__carriage, .crane__cable, .crane__hook, .crane__load { will-change: transform; }
/* цикл 5 с: груз лежит слева → крюк опускается и поднимает его → тележка везёт вправо →
   опускает на землю → крюк вверх пустой → тележка назад → груз справа исчезает, слева появляется новый */
/* цикл стартует вместе с появлением крана (.5 с), чтобы первое, что видно, — движение крюка */
.crane__carriage { animation: crane-trolley 5s ease-in-out .5s infinite both; }
.crane__hook { animation: crane-hook 5s ease-in-out .5s infinite both; }
.crane__cable { animation: crane-cable 5s ease-in-out .5s infinite both; }
.crane__load { animation: crane-load 5s ease-in-out .5s infinite both; }
@keyframes crane-trolley { 0%, 30% { transform: translateX(0); } 52%, 80% { transform: translateX(34px); } 94%, 100% { transform: translateX(0); } }
@keyframes crane-hook { 0% { transform: translateY(0); } 14% { transform: translateY(43px); } 30%, 52% { transform: translateY(0); } 68% { transform: translateY(43px); } 80%, 100% { transform: translateY(0); } }
@keyframes crane-cable { 0% { transform: scaleY(.122); } 14% { transform: scaleY(1); } 30%, 52% { transform: scaleY(.122); } 68% { transform: scaleY(1); } 80%, 100% { transform: scaleY(.122); } }
@keyframes crane-load {
  0%, 14% { transform: translate(0, 43px); opacity: 1; }
  30% { transform: translate(0, 0); opacity: 1; }
  52% { transform: translate(34px, 0); opacity: 1; }
  68%, 86% { transform: translate(34px, 43px); opacity: 1; }
  92% { transform: translate(34px, 43px); opacity: 0; }
  93% { transform: translate(0, 43px); opacity: 0; }
  100% { transform: translate(0, 43px); opacity: 1; }
}
/* подпись и горизонтальная полоса-индикатор под ней */
.loader__name { font-weight: 650; font-size: 1.5rem; letter-spacing: -0.015em; color: var(--ink); line-height: 1.2; }
.loader__bar { position: relative; display: block; width: 88px; height: 2px; margin-top: -4px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar::after { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 100%; background: var(--red); border-radius: 2px; animation: loader-bar 1.1s ease-in-out infinite alternate; }
@keyframes loader-bar { from { transform: translateX(0); } to { transform: translateX(60px); } }
.js.is-loaded .loader__bar::after { animation-play-state: paused; }
.loader__status { margin-top: -6px; color: var(--graphite); font-size: var(--f-small); letter-spacing: 0.02em; }
.js.is-loaded .crane * { animation-play-state: paused; }
@keyframes loader-show { to { opacity: 1; } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* Типографика */
.h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 14px; background: var(--red); }
.h2 { font-size: var(--f-h2); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }
.h3 { font-size: var(--f-h3); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.section-lead { margin-top: 12px; color: var(--graphite); max-width: 52ch; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--red); color: #fff;
  border: 1px solid var(--red); border-radius: var(--radius);
  font: 600 1rem/1.2 inherit; font-family: inherit; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--lg { min-height: 54px; padding: 15px 26px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 0.9375rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn:hover { border-color: var(--red); color: var(--red); }

/* Шапка */
.header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.1875rem; letter-spacing: -0.015em; text-decoration: none; }
.logo__mark { display: inline-block; width: 3px; height: 1.05em; background: var(--red); }
.nav { display: none; }
.header__cta { display: none; color: var(--red); border-color: var(--red); }
.header__tel { display: none; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.header__tel:hover { color: var(--red); }
.header__call { color: var(--red); border-color: var(--red); }
.header__call svg { fill: currentColor; stroke: none; width: 20px; height: 20px; }
.header__call:hover { background: var(--red); color: #fff; }
.header__cta:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* 1. Первый экран */
.hero { padding-top: 24px; padding-bottom: 24px; }
.hero__expo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--red); font-size: var(--f-small); font-weight: 600; }
.hero__expo::before { content: ""; width: 14px; height: 2px; background: var(--red); flex: none; }
.hero__kicker { color: var(--graphite); font-size: var(--f-small); font-weight: 500; }
.hero__title {
  margin-top: 10px; font-size: var(--f-h1); line-height: 1.06; font-weight: 640; letter-spacing: -0.03em;
  max-width: 17ch; text-wrap: balance;
}
.hero__lead { margin-top: 16px; max-width: 46ch; }
.hero__for { margin-top: 10px; color: var(--graphite); font-size: 0.9375rem; }
.hero__action { margin-top: 24px; }
.hero__cta { width: 100%; }

/* 2. Проекты */
.projects { padding-top: 12px; }
.projects .section-lead { display: none; }
.project { margin-top: 56px; }
.project.project--zavod { margin-top: 24px; }
/* Шапка проекта: название + тип объекта; между проектами — тонкая линия и воздух */
.project__head { display: grid; gap: 2px; margin-bottom: 20px; }
.project__head .h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); letter-spacing: -0.015em; }
.project__type { color: var(--graphite); font-size: 0.9375rem; }
.project + .project .project__head { padding-top: 24px; border-top: 1px solid var(--line); }
.alleya .project__head, .territory .project__head { margin-bottom: 0; }
.project__body { margin-top: 12px; }
.project__text { margin-top: 14px; max-width: 62ch; }
.project__short { margin-top: 8px; max-width: 60ch; }
/* «Подробнее» — в той же строке, что и описание; кликабельна вся строка */
.more { margin-top: 8px; }
.more summary { display: block; cursor: pointer; list-style: none; max-width: 62ch; }
.more summary::-webkit-details-marker { display: none; }
.more .project__short { margin: 0; }
.more__link { display: inline-flex; align-items: center; gap: 6px; margin-left: 0; color: var(--red); font-weight: 600; white-space: nowrap; }
.more__link::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.more[open] .more__link::after { margin-top: 3px; transform: rotate(-135deg); }
.more summary:hover .more__link { text-decoration: underline; text-underline-offset: 0.18em; }
.more .more__close, .more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }
.more__body { padding: 14px 0 6px; }
.more__body .facts { margin-top: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 10px; font-size: var(--f-small); }
.facts dt { color: var(--graphite); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--red); }

/* Было / стало */
.compare-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.compare { position: relative; background: var(--paper-2); }
.compare__pane { position: relative; }
.compare__pane + .compare__pane { margin-top: 8px; }
.compare__pane img { width: 100%; }
.compare__label {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: var(--radius);
  background: rgba(242, 243, 239, .92); color: var(--ink); font-size: var(--f-small); font-weight: 600;
}
.compare__label--before { left: 12px; }
.compare__label--after { right: 12px; }
.compare__hint { margin-top: 10px; color: var(--graphite); font-size: var(--f-small); }

/* С JS: наложение кадров и красная линия */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.js .compare { aspect-ratio: 1538 / 1022; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; --pos: 50%; }
.js .compare__pane { position: absolute; inset: 0; margin: 0 !important; }
.js .compare__pane img { width: 100%; height: 100%; object-fit: cover; }
.js .compare__pane--after { clip-path: inset(0 0 0 var(--pos)); }
.js .compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px;
  display: flex; justify-content: center; cursor: ew-resize; outline-offset: -6px;
}
.js .compare__handle::before { content: ""; width: 3px; height: 100%; background: var(--red); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.compare__grip {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: var(--red); box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.compare__grip::before, .compare__grip::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.compare__grip::before { left: 9px; border-right: 7px solid #fff; }
.compare__grip::after { right: 9px; border-left: 7px solid #fff; }
.compare.is-nudging { transition: --pos .6s ease; }

/* Аллея: заголовок, описание, горизонтальный генплан, крупный вид из точки */
.alleya { display: grid; gap: 20px; }
.alleya__intro { display: grid; gap: 4px; margin-top: -8px; }
.alleya__how { margin-top: -8px; color: var(--red); font-size: var(--f-small); font-weight: 550; }
.alleya__plan { position: relative; aspect-ratio: 2169 / 506; background: var(--paper-2); cursor: zoom-in; }
.alleya__plan img { width: 100%; height: 100%; object-fit: cover; }
.pt {
  position: absolute; left: var(--hx); top: var(--hy); transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--ink); color: var(--paper); border: 2px solid var(--paper);
  font-size: 0.8125rem; font-weight: 650; text-decoration: none; line-height: 1; cursor: pointer;
}
.pt::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.pt:hover { background: var(--red); }
.pt[aria-current="true"] { background: var(--red); box-shadow: 0 0 0 5px rgba(163, 52, 38, .3); z-index: 2; }
/* координаты — tools/alleya-points.json (план повёрнут: вход слева) */
.pt-1 { --hx: 15.1%; --hy: 51.4%; }
.pt-2 { --hx: 35.3%; --hy: 71.6%; }
.pt-3 { --hx: 51.7%; --hy: 27.9%; }
.pt-4 { --hx: 64.4%; --hy: 75.7%; }
.pt-5 { --hx: 70.3%; --hy: 23.0%; }
.pt-6 { --hx: 85.1%; --hy: 28.4%; }

.alleya__stage { display: grid; gap: 16px; }
.alleya__views { display: grid; gap: 16px; }
.alleya__shot { position: relative; display: block; background: var(--paper-2); cursor: zoom-in; }
.alleya__shot img { width: 100%; }
.alleya__views figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 0.9375rem; font-weight: 600; }
.alleya__n { color: var(--red); font-weight: 650; font-variant-numeric: tabular-nums; min-width: 2.2em; }
.alleya__list { display: none; }
.alleya__full { display: inline-block; font-size: 0.9375rem; font-weight: 600; color: var(--red); text-decoration-color: currentColor; }

/* С JS: один вид за раз */
.js .alleya__viewer { position: relative; }
.js .alleya__views { display: block; position: relative; touch-action: pan-y; }
.js .alleya__views li { display: none; }
.js .alleya__views li.is-active { display: block; animation: fade .22s ease; }
.js .alleya__shot img { aspect-ratio: 2.3 / 1; object-fit: cover; }
.js .alleya__views figcaption { padding-right: 104px; min-height: 44px; }
.js .alleya__nav { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .alleya__views li.is-active { animation: none; } }

/* Территория: без фона — белое поле рендера растворяется в цвете страницы */
.territory { display: grid; gap: 20px; }
.territory__img { position: relative; display: block; cursor: zoom-in; }
.territory__body { margin-top: -8px; }
.territory__img img { width: 100%; } /* фон страницы запечён в картинку при сборке — без mix-blend-mode */

.projects__cta { margin-top: 44px; padding-top: 28px; display: grid; gap: 16px; justify-items: start;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.projects__cta p { font-size: 1.125rem; font-weight: 550; max-width: 40ch; }

/* Наш подход: заголовок, одна фраза, схема трёх задач */
.approach { padding-top: var(--section); display: grid; gap: 28px; }
.approach__statement {
  margin-top: 16px; padding-left: 18px; border-left: 3px solid var(--red);
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem); line-height: 1.2; font-weight: 450; letter-spacing: -0.015em;
  color: var(--graphite); max-width: 18ch; text-wrap: balance;
}
.approach__venn { width: 100%; max-width: 360px; justify-self: center; }
.approach__venn svg { display: block; width: 100%; height: auto; overflow: visible; }
.venn__c { stroke-width: 1.5; }
.venn__c--owner  { fill: rgba(30, 35, 32, .06);  stroke: #7E857E; }
.venn__c--people { fill: rgba(163, 52, 38, .08); stroke: var(--red); }
.venn__c--place  { fill: rgba(64, 112, 78, .09); stroke: #4F7A5B; }
.venn__label { font-size: 15px; font-weight: 650; text-anchor: middle; letter-spacing: -0.01em; }
.venn__label--owner { fill: var(--ink); }
.venn__label--people { fill: var(--red-dark); }
.venn__label--place { fill: #3D6247; }
.venn__halo { fill: rgba(163, 52, 38, .14); }
.venn__core { fill: var(--red); }
.venn__core-text { fill: #fff; font-size: 13px; font-weight: 650; text-anchor: middle; }

/* Когда обращаются — раскрывающиеся пункты (по умолчанию свёрнуты) */
.tasks { padding-top: var(--section); }
.tasks__list { margin-top: 24px; border-top: 1px solid var(--line); }
.tasks__list .acc p { color: var(--graphite); }

/* Раскрывающийся пункт — задачи, услуги, вопросы. Поворот «+» → «×» — маленькое движение по нажатию,
   оставляем его и при prefers-reduced-motion (режим защищает от крупных сдвигов, а не от таких подсказок) */
.acc { border-bottom: 1px solid var(--line); }
.acc summary { position: relative; list-style: none; cursor: pointer; padding: 16px 48px 16px 0; font-weight: 600; line-height: 1.35; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font: inherit; }
.acc summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 12px no-repeat;
  transition: transform .38s cubic-bezier(.2, .8, .2, 1), background-color .25s ease, border-color .25s ease;
}
.acc summary:hover::after { border-color: var(--red); }
.acc[open] summary::after { transform: rotate(135deg); background-color: var(--red-soft); border-color: var(--red-soft); }
.acc > p { padding: 0 48px 18px 0; max-width: 64ch; }

/* 4. Услуги — три раскрывающихся пункта (по умолчанию свёрнуты) */
.services { padding-top: var(--section); }
.svc-list { margin-top: 24px; border-top: 1px solid var(--line); }
.svc summary { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.svc__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px; color: var(--ink); }
.svc__icon svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc__icon .i-accent { stroke: var(--red); }
.svc__icon .i-fill { fill: var(--red); stroke: none; }
.svc__icon .i-win { fill: currentColor; stroke: none; }
.svc__icon .i-knock { fill: var(--paper); } /* лупа перекрывает строки под собой */
.svc summary .svc__title { align-self: end; }
.svc__short { align-self: start; }
.svc summary .svc__title { font-size: 1.1875rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.svc__short { display: block; margin-top: 4px; color: var(--graphite); font-weight: 400; font-size: 0.9375rem; line-height: 1.4; }
.svc[open] .svc__title { color: var(--red); }
.svc__body { display: grid; gap: 12px; justify-items: start; padding: 0 0 26px; }
.svc__body > :not(.svc__link) { max-width: 70ch; }
.svc__body > p { color: var(--ink); }
.svc__sub { margin-top: 4px; font-size: 1rem; font-weight: 650; }
.deliverables { display: grid; gap: 8px; }
.deliverables li { position: relative; padding-left: 22px; }
.deliverables li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--red); }
.svc__q { font-weight: 600; }
.svc__why { padding: 12px 14px; border-left: 3px solid var(--red); background: var(--paper-2); font-size: 0.9375rem; }
.svc__tag { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--red); color: var(--red); font-size: 0.75rem; font-weight: 600; letter-spacing: 0; vertical-align: 0.2em; }
.svc__examples { color: var(--graphite); font-size: 0.9375rem; }
.svc__examples a { color: var(--red); text-decoration-color: currentColor; font-weight: 550; }
.svc__link { justify-self: end; margin-top: 4px; padding: 10px 0; color: var(--red); font-weight: 650; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 0.22em; }
.svc__link:hover { color: var(--red-dark); }
.services__note { margin-top: 20px; color: var(--graphite); font-size: 0.9375rem; max-width: 70ch; }

/* 5. Основательница */
.about { padding-top: var(--section); padding-bottom: calc(var(--section) * .8); display: grid; gap: 24px; }
.about__photo { width: 100%; max-width: 440px; }
.about__photo a { display: block; cursor: zoom-in; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__body { display: grid; gap: 14px; }
.about__body p { max-width: 60ch; }
.about__name { position: relative; margin-top: 8px; padding-left: 36px; font-size: 1.0625rem; color: var(--graphite); }
.about__name::before { content: ""; position: absolute; left: 0; top: .78em; width: 24px; height: 2px; background: var(--red); } /* подпись под текстом */
.about__name strong { color: var(--ink); font-weight: 650; }

/* 6. Шаги и вопросы */
.faq-section { padding-top: var(--section); }
.faq-section .faq { margin-top: 24px; }
.faq__title { margin-top: 48px; font-size: var(--f-h3); font-weight: 600; }
.faq { margin-top: 14px; border-top: 1px solid var(--line); }
.faq .acc p { color: var(--graphite); }

/* 7. Заявка */
.contact { background: var(--moss); color: var(--on-moss); padding: var(--section) 0; }
.contact a { color: #fff; }
.contact__grid { display: grid; gap: 32px; }
.contact__intro p { margin-top: 14px; color: var(--on-moss-2); max-width: 46ch; }
.contact__open { margin-top: 24px; }
.form { display: grid; gap: 16px; }
.form__topic { font-size: var(--f-small); color: var(--on-moss-2); }
.form__topic span { color: #fff; font-weight: 600; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 550; }
.req { color: #EFA595; }
.field input[type="text"], .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--paper); border-radius: var(--radius);
  font: 400 1.0625rem/1.4 inherit; font-family: inherit;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: #7F867F; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: #EFA595 !important; }
.field__err { color: #F2B8AA; font-size: var(--f-small); }
.field--check { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--red); }
.field--check label { font-weight: 400; font-size: 0.9375rem; color: var(--on-moss-2); line-height: 1.45; }
.field--check .field__err { grid-column: 2; }
.form__submit { width: 100%; }
.form__status:empty { display: none; }
.form__status { font-size: 0.9375rem; line-height: 1.45; }
.form__status.is-error { color: #F2B8AA; }
.form-done { padding: 24px 20px; border: 1px solid var(--moss-2); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.form-done h3 { font-size: 1.25rem; font-weight: 650; color: #fff; }
.form-done p { margin-top: 8px; color: var(--on-moss-2); }

.direct { border-top: 1px solid var(--moss-2); padding-top: 24px; }
.direct__title { color: var(--on-moss-2); font-size: var(--f-small); }
.direct__list { margin-top: 10px; }
.direct__list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--moss-2); }
.direct__label { grid-column: 1; color: var(--on-moss-2); font-size: var(--f-small); }
.direct__value { grid-column: 1; font-size: 1.1875rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; word-break: break-all; }
.copy {
  grid-column: 2; grid-row: 1 / span 2; min-height: 40px; padding: 6px 12px;
  background: transparent; color: var(--on-moss); border: 1px solid var(--moss-2); border-radius: var(--radius);
  font: 500 0.875rem/1 inherit; font-family: inherit; cursor: pointer;
}
.copy:hover { border-color: var(--on-moss-2); }
.copy.is-done { border-color: var(--red); }
.direct__vcf { display: inline-block; margin-top: 16px; font-weight: 600; }
.direct__partners { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--moss-2); }
.direct__partners p { color: var(--on-moss-2); font-size: 0.9375rem; }
.direct__partners a { display: inline-block; margin-top: 8px; font-weight: 600; }

/* Окно заявки */
.modal {
  width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 12px; background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28); overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(20, 24, 21, .55); }
.modal[open] { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
html.modal-open { overflow: hidden; }
.modal__box { padding: 22px 24px 26px; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__title { font-size: 1.5rem; line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; outline: none; }
.modal__title::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 12px; background: var(--red); }
.modal__close { flex: none; margin: -4px -8px 0 0; }
.modal__lead { margin: 10px 0 18px; color: var(--graphite); font-size: 0.9375rem; }
.modal__direct { margin-top: 16px; color: var(--graphite); font-size: 0.9375rem; }
.modal__direct a { color: var(--red); font-weight: 600; text-decoration-color: currentColor; }
.modal .form__topic { color: var(--graphite); }
.modal .form__topic span { color: var(--red); }
.modal .field label { color: var(--ink); }
.modal .req { color: var(--red); }
.modal .field input[type="text"], .modal .field textarea { background: #fff; border: 1px solid #C5CAC2; }
.modal .field input:focus, .modal .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.modal .field [aria-invalid="true"] { border-color: var(--red) !important; }
.modal .field__err, .modal .form__status.is-error { color: var(--red); }
.modal .field--check label { color: var(--graphite); }
.modal .field--check a { color: var(--ink); }
.modal .form__submit { width: 100%; }
.modal .form-done { border-color: var(--line); background: #fff; }
.modal .form-done h3 { color: var(--ink); }
.modal .form-done p { color: var(--graphite); }
.modal .form-done .btn { margin-top: 16px; }
@media (max-width: 599px) {
  .modal { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; box-shadow: none; }
  .modal__box { padding: max(14px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
  .modal__head { position: sticky; top: 0; z-index: 2; margin: 0 -20px; padding: 10px 20px 8px; background: var(--paper); }
}

/* Подвал */
.footer { padding: 36px 0 120px; font-size: var(--f-small); color: var(--graphite); }
.footer__grid { display: grid; gap: 18px; }
.footer__brand { color: var(--ink); font-weight: 650; font-size: 1rem; display: block; }
.footer__brand .logo__mark { margin-right: 10px; vertical-align: -0.12em; }
.footer__brand span:not(.logo__mark) { color: var(--graphite); font-weight: 400; font-size: var(--f-small); }

/* Липкая панель (мобильный) */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; gap: 8px; padding: 6px; border-radius: 10px;
  background: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transform: translateY(0); transition: transform .25s ease, opacity .25s ease;
}
.dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock__cta { flex: 1; display: grid; place-items: center; min-height: 48px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 650; text-decoration: none; }
.dock__call { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: var(--moss-2); color: var(--paper); }
.dock__call svg { width: 22px; height: 22px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* Просмотр картинок (галерея) */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #141815; color: #fff; }
.lightbox::backdrop { background: #141815; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 12px 10px 16px; }
.lightbox__caption { flex: 1; font-size: 0.9375rem; line-height: 1.35; color: #DDE1DB; }
.lightbox__close { flex: none; background: var(--paper); border-color: var(--paper); color: var(--ink); }
.lightbox__stage { display: grid; place-items: center; min-height: 0; overflow: auto; padding: 0 8px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__navrow { display: flex; justify-content: center; gap: 16px; padding: 12px 0 max(16px, env(safe-area-inset-bottom)); }
.lightbox__nav { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.lightbox__nav:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lightbox.is-single .lightbox__navrow { visibility: hidden; }

/* Телефон: кнопки «Обсудить объект» внутри разделов — к правому краю, под большой палец */
@media (max-width: 599px) {
  .projects__cta .btn { justify-self: end; }
  .contact__intro { display: grid; }
  .contact__open { justify-self: end; }
}

/* ≥ 600 px */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__cta { width: auto; min-width: 280px; }
  .tasks__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; border-top: 0; }
  .tasks__list .acc { border-top: 1px solid var(--line); border-bottom: 0; }
  .tasks__list .acc:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form__submit { width: auto; justify-self: start; }
}

/* ≥ 900 px — десктопная раскладка */
@media (min-width: 900px) {
  :root { --section: 120px; }
  body { font-size: 1.125rem; }
  .header { position: sticky; top: 0; z-index: 20; background: rgba(242, 243, 239, .94); backdrop-filter: saturate(1.2) blur(8px); }
  html { scroll-padding-top: 80px; }
  .nav { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; }
  .nav a { text-decoration: none; color: var(--graphite); }
  .nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); }
  .header__row { min-height: 68px; }
  .header .btn { margin-left: 12px; }
  .header__cta { display: inline-flex; background: var(--red); color: #fff; }
  .header__call { display: none; }
  .projects .section-lead { display: block; }

  .hero { padding-top: 48px; padding-bottom: 36px; }
  .hero__title { margin-top: 14px; max-width: 24ch; }
  .hero__lead { margin-top: 0; font-size: 1.1875rem; }
  .hero__band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; margin-top: 32px; }
  .hero__action { margin-top: 0; padding: 6px 0 6px 48px; border-left: 1px solid var(--line); }
  .hero__cta { width: 100%; max-width: 360px; min-height: 60px; font-size: 1.125rem; }
  
  .projects { padding-top: 8px; }
  .project.project--zavod { margin-top: 40px; }
  .projects > .wrap:first-child { display: flex; align-items: baseline; gap: 28px; }
  .section-lead { margin-top: 0; }
  .compare-wrap { margin-top: 20px; }
  .project { margin-top: 96px; }
  .project__head { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 32px; }
  .project + .project .project__head { padding-top: 32px; }
  .project__type { text-align: right; }

  .alleya { gap: 28px; }
  .pt { width: 32px; height: 32px; font-size: 0.9375rem; }
  .alleya__stage { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 36px; align-items: center; }
  .alleya__list { display: grid; border-top: 1px solid var(--line); }
  .alleya__list a { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 550; color: var(--graphite); }
  .alleya__list a:hover { color: var(--ink); }
  .alleya__list a[aria-current="true"] { color: var(--ink); font-weight: 650; }
  .alleya__list .alleya__n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--red); color: var(--red); font-size: 0.8125rem; }
  .alleya__list a[aria-current="true"] .alleya__n { background: var(--red); color: #fff; }
  .alleya__side .alleya__full { margin-top: 18px; }
  .lightbox[open] { grid-template-rows: auto minmax(0, 1fr); }
  .lightbox__stage { padding: 0 88px 24px; }
  .lightbox__navrow { position: fixed; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); justify-content: space-between; padding: 0; pointer-events: none; }
  .lightbox__navrow .lightbox__nav { pointer-events: auto; width: 52px; height: 52px; }


  .projects__cta { grid-template-columns: 1fr auto; align-items: center; }

  .svc summary { grid-template-columns: 76px minmax(0, 1fr); column-gap: 24px; padding-top: 24px; padding-bottom: 24px; }
  .more summary { max-width: 84ch; }
  .svc__icon { width: 76px; height: 76px; }
  .svc__icon svg { width: 68px; height: 68px; }
  .svc__body { padding-left: 100px; }
  .approach { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .approach__venn { max-width: 470px; }
  .svc summary .svc__title { font-size: 1.625rem; }

  .svc__short { font-size: 1rem; }
  .svc__body { grid-template-columns: 1fr; padding-bottom: 34px; }

  .about { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .about__photo { width: 100%; justify-self: end; }
  .about__body { order: -1; }

  .faq__title { margin-top: 72px; }

  .contact__grid { grid-template-columns: 5fr 7fr; gap: 40px 72px; }
  .contact__intro { grid-column: 1; }
  .form { grid-column: 2; grid-row: 1 / span 2; }
  .direct { grid-column: 1; border-top: 0; padding-top: 0; }
  /* форма ушла во всплывающее окно: слева заголовок и кнопка, справа прямые контакты */
  .has-modal-form .contact__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
  .has-modal-form .direct { grid-column: 2; grid-row: 1; padding: 6px 0 6px 48px; border-left: 1px solid var(--moss-2); }

  .footer { padding-bottom: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }

  .dock { display: none !important; }
}


/* Служебные страницы: спасибо / ошибка / 404 / политика / согласие */
.page { padding-top: 40px; padding-bottom: 80px; }
.page h1 { font-size: var(--f-h2); line-height: 1.12; font-weight: 640; letter-spacing: -0.02em; max-width: 24ch; }
.page .page__lead { margin-top: 16px; max-width: 56ch; color: var(--graphite); }
.page .page__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.doc { max-width: 760px; }
.doc h1 { margin-bottom: 8px; }
.doc .doc__date { color: var(--graphite); font-size: var(--f-small); }
.doc h2 { margin-top: 36px; font-size: 1.25rem; font-weight: 650; line-height: 1.3; }
.doc p, .doc li { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.3em; }
.doc ol { list-style: decimal; padding-left: 1.3em; }
.doc .doc__req { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9375rem; }

@media (min-width: 1200px) {
  .header__tel { display: inline; margin-left: 12px; }
}

@media print {
  .header, .dock, .form, .lightbox { display: none !important; }
  .contact { background: none; color: #000; }
}
