/* ==========================================================================
   ABA bureau — стили сайта
   ========================================================================== */

/* Концепция: «арка» — архитектурное окно, через которое открываются интерьеры.
   Палитра материалов: штукатурка, графит с глубоким зелёным, латунь. */
:root {
  color-scheme: light;
  --paper: #E9E9E4;       /* штукатурка */
  --paper-2: #DCDCD5;     /* светлый камень */
  --ink: #1A1C19;         /* графит */
  --ink-2: #464943;
  --muted: #7B7E75;
  --line: rgba(26, 28, 25, .14);
  --night: #1D201C;       /* тёмно-зелёный лак */
  --on-night: #E9E9E4;
  --on-night-2: rgba(233, 233, 228, .6);
  --line-night: rgba(233, 233, 228, .14);
  --brass: #B08D57;       /* латунь */
  --error: #B4533F;

  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Forum', 'Cormorant Garamond', 'Times New Roman', serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;

  --gutter: clamp(16px, 3.6vw, 56px);
  --header-h: 80px;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 400;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Сетка и секции ---------- */
.container { width: 100%; max-width: 1800px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 12vw, 200px); }
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(12px, 2vw, 32px);
}
.on-night { background: var(--night); color: var(--on-night); }
.on-sand { background: var(--paper-2); }

/* ---------- Типографика ---------- */
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); line-height: 1.4;
}
.on-night .eyebrow { color: var(--on-night-2); }
.display {
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(52px, 11vw, 200px);
  line-height: .9; letter-spacing: -.045em;
}
.h2 {
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 92px);
  line-height: .96; letter-spacing: -.035em;
}
.statement {
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(26px, 3.5vw, 58px);
  line-height: 1.08; letter-spacing: -.02em;
}
.display em, .h2 em, .statement em, .footer__title em, .quote__text em {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  text-transform: none; letter-spacing: -.01em; font-size: 1.1em; line-height: .8;
}
.lead { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.55; color: var(--ink-2); }
.text { color: var(--ink-2); max-width: 60ch; }
.text p + p { margin-top: 1em; }
.on-night .text { color: var(--on-night-2); }
.num-label { font-family: var(--serif); font-style: italic; color: var(--brass); }
.count {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: .26em; letter-spacing: 0; vertical-align: top;
  margin-left: .25em; position: relative; top: .2em; color: var(--brass);
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 30px; border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }
.btn--sm { height: 42px; padding: 0 22px; font-size: 11px; }
.on-night .btn:hover, .is-light .btn:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.arrow { display: inline-block; transition: transform .5s var(--ease); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(5px); }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 8px;
}
.link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right;
}
.link:hover::after { animation: line-swipe .9s var(--ease); }
@keyframes line-swipe {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* Текст, «перекатывающийся» при наведении */
.roll {
  display: inline-flex; flex-direction: column; overflow: hidden;
  height: 1.3em; line-height: 1.3; vertical-align: top;
}
.roll > span { display: block; transition: transform .6s var(--ease); }
a:hover .roll > span, button:hover .roll > span { transform: translateY(-100%); }

/* ---------- Анимации появления ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .reveal-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal-media.is-in { clip-path: inset(0 0 0 0); }

.split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: 0 .06em .12em; margin: 0 -.06em -.12em;
}
.split .w > span { display: inline-block; }
.js .split .w > span {
  transform: translateY(110%);
  transition: transform 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + var(--d, 0ms));
}
.js .split.is-in .w > span { transform: none; }

.scrub .sw { opacity: .14; transition: opacity .5s linear; }
.scrub .sw.is-lit { opacity: 1; }

/* ---------- Заставка ---------- */
.loader { display: none; }
.has-loader .loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  transition: clip-path 1.2s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.has-loader .loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__inner { display: grid; justify-items: center; gap: 28px; }
.loader__arch { position: relative; width: clamp(130px, 13vw, 190px); aspect-ratio: 3 / 4.2; }
.loader__arch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loader__arch path {
  fill: none; stroke: currentColor; stroke-width: 1;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.8s var(--ease-io) forwards;
  vector-effect: non-scaling-stroke;
}
.loader__fill {
  position: absolute; inset: 0; border-radius: 999px 999px 0 0; overflow: hidden;
  clip-path: inset(100% 0 0 0); transition: clip-path .1s linear;
}
.loader__fill img { width: 100%; height: 100%; object-fit: cover; }
.loader__count {
  font-family: var(--display); font-size: 15px; letter-spacing: .3em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.loader__name { font-family: var(--display); font-size: 26px; letter-spacing: .16em; line-height: 1; }
.loader__name em { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Шторка перехода между страницами ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  background: var(--night); color: var(--on-night);
  display: grid; place-items: center;
  transform: translateY(100%);
}
.curtain__mark {
  width: 70px; aspect-ratio: 3 / 4; border: 1px solid var(--brass);
  border-bottom: 0; border-radius: 999px 999px 0 0;
}
.pt-enter .curtain { transform: translateY(0); }
.curtain.is-in { transform: translateY(0); transition: transform .75s var(--ease-io); }
.curtain.is-out { transform: translateY(-100%); transition: transform .95s var(--ease-io); }

/* ---------- Курсор ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  width: 0; height: 0;
}
.cursor__ball {
  position: absolute; left: -48px; top: -48px; width: 96px; height: 96px;
  border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor.is-active .cursor__ball { transform: scale(1); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  color: var(--ink);
  transition: transform .7s var(--ease), color .5s;
}
.header::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(233, 233, 228, .84);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-light { color: #fff; }
.header.is-light::before { opacity: 0; }
.header.is-hidden { transform: translateY(-101%); }
.header__inner {
  position: relative; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
}
.header__nav {
  display: flex; gap: clamp(20px, 2.4vw, 40px);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.header__link { position: relative; }
.header__link.is-current::before {
  content: ''; position: absolute; left: -12px; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.logo { display: inline-flex; align-items: baseline; gap: .3em; line-height: 1; white-space: nowrap; }
.logo__main { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: .14em; }
.logo__sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 25px; }
.header__right { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.header__phone { font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.burger {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; padding-right: 8px;
}
.burger span { display: block; width: 28px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), width .6s var(--ease); }
.burger span:last-child { width: 18px; }
.menu-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .burger span:last-child { width: 28px; transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__phone { display: none; }
}
@media (max-width: 900px) {
  .header__inner { grid-template-columns: 1fr auto; }
  .header__nav, .header__cta { display: none; }
  .logo { justify-self: start; }
  .burger { display: flex; }
}

/* ---------- Мобильное меню ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--night); color: var(--on-night);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu-open .header { color: var(--on-night); }
.menu-open .header::before { opacity: 0; }
.menu__nav { display: grid; gap: 4px; }
.menu__link {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(42px, 12vw, 80px); font-weight: 300; text-transform: uppercase;
  letter-spacing: -.04em; line-height: 1.08;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s, transform .9s var(--ease);
}
.menu-open .menu__link { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.menu__num { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0; color: var(--brass); }
.menu__foot { display: grid; gap: 6px; color: var(--on-night-2); font-size: 15px; }
.menu__foot a { color: var(--on-night); }

/* ---------- HERO главной: арка ---------- */
.hero { position: relative; height: 260vh; background: var(--paper); }
.hero.is-static { height: 100vh; height: 100svh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__words { position: absolute; inset: 0; pointer-events: none; }
.hero__word {
  position: absolute; left: 0; top: 0;
  font-family: var(--display); font-weight: 400;
  font-size: 100px; line-height: .8; letter-spacing: .02em; white-space: nowrap;
  color: var(--ink); will-change: transform;
}
.hero__word--r { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.03em; }
.hero__window {
  position: absolute; inset: 0; overflow: hidden;
  will-change: clip-path; background: #1b1916;
}
.hero__window .hero__word { color: #fff; }
.hero__slides { position: absolute; inset: 0; will-change: transform; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: kenburns 9s linear both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 12, 9, .55) 0%, rgba(10, 12, 9, .1) 22%, rgba(10, 12, 9, 0) 42%, rgba(10, 12, 9, .78) 100%);
  opacity: var(--shade, 0);
}
.hero__top {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 20px);
  display: flex; justify-content: space-between; gap: 24px;
}
.hero__hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px;
}
.hero__hint i { display: block; width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero__hint i::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 50%;
  background: var(--ink); animation: hint 2.2s var(--ease-io) infinite;
}
@keyframes hint { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
.hero__final {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(24px, 3.6vw, 48px);
  color: #fff; opacity: var(--fin, 0); pointer-events: none;
}
.hero.is-final .hero__final { pointer-events: auto; }
.hero__title { font-size: clamp(44px, 8.4vw, 156px); color: #fff; }
.hero__bar {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(24px, 3vw, 44px); padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .3);
}
.hero__caption { display: grid; gap: 6px; transition: opacity .5s; }
.hero__caption.is-swap { opacity: 0; }
.hero__caption .eyebrow { color: rgba(255, 255, 255, .72); }
.hero__name { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; display: inline-flex; gap: 14px; align-items: center; }
.hero__controls { display: flex; align-items: center; gap: 18px; }
.hero__counter { font-family: var(--display); font-size: 22px; min-width: 64px; font-variant-numeric: tabular-nums; }
.hero__counter b { font-weight: 400; }
.hero__sep, .hero__total { opacity: .55; }
.hero__lead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero__progress { display: flex; gap: 6px; }
.hero__progress i { position: relative; display: block; width: 34px; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero__progress i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__progress i.is-past::after { transform: scaleX(1); }
.hero__progress i.is-active::after { animation: progress var(--dur, 6s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center; font-size: 18px;
  transition: background .4s, color .4s, border-color .4s;
}
.hero__arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 760px) {
  .hero__top .eyebrow:last-child { display: none; }
  .hero__progress { display: none; }
  .hero__arrow { width: 44px; height: 44px; }
}

/* ---------- О бюро (главная) ---------- */
.intro__label { grid-column: 1 / 4; padding-top: .9em; }
.intro__text { grid-column: 4 / 13; }
.intro__media { margin-top: clamp(64px, 9vw, 160px); align-items: end; }
.arch {
  border-radius: 999px 999px 0 0; overflow: hidden; isolation: isolate;
  background: var(--paper-2);
}
.arch img, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame { overflow: hidden; background: var(--paper-2); }
.intro__arch { grid-column: 1 / 6; aspect-ratio: 3 / 4; }
.intro__side { grid-column: 7 / 13; display: grid; gap: 32px; align-content: end; }
.intro__side .frame { aspect-ratio: 16 / 10; width: 78%; justify-self: end; margin-top: 24px; }
.intro__side .text { max-width: 46ch; }
[data-parallax] { overflow: hidden; }
[data-parallax] > img { transform: scale(1.18); will-change: transform; }
@media (max-width: 860px) {
  .intro__label, .intro__text { grid-column: 1 / -1; }
  .intro__label { margin-bottom: 20px; padding-top: 0; }
  .intro__arch { grid-column: 1 / -1; width: 82%; }
  .intro__side { grid-column: 1 / -1; margin-top: 48px; }
  .intro__side .frame { width: 100%; }
}

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden; padding-block: clamp(20px, 2.6vw, 40px);
  border-block: 1px solid var(--line); user-select: none;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item {
  display: flex; align-items: center; gap: .45em; padding-right: .45em;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(60px, 9.5vw, 168px); line-height: 1.05; white-space: nowrap;
}
.arch-ico {
  display: inline-block; width: .38em; height: .5em; flex: none;
  border: 1px solid var(--brass); border-bottom: 0; border-radius: 999px 999px 0 0;
  transform: translateY(.04em);
}

/* ---------- Карточка проекта ---------- */
.card { display: block; position: relative; }
.card__media {
  --a: .8;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; background: var(--paper-2);
  border-radius: 0 0 0 0 / 0 0 0 0;
  transition: border-radius 1s var(--ease), clip-path 1.6s var(--ease);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__media { border-radius: 50% 50% 0 0 / calc(var(--a) * 50%) calc(var(--a) * 50%) 0 0; }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  padding: 7px 12px; border-radius: 999px; background: rgba(233, 233, 228, .92);
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  transition: opacity .4s;
}
.card:hover .card__tag { opacity: 0; }
.card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 20px; }
.card__title { font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; }
.card__loc { margin-top: 6px; font-size: 14px; color: var(--muted); }
.card__num { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1; color: var(--brass); white-space: nowrap; }

/* ---------- Горизонтальная галерея проектов ---------- */
.hs { position: relative; }
.hs__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.hs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(24px, 4vh, 56px); }
.hs__track { display: flex; align-items: flex-start; gap: clamp(24px, 4vw, 72px); padding-inline: var(--gutter); will-change: transform; }
.hs .card { flex: none; width: min(28vw, 38vh); }
.hs .card:nth-child(even) { margin-top: clamp(20px, 5vh, 64px); }
.hs .card__media img { width: 116%; max-width: none; margin-left: -8%; transform: translateX(var(--px, 0)); transition: none; }
.hs .card:hover .card__media img { transform: translateX(var(--px, 0)) scale(1.04); transition: transform 1.4s var(--ease); }
.hs__end {
  flex: none; width: min(28vw, 38vh); aspect-ratio: 4 / 5; align-self: center;
  display: grid; place-items: center; text-align: center;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 999px 999px 0 0;
  transition: background .6s var(--ease), color .6s var(--ease);
}
.hs__end:hover { background: var(--ink); color: var(--paper); }
.hs__end span { display: block; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hs__end strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(40px, 4vw, 72px); line-height: 1; margin-top: 12px; }
.hs__bar { position: relative; height: 1px; background: var(--line); margin-top: clamp(28px, 5vh, 64px); }
.hs__bar span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
@media (max-width: 860px) {
  .hs { height: auto !important; }
  .hs__sticky { position: static; height: auto; padding-block: 96px; }
  .hs__track {
    transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: 8px;
  }
  .hs__track::-webkit-scrollbar { display: none; }
  .hs .card, .hs__end { width: 76vw; scroll-snap-align: center; }
  .hs .card:nth-child(even) { margin-top: 0; }
  .hs__bar { display: none; }
}

/* ---------- Услуги (тёмный список) ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 104px); }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head__text { max-width: 42ch; }
.srv { border-top: 1px solid var(--line-night); }
.srv-row {
  display: grid; grid-template-columns: 80px minmax(0, 1.25fr) minmax(0, 1fr) 56px; align-items: center; gap: 24px;
  padding-block: clamp(24px, 2.8vw, 44px); border-bottom: 1px solid var(--line-night);
  transition: opacity .5s;
}
.srv:hover .srv-row { opacity: .32; }
.srv .srv-row:hover { opacity: 1; }
.srv-row__title { font-size: clamp(26px, 3.6vw, 60px); font-weight: 300; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.02; transition: transform .8s var(--ease); }
.srv-row:hover .srv-row__title { transform: translateX(18px); }
.srv-row__desc { color: var(--on-night-2); font-size: 15px; max-width: 40ch; }
.srv-row__arrow {
  justify-self: end; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-night); display: grid; place-items: center;
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease);
}
.srv-row:hover .srv-row__arrow { background: var(--on-night); color: var(--night); transform: rotate(-45deg); }
/* Латунная арка-иконка; при наведении раскрывается в небольшое фото услуги */
.srv-row__thumb { position: relative; width: 66px; height: 88px; }
.srv-row__arch {
  position: absolute; left: 0; top: 50%; width: 22px; height: 30px;
  transform: translateY(-50%);
  border: 1px solid var(--brass); border-bottom: 0; border-radius: 999px 999px 0 0;
  overflow: hidden; isolation: isolate;
  transition: width .8s var(--ease), height .8s var(--ease), border-color .6s;
}
.srv-row__arch img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.3);
  transition: opacity .5s, transform 1.2s var(--ease);
}
.srv-row:hover .srv-row__arch, .srv-row:focus-visible .srv-row__arch { width: 66px; height: 88px; border-color: transparent; }
.srv-row:hover .srv-row__arch img, .srv-row:focus-visible .srv-row__arch img { opacity: 1; transform: none; }
@media (hover: none) {
  .srv-row__arch { width: 100%; height: 100%; border-color: transparent; }
  .srv-row__arch img { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .srv-row { grid-template-columns: 48px 1fr 44px; gap: 16px; }
  .srv-row__thumb { width: 48px; height: 64px; }
  .srv-row:hover .srv-row__arch { width: 48px; height: 64px; }
  .srv-row__desc { display: none; }
  .srv-row__arrow { width: 44px; height: 44px; }
}

/* ---------- Этапы работы ---------- */
.process__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px); }
.process__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.process__sticky .eyebrow { margin-bottom: 20px; }
.process__num {
  height: 1em; overflow: hidden; margin-top: clamp(32px, 5vh, 64px);
  font-family: var(--display); font-weight: 400; font-size: clamp(120px, 15vw, 280px); line-height: 1;
  color: var(--brass);
}
.process__num-track { display: block; transition: transform 1s var(--ease); }
.process__num-track span { display: block; height: 1em; }
.process__line { position: relative; height: 1px; background: var(--line); margin-top: 24px; max-width: 360px; }
.process__line span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.step {
  padding-block: clamp(36px, 6vh, 72px); border-top: 1px solid var(--line);
  opacity: .25; transition: opacity .8s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active { opacity: 1; }
.step__head { display: flex; gap: 20px; align-items: baseline; }
.step__num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--brass); min-width: 32px; }
.step__title { font-size: clamp(26px, 2.8vw, 46px); font-weight: 300; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.04; }
.step__text { margin: 18px 0 0 52px; color: var(--ink-2); max-width: 46ch; font-size: 16px; }
@media (max-width: 860px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__num, .process__line { display: none; }
  .step { opacity: 1; }
  .step__text { margin-left: 0; }
}

/* ---------- Цитата на фото ---------- */
.quote { position: relative; height: 110vh; min-height: 560px; overflow: hidden; color: #fff; display: grid; align-items: center; }
.quote__media { position: absolute; inset: 0; }
.quote__media::after { content: ''; position: absolute; inset: 0; background: rgba(12, 11, 9, .42); }
.quote__media img { width: 100%; height: 100%; object-fit: cover; }
.quote__content { position: relative; z-index: 1; text-align: center; }
.quote__text { font-size: clamp(34px, 5.6vw, 100px); font-weight: 300; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; max-width: 16ch; margin-inline: auto; }
.quote .eyebrow { color: rgba(255, 255, 255, .7); margin-bottom: 32px; }

/* ---------- Подвал ---------- */
.footer { background: var(--night); color: var(--on-night); padding-top: clamp(96px, 11vw, 180px); overflow: hidden; }
.footer--plain { padding-top: 0; }
.footer--plain .footer__grid { border-top: 1px solid var(--line-night); }
.footer__cta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-bottom: clamp(64px, 8vw, 128px); border-bottom: 1px solid var(--line-night); }
.footer__cta .eyebrow { margin-bottom: 28px; grid-column: 1 / -1; }
.footer__title { font-size: clamp(44px, 7.6vw, 140px); font-weight: 300; text-transform: uppercase; letter-spacing: -.045em; line-height: .92; }
.arch-btn {
  position: relative; display: grid; place-items: center; text-align: center;
  width: clamp(150px, 14vw, 230px); aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0; overflow: hidden; isolation: isolate;
  background: var(--brass); color: var(--night);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.6;
  transition: color .6s var(--ease);
}
.arch-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--on-night);
  transform: translateY(101%); transition: transform .8s var(--ease);
}
.arch-btn:hover::before { transform: none; }
.arch-btn .arrow { display: block; font-size: 22px; margin-top: 8px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: clamp(56px, 6vw, 96px); }
.footer__grid .eyebrow { margin-bottom: 20px; }
.footer__grid ul { display: grid; gap: 8px; }
.footer__grid a { transition: opacity .3s; }
.footer__grid a:hover { opacity: .55; }
.footer__phone { font-size: clamp(22px, 1.8vw, 28px); font-weight: 300; letter-spacing: -.01em; display: block; margin-bottom: 6px; }
.footer__muted { color: var(--on-night-2); }
.footer__clock { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--on-night-2); font-size: 14px; }
.footer__clock i { width: 7px; height: 7px; border-radius: 50%; background: #7FB77E; box-shadow: 0 0 0 0 rgba(127, 183, 126, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 183, 126, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 183, 126, 0); } }
.footer__mark {
  font-family: var(--display); font-weight: 400; white-space: nowrap; text-align: center;
  font-size: 21vw; line-height: .8; letter-spacing: .01em;
  margin-bottom: -.08em; color: var(--on-night);
}
.footer__mark em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.03em; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px; border-top: 1px solid var(--line-night);
  font-size: 13px; color: var(--on-night-2);
  position: relative; background: var(--night);
}
.footer__bottom button { font-size: 13px; color: var(--on-night); }
@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .footer__cta { grid-template-columns: 1fr; }
  .arch-btn { width: 150px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Заголовок внутренних страниц ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(64px, 9vw, 160px)); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head .eyebrow { margin-bottom: clamp(20px, 2vw, 32px); }
.page-head__row { margin-top: clamp(40px, 5vw, 80px); align-items: end; }
.page-head__row > :first-child { grid-column: 1 / 7; }
.page-head__row > :last-child { grid-column: 8 / 13; }
@media (max-width: 860px) {
  .page-head__row > :first-child, .page-head__row > :last-child { grid-column: 1 / -1; }
  .page-head__row > :last-child { margin-top: 24px; }
}

/* ---------- Страница «Проекты» ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  padding-block: 22px; border-block: 1px solid var(--line);
  margin-bottom: clamp(48px, 6vw, 104px);
}
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { margin-right: 12px; }
.chip {
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.chip sup { font-family: var(--serif); font-style: italic; font-size: 13px; margin-left: 3px; color: var(--brass); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip.is-active sup { color: inherit; opacity: .6; }
.pgrid {
  --off: clamp(0px, 11vw, 200px);
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 7vw, 140px); row-gap: clamp(56px, 7vw, 120px);
  padding-bottom: var(--off);
}
.pgrid .card.is-offset { translate: 0 var(--off); }
.pgrid .card.is-hidden { display: none; }
.pgrid .card.is-entering { animation: card-in 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(50px); } }
.pgrid__empty { padding: 64px 0; color: var(--muted); }
@media (max-width: 720px) {
  .pgrid { grid-template-columns: 1fr; --off: 0px; }
}

/* ---------- Страница проекта ---------- */
.p-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; overflow: hidden; background: var(--paper); }
.p-hero__media {
  position: absolute; inset: 0; background: #1b1916;
  clip-path: inset(18% 34% 0 34% round 50vw 50vw 0 0);
  transition: clip-path 1.8s var(--ease-io);
}
.p-hero.is-open .p-hero__media { clip-path: inset(0 0 0 0 round 0 0 0 0); }
.p-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 2.4s var(--ease); }
.p-hero.is-open .p-hero__media img { transform: scale(1); }
.p-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 9, .6), rgba(10, 12, 9, .12) 22%, rgba(10, 12, 9, 0) 45%, rgba(10, 12, 9, .78)); }
.p-hero__content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 var(--gutter) clamp(28px, 4vw, 56px); }
.p-hero__meta { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 20px; }
.p-hero__meta .eyebrow { color: rgba(255, 255, 255, .78); }
.p-hero .display { font-size: clamp(44px, 8vw, 148px); color: #fff; max-width: 14ch; }
@media (max-width: 760px) {
  .p-hero__media { clip-path: inset(22% 14% 0 14% round 50vw 50vw 0 0); }
}
.p-info { align-items: start; }
.p-info__aside { grid-column: 1 / 5; }
.p-info__main { grid-column: 6 / 13; }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding-block: 15px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs div:first-child { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; }
.p-info__main .statement { margin-bottom: clamp(32px, 4vw, 56px); }
.p-info__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 56px); }
.p-info__services { margin-top: 40px; }
.p-info__services .eyebrow { margin-bottom: 14px; }
.p-info__services ul { display: flex; flex-wrap: wrap; gap: 8px; }
.p-info__services li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
@media (max-width: 860px) {
  .p-info__aside, .p-info__main { grid-column: 1 / -1; }
  .p-info__main { margin-top: 56px; }
  .p-info__cols { grid-template-columns: 1fr; }
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 28px); }
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery__item:hover img { transform: scale(1.035); }
.gallery__item--full { grid-column: 1 / -1; }
.gallery__item--half { aspect-ratio: 4 / 5; }
.gallery__item--solo { grid-column: 1 / -1; width: 50%; justify-self: center; aspect-ratio: 4 / 5; }
.gallery__item--arch { border-radius: 999px 999px 0 0; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--solo { width: 100%; }
}
.p-next { position: relative; display: block; height: 100vh; min-height: 560px; overflow: hidden; color: #fff; background: var(--night); }
.p-next__media {
  position: absolute; inset: 0;
  clip-path: inset(14% 36% 0 36% round 50vw 50vw 0 0);
  transition: clip-path 1.4s var(--ease-io);
}
.p-next:hover .p-next__media, .p-next:focus-visible .p-next__media { clip-path: inset(0 0 0 0 round 0 0 0 0); }
.p-next__media img { width: 100%; height: 100%; object-fit: cover; }
.p-next__media::after { content: ''; position: absolute; inset: 0; background: rgba(10, 9, 8, .38); }
.p-next__content { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.p-next__content .eyebrow { color: rgba(255, 255, 255, .72); margin-bottom: 24px; }
.p-next__title { font-size: clamp(40px, 7.4vw, 136px); font-weight: 300; text-transform: uppercase; letter-spacing: -.045em; line-height: .92; mix-blend-mode: difference; }
@media (hover: none) { .p-next__media { clip-path: inset(0 0 0 0 round 0 0 0 0); } }

/* ---------- Лайтбокс ---------- */
.lb {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(14, 13, 11, .97); color: var(--on-night);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }
.lb__img { max-width: calc(100vw - 200px); max-height: calc(100vh - 140px); object-fit: contain; transition: opacity .35s; }
.lb__img.is-loading { opacity: 0; }
.lb__btn {
  position: absolute; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-night); display: grid; place-items: center; font-size: 18px;
  transition: background .4s, color .4s;
}
.lb__btn:hover { background: var(--on-night); color: var(--night); }
.lb__prev { left: 32px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 32px; top: 50%; transform: translateY(-50%); }
.lb__close { right: 32px; top: 24px; }
.lb__count { position: absolute; left: 32px; top: 36px; font-family: var(--display); font-size: 20px; letter-spacing: .08em; }
@media (max-width: 760px) {
  .lb__img { max-width: 100vw; max-height: calc(100vh - 200px); }
  .lb__prev, .lb__next { top: auto; bottom: 28px; transform: none; }
  .lb__prev { left: calc(50% - 72px); }
  .lb__next { right: calc(50% - 72px); }
  .lb__close { right: 16px; top: 16px; }
  .lb__count { left: 20px; top: 28px; }
}

/* ---------- Страница «Услуги» ---------- */
.svc {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  padding-block: clamp(56px, 7vw, 120px); border-top: 1px solid var(--line); align-items: start;
}
.svc__body { grid-column: 2 / 8; }
.svc__title { font-size: clamp(32px, 4vw, 68px); font-weight: 300; text-transform: uppercase; letter-spacing: -.035em; line-height: 1; }
.svc__text { margin-top: 24px; }
.svc__list { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.svc__list li { display: flex; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.svc__list li::before { content: ''; flex: none; width: 9px; height: 12px; margin-top: 6px; border: 1px solid var(--brass); border-bottom: 0; border-radius: 99px 99px 0 0; }
.svc__media { grid-column: 9 / 13; aspect-ratio: 3 / 4; }
.svc:nth-of-type(even) .svc__media { border-radius: 999px 999px 0 0; }
@media (max-width: 860px) {
  .svc__icon { grid-column: 1 / -1; margin-bottom: 20px; }
  .svc__body, .svc__media { grid-column: 1 / -1; }
  .svc__media { margin-top: 40px; width: 80%; }
  .svc__list { grid-template-columns: 1fr; }
}

/* ---------- Страница «О бюро» ---------- */
.about-wide { aspect-ratio: 21 / 9; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.principle { padding: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px) clamp(28px, 3vw, 48px) 0; }
.principle + .principle { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.principle__title { margin-top: 36px; font-size: 18px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.principle__text { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.about-duo { align-items: end; }
.about-duo__arch { grid-column: 2 / 6; aspect-ratio: 3 / 4.2; }
.about-duo__text { grid-column: 7 / 12; display: grid; gap: 28px; }
@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .about-wide { aspect-ratio: 4 / 3; }
  .about-duo__arch { grid-column: 1 / -1; width: 80%; }
  .about-duo__text { grid-column: 1 / -1; margin-top: 48px; }
}
@media (max-width: 560px) {
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Страница «Контакты» ---------- */
.contact { align-items: start; }
.contact__info { grid-column: 1 / 6; }
.contact__form { grid-column: 7 / 13; }
.contact__item { padding-block: 22px; border-bottom: 1px solid var(--line); }
.contact__item:first-child { border-top: 1px solid var(--line); }
.contact__item .eyebrow { margin-bottom: 8px; }
.contact__big { font-size: clamp(26px, 2.6vw, 42px); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; }
.contact__big:hover { opacity: .6; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.form { display: grid; gap: 32px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field > label, .field legend { display: block; margin-bottom: 4px; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 18px; outline: none;
  transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field.is-invalid input { border-color: var(--error); }
.field__error { display: none; margin-top: 6px; font-size: 13px; color: var(--error); }
.field.is-invalid .field__error { display: block; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { margin: 0; cursor: pointer; display: inline-flex; align-items: center; }
.choice input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + label { outline: 1px solid var(--ink); outline-offset: 3px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--muted); border-radius: 4px; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 1.5px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check.is-invalid input { border-color: var(--error); }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__status { font-size: 14px; color: var(--ink-2); }
.form__status.is-error { color: var(--error); }
@media (max-width: 860px) {
  .contact__info, .contact__form { grid-column: 1 / -1; }
  .contact__form { margin-top: 72px; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(72px, 9vw, 160px); }
.stat { padding: clamp(24px, 2.6vw, 40px) clamp(12px, 2vw, 32px) 0 0; min-width: 0; }
.stat + .stat { padding-left: clamp(12px, 2vw, 32px); border-left: 1px solid var(--line); }
.stat__value { font-family: var(--display); font-size: clamp(52px, 6.2vw, 112px); line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__value sup { font-size: .42em; color: var(--brass); vertical-align: top; position: relative; top: .2em; margin-left: .06em; }
.stat__unit { font-size: .36em; color: var(--brass); margin-left: .18em; }
.stat__label { margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 22ch; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* ---------- Преимущества / принципы ---------- */
.principle__icon { display: block; font-size: 64px; }
.svc__icon { grid-column: 1 / 2; font-size: 64px; margin-top: .08em; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 32px); }
.review { display: grid; align-content: space-between; gap: 32px; padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line); }
.review__text { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.35; }
.review__who { display: grid; gap: 2px; font-size: 14px; }
.review__who strong { font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.review__who span { color: var(--muted); }

/* ---------- Квиз «Узнайте стоимость» ---------- */
.quiz-sec__grid { align-items: start; }
.quiz-sec__aside { grid-column: 1 / 6; display: grid; gap: 28px; }
.quiz-sec__aside .arch { width: 62%; aspect-ratio: 3 / 4; margin-top: 16px; }
.quiz {
  grid-column: 7 / 13; display: flex; flex-direction: column;
  min-height: 560px; padding: clamp(24px, 3vw, 48px);
  border: 1px solid var(--line-night); background: rgba(233, 233, 228, .03);
}
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.quiz__count { font-family: var(--display); font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.quiz__bar { position: relative; height: 1px; background: var(--line-night); margin-bottom: clamp(28px, 3vw, 44px); }
.quiz__bar span { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(.25); transition: transform .9s var(--ease); }
.quiz__step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__step.is-active { display: block; animation: step-in .9s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(32px); } }
.quiz__q { display: block; padding: 0; font-size: clamp(24px, 2.3vw, 38px); font-weight: 300; text-transform: uppercase; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 28px; text-wrap: balance; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile label { display: grid; gap: 14px; cursor: pointer; }
.tile__img { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; opacity: .55; transition: opacity .5s, outline-color .5s; outline: 1px solid transparent; outline-offset: 5px; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile label:hover .tile__img { opacity: .9; }
.tile label:hover .tile__img img { transform: scale(1.06); }
.tile input:checked + label .tile__img { opacity: 1; outline-color: var(--brass); }
.tile input:focus-visible + label .tile__img { outline-color: var(--on-night); }
.tile__name { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.area { display: grid; gap: 28px; }
.area__value { font-family: var(--display); font-size: clamp(72px, 8vw, 132px); line-height: 1; font-variant-numeric: tabular-nums; }
.area__value small { font-size: .3em; color: var(--brass); margin-left: .2em; }
.area input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.area input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--line-night); }
.area input[type="range"]::-moz-range-track { height: 1px; background: var(--line-night); }
.area input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--brass); border: 0; }
.area input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--brass); border: 0; }
.area input[type="range"]:focus-visible { outline: 1px solid var(--on-night); outline-offset: 6px; }
.area__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-night-2); }
.quiz__fields { display: grid; gap: 28px; }
.quiz__nav { margin-top: auto; padding-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz__nav [data-quiz-next], .quiz__nav [data-quiz-submit] { margin-left: auto; }
.quiz__done { display: none; margin: auto 0; text-align: center; }
.quiz.is-done .quiz__done { display: grid; gap: 20px; justify-items: center; animation: step-in .9s var(--ease); }
.quiz.is-done .quiz__step, .quiz.is-done .quiz__nav, .quiz.is-done .quiz__top, .quiz.is-done .quiz__bar { display: none; }
.quiz__done .arch-ico { font-size: 80px; }
.quiz__done p:not(.h2) { color: var(--on-night-2); max-width: 40ch; }
@media (max-width: 960px) {
  .quiz-sec__aside, .quiz { grid-column: 1 / -1; }
  .quiz { margin-top: 48px; min-height: 0; }
  .quiz-sec__aside .arch { display: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; }
}

/* Поля форм и чипы на тёмном фоне */
.on-night .field input[type="text"], .on-night .field input[type="tel"], .on-night .field textarea { color: var(--on-night); border-color: var(--line-night); }
.on-night .field input:focus, .on-night .field textarea:focus { border-color: var(--on-night); }
.on-night .chip { border-color: var(--line-night); }
.on-night .chip:hover { border-color: var(--on-night); }
.on-night .choice input:checked + label { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.on-night .choice input:focus-visible + label { outline-color: var(--on-night); }
.on-night .check { color: var(--on-night-2); }
.on-night .check input { border-color: var(--on-night-2); }
.on-night .check input:checked { background: var(--on-night); border-color: var(--on-night); }
.on-night .check input:checked::after { border-color: var(--night); }
.on-night .btn--solid { background: var(--on-night); border-color: var(--on-night); color: var(--night); }
.on-night .btn--solid:hover { background: transparent; color: var(--on-night); }
.on-night .form__status { color: var(--on-night-2); }

/* ---------- Плавающая кнопка заявки ---------- */
.fab {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(10, 12, 9, .22);
  transform: translateY(160%); transition: transform .8s var(--ease), background .4s, color .4s;
}
.fab.is-visible { transform: none; }
.fab:hover { background: var(--brass); color: var(--night); }
.fab i { width: 8px; height: 8px; border-radius: 50%; background: #7FB77E; animation: pulse 2.4s infinite; }
.menu-open .fab { transform: translateY(160%); }

/* ---------- Мелочи ---------- */
.hs__head .eyebrow { margin-bottom: 16px; }
.display, .h2, .statement, .footer__title, .quote__text, .svc__title, .step__title, .p-next__title { text-wrap: balance; }
.stack { display: grid; gap: 28px; }

/* Страховка: если скрипт не загрузился, заставка и шторка уходят сами */
.has-loader .loader { animation: fallback-loader .01s 7s forwards; }
@keyframes fallback-loader { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.pt-enter .curtain { animation: fallback-curtain .01s 3s forwards; }
@keyframes fallback-curtain { to { transform: translateY(-100%); } }

/* ---------- Уменьшение анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .reveal-media, .js .split .w > span { opacity: 1; transform: none; clip-path: none; }
  [data-parallax] > img { transform: none; }
}
