/* ==========================================================
   Будь дома — стили сайта
   Структура повторяет логику good-fella.com: секции Cranberry и Canvas
   сменяют друг друга при прокрутке, моно-подписи, крупный гротеск.
   Палитра: Cranberry, Bordeaux, Canvas, Olive, Quail. Фон — льняная
   фактура и зерно печати.
   ========================================================== */

:root {
  /* палитра бренда */
  --cranberry: #591e21;
  --bordeaux: #28100c;
  --canvas: #e3ddcf;
  --olive: #51471b;
  --quail: #7d8689;

  /* заливки под льняной фактурой: multiply темнит в среднем на 7%,
     поэтому база чуть светлее — в итоге глаз видит ровно цвет палитры */
  --bg-canvas: #ede7d8;
  --bg-cranberry: #602024;
  --bg-bordeaux: #2b110d;
  --tex-linen: url("../img/tex-linen.png");
  --tex-linen-soft: url("../img/tex-linen-soft.png");
  --tex-grain: url("../img/tex-grain.png");

  --f-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --m: clamp(16px, 2.2vw, 32px);
  --g: clamp(12px, 1.25vw, 20px);
  --header-h: 56px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --sec: clamp(72px, 9vw, 140px);
}

/* Тема меняется у <html>, секции прозрачные — фон перетекает.
   data-theme: "dark" — Cranberry, "light" — Canvas, "deep" — Bordeaux. */
:root,
:root[data-theme="dark"] {
  --field-bg: rgba(227, 221, 207, .1);
  --bg: var(--bg-cranberry);
  --tex: var(--tex-linen);
  --fg: var(--canvas);
  --muted: rgba(227, 221, 207, .7);
  --card: #6e2a2e;
  --bar: #743236;
  --line: rgba(227, 221, 207, .2);
  --accent: var(--canvas);
  --accent-ink: var(--cranberry);
  --btn-bg: var(--canvas);
  --btn-fg: var(--cranberry);
  --btn-2-bg: var(--bordeaux);
  --btn-2-fg: var(--canvas);
}
:root[data-theme="light"] {
  --field-bg: rgba(40, 16, 12, .055);
  --bg: var(--bg-canvas);
  --tex: var(--tex-linen-soft);
  --fg: var(--bordeaux);
  --muted: #5c6467;
  --card: #f5f0e4;
  --bar: #ddd6c6;
  --line: rgba(40, 16, 12, .15);
  --accent: var(--olive);
  --accent-ink: var(--canvas);
  --btn-bg: var(--cranberry);
  --btn-fg: var(--canvas);
  --btn-2-bg: var(--bordeaux);
  --btn-2-fg: var(--canvas);
}
:root[data-theme="deep"] {
  --field-bg: rgba(227, 221, 207, .08);
  --bg: var(--bg-bordeaux);
  --tex: var(--tex-linen);
  --fg: var(--canvas);
  --muted: var(--quail);
  --card: #3a1913;
  --bar: #3d1c16;
  --line: rgba(227, 221, 207, .16);
  --accent: var(--canvas);
  --accent-ink: var(--bordeaux);
  --btn-bg: var(--canvas);
  --btn-fg: var(--bordeaux);
  --btn-2-bg: var(--cranberry);
  --btn-2-fg: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background-color: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--tex);
  background-size: 512px 512px;
  background-blend-mode: multiply;
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .7s var(--ease), color .7s var(--ease);
  overflow-x: clip;
}
/* зерно печати поверх всего сайта */
body::after { content: ""; position: fixed; inset: 0; z-index: 1100; pointer-events: none; background-image: var(--tex-grain); background-size: 256px 256px; opacity: .6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Сетка ---------- */
.wrap { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.section { padding-block: var(--sec); position: relative; }

/* ---------- Типографика ---------- */
.h-display { font-size: clamp(46px, 7.2vw, 124px); line-height: .98; letter-spacing: -.045em; font-weight: 400; }
.h-1 { font-size: clamp(40px, 5.4vw, 92px); line-height: 1; letter-spacing: -.04em; font-weight: 400; }
.h-2 { font-size: clamp(30px, 3.4vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 400; }
.h-3 { font-size: clamp(22px, 1.9vw, 30px); line-height: 1.16; letter-spacing: -.025em; font-weight: 400; }
.lead { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 12px; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
.mono--accent { color: var(--accent); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.tag-label { display: inline-flex; align-items: center; gap: 10px; }
.sq { display: inline-block; width: 8px; height: 8px; background: var(--accent); flex: none; }

/* Подпись секции «// ПРОЦЕСС» */
.sec-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }

/* ---------- Кнопки ---------- */
.btns { display: inline-flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.btn {
  --b-bg: var(--btn-bg); --b-fg: var(--btn-fg);
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 16px;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; border-radius: 2px;
  transition: background-color .3s, color .3s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--plus { width: 44px; padding: 0; font-size: 18px; font-family: var(--f-sans); }
.btn--plus span { transition: transform .45s var(--ease); display: block; }
.btns:hover .btn--plus span, .btn--plus:hover span { transform: rotate(90deg); }
.btn--alt { --b-bg: var(--btn-2-bg); --b-fg: var(--btn-2-fg); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--sm { height: 36px; padding: 0 12px; font-size: 11px; }
.btn--sm.btn--plus { width: 36px; }

/* Текст, который «прокручивается» при наведении */
.roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.3em; line-height: 1.3; }
.roll > span { display: block; transition: transform .5s var(--ease); }
.roll > span::after { content: attr(data-text); display: block; }
a:hover > .roll > span, button:hover > .roll > span, .btns:hover .roll > span { transform: translateY(-50%); }

.link-u { position: relative; display: inline-block; padding-bottom: 3px; font-size: 15px; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.link-u:hover::after { transform: scaleX(0); }

/* ---------- Прелоадер и шторка перехода ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--cranberry);
  display: grid; place-items: center; color: var(--canvas);
  transition: clip-path .9s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__box { display: grid; gap: 10px; justify-items: start; }
.preloader__sq { width: 18px; height: 18px; background: var(--canvas); animation: pl-spin 1.2s var(--ease-io) infinite; }
.preloader__txt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; min-height: 1.4em; }
@keyframes pl-spin { 0% { transform: rotate(0) } 50% { transform: rotate(90deg) } 100% { transform: rotate(90deg) } }

.curtain { position: fixed; inset: 0; z-index: 999; background: var(--cranberry); clip-path: inset(100% 0 0 0); pointer-events: none; transition: clip-path .55s var(--ease-io); }
.curtain.is-in, .from-curtain .curtain { clip-path: inset(0 0 0 0); }
.from-curtain .curtain.is-out { clip-path: inset(0 0 100% 0); transition-duration: .7s; }
.no-preloader .preloader { display: none; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; z-index: 200; top: 10px; left: var(--m); right: var(--m);
  height: var(--header-h); padding: 0 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-radius: 3px;
  transition: transform .6s var(--ease), background-color .5s;
}
.header.is-bar { background: var(--bar); }
.header.is-open { --tex: var(--tex-linen); background-color: var(--bg-bordeaux); color: var(--canvas); --accent: var(--canvas); --btn-bg: var(--canvas); --btn-fg: var(--bordeaux); }
.header.is-hidden:not(.is-open) { transform: translateY(calc(-100% - 20px)); }
.header__logo { justify-self: start; display: block; padding: 6px 4px; }
.header__descriptor { display: block; font-size: 10px; font-weight: 400; letter-spacing: .06em; line-height: 1.2; margin-bottom: 4px; }
.header__right { justify-self: end; }

.logo {
  display: grid; height: 1em; overflow: hidden;
  font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-transform: uppercase; white-space: nowrap;
}
.logo span { grid-area: 1 / 1; display: block; transition: transform .6s var(--ease-io); }
.logo span + span { transform: translateY(105%); }
.is-open .logo span:first-child { transform: translateY(-105%); }
.is-open .logo span + span { transform: translateY(0); }

.menu-toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; }
.menu-toggle__icon { position: relative; width: 14px; height: 8px; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon::after { top: 6px; }
.is-open .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.is-open .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Меню ---------- */
.menu {
  position: fixed; z-index: 190; left: var(--m); right: var(--m); top: calc(10px + var(--header-h) + 6px);
  max-height: calc(100svh - var(--header-h) - 32px); overflow: auto;
  --tex: var(--tex-linen); background-color: var(--bg-bordeaux); color: var(--canvas); border-radius: 3px;
  --accent: var(--canvas); --line: rgba(227, 221, 207, .16);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); padding: clamp(24px, 3vw, 48px) clamp(16px, 2.4vw, 36px); }
.menu__nav { grid-column: 1 / 7; display: grid; align-content: start; }
.menu__link { display: flex; align-items: baseline; gap: 14px; font-size: clamp(40px, 5vw, 78px); line-height: 1.08; letter-spacing: -.04em; color: rgba(227, 221, 207, .55); transition: color .3s; }
.menu__link .mono { color: var(--quail); transform: translateY(-1.4em); }
.menu__link.is-current, .menu__link:hover { color: var(--accent); }
.menu__link > span:last-child { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.menu.is-open .menu__link > span:last-child { transform: none; opacity: 1; }
.menu__line { overflow: hidden; }
.menu__aside { grid-column: 8 / 13; display: grid; gap: 28px; align-content: start; }
.menu__group { display: grid; gap: 6px; }
.menu__group .mono:first-child { color: var(--quail); margin-bottom: 4px; }
.menu__group a { font-size: 15px; width: fit-content; }
.menu__group a:hover { color: var(--accent); }
.menu__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 2px; background: var(--cranberry); }
.menu-card img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform 1s var(--ease), opacity .4s; }
.menu-card:hover img { transform: scale(1.05); opacity: 1; }
.menu-card .mono { position: absolute; left: 10px; bottom: 10px; background: var(--bordeaux); padding: 4px 6px; }
.menu-backdrop { position: fixed; inset: 0; z-index: 180; background: rgba(40, 16, 12, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.menu-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }
.status { display: grid; gap: 6px; }
.status .mono { display: flex; gap: 10px; align-items: center; }

/* ---------- Появление при прокрутке ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.ln > span { display: block; }
.js .lines .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .lines .ln:nth-child(2) > span { transition-delay: .08s; }
.js .lines .ln:nth-child(3) > span { transition-delay: .16s; }
.js .lines .ln:nth-child(4) > span { transition-delay: .24s; }
.js .lines.is-in .ln > span { transform: none; }
.js .img-rv { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); }
.js .img-rv.is-in { clip-path: inset(0 0 0 0); }

/* Печатная машинка */
.type-cursor::after { content: ""; display: inline-block; width: max(2px, .06em); height: .95em; margin-left: .08em; vertical-align: -.1em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Hero ---------- */
/* Первый экран: три интерьера на весь экран, сменяются при прокрутке */
.slides { position: relative; height: 300svh; }
.slides__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--canvas); background: var(--bordeaux); }
.slides__h1 { position: absolute; z-index: 5; top: calc(10px + var(--header-h) + 26px); left: var(--m); right: var(--m); color: rgba(227, 221, 207, .85); }
.slide { position: absolute; inset: 0; z-index: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-io); }
.slide.is-active { z-index: 2; clip-path: inset(0 0 0 0); }
.slide.was-active { z-index: 1; clip-path: inset(0 0 0 0); }
.slide__media { position: absolute; inset: 0; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.slide.is-active .slide__media img { transform: scale(1); }
.slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 16, 12, .55) 0%, rgba(40, 16, 12, 0) 26%, rgba(40, 16, 12, .12) 50%, rgba(40, 16, 12, .82) 100%); }
.slide__body { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(96px, 13vh, 150px); }
.slide__kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: rgba(227, 221, 207, .85); }
.slide__kicker .sq { background: var(--canvas); }
.slide__title { grid-column: 1 / 10; font-size: clamp(44px, 6.6vw, 118px); line-height: .98; letter-spacing: -.045em; }
.slide__title .ln > span { transform: translateY(105%); transition: transform 1.1s var(--ease) .25s; }
.slide__title .ln:nth-child(2) > span { transition-delay: .33s; }
.slide__title .ln:nth-child(3) > span { transition-delay: .41s; }
.slide.is-active .slide__title .ln > span { transform: none; }
.slide__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-top: clamp(20px, 2.6vw, 36px); opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease) .5s, transform .9s var(--ease) .5s; }
.slide.is-active .slide__foot { opacity: 1; transform: none; }
.slide__text { max-width: 46ch; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.5; color: rgba(227, 221, 207, .9); }
.slide__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.slides__nav { position: absolute; z-index: 5; left: 0; right: 0; bottom: 26px; }
.slides__dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.slides__dot { position: relative; display: grid; align-content: center; min-height: 44px; text-align: left; color: rgba(227, 221, 207, .55); transition: color .4s; }
.slides__dot.is-active { color: var(--canvas); }
.slides__bar { position: relative; height: 1px; background: rgba(227, 221, 207, .25); overflow: hidden; }
.slides__bar::after { content: ""; position: absolute; inset: 0; background: var(--canvas); transform-origin: left; transform: scaleX(var(--f, 0)); }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.stat { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(260px, 30vw, 460px); padding: clamp(16px, 1.6vw, 26px); background: var(--card); border-radius: 2px; }
.stat__num { font-size: clamp(48px, 5vw, 92px); line-height: 1; letter-spacing: -.045em; display: flex; align-items: flex-start; }
.stat__note { color: var(--muted); font-size: 13px; margin-top: 8px; max-width: 28ch; }
.stat__unit { font-size: .36em; letter-spacing: -.02em; margin: .14em 0 0 .28em; }
.stat--photo { padding: 0; overflow: hidden; }
.stat--photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.count { display: inline-flex; overflow: hidden; height: 1em; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.count__col { display: flex; flex-direction: column; transition: transform 2s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.count__col span { display: block; height: 1em; }

/* ---------- Процесс (закреплённый) ---------- */
.process { position: relative; height: calc(100svh + var(--steps, 4) * 62svh); }
.process__pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.process__head { grid-column: 3 / 9; }
.process__label { grid-column: 9 / 11; align-self: end; justify-self: end; padding-bottom: .6em; }
.process__steps { grid-column: 3 / 7; margin-top: clamp(28px, 4vw, 56px); display: grid; gap: clamp(22px, 2.6vw, 40px); }
.process__media { grid-column: 8 / 11; margin-top: clamp(28px, 4vw, 56px); position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--card); align-self: start; }
.process__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-io); }
.process__media img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.process__media img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }

.step { display: grid; grid-template-columns: 16px 30px 1fr; align-items: baseline; column-gap: 8px; opacity: 1; transition: transform .6s var(--ease); }
.step__sq { width: 9px; height: 9px; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .4s, transform .5s var(--ease); }
.step__num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.step__title { font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.025em; line-height: 1.15; }
.step__text { grid-column: 3; margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.step.is-active { opacity: 1; transform: translateX(18px); }
.step.is-active .step__sq { opacity: 1; transform: none; }

/* ---------- Проекты на главной ---------- */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.work__side { grid-column: 1 / 4; }
.work__sticky { position: sticky; top: calc(var(--header-h) + 34px); min-height: calc(100svh - var(--header-h) - 70px); display: flex; flex-direction: column; }
.work__side .lead { margin-top: 18px; max-width: 30ch; }
.work__project { margin-top: 36px; display: grid; gap: 8px; }
.work__name { font-size: clamp(20px, 1.6vw, 26px); letter-spacing: -.02em; line-height: 1.2; min-height: 2.4em; }
.work__tags { color: var(--muted); }
.thumbs { margin-top: 26px; display: grid; gap: 8px; }
.thumb { display: flex; align-items: center; gap: 12px; width: fit-content; }
.thumb img { width: 64px; height: 44px; object-fit: cover; border-radius: 2px; filter: grayscale(.6); opacity: .55; transition: opacity .35s, filter .35s; }
.thumb .sq { opacity: 0; transition: opacity .3s; }
.thumb.is-active img { opacity: 1; filter: none; }
.thumb.is-active .sq { opacity: 1; }
.work__side .btns { margin-top: auto; padding-top: 28px; }
.work__main { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); align-items: start; }
.work__col { display: grid; gap: clamp(48px, 6vw, 96px); }
.work__col + .work__col { margin-top: clamp(120px, 14vw, 240px); }
.shot { display: block; }
.shot__img { overflow: hidden; border-radius: 2px; background: var(--card); }
.shot__img img { width: 100%; transition: transform 1.4s var(--ease); }
a.shot:hover .shot__img img { transform: scale(1.035); }
.shot__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.shot__cap .mono:last-child { color: var(--muted); text-align: right; }

.next-card { --tex: var(--tex-linen); display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: clamp(18px, 2vw, 30px); background-color: var(--olive); color: var(--canvas); border-radius: 2px; transition: transform .6s var(--ease); }
.next-card:hover { transform: translateY(-6px); }
.next-card__plus { font-size: clamp(64px, 8vw, 140px); line-height: .8; font-weight: 300; transition: transform .6s var(--ease); align-self: flex-end; }
.next-card:hover .next-card__plus { transform: rotate(90deg); }

/* ---------- Стандарт (6 пунктов) ---------- */
.std__head { grid-column: 1 / 9; }
.std__label { grid-column: 10 / 13; justify-self: end; align-self: end; padding-bottom: .6em; }
.std__kicker { grid-column: 1 / 13; margin-top: 28px; }
.std__grid { grid-column: 1 / 13; margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) var(--g); }
.std__item .mono { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.std__item p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 34ch; }

/* ---------- FAQ ---------- */
.faq__head { grid-column: 1 / 5; }
.faq__list { grid-column: 6 / 12; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; text-align: left; }
.faq__q .mono { font-family: var(--f-sans); font-size: 17px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; }
.faq__icon { position: relative; flex: none; width: 13px; height: 13px; color: var(--muted); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__item.is-open .faq__icon { color: var(--accent); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 48px 24px 0; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 62ch; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- CTA ---------- */
.cta__left { grid-column: 1 / 7; }
.cta__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--card); }
.cta__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.cta__right { grid-column: 8 / 12; display: flex; flex-direction: column; }
.cta__big { font-size: clamp(24px, 2.2vw, 36px); line-height: 1.12; letter-spacing: -.03em; max-width: 15ch; }
.cta__form { margin-top: clamp(28px, 3vw, 40px); }
.cta__note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ---------- Подвал ---------- */
.footer { position: relative; padding-top: clamp(56px, 6vw, 88px); overflow: hidden; }
.footer__top { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px var(--g); }
.footer__col { display: grid; gap: 8px; align-content: start; justify-items: start; font-size: 15px; line-height: 1.4; }
.footer__label { color: var(--muted); margin-bottom: 10px; }
.footer__col a { position: relative; transition: color .3s; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.footer__col a:hover::after { transform: scaleX(1); }
.footer__col .btns a::after { display: none; }
.footer__lead { max-width: 24ch; margin-bottom: 10px; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.25; letter-spacing: -.015em; }
.footer__status { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.footer__bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: clamp(48px, 5vw, 72px); padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.footer__word { position: relative; z-index: 1; margin-top: clamp(24px, 3vw, 48px); font-size: clamp(64px, 16.6vw, 330px); line-height: .78; letter-spacing: -.065em; font-weight: 500; color: var(--cranberry); white-space: nowrap; text-align: center; margin-bottom: -.06em; user-select: none; }

/* ---------- Внутренние страницы: общий заголовок ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(80px, 12vw, 180px)); padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero--center { text-align: center; }
.page-hero--center .lead { margin-inline: auto; }

/* Проекты (индекс) */
.proj-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) var(--g); }
.proj-card { grid-column: span 7; display: block; }
.proj-card__img { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 16 / 11; background: var(--card); }
.proj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.proj-card:hover .proj-card__img img { transform: scale(1.03); }
.proj-card__img .split { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.proj-card__img .split img { height: 100%; }
.proj-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.proj-card__name { font-size: clamp(20px, 1.6vw, 26px); letter-spacing: -.02em; }
.proj-next { grid-column: span 5; align-self: stretch; }
.proj-next .next-card { aspect-ratio: auto; height: 100%; min-height: 360px; }

/* Кейс */
.case-hero { position: relative; height: 150svh; }
.case-hero__media { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.case-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.case-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 16, 12, .35), rgba(40, 16, 12, 0) 28%, rgba(40, 16, 12, 0) 45%, rgba(40, 16, 12, .82)); }
.case-hero__word { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: 4svh; color: var(--canvas); font-size: clamp(48px, 9vw, 168px); line-height: .9; letter-spacing: -.05em; }
.case-meta__title { grid-column: 1 / 6; }
.case-meta__list { margin-top: 32px; display: grid; }
.case-meta__row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.case-meta__row dt { color: var(--muted); }
.case-meta__intro { grid-column: 7 / 12; }
.case-meta__intro .h-2 { margin-bottom: 28px; }
.case-meta__intro p + p { margin-top: 16px; }
.case-block__label { grid-column: 1 / 4; }
.case-block__body { grid-column: 4 / 11; }
.case-block__body .h-1 { margin-bottom: 28px; }
.case-block__body .text { max-width: 60ch; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: start; }
.gallery figure { overflow: hidden; border-radius: 2px; }
.gallery figcaption { margin-top: 10px; }
.g-a { grid-column: 1 / 7; }
.g-b { grid-column: 8 / 13; margin-top: 18vw; }
.g-c { grid-column: 3 / 9; }
.g-d { grid-column: 9 / 13; margin-top: 10vw; }
.g-e { grid-column: 4 / 10; }
.col-title { grid-column: 1 / 8; }
.col-lead { grid-column: 1 / 6; }
.person--a { grid-column: 6 / 9; }
.person--b { grid-column: 9 / 12; }
.decisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin-top: clamp(32px, 4vw, 56px); }
.decision { padding: clamp(18px, 1.8vw, 28px); background: var(--card); border-radius: 2px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 280px; }
.decision__n { font-size: clamp(40px, 4vw, 72px); line-height: 1; letter-spacing: -.045em; }
.decision p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 10px; }

/* «Следующий проект» — прокрутка-переход */
.next-case { position: relative; }
.next-case__pin { min-height: 75svh; padding: var(--sec) var(--m); display: grid; place-items: center; overflow: hidden; }
.next-case__fill { position: absolute; inset: 0; background-color: var(--olive); }
.next-case__body { position: relative; text-align: center; display: grid; gap: 18px; justify-items: center; }
.next-case__body { color: var(--canvas); }
.next-case__body .h-display { color: var(--canvas); }

/* Цены */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.tier { display: flex; flex-direction: column; padding: clamp(18px, 1.8vw, 28px); background: var(--card); border-radius: 2px; min-height: 620px; }
.tier--dark { --tex: var(--tex-linen); background-color: var(--bg-cranberry); color: var(--canvas); --line: rgba(227, 221, 207, .2); --muted: rgba(227, 221, 207, .7); --accent: var(--canvas); --accent-ink: var(--cranberry); --btn-bg: var(--canvas); --btn-fg: var(--cranberry); --btn-2-bg: var(--canvas); --btn-2-fg: var(--cranberry); }
.tier__name { margin-top: 18px; font-size: clamp(26px, 2.3vw, 38px); }
.tier__price { margin-top: 10px; font-size: 15px; color: var(--muted); }
.tier__list { margin-top: 28px; display: grid; }
.tier__list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.tier__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 14px; }
.tier__foot .mono { color: var(--muted); }
.extras { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }
.extra { grid-column: span 6; display: grid; gap: 14px; padding: clamp(18px, 1.8vw, 28px); border: 1px solid var(--line); border-radius: 2px; }
.extra__row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }

/* Калькулятор «А теперь к понятному» */
.calc2__title { grid-column: 1 / 8; }
.calc2__intro { grid-column: 9 / 13; align-self: end; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.4; letter-spacing: -.01em; color: var(--muted); padding-bottom: .4em; }
.calc2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(36px, 4.4vw, 72px); background-color: var(--card); border-radius: 2px; }
.calc2__controls { display: grid; gap: clamp(28px, 3vw, 44px); align-content: start; padding: clamp(24px, 3.6vw, 60px); border-right: 1px solid var(--line); }
.calc2__result { display: flex; flex-direction: column; padding: clamp(24px, 3.6vw, 60px); }
.calc2__field { display: grid; gap: 10px; min-width: 0; }
.calc2__field .mono, .calc2__label { color: var(--muted); }
.select { position: relative; display: block; min-width: 0; }
.select select { width: 100%; min-width: 0; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; padding: 10px 32px 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--fg); font: inherit; font-size: clamp(18px, 1.45vw, 22px); letter-spacing: -.015em; cursor: pointer; transition: border-color .3s; }
.select select:focus { outline: none; border-color: var(--accent); }
.select select option { color: var(--bordeaux); }
.select::after { content: ""; position: absolute; right: 6px; top: 45%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); pointer-events: none; }
/* Выпадающие списки в стиле сайта (логика — в site.js) */
select.cs-native { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; clip: rect(0 0 0 0); }
.select.is-enhanced::after { display: none; }
.is-enhanced { position: relative; }
.cs { position: relative; }
.cs__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; color: var(--fg); transition: border-color .3s, box-shadow .3s, background-color .3s; }
.cs__btn:focus-visible { outline: none; }
.cs__val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.cs.is-empty .cs__val { color: var(--muted); }
.cs--line .cs__btn { padding: 10px 0 12px; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.45vw, 22px); letter-spacing: -.015em; }
.cs--line .cs__btn:hover, .cs--line.is-open .cs__btn, .cs--line .cs__btn:focus-visible { border-color: var(--fg); }
.cs--field .cs__btn { min-height: 52px; padding: 12px 12px 12px 16px; border-radius: 2px; background: var(--field-bg); font-size: 15px; }
.cs--field .cs__btn:hover { box-shadow: inset 0 0 0 1px var(--line); }
.cs--field.is-open .cs__btn, .cs--field .cs__btn:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }
.cs.is-invalid .cs__btn { box-shadow: inset 0 0 0 1px var(--accent); }
.cs.is-invalid .cs__val { color: var(--fg); }
.cs__chev { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), background-color .3s, color .3s, box-shadow .3s; }
.cs__chev::before { content: ""; position: absolute; left: 50%; top: 44%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.cs__btn:hover .cs__chev { box-shadow: inset 0 0 0 1px var(--fg); }
.cs.is-open .cs__chev { transform: rotate(180deg); background: var(--fg); color: var(--bg); box-shadow: none; }

.cs__list {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 8px; list-style: none; max-height: min(380px, 60vh); overflow: auto; overscroll-behavior: contain;
  background-color: var(--bg-bordeaux); background-image: var(--tex-linen); background-size: 512px 512px; background-blend-mode: multiply;
  color: var(--canvas); border-radius: 3px; box-shadow: 0 28px 60px rgba(40, 16, 12, .35);
  clip-path: inset(0 0 100% 0 round 3px); visibility: hidden;
  transition: clip-path .5s var(--ease-io), visibility 0s .5s;
}
.cs.is-open .cs__list { clip-path: inset(0 0 0 0 round 3px); visibility: visible; transition: clip-path .55s var(--ease-io), visibility 0s; }
.cs__list:focus { outline: none; }
.cs__list [role="option"] {
  position: relative; display: flex; align-items: baseline; gap: 14px; padding: 13px 34px 13px 12px; border-radius: 2px; cursor: pointer;
  font-size: 16px; line-height: 1.3; letter-spacing: -.01em; color: rgba(227, 221, 207, .72);
  opacity: 0; transform: translateY(6px);
  transition: background-color .25s, color .25s, opacity .4s var(--ease) calc(var(--i, 0) * 35ms + 90ms), transform .5s var(--ease) calc(var(--i, 0) * 35ms + 90ms);
}
.cs.is-open .cs__list [role="option"] { opacity: 1; transform: none; }
.cs__list [role="option"] + [role="option"] { box-shadow: 0 -1px 0 rgba(227, 221, 207, .08); }
.cs__n { flex: none; min-width: 20px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--quail); transition: color .25s; }
.cs__t { transition: transform .4s var(--ease); }
.cs__list .is-active { background-color: rgba(227, 221, 207, .09); color: var(--canvas); }
.cs__list .is-active .cs__t { transform: translateX(5px); }
.cs__list [aria-selected="true"] { color: var(--canvas); }
.cs__list [aria-selected="true"] .cs__n { color: var(--canvas); }
.cs__list [aria-selected="true"]::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: var(--canvas); }

.calc2__area-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc2__area output { font-size: clamp(36px, 3.2vw, 52px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.calc2__area small { margin-left: 6px; font-size: 14px; color: var(--muted); }
.calc2__range { --fill: 10%; width: 100%; height: 28px; margin: 4px 0 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.calc2__range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--btn-bg) var(--fill), var(--line) var(--fill)); }
.calc2__range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--btn-bg); border: 5px solid var(--card); box-shadow: 0 0 0 1px var(--btn-bg); transition: transform .2s; }
.calc2__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc2__range::-moz-range-track { height: 2px; background: var(--line); }
.calc2__range::-moz-range-progress { height: 2px; background: var(--btn-bg); }
.calc2__range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--btn-bg); border: 5px solid var(--card); box-shadow: 0 0 0 1px var(--btn-bg); }
.calc2__range:focus-visible { outline: none; }
.calc2__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--btn-bg), 0 0 0 5px rgba(81, 71, 27, .25); }
.calc2__minmax { display: flex; justify-content: space-between; color: var(--muted); }
.calc2 .calc2__check { grid-column: auto; padding: 0; }
.calc2__price { margin: 10px 0 26px; font-size: clamp(48px, 5.2vw, 92px); line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc2__price.is-range { font-size: clamp(34px, 3.4vw, 60px); }
.calc2__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calc2__rows > div:first-child { border-top: 1px solid var(--line); }
.calc2__rows dt { color: var(--muted); }
.calc2__rows dd { text-align: right; }
.calc2__note { margin-top: 18px; max-width: 48ch; font-size: 14px; }
.calc2__cta { margin-top: auto; padding-top: 32px; flex-wrap: nowrap; }
.calc2__cta .btn:first-child { flex: 1; height: 56px; justify-content: flex-start; padding: 0 22px; }
.calc2__cta .btn--plus { width: 56px; height: 56px; }
.calc2__foot { margin-top: 18px; font-size: 13px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.table td { font-size: clamp(17px, 1.4vw, 22px); letter-spacing: -.02em; }
.table td + td { color: var(--muted); }

/* О нас */
.page-hero--split { padding-top: calc(var(--header-h) + 34px); }
.about-hero__img { grid-column: 8 / 13; height: min(calc(100svh - var(--header-h) - 70px), 62vw); overflow: hidden; border-radius: 2px; }
.about-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__text { grid-column: 1 / 8; align-self: end; display: grid; gap: 28px; padding-bottom: 8px; }
.story { grid-column: 4 / 11; display: grid; gap: 22px; }
.story p { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.4; letter-spacing: -.015em; }
.story p.text { font-size: 15px; letter-spacing: 0; }
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }
.duo__intro { grid-column: 1 / 5; display: grid; gap: 22px; align-content: start; }
.person { grid-column: span 4; }
.person__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-top: 16px; }
.person p { margin-top: 8px; }
.principles { grid-column: 4 / 12; counter-reset: pr; }
.principles li { counter-increment: pr; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.5vw, 24px); line-height: 1.3; letter-spacing: -.015em; }
.principles li::before { content: counter(pr, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--accent); padding-top: .5em; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.value { min-height: 340px; padding: clamp(18px, 1.8vw, 28px); background: var(--card); border-radius: 2px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.value .h-1 { font-size: clamp(36px, 3.6vw, 64px); }

/* Контакты */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); padding-top: calc(var(--header-h) + clamp(64px, 9vw, 140px)); padding-bottom: var(--sec); }
.contact__left { grid-column: 1 / 6; display: grid; gap: 36px; align-content: start; }
.contact__list { display: grid; gap: 10px; }
.contact__list a { font-size: 17px; width: fit-content; }
.contact__list a:hover { color: var(--accent); }
.contact__list .mono { color: var(--muted); display: block; margin-bottom: 2px; }
.contact__right { grid-column: 7 / 13; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.field { grid-column: span 2; display: grid; }
.field--half { grid-column: span 1; }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: 2px;
  background: var(--field-bg); color: var(--fg); font: inherit; font-size: 15px;
  transition: box-shadow .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field select option { color: var(--bordeaux); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent); }
.check { grid-column: span 2; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); padding: 10px 0; }
.check input { accent-color: var(--accent); margin-top: 2px; }
.form__foot { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form__msg { grid-column: span 2; font-size: 14px; color: var(--accent); min-height: 1.4em; }

/* ---------- Фактура льна на плашках ---------- */
.stat, .tier, .value, .decision, .calc2, .next-card, .menu, .header.is-bar, .header.is-open, .extra {
  background-image: var(--tex); background-size: 512px 512px; background-blend-mode: multiply;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .process__head, .process__steps { grid-column: 1 / 8; }
  .process__label { grid-column: 9 / 13; }
  .process__media { grid-column: 8 / 13; }
  .faq__list { grid-column: 5 / 13; }
  .cta__right { grid-column: 8 / 13; }
  .menu__nav { grid-column: 1 / 8; }
  .menu__aside { grid-column: 8 / 13; }
  .story, .principles { grid-column: 2 / 12; }
}

@media (max-width: 860px) {
  :root { --header-h: 52px; }
  .header { grid-template-columns: auto 1fr auto; }
  .menu-toggle { justify-self: center; }
  .header__cta-text { display: none; }
  .menu__nav, .menu__aside { grid-column: 1 / -1; }
  .menu__aside { margin-top: 12px; }

  .slide__title { grid-column: 1 / -1; font-size: clamp(38px, 10.5vw, 64px); }
  .slide__body { bottom: 84px; }
  .slide__kicker { margin-bottom: 12px; }
  .slide__media::after { background: linear-gradient(180deg, rgba(40, 16, 12, .5) 0%, rgba(40, 16, 12, .05) 22%, rgba(40, 16, 12, .45) 48%, rgba(40, 16, 12, .9) 100%); }
  .slide__text { font-size: 15px; }
  .slide__cta { gap: 14px 18px; }
  .slides__h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .slides__dot .mono { font-size: 10px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 220px; }

  .process { height: auto; }
  .process__pin { position: static; height: auto; padding-block: var(--sec); }
  .process__head { grid-column: 1 / -1; }
  .process__label { grid-column: 1 / -1; justify-self: start; order: -1; margin-bottom: 14px; }
  .process__steps { grid-column: 1 / -1; }
  .process__media { display: none; }
  .step, .step.is-active { opacity: 1; transform: none; }
  .step .step__sq { opacity: 1; transform: none; }

  .work__side, .work__main { grid-column: 1 / -1; }
  .work__sticky { position: static; min-height: 0; }
  .thumbs { display: none; }
  .work__side .btns { margin-top: 24px; padding-top: 0; margin-bottom: 40px; }
  .work__main { grid-template-columns: 1fr 1fr; }
  .work__col + .work__col { margin-top: 80px; }

  .std__head, .std__label, .std__kicker { grid-column: 1 / -1; justify-self: start; }
  .std__label { order: -1; margin-bottom: 14px; }
  .std__grid { grid-template-columns: 1fr 1fr; }

  .faq__head, .faq__list { grid-column: 1 / -1; }
  .faq__list { margin-top: 36px; }

  .cta__left, .cta__right { grid-column: 1 / -1; }
  .cta__right { margin-top: 40px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--sub { grid-column: 1 / -1; }

  .proj-card, .proj-next { grid-column: 1 / -1; }
  .case-meta__title, .case-meta__intro, .case-block__label, .case-block__body { grid-column: 1 / -1; }
  .case-meta__intro, .case-block__body { margin-top: 32px; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: 1 / -1; margin-top: 0; }
  .col-title, .col-lead { grid-column: 1 / -1; }
  .decisions, .values { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .tier { min-height: 0; }
  .extra { grid-column: 1 / -1; }
  .calc2__title, .calc2__intro { grid-column: 1 / -1; }
  .calc2__intro { margin-top: 18px; }
  .calc2 { grid-template-columns: minmax(0, 1fr); }
  .calc2__controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .calc2__price { white-space: normal; }
  .about-hero__img, .about-hero__text { grid-column: 1 / -1; }
  .about-hero__img { order: -1; margin-bottom: 32px; height: auto; aspect-ratio: 4 / 4.4; }
  .duo__intro { grid-column: 1 / -1; }
  .person, .person--a, .person--b { grid-column: span 6; margin-top: 32px; }
  .story, .principles { grid-column: 1 / -1; }
  .contact__left, .contact__right { grid-column: 1 / -1; }
  .contact__right { margin-top: 48px; }
}

@media (max-width: 560px) {
  .footer__bottom { flex-direction: column; }
  .stats { grid-template-columns: 1fr; }
  .stat--photo { min-height: 420px; }
  .work__main { grid-template-columns: 1fr; }
  .work__col + .work__col { margin-top: clamp(48px, 6vw, 96px); }
  .std__grid { grid-template-columns: 1fr; }
  .person, .person--a, .person--b { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: span 2; }
  .menu__cards { grid-template-columns: 1fr 1fr; }
  .menu__link { font-size: 40px; }
  .case-meta__row { grid-template-columns: 100px 1fr; }
}

@media (max-height: 720px) and (min-width: 861px) {
  .slide__title { font-size: clamp(40px, 5.2vw, 80px); }
  .slide__body { bottom: 84px; }
  .slides__h1 { display: none; }
}

/* ==========================================================
   Мобильная версия (до 860px). Отдельный слой поверх общих правил:
   десктоп этот блок не затрагивает.
   ========================================================== */
.step__img, .car-ui, .mbar, .header__cta-m { display: none; }
html.is-locked, html.is-locked body { overflow: hidden; }
@keyframes bar-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 860px) {
  :root { --m: 16px; --sec: 64px; --header-h: 64px; }
  html, body { overscroll-behavior-x: none; }
  html { background-color: var(--bordeaux); scroll-padding-top: calc(var(--header-h) + 12px); }
  /* Each surface owns both ink and background. Scrolling must never pair
     one section's pale text with another section's light canvas on iOS. */
  body { background-image: none; transition: none; }
  /* Keep the fixed header the topmost painted surface for Safari's toolbar
     colour sampling. Section textures remain below the content. */
  body::after { display: none; }
  main > [data-theme], .footer[data-theme] {
    position: relative; isolation: isolate;
    background-color: var(--bg); color: var(--fg);
  }
  main > [data-theme]::before, .footer[data-theme]::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    pointer-events: none; background-image: var(--tex);
    background-size: 512px 512px; opacity: .035;
  }
  [data-theme="light"]:not(html) {
    --bg: var(--canvas); --tex: var(--tex-linen-soft);
    --fg: var(--cranberry); --muted: var(--olive);
    --field-bg: rgba(40, 16, 12, .06); --card: #f5f0e4; --bar: #ddd6c6;
    --line: rgba(81, 71, 27, .3); --accent: var(--olive); --accent-ink: var(--canvas);
    --btn-bg: var(--cranberry); --btn-fg: var(--canvas);
    --btn-2-bg: var(--bordeaux); --btn-2-fg: var(--canvas);
  }
  [data-theme="dark"]:not(html), [data-theme="deep"]:not(html) {
    --bg: var(--cranberry); --tex: var(--tex-linen);
    --fg: #f7f1e5; --muted: #e3ddcf;
    --field-bg: rgba(227, 221, 207, .1); --card: #6e2a2e; --bar: #743236;
    --line: rgba(247, 241, 229, .3); --accent: #f7f1e5; --accent-ink: var(--cranberry);
    --btn-bg: var(--canvas); --btn-fg: var(--cranberry);
    --btn-2-bg: var(--bordeaux); --btn-2-fg: var(--canvas);
  }
  .footer[data-theme="deep"] {
    --bg: #341317; --fg: #f2e7da; --muted: #cdb7b4;
    --line: rgba(242, 231, 218, .18); --accent: var(--fg);
    --accent-ink: #341317; --btn-fg: #341317;
    --btn-2-bg: var(--canvas); --btn-2-fg: #341317;
  }
  .footer__word { color: #ba858b; opacity: .35; }
  /* Opaque navigation remains legible above either neighbouring surface. */
  .header, .header.is-bar, .header.is-open {
    background: var(--bordeaux); color: var(--canvas);
    --accent: var(--canvas); --btn-bg: var(--canvas); --btn-fg: var(--bordeaux);
  }
  .slides__pause {
    position: absolute; z-index: 8; right: var(--m); top: calc(var(--header-h) + 12px);
    min-height: 44px; padding: 0 14px; background: var(--bordeaux);
    color: var(--canvas); border-radius: 2px; font-size: 13px;
  }

  /* типографика, кнопки, появление */
  .h-1 { font-size: clamp(36px, 10vw, 48px); }
  .lead, .text { font-size: 15px; }
  .btn { height: 48px; padding: 0 18px; font-size: 12.5px; }
  .btns .btn + .btn--plus { display: none; }
  .js .rv, .js .rv.is-in { opacity: 1; transform: none; transition: none; }
  .js .lines .ln > span { transform: none; transition: none; }
  .js .img-rv { transition-duration: 1.1s; }
  a.shot:hover .shot__img img { transform: none; }
  .next-card:hover, .next-card:hover .next-card__plus { transform: none; }

  /* шапка и меню */
  .header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h);
    padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    border-radius: 0; transform: none; transition: none;
    grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px;
  }
  /* Safari can expose page pixels above a fixed bar beneath its translucent
     browser controls. Extend the same opaque surface into that area. */
  .header::before { content: ""; position: absolute; inset: -100vh 0 0; z-index: -1; background: var(--bordeaux); pointer-events: none; }
  .header.is-hidden:not(.is-open) { transform: none; }
  .header__logo { padding-inline: 0; }
  .logo { font-size: 21px; }
  .menu-toggle { height: 44px; padding: 0 10px; gap: 8px; }
  .header__right .btn--plus { display: none; }
  .header__cta-m { display: inline-flex; height: 40px; padding: 0 14px; font-size: 12px; }
  .menu {
    left: 0; right: 0; top: var(--header-h);
    max-height: calc(100dvh - var(--header-h));
    padding-bottom: env(safe-area-inset-bottom, 0px); border-radius: 0;
    background: var(--canvas); color: var(--cranberry); --accent: var(--cranberry);
    --muted: var(--olive); --line: rgba(89, 30, 33, .2); overscroll-behavior: contain;
  }
  .menu__inner { padding: 24px var(--m) 28px; row-gap: 24px; }
  .menu__link, .menu__link.is-current, .menu__link:hover { color: var(--cranberry); font-size: clamp(34px, 10vw, 44px); padding: 6px 0; }
  .menu__link.is-current > span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
  .menu__group .mono:first-child, .menu .status { color: var(--olive); }
  .menu .sq { background: var(--olive); }
  .menu__link .mono { transform: translateY(-1.1em); font-size: 11px; }
  .menu__group a { padding: 4px 0; font-size: 16px; }
  .menu__cards { gap: 6px; }
  .menu-card .mono { background: var(--canvas); color: var(--cranberry); padding: 6px 8px; }

  /* ---------- Первый экран: сторис из трёх интерьеров ---------- */
  .slides { height: 100svh; min-height: 640px; touch-action: pan-y pinch-zoom; overscroll-behavior-x: none; }
  .slides__pin { position: relative; height: 100%; }
  .slide { clip-path: inset(0 0 0 100%); transition: clip-path .65s var(--ease); }
  .slides.is-back .slide { clip-path: inset(0 100% 0 0); }
  .slides .slide.is-active, .slides .slide.was-active { clip-path: inset(0 0 0 0); }
  .slide__media img { object-position: center; transform: none; transition: none; }
  .slide.is-active .slide__media img, .slide.was-active .slide__media img { transform: scale(1); }
  .slide__media::after { background: linear-gradient(180deg, rgba(40, 16, 12, .55) 0%, rgba(40, 16, 12, .06) 24%, rgba(40, 16, 12, .3) 44%, rgba(40, 16, 12, .93) 100%); }
  .slide__body { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .slide__kicker { margin-bottom: 14px; font-size: 11px; }
  .slide__title { font-size: clamp(36px, 10.6vw, 54px); }
  .slide__title .ln > span { transform: none; transition: none; }
  .slide__foot { margin-top: 16px; gap: 20px; opacity: 1; transform: none; transition: none; }
  .slide__text { font-size: 15px; }
  .slide__cta { width: 100%; flex-direction: column; align-items: stretch; gap: 14px; }
  .slide__cta .btns { display: flex; width: 100%; }
  .slide__cta .btn { flex: 1; height: 52px; }
  .slide__cta .link-u { align-self: flex-start; font-size: 14px; }
  .slides__nav { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .slides__dot { gap: 8px; padding: 12px 0; }
  .slides__bar { height: 2px; }
  .slides__bar::after { transform: scaleX(0); }
  .slides__dot.is-past .slides__bar::after, .slides__dot.is-active .slides__bar::after { transform: scaleX(1); }
  .slides.is-playing .slides__dot.is-active .slides__bar::after { animation: bar-fill var(--dur, 6s) linear both; }
  .slides.is-paused .slides__dot.is-active .slides__bar::after { animation-play-state: paused; }

  /* ---------- Ленты со свайпом ---------- */
  [data-carousel] {
    --carousel-card: min(calc(100vw - 48px), 420px);
    position: relative; display: flex; align-items: stretch; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
    margin-inline: calc(-1 * var(--m)); padding: 0 calc((100vw - var(--carousel-card)) / 2) 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel].is-ready { scroll-snap-type: none; scroll-behavior: auto; }
  [data-carousel] img, .slides img { -webkit-user-drag: none; user-select: none; }
  .car-ui { display: flex; align-items: center; gap: 16px; margin-top: 16px; grid-column: 1 / -1; min-width: 0; }
  .car-ui__count { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
  .car-ui__count b { font-weight: 400; color: var(--fg); }
  .car-ui__bars { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .car-ui__bars button { position: relative; height: 44px; }
  .car-ui__bars button::before, .car-ui__bars button::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; }
  .car-ui__bars button::before { background: var(--line); }
  .car-ui__bars button::after { background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
  .car-ui__bars .is-past::after, .car-ui__bars .is-active::after { transform: scaleX(1); }

  /* ---------- Цифры: фото и стопка карточек, как в блоке гарантий ---------- */
  .stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .section--stats { padding-top: 24px; padding-bottom: 12px; }
  .stat--photo { display: block; min-height: 0; aspect-ratio: 3 / 4; }
  .js .stats .stat--photo { clip-path: none; }
  .stat:not(.stat--photo) { position: sticky; top: calc(var(--header-h) + 16px + var(--k, 0) * 10px); min-height: 264px; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 24px; background: var(--card); border-radius: 3px; box-shadow: 0 -10px 30px rgba(40, 16, 12, .08); }
  .stat:nth-child(3) { --k: 1; }
  .stat:nth-child(4) { --k: 2; }
  .stat__num { flex: none; font-size: clamp(72px, 21vw, 96px); }
  .stat .mono { max-width: 30ch; font-size: 13px; }
  .stat__note { font-size: 13px; }

  /* ---------- Как мы работаем: карточки с фото, листаются сами ---------- */
  .process__pin { padding-top: 20px; padding-bottom: 48px; }
  .process__label { margin-bottom: 12px; }
  .process__steps { margin-top: 26px; gap: 10px; }
  .process .step, .process .step.is-active { flex: 0 0 var(--carousel-card); scroll-snap-align: center; display: block; opacity: 1; transform: none; transition: none; }
  .step__img { display: block; position: relative; aspect-ratio: 1 / 1.1; overflow: hidden; border-radius: 2px; background: var(--card); margin-bottom: 16px; }
  .step__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
  .process .step__sq { display: none; }
  .step__num { display: block; margin-bottom: 6px; color: var(--accent); }
  .step__title { font-size: 22px; }
  .step__text { margin-top: 8px; max-width: none; font-size: 15px; }

  /* ---------- Проекты: лента кадров ---------- */
  .work { display: flex; flex-direction: column; }
  .work__side, .work__sticky { display: contents; }
  .work__side .lead { margin-top: 16px; }
  .work__project { margin-top: 22px; }
  .work__main[data-carousel] { order: 1; margin-top: 28px; }
  .work .car-ui { order: 1; }
  .work__side .btns { order: 2; display: flex; width: 100%; margin: 22px 0 0; padding-top: 0; }
  .work__side .btns .btn { flex: 1; }
  .work__col { display: contents; }
  .work__main .shot, .work__main .next-card { flex: 0 0 var(--carousel-card); scroll-snap-align: center; }
  #shot-1 { order: 1; } #shot-2 { order: 2; } #shot-3 { order: 3; } #shot-4 { order: 4; } #shot-5 { order: 5; }
  .work__main .next-card { order: 6; aspect-ratio: auto; margin-bottom: 26px; }
  .shot__img { aspect-ratio: 4 / 5; }
  .shot__img img { height: 100%; object-fit: cover; object-position: center; transform: none; transition: none; }
  .shot__cap { margin-top: 10px; }
  .shot__cap .mono { font-size: 11px; }

  /* ---------- Что вы получаете: карточки ложатся стопкой ---------- */
  .std__kicker { margin-top: 20px; }
  .std__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; counter-reset: std; }
  .std__item { position: sticky; top: calc(var(--header-h) + 22px + var(--k, 0) * 10px); counter-increment: std; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; min-height: 172px; padding: 20px 18px 22px 14px; background-color: var(--card); background-image: var(--tex); background-size: 512px 512px; background-blend-mode: multiply; border-radius: 3px; box-shadow: 0 -10px 30px rgba(40, 16, 12, .08); }
  .std__item:nth-child(2) { --k: 1; } .std__item:nth-child(3) { --k: 2; } .std__item:nth-child(4) { --k: 3; } .std__item:nth-child(5) { --k: 4; } .std__item:nth-child(6) { --k: 5; }
  .std__item::before { content: counter(std, decimal-leading-zero); grid-row: span 2; padding-top: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
  .std__item .mono { margin: 0 0 8px; padding: 0; border: 0; font-family: var(--f-sans); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; text-transform: none; color: var(--fg); }
  .std__item p { font-size: 15px; max-width: none; }

  /* ---------- Калькулятор ---------- */
  .section--benefits { padding-bottom: 24px; }
  [data-site-calc] { padding-top: 24px; }
  .calc2 { margin-top: 28px; }
  .calc2__controls { padding: 22px 18px 26px; gap: 26px; }
  .calc2__result { padding: 22px 18px 24px; }
  .calc2__price { margin: 8px 0 20px; font-size: 46px; }
  .calc2__price.is-range { font-size: 34px; }
  .calc2__cta { padding-top: 24px; }
  .calc2__cta .btn:first-child { justify-content: center; padding: 0 14px; }
  .calc2__foot { font-size: 12px; }

  /* выпадающий список открывается шторкой снизу, под большой палец */
  .cs::before { content: ""; position: fixed; inset: 0; z-index: 1200; background: rgba(40, 16, 12, .5); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
  .cs.is-open::before { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
  .cs__list { position: fixed; z-index: 1201; left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-height: 72svh; padding: 46px 8px 10px; border-radius: 6px; clip-path: none; transform: translateY(calc(100% + 30px)); transition: transform .5s var(--ease-io), visibility 0s .5s; }
  .cs.is-open .cs__list { clip-path: none; transform: none; transition: transform .55s var(--ease-io), visibility 0s; }
  .cs__list::before { content: attr(aria-label); position: absolute; left: 20px; top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--quail); }
  .cs__list [role="option"] { padding: 15px 34px 15px 12px; font-size: 17px; }

  /* ---------- Вопросы ---------- */
  .faq__list { margin-top: 28px; }
  .faq__q { min-height: 58px; padding: 16px 0; gap: 16px; }
  .faq__q .mono { font-size: 17px; }
  .faq__a p { padding: 0 0 20px; }

  /* ---------- Заявка и формы ---------- */
  .cta__img { margin-top: 0; aspect-ratio: 5 / 4; }
  .cta__img img { will-change: transform; }
  .cta__right { margin-top: 32px; }
  .cta__big { max-width: none; font-size: 26px; }
  .cta__right > .btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .form { gap: 8px; }
  .field input, .field select, .field textarea, .cs--field .cs__btn { font-size: 16px; }
  .field input, .cs--field .cs__btn { min-height: 54px; }
  .field textarea { min-height: 120px; }
  .check { padding: 8px 0; font-size: 13px; }
  .check input { flex: none; width: 20px; height: 20px; margin: 0; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .form__foot .btns { display: flex; width: 100%; }
  .form__foot .btn { flex: 1; height: 54px; }
  .form__foot .text { font-size: 13px; text-align: center; }

  /* ---------- Подвал ---------- */
  .footer { padding-top: 48px; }
  .footer__top { gap: 30px 16px; }
  .footer__col { gap: 0; }
  .footer__col--sub { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .footer__col > a { padding: 6px 0; }
  .footer__label { margin-bottom: 6px; }
  .footer__bottom { margin-top: 36px; gap: 6px; }
  .footer__word { margin-top: 18px; font-size: 19.5vw; will-change: transform; }

  /* ---------- Нижняя панель ---------- */
  .mbar {
    position: fixed; z-index: 150; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 6px; border-radius: 4px;
    background-color: var(--bg-bordeaux); background-image: var(--tex-linen); background-size: 512px 512px; background-blend-mode: multiply;
    box-shadow: 0 18px 40px rgba(40, 16, 12, .35);
    --btn-bg: var(--canvas); --btn-fg: var(--bordeaux); --btn-2-bg: var(--cranberry); --btn-2-fg: var(--canvas);
    transform: translateY(calc(100% + 30px)); transition: transform .6s var(--ease);
  }
  .mbar .btn { height: 46px; }
  .mbar.is-shown { transform: none; }
  body:has(.menu.is-open) .mbar, body:has(.cs.is-open) .mbar { transform: translateY(calc(100% + 30px)); }

  /* ---------- Внутренние страницы ---------- */
  .page-hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 36px; }
  .page-hero--split { padding-top: calc(var(--header-h) + 24px); }
  .about-hero__img { margin-bottom: 26px; aspect-ratio: 3 / 4; }
  .about-hero__img img { object-fit: contain; }
  .values, .decisions { gap: 8px; }
  .value { min-height: 0; gap: 22px; padding: 20px 18px; }
  .value .h-1 { font-size: 40px; }
  .decision { min-height: 0; gap: 22px; padding: 20px 18px; }
  .decision__n { font-size: 44px; }
  .person, .person--a { grid-column: 1 / 7; margin-top: 28px; }
  .person--b { grid-column: 7 / 13; }
  .person h3 { margin-top: 12px; font-size: 19px; }
  .person p { font-size: 13px; }
  .tiers { gap: 8px; }
  .tier { padding: 22px 18px; }
  .tier__foot { padding-top: 26px; }
  .tier__foot .btns { display: flex; width: 100%; }
  .tier__foot .btn { flex: 1; }
  .extra { padding: 20px 18px; }
  .proj-next .next-card { min-height: 260px; }
  .case-hero { height: 125svh; }
  .case-hero__media img { will-change: transform; }
  .contact { padding-top: calc(var(--header-h) + 56px); }
}

@media (max-width: 560px) {
  .person, .person--a { grid-column: 1 / 7; }
  .person--b { grid-column: 7 / 13; }
}

@media (max-width: 380px) {
  .logo { font-size: 19px; }
  .menu-toggle { padding-inline: 8px; }
  .header__cta-m { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .rv, .js .lines .ln > span, .js .img-rv { opacity: 1; transform: none; clip-path: none; }
}

/* Mobile motion and editorial layout — 6 November. */
.slides__track, .carousel-viewport { display: contents; }
.studio-intro { display: none; }
.tier__price strong { display: block; font-size: clamp(28px, 2.4vw, 38px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; color: var(--fg); }
.tier--dark .tier__price strong { color: var(--canvas); }
.tier__price > span { display: block; font-size: 13px; line-height: 1.55; margin-top: 8px; }
.tier__summary { margin-top: 18px; font-size: 15px; line-height: 1.5; }
.tier__details { margin-top: 18px; }
.tier__details summary { display: none; }
.tier__details .tier__list { margin-top: 0; }
.tier__foot .mono { font-family: var(--f-sans); font-size: 13px; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.about-hero__location { font-size: 13px; color: var(--muted); }
.story .h-2 { max-width: 22ch; }
.story .text { max-width: 50ch; font-size: 17px; line-height: 1.6; }
.cta__intro { display: grid; gap: 16px; margin-bottom: 24px; }
.shot__title { font-size: 15px; font-weight: 500; }
.shot__detail { color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  .h-1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.08; letter-spacing: -.03em; }
  .lead, .text { line-height: 1.6; }
  .std__item h3.mono { font-weight: 500; }
  .std__item p { line-height: 1.6; }
  .js .img-rv, .js .img-rv.is-in { clip-path: none; transition: none; }

  /* A single moving strip: the image, shade and caption move as one. */
  .slides.has-carousel .slides__track { display: flex; height: 100%; touch-action: pan-y pinch-zoom; }
  .slides.has-carousel .slide { position: relative; inset: auto; flex: 0 0 100%; min-width: 0; height: 100%; clip-path: none; z-index: auto; transition: none; }
  .slide__media::after { background: linear-gradient(180deg, rgba(40,16,12,.12) 20%, rgba(40,16,12,.3) 39%, rgba(40,16,12,.88) 62%, #28100c 100%); }
  .slide__body { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .slide__title { font-size: clamp(34px, 10vw, 46px); line-height: 1.04; }
  .slide__text { max-width: 38ch; font-size: 15px; color: #f4eee2; }
  .slide__foot { gap: 18px; }
  .slides__pause { background: rgba(40,16,12,.9); }

  /* Native scroll-snap stays as a no-library fallback. Embla alone owns
     translation once enhanced; no scrollLeft animation or competing easing. */
  .carousel-viewport { display: block; grid-column: 1 / -1; min-width: 0; margin-inline: calc(-1 * var(--m)); }
  .carousel-viewport.is-enhanced { overflow: hidden; overscroll-behavior-x: none; }
  .carousel-viewport.is-enhanced [data-carousel] { overflow: visible; margin: 0; padding: 8px 24px 24px; scroll-snap-type: none; scroll-padding: 0; touch-action: pan-y pinch-zoom; gap: 12px; }
  .carousel-viewport.is-enhanced [data-carousel] > * { min-width: 0; }
  .carousel-viewport.is-dragging { cursor: grabbing; }
  .carousel-viewport img { -webkit-user-drag: none; user-select: none; }
  .carousel-viewport .img-rv, .carousel-viewport .img-rv.is-in { clip-path: none; transition: none; }
  .car-ui { gap: 18px; margin-top: 0; }
  .car-ui__count { font-family: var(--f-sans); font-size: 13px; }
  .car-ui__progress { flex: 1; height: 2px; overflow: hidden; background: var(--line); }
  .car-ui__progress i { display: block; height: 100%; background: currentColor; transform-origin: left; transition: transform .35s var(--ease); }
  .car-ui__arrows { display: flex; gap: 8px; }
  .car-ui__arrows button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; touch-action: manipulation; }
  .car-ui__arrows svg { width: 20px; height: 20px; }
  .car-ui__arrows button:active { background: var(--field-bg); transform: scale(.96); }
  .car-ui__arrows button:disabled { opacity: .28; cursor: default; }

  /* A portrait accompanies the introduction instead of occupying a screen. */
  .stat--photo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 20px; padding: 0; aspect-ratio: auto; background: none; margin-bottom: 20px; }
  .studio-intro { display: grid; gap: 14px; }
  .studio-intro h2 { font-size: clamp(24px, 6.9vw, 31px); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; }
  .studio-intro p { font-size: 14px; line-height: 1.55; }
  .studio-intro .link-u { justify-self: start; font-size: 14px; padding-block: 10px; }
  .stat--photo img { position: static; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
  .stat .mono { font-family: var(--f-sans); text-transform: none; letter-spacing: 0; font-size: 16px; line-height: 1.45; max-width: 25ch; }
  .stat__note { font-size: 13px; line-height: 1.5; }

  .process .carousel-viewport { margin-top: 26px; }
  .process__steps { margin-top: 0; }
  .process .step, .process .step.is-active { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 10px; padding: 20px; background: #f5f0e4; color: var(--cranberry); border-radius: 6px; box-shadow: 0 8px 20px rgba(40,16,12,.1); }
  .step__img { grid-column: 2; grid-row: 1 / 4; align-self: center; aspect-ratio: 3 / 4; margin: 0; border-radius: 4px; }
  .step__num { grid-column: 1; margin: 0; color: var(--olive); font-size: 12px; }
  .step__title { grid-column: 1; font-size: clamp(20px, 5.5vw, 24px); line-height: 1.1; font-weight: 500; }
  .step__text { grid-column: 1; font-size: 14px; line-height: 1.5; margin: 0; color: var(--olive); }
  .process .step__sq { display: none; }

  .work .carousel-viewport { order: 1; margin-top: 26px; }
  .work__main[data-carousel] { margin-top: 0; }
  .work__main .shot { flex: 0 0 var(--carousel-card); min-width: 0; background: var(--canvas); color: var(--cranberry); border-radius: 6px; box-shadow: 0 10px 24px rgba(40,16,12,.22); overflow: hidden; }
  .shot__img { border-radius: 0; aspect-ratio: 4 / 4.5; }
  .shot__cap { display: grid; gap: 5px; padding: 16px; margin: 0; min-height: 72px; }
  .shot__title { font-size: 17px; line-height: 1.2; }
  .shot__detail { color: var(--olive); font-size: 13px; line-height: 1.4; }
  .work__main .next-card { margin-bottom: 0; border-radius: 6px; box-shadow: 0 10px 24px rgba(40,16,12,.22); }

  /* Compact editorial portrait: text on the left, image on the right. */
  .page-hero--split .grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: center; }
  .about-hero__text { grid-column: 1; gap: 16px; padding: 0; align-self: center; }
  .about-hero__text .h-1 { font-size: clamp(24px, 6.6vw, 32px); }
  .about-hero__text .lead { font-size: 14px; line-height: 1.55; }
  .about-hero__location { font-size: 12px; line-height: 1.5; }
  .about-hero__img { grid-column: 2; order: 0; margin: 0; align-self: start; height: auto; aspect-ratio: 3 / 4; border-radius: 4px; }
  .about-hero__img img { object-fit: cover; }
  .story { gap: 18px; }
  .story .h-2 { font-size: clamp(27px, 7.3vw, 36px); line-height: 1.1; }
  .story .text { font-size: 15px; line-height: 1.6; }
  .duo__intro { gap: 14px; }
  .person, .person--a, .person--b { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px 20px; margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--line); }
  .person__img { grid-column: 2; grid-row: 1 / 4; aspect-ratio: 3 / 4; }
  .person h3, .person p { grid-column: 1; margin: 0; }
  .person h3 { font-size: 22px; line-height: 1.12; }
  .person p { font-size: 14px; line-height: 1.5; }
  .person .mono { font-size: 12px; text-transform: none; letter-spacing: 0; }
  .values .h-2 { font-size: 30px; }

  .cta__left { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: center; }
  .cta__intro { gap: 14px; margin: 0; }
  .cta__intro .h-1 { font-size: clamp(26px, 7vw, 34px); }
  .cta__intro .text { font-size: 14px; }
  .cta__img { aspect-ratio: 3 / 4; border-radius: 4px; }
  .cta__img img { object-position: center; will-change: auto; }
  .cta__right { margin-top: 22px; }

  /* Three real paper-like surfaces, with all prices visible before details. */
  .tiers { gap: 20px; align-items: start; }
  .tier { position: sticky; top: calc(var(--header-h) + 16px + var(--tier-i, 0) * 8px); z-index: var(--tier-i, 0); padding: 24px; min-height: 0; border-radius: 6px; background-image: none; box-shadow: 0 -8px 26px rgba(40,16,12,.14); }
  .tier:nth-child(2) { --tier-i: 1; }
  .tier:nth-child(3) { --tier-i: 2; }
  .tier:has(.tier__details[open]) { position: relative; top: auto; }
  .tier--dark { --fg: #f7f1e5; --muted: #e3ddcf; background-color: var(--cranberry); }
  .tier--olive { --fg: #f7f1e5; --muted: #e3ddcf; --accent: #f7f1e5; --line: rgba(247,241,229,.25); --btn-2-bg: var(--canvas); --btn-2-fg: var(--olive); background-color: var(--olive); color: #f7f1e5; }
  .tier__name { font-size: 28px; line-height: 1.08; margin-top: 14px; max-width: 14ch; }
  .tier__price { margin-top: 22px; }
  .tier__price strong { font-size: clamp(28px, 8.2vw, 38px); }
  .tier__summary { margin-top: 16px; max-width: 30ch; color: var(--muted); }
  .tier__details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tier__details summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 0; font-size: 14px; cursor: pointer; list-style: none; }
  .tier__details summary::-webkit-details-marker { display: none; }
  .tier__details summary span { position: relative; width: 12px; height: 12px; }
  .tier__details summary span::before, .tier__details summary span::after { content: ''; position: absolute; inset: 5px 0 auto; height: 1px; background: currentColor; }
  .tier__details summary span::after { transform: rotate(90deg); transition: transform .2s var(--ease); }
  .tier__details[open] summary span::after { transform: rotate(0); }
  .tier__list { margin: 0; padding-bottom: 8px; }
  .tier__list li { padding: 8px 0; border: 0; font-size: 14px; line-height: 1.5; }
  .tier__foot { padding-top: 18px; gap: 8px; }
  .tier__foot .btns { margin-top: 10px; }
  .tier__foot .btn { min-height: 48px; }
}
@media (max-width: 860px) and (max-height: 650px) { .tier { position: relative; top: auto; } }
@media (prefers-reduced-motion: reduce) {
  .carousel-viewport .car-ui__progress i, .tier__details summary span::after { transition: none; }
}
