/* ==========================================================================
   Mezzotint — визуальная система
   Чёрная доска, камень, кость, ярь-медянка (verdigris) как свет.
   ========================================================================== */

/* Шрифты лежат в assets/fonts/ (mezzotint.css подключается в <head>), сторонних запросов нет.
   Чтобы перейти на Anticva и Astrum: положить их woff2 в assets/fonts/, описать @font-face здесь
   и поставить эти имена первыми в --f-display и --f-wide. */

:root {
  --void: #050505;
  --ink: #0a0a09;
  --graphite: #111110;
  --stone-1: #181716;
  --stone-2: #232220;
  --stone-3: #3a3834;

  --bone: #e9e3d5;
  --bone-2: #bcb5a6;
  --bone-3: #858073;
  --bone-4: #57534b;

  --verdigris: #5fb88c;
  --verdigris-glow: #9be6bd;
  --verdigris-deep: #1c4434;

  --line: rgba(233, 227, 213, .1);
  --line-2: rgba(233, 227, 213, .2);

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-wide: 'Unbounded', system-ui, sans-serif;
  --f-text: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 3.6vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

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

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font: 300 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
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; }
::selection { background: var(--verdigris-deep); color: var(--bone); }
:focus-visible { outline: 1px solid var(--verdigris); outline-offset: 4px; }

/* ---------- Типографика ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.015em;
  margin: 0;
}
.display em { font-style: italic; font-weight: 400; color: var(--bone-2); }
/* Польские надстрочные знаки (ś, ć, ż, ę…) при плотном русском интерлиньяже задевают строку выше */
:lang(pl) .display { line-height: 1.04; }
:lang(pl) :is(.tier__name, .step h3, .room__h, .form-done__title, .menu a, .folio__meta h3, .eplate__meta h3) { line-height: 1.12; }
.wide {
  font-family: var(--f-wide);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.mono {
  font-family: var(--f-mono);
  font-weight: 300;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--verdigris);
  box-shadow: 0 0 10px 2px rgba(95, 184, 140, .45);
  vertical-align: middle;
}

/* ---------- Атмосфера ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 80;
  pointer-events: none;
  opacity: .085;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.guides {
  position: fixed; inset: 0 var(--gutter);
  z-index: 1;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.guides i { border-left: 1px solid rgba(233, 227, 213, .028); }
.guides i:last-child { border-right: 1px solid rgba(233, 227, 213, .028); grid-column: 4; }
.lamp {
  position: fixed; left: 0; top: 0;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  z-index: 79;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 227, 213, .06) 0%, rgba(233, 227, 213, .02) 35%, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .8s var(--ease);
  will-change: transform;
}
.has-pointer .lamp { opacity: 1; }
.curtain {
  position: fixed; inset: 0;
  z-index: 95;
  background: var(--void);
  opacity: 0;
  pointer-events: none;
}
.skip-link {
  position: fixed; left: var(--gutter); top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--bone); color: var(--void);
}
.skip-link:focus { top: 12px; }

/* ---------- Загрузка ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid; place-items: center; align-content: center; gap: 28px;
  background: var(--void);
}
.loader__mark { width: min(220px, 50vw); color: var(--bone-3); }
.loader__meta { display: flex; gap: 24px; color: var(--bone-3); }
.loader__count { color: var(--verdigris); }
html:not(.js) .loader { display: none; }

/* ---------- Знак ---------- */
.mz { display: block; width: 100%; height: auto; overflow: visible; }
.mz path { fill: none; stroke-width: 12; }
.mz-solid { stroke: var(--bone); }
.mz-dot { fill: var(--bone-2); }
.mz-key { fill: var(--verdigris); }
.mz-construct * { fill: none; stroke: currentColor; stroke-width: .3; vector-effect: non-scaling-stroke; }
.mz-labels text { font: 300 3.2px var(--f-mono); fill: var(--bone-3); letter-spacing: .05em; }
.mz--construct .mz-key { opacity: 0; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  transition: background .6s var(--ease), border-color .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.header::before {
  content: ''; position: absolute; inset: 0 0 -40px 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(5, 5, 5, .85), rgba(5, 5, 5, 0));
  pointer-events: none;
}
.is-past-intro .header { background: rgba(5, 5, 5, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.is-past-intro .header::before { opacity: 0; }

.header__brand { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.header__mark { width: 30px; }
.header__word { font-size: 12px; letter-spacing: .32em; }

.header__hud {
  justify-self: center;
  display: flex; align-items: center; gap: 8px;
  color: var(--bone-3);
  transition: opacity .6s var(--ease);
}
.hud__num { color: var(--verdigris); min-width: 1.6em; text-align: right; }
.hud__name { margin-left: 14px; color: var(--bone-2); min-width: 10em; }
.is-past-intro .header__hud { opacity: 0; }
/* счётчик глав — только на широких экранах: иначе с переключателем языка шапке тесно */
@media (max-width: 1520px) { .header__hud { display: none; } }

.header__nav { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.header__nav a {
  position: relative;
  font: 400 11px/1 var(--f-wide);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone-2);
  padding: 8px 0;
  white-space: nowrap;
  transition: color .4s var(--ease);
}
@media (max-width: 1360px) { .header__nav { gap: 20px; } }
.header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--verdigris);
  transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.header__nav a:hover, .header__nav a.is-current { color: var(--bone); }
.header__nav a:hover::after, .header__nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__nav .header__cta {
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
  padding: 12px 18px;
  border: 1px solid var(--line-2);
  color: var(--bone);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.header__nav .header__cta::after { display: none; }
.header__nav .header__cta:hover { border-color: var(--verdigris); background: rgba(95, 184, 140, .06); }
.header__menu { display: none; justify-self: end; padding: 10px 0; color: var(--bone); }

/* Переключатель языка: сегменты RU | EN | PL в рамке, как кнопка; текущий — подсвечен ярью-медянкой */
.langs {
  display: inline-grid; grid-auto-flow: column; justify-self: end; align-self: center;
  border: 1px solid var(--line-2);
}
.langs a {
  display: grid; place-items: center; min-width: 38px; padding: 12px 10px;
  font: 400 11px/1 var(--f-mono); letter-spacing: .14em; color: var(--bone-3);
  transition: color .4s var(--ease), background .4s var(--ease);
}
.langs a + a { border-left: 1px solid var(--line); }
.langs a:hover { color: var(--bone); background: rgba(232, 226, 212, .05); }
.langs a[aria-current] { color: var(--verdigris); background: rgba(95, 184, 140, .1); }
.menu .langs--menu { display: inline-grid; justify-self: start; margin-top: 32px; }
.menu .langs--menu a { display: grid; min-width: 64px; padding: 16px 14px; border-bottom: 0; font: 400 13px/1 var(--f-mono); }
@media (max-width: 860px) { .header .langs a { min-width: 34px; padding: 10px 8px; } }

.menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(5, 5, 5, .96);
  backdrop-filter: blur(10px);
  display: grid; align-content: center;
  padding: var(--header-h) var(--gutter) 40px;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 500 clamp(40px, 11vw, 64px)/1 var(--f-display);
}
.menu a .mono { color: var(--verdigris); }

/* ---------- Рельс и «пропустить» ---------- */
.rail {
  position: fixed; left: var(--gutter); top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  transition: opacity .6s var(--ease), visibility .6s;
}
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail button {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0;
  color: var(--bone-4);
  transition: color .5s var(--ease);
}
.rail button::before {
  content: ''; width: 14px; height: 1px; background: currentColor;
  transition: width .6s var(--ease), background .6s var(--ease);
}
.rail .mono { width: 2.4em; }
.rail em {
  font: italic 400 15px/1 var(--f-display);
  padding: 4px 8px; margin-left: -8px;
  background: var(--void);
  opacity: 0; transform: translateX(-6px);
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.rail button:hover { color: var(--bone-2); }
.rail button:hover em { opacity: 1; transform: none; }
.rail button.is-active { color: var(--bone); }
.rail button.is-active::before { width: 34px; background: var(--verdigris); box-shadow: 0 0 8px rgba(95, 184, 140, .7); }

.skip {
  position: fixed; right: var(--gutter); bottom: 28px;
  z-index: 50;
  display: grid; gap: 10px; justify-items: end;
  color: var(--bone-2);
  transition: opacity .6s var(--ease), visibility .6s, color .4s;
}
.skip:hover { color: var(--bone); }
.skip__bar { display: block; width: 180px; height: 1px; background: var(--line-2); overflow: hidden; }
.skip__bar i { display: block; height: 100%; background: var(--verdigris); transform-origin: left; transform: scaleX(0); }
html:not(.is-ready) .rail, html:not(.is-ready) .skip,
.is-past-intro .rail, .is-past-intro .skip { opacity: 0; visibility: hidden; }
.rail, .skip { transition-duration: 1.2s; }

/* ---------- Вступление ---------- */
.experience { position: relative; height: 820vh; }
.exp {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.exp__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.exp__fallback { position: absolute; inset: 0; display: none; }
.exp__fallback img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.35) contrast(1.1); }
.no-webgl .exp__fallback { display: block; }
.exp__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 45%, transparent 40%, rgba(5, 5, 5, .75) 100%),
    linear-gradient(to top, rgba(5, 5, 5, .9), transparent 30%);
}

.exp__painting {
  --beam: -30%;
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  pointer-events: none;
}
.exp__painting img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%;
  filter: contrast(1.1) brightness(.78) saturate(.75);
  transform: scale(1.12);
  -webkit-mask-image: linear-gradient(118deg, transparent calc(var(--beam) - 26%), rgba(0,0,0,.55) calc(var(--beam) - 10%), #000 var(--beam), rgba(0,0,0,.7) calc(var(--beam) + 22%), transparent calc(var(--beam) + 48%));
          mask-image: linear-gradient(118deg, transparent calc(var(--beam) - 26%), rgba(0,0,0,.55) calc(var(--beam) - 10%), #000 var(--beam), rgba(0,0,0,.7) calc(var(--beam) + 22%), transparent calc(var(--beam) + 48%));
}
.exp__painting::after {
  /* растр «чёрной манеры» поверх полотна + тень под текстом */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle, rgba(5,5,5,.6) 0.7px, transparent 1.1px) 0 0 / 3px 3px,
    linear-gradient(to left, rgba(5,5,5,.82) 0%, rgba(5,5,5,.5) 38%, transparent 62%),
    linear-gradient(to top, rgba(5,5,5,.7), transparent 35%);
}
.exp__painting figcaption {
  position: absolute; right: var(--gutter); bottom: 96px;
  max-width: 34ch; text-align: right;
  color: var(--bone-3);
}

.exp__hud {
  position: absolute; left: var(--gutter); bottom: 28px;
  display: flex; gap: 18px; color: var(--bone-3);
}
.exp__pct { color: var(--verdigris); }

/* Вход */
.hero {
  position: absolute;
  left: calc(var(--gutter) + clamp(96px, 6vw, 110px));
  top: calc(var(--header-h) + 4vh);
  bottom: 9vh;
  width: min(760px, calc(100% - 2 * var(--gutter) - 110px));
  display: flex; flex-direction: column; justify-content: center;
}
.hero__kicker { display: flex; align-items: center; gap: 12px; color: var(--bone-2); margin: 0 0 3vh; }
.hero__title { font-size: clamp(76px, 13.5vw, 232px); line-height: .82; }
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__line > span { display: inline-block; }
.hero__line--shift { padding-left: .9em; }
.hero__line--shift em { color: var(--bone); }
.hero__sub { font-size: clamp(10px, 1vw, 13px); color: var(--verdigris); margin: 3.4vh 0 0; }
.hero__lede { max-width: 40ch; margin: 2.2vh 0 0; color: var(--bone-2); font-size: clamp(15px, 1.15vw, 18px); }
.hero__paths {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  margin-top: 5vh;
}
.hero__or { margin: 0; color: var(--bone-4); }
.hero__index { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.hero__index a {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 0;
  font: 500 22px/1.1 var(--f-display);
  color: var(--bone-2);
  border-bottom: 1px solid var(--line);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.hero__index a .mono { color: var(--bone-4); font-size: 10px; transition: color .4s; }
.hero__index a .arr { font-family: var(--f-text); font-size: 13px; opacity: 0; transform: translateX(-4px); transition: transform .6s var(--ease), opacity .4s; color: var(--verdigris); }
.hero__index a:hover { color: var(--bone); border-color: var(--verdigris); }
.hero__index a:hover .mono { color: var(--verdigris); }
.hero__index a:hover .arr { opacity: 1; transform: none; }

/* Кнопки */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 24px;
  border: 1px solid var(--line-2);
  font: 400 11px/1 var(--f-wide);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .5s var(--ease), color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 140% at 0% 50%, rgba(95, 184, 140, .18), transparent 60%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.btn:hover { border-color: var(--verdigris); }
.btn:hover::before { opacity: 1; }
.btn__hint { color: var(--bone-3); letter-spacing: .06em; font-size: 10px; }
.btn__arrow { font-family: var(--f-text); font-size: 15px; color: var(--verdigris); transition: transform .6s var(--ease); }
.btn:hover .btn__arrow { transform: translateY(3px); }
.btn--light { background: var(--bone); color: var(--void); border-color: var(--bone); }
.btn--light .btn__arrow { color: var(--void); }
.btn--light::before { background: radial-gradient(120% 140% at 0% 50%, rgba(95, 184, 140, .35), transparent 60%); }
.btn--light:hover { border-color: var(--bone); }

/* Главы */
.chapter, .impression { position: absolute; opacity: 0; visibility: hidden; }
.chapter {
  top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center;
  width: min(560px, calc(100% - 2 * var(--gutter)));
}
/* Рельс глав занимает ~70 px слева — текст всегда начинается правее него */
.chapter--left { left: calc(var(--gutter) + max(7vw, 96px)); }
.chapter--right { right: calc(var(--gutter) + clamp(0px, 5vw, 90px)); }
.chapter--center { left: 0; right: 0; margin: 0 auto; text-align: center; width: min(820px, calc(100% - 2 * var(--gutter))); }
.chapter__meta { display: flex; gap: 18px; color: var(--bone-3); margin: 0 0 3.2vh; }
.chapter__meta span:first-child { color: var(--verdigris); }
.chapter--center .chapter__meta { justify-content: center; }
.chapter .display { font-size: clamp(42px, 5.6vw, 100px); }
.chapter--left, .chapter--right { width: min(620px, calc(100% - 2 * var(--gutter) - 110px)); }
.chapter__text { margin: 3vh 0 0; max-width: 40ch; color: var(--bone-2); font-size: clamp(15px, 1.15vw, 18px); }
.chapter--center .chapter__text { margin-inline: auto; }
.chapter__spec { list-style: none; margin: 4vh 0 0; padding: 0; max-width: 420px; }
.chapter__spec li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-top: 1px solid rgba(95, 184, 140, .22);
  color: var(--bone-3);
}
.chapter__spec li span:first-child { color: var(--verdigris); }
.chapter--painting .display, .chapter--painting .chapter__text { text-shadow: 0 2px 30px rgba(0, 0, 0, .85); }

.impression {
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--header-h) var(--gutter) 80px;
}
.impression .chapter__meta { margin-bottom: 2vh; }
.impression__mark { width: min(40vh, 64vw); color: var(--bone-4); }
.impression__word { font-size: clamp(18px, 2.6vw, 38px); letter-spacing: .42em; margin: 1vh 0 0 .42em; }
.impression__word .ch { display: inline-block; }
.impression__desc { max-width: 46ch; color: var(--bone-2); margin: 2.4vh 0 3.6vh; }

/* ---------- Секции ---------- */
.section {
  position: relative; z-index: 2;
  padding: clamp(110px, 16vh, 200px) var(--gutter);
  max-width: 1680px; margin: 0 auto;
}
.section::before {
  /* метки приводки, как на печатной форме */
  content: ''; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 13px;
  background:
    linear-gradient(var(--line-2), var(--line-2)) left 6px top 0 / 1px 13px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) left 0 top 6px / 13px 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) right 6px top 0 / 1px 13px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) right 0 top 6px / 13px 1px no-repeat,
    linear-gradient(var(--line), var(--line)) center top 6px / calc(100% - 40px) 1px no-repeat;
}
.section__head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  align-items: end;
  margin-bottom: clamp(56px, 10vh, 120px);
}
.section__index { grid-column: 1 / span 3; color: var(--verdigris); align-self: start; margin: 0; }
.section__title { grid-column: 4 / span 6; font-size: clamp(56px, 8.5vw, 150px); }
.section__lede { grid-column: 10 / span 3; color: var(--bone-2); margin: 0; max-width: 34ch; }

[data-reveal] { opacity: 0; transform: translateY(28px); }
.is-static [data-reveal], html:not(.js) [data-reveal] { opacity: 1; transform: none; }

/* Услуги */
.services__body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.services__list { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.service {
  display: grid; grid-template-columns: 64px 1fr; gap: 0 16px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--line);
  cursor: default;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { color: var(--bone-4); padding-top: 14px; transition: color .5s var(--ease); }
.service__title {
  margin: 0;
  font: 500 clamp(32px, 3.6vw, 58px)/1 var(--f-display);
  color: var(--bone-2);
  transition: color .6s var(--ease), transform .8s var(--ease);
}
.service__text { margin: 14px 0 0; max-width: 52ch; color: var(--bone-3); transition: color .6s var(--ease); }
.service__tags { margin: 14px 0 0; color: var(--bone-4); }
.service.is-active .service__num { color: var(--verdigris); }
.service.is-active .service__title { color: var(--bone); transform: translateX(10px); }
.service.is-active .service__text { color: var(--bone-2); }

.services__preview { grid-column: 9 / span 4; }
.preview { position: sticky; top: calc(var(--header-h) + 6vh); }
.preview__frame {
  --burnish: 0%;
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--graphite);
  overflow: hidden;
}
.preview__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  filter: contrast(1.05) brightness(.72) saturate(.75);
  -webkit-mask-image: radial-gradient(circle at 45% 40%, #000 calc(var(--burnish) * .5), transparent var(--burnish));
          mask-image: radial-gradient(circle at 45% 40%, #000 calc(var(--burnish) * .5), transparent var(--burnish));
}
.preview__frame::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(5,5,5,.5) .7px, transparent 1.1px);
  background-size: 3px 3px;
  pointer-events: none;
}
.reg { position: absolute; width: 14px; height: 14px; z-index: 2; }
.reg::before, .reg::after { content: ''; position: absolute; background: var(--verdigris); }
.reg::before { width: 100%; height: 1px; top: 50%; }
.reg::after { width: 1px; height: 100%; left: 50%; }
.reg--tl { left: 10px; top: 10px; } .reg--tr { right: 10px; top: 10px; }
.reg--bl { left: 10px; bottom: 10px; } .reg--br { right: 10px; bottom: 10px; }
.preview__credit { margin: 14px 0 0; color: var(--bone-4); min-height: 3em; }
.services__more { margin: 40px 0 0; color: var(--bone-3); }
.services__more a { color: var(--bone); border-bottom: 1px solid var(--verdigris); }

/* Этюды: плёнка на главной — кадры «напечатаны» в технике меццо-тинто */
.section__title em { color: var(--bone-2); }
.folio { display: grid; gap: 32px; }
.folio__strip {
  position: relative; display: block;
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 30px 0; overflow: hidden; cursor: pointer;
  background: #0b0b0a;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.folio__strip::before, .folio__strip::after {
  /* перфорация плёнки */
  content: ''; position: absolute; left: 0; right: 0; height: 9px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(233, 227, 213, .1) 0 12px, transparent 12px 30px);
}
.folio__strip::before { top: 10px; }
.folio__strip::after { bottom: 10px; }
.folio__track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.frame { position: relative; flex: none; width: clamp(220px, 23vw, 360px); aspect-ratio: 3 / 2; overflow: hidden; background: #121211; }
.frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) sepia(.35) brightness(.55) contrast(1.2);
  transition: filter 1.4s var(--ease);
}
.frame--draw img { filter: invert(1) grayscale(1) sepia(.35) brightness(.72) contrast(1.15); }
.frame::after {
  /* растр доски + виньетка */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle, rgba(5, 5, 5, .55) .8px, transparent 1.25px) 0 0 / 3px 3px,
    radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(5, 5, 5, .7) 100%);
}
.folio__strip:hover .frame img, .folio__strip:focus-visible .frame img { filter: grayscale(.8) sepia(.3) brightness(.72) contrast(1.15); }
.folio__strip:hover .frame--draw img { filter: invert(1) grayscale(1) sepia(.35) brightness(.85) contrast(1.15); }
.frame--mark { display: grid; place-items: center; }
.frame__mark { width: 30%; color: var(--bone-2); }
.frame__mark .sx { display: block; width: 100%; overflow: visible; }
.frame__mark .sx-ring, .frame__mark .sx-cut { fill: none; stroke: currentColor; }
.frame__mark .sx-fill { fill: var(--verdigris); opacity: .75; }
.frame__cap { position: absolute; left: 12px; bottom: 10px; z-index: 2; color: var(--bone-2); }
.folio__meta { display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: end; }
.folio__meta > .mono { grid-column: 1 / -1; display: flex; gap: 18px; margin: 0; color: var(--bone-3); }
.folio__meta > .mono span:first-child { color: var(--verdigris); }
.folio__meta h3 { margin: 0; font: 500 clamp(30px, 3vw, 48px)/1.05 var(--f-display); }
.folio__list { grid-column: 1; margin: 0; color: var(--bone-3); }
.folio__meta .btn { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
.is-modal .grain, .is-modal .lamp { display: none; }

/* Пространство этюда: светлый «оттиск» поверх тёмного сайта */
.etude-room {
  position: fixed; inset: 0; z-index: 118;
  overflow-y: auto; overscroll-behavior: contain;
  color: #17181a;
  background-color: #eeebe4;
  background-image: linear-gradient(rgba(23, 24, 26, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 24, 26, .045) 1px, transparent 1px);
  background-size: 96px 96px;
}
.etude-room[hidden] { display: none; }
.room__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: 64px; padding: 0 var(--gutter);
  background: rgba(238, 235, 228, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 24, 26, .1);
}
.room__back { color: #3b3d41; padding: 8px 0; }
.room__back:hover { color: #2e46d6; }
.room__title { margin: 0; color: #6f7176; }
.room__close { width: 40px; height: 40px; font: 300 26px/1 var(--f-text); color: #17181a; border: 1px solid rgba(23, 24, 26, .2); }
.room__close:hover { border-color: #2e46d6; color: #2e46d6; }
.room__intro {
  max-width: 1600px; margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) var(--gutter) clamp(40px, 7vh, 72px);
  display: grid; grid-template-columns: 110px 1fr; gap: 40px; align-items: center;
}
.room__mark { width: 110px; color: #17181a; }
.room__mark .sx { display: block; width: 100%; overflow: visible; }
.room__mark .sx-ring, .room__mark .sx-cut { fill: none; stroke: currentColor; }
.room__mark .sx-fill { fill: #2e46d6; }
.room__h { margin: 0; font: 500 clamp(36px, 4.4vw, 68px)/1 var(--f-display); }
.room__lede { margin: 16px 0 0; max-width: 62ch; color: #3b3d41; font-size: 17px; }
.etude-room .eplates { max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter); }
.etude-room .eplate__view { border-color: rgba(23, 24, 26, .12); background: #e2ded6; }
.etude-room .eplate__view:hover, .etude-room .eplate__view:focus-visible { border-color: #2e46d6; }
.etude-room .eplate__hint { background: rgba(23, 24, 26, .86); color: #f3f1ec; }
.etude-room .eplate__meta > p.mono { color: #6f7176; }
.etude-room .eplate__meta > p.mono span:first-child { color: #2e46d6; }
.etude-room .eplate__meta h3 { color: #17181a; }
.etude-room .eplate__text { color: #3b3d41; }
.etude-room .eplate__pick { color: #17181a; border-bottom-color: #2e46d6; }
.etude-room .eplate__pick span { color: #2e46d6; }
.etude-room .eplate__play:hover, .etude-room .eplate__view:hover .eplate__play { border-color: #9fb0ff; }
.room__foot {
  max-width: 1600px; margin: clamp(56px, 9vh, 96px) auto 0;
  padding: 32px var(--gutter) 72px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(23, 24, 26, .12); color: #6f7176;
}
.room__foot p { margin: 0; }
.btn--ink { color: #17181a; border-color: rgba(23, 24, 26, .3); }
.btn--ink .btn__arrow { color: #2e46d6; }
.btn--ink:hover { border-color: #2e46d6; }
.btn--ink::before { background: radial-gradient(120% 140% at 0% 50%, rgba(46, 70, 214, .12), transparent 60%); }
.eplates { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 7vh, 80px) clamp(16px, 2vw, 28px); align-items: start; }
.eplate--3d { grid-column: 1 / span 8; }
.eplate--brand { grid-column: 9 / span 4; }
.eplate--site { grid-column: 1 / span 5; }
.eplate--deck { grid-column: 6 / span 7; }
.eplate--film { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 0 clamp(24px, 3vw, 48px); align-items: end; }

.eplate__view {
  position: relative; display: block; width: 100%; padding: 0;
  overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--graphite);
  transition: border-color .6s var(--ease);
}
.eplate__view:hover, .eplate__view:focus-visible { border-color: rgba(95, 184, 140, .55); }
.eplate__view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eplate__hint {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  padding: 7px 10px; background: rgba(5, 5, 5, .78); color: var(--bone);
  opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.eplate__view:hover .eplate__hint, .eplate__view:focus-visible .eplate__hint { opacity: 1; transform: none; }
@media (hover: none) { .eplate__hint { opacity: 1; transform: none; } }

/* 3D: при наведении линия сечения открывает разрез */
.eplate__cmp { position: relative; display: block; aspect-ratio: 16 / 10; }
.eplate__cmp img { position: absolute; inset: 0; }
.eplate__cut { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease); }
.eplate__cmp::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; background: #2e46d6; z-index: 2; transition: left 1.3s var(--ease); }
.eplate__view:hover .eplate__cut, .eplate__view:focus-visible .eplate__cut { clip-path: inset(0 0 0 42%); }
.eplate__view:hover .eplate__cmp::after, .eplate__view:focus-visible .eplate__cmp::after { left: 42%; }

/* Айдентика */
.eplate__brand { position: relative; display: grid; place-items: center; align-content: center; gap: 22px; aspect-ratio: 4 / 5; background: #2e46d6; color: #f3f1ec; }
.eplate__mark { width: 38%; transition: transform 1.2s var(--ease); }
.eplate__mark .sx { display: block; width: 100%; overflow: visible; }
.eplate__mark .sx-ring, .eplate__mark .sx-cut { fill: none; stroke: currentColor; }
.eplate__mark .sx-fill { fill: currentColor; }
.eplate__view:hover .eplate__mark { transform: rotate(-90deg); }
.eplate__word { font: 500 clamp(18px, 1.8vw, 26px)/1 var(--f-text); letter-spacing: .42em; margin-left: .42em; }
.eplate__swatches { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 5.5fr 2fr 1.7fr .8fr; height: 14px; }
.eplate__swatches i:nth-child(1) { background: #f3f1ec; }
.eplate__swatches i:nth-child(2) { background: #d6d2ca; }
.eplate__swatches i:nth-child(3) { background: #17181a; }
.eplate__swatches i:nth-child(4) { background: #9fb0ff; }

/* Сайт */
.eplate__browser { display: block; aspect-ratio: 10 / 9; padding: 9% 7% 0; background: #e9e6df; }
.eplate__chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #fff; color: #6f7176; border-bottom: 1px solid rgba(23,24,26,.1); }
.eplate__chrome i { width: 8px; height: 8px; border-radius: 50%; background: #d6d2ca; }
.eplate__chrome span { margin-left: 10px; text-transform: none; letter-spacing: .02em; }
.eplate__screen { position: relative; display: block; height: calc(100% - 30px); overflow: hidden; background: #f3f1ec; box-shadow: 0 30px 60px -30px rgba(23,24,26,.5); }
.eplate__screen img { transition: transform 1.6s var(--ease); }
.eplate__view:hover .eplate__screen img { transform: scale(1.05); }
.eplate__headline {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40% 7% 7%;
  background: linear-gradient(to top, rgba(243,241,236,.97) 30%, rgba(243,241,236,0));
  color: #17181a; font: 300 clamp(18px, 1.9vw, 30px)/1.02 var(--f-text); letter-spacing: -.04em;
}
.eplate__headline em { font-style: normal; color: #2e46d6; }

/* Презентация */
.eplate__slide { display: grid; grid-template-columns: 1fr 1.25fr; aspect-ratio: 16 / 9; background: #17181a; }
.eplate__slide-text { display: flex; flex-direction: column; justify-content: space-between; padding: 8% 7%; color: #f3f1ec; }
.eplate__slide-text .mono { color: #9fb0ff; }
.eplate__slide-text b { font: 300 clamp(26px, 3vw, 48px)/.95 var(--f-text); letter-spacing: -.045em; }
.eplate__slide img { background: #fbfaf7; object-fit: contain !important; transition: transform 1.4s var(--ease); }
.eplate__view:hover .eplate__slide img { transform: scale(1.04); }

/* Motion */
.eplate__film { position: relative; display: block; aspect-ratio: 21 / 9; }
.eplate__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  border-radius: 50%; border: 1px solid rgba(243,241,236,.6); background: rgba(5,5,5,.35);
  backdrop-filter: blur(6px); transition: transform .6s var(--ease), border-color .4s;
}
.eplate__play::after { content: ''; position: absolute; left: 34px; top: 27px; border-left: 22px solid var(--bone); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.eplate__view:hover .eplate__play { transform: scale(1.1); border-color: var(--verdigris); }
.eplate__tc { position: absolute; right: 16px; bottom: 14px; color: var(--bone-2); }

.eplate__meta { padding-top: 18px; }
.eplate__meta > p.mono { display: flex; justify-content: space-between; gap: 16px; margin: 0; color: var(--bone-3); }
.eplate__meta > p.mono span:first-child { color: var(--verdigris); }
.eplate__meta h3 { margin: 12px 0 0; font: 500 clamp(28px, 2.4vw, 40px)/1.05 var(--f-display); }
.eplate__text { margin: 10px 0 0; color: var(--bone-3); max-width: 52ch; }
.eplate__pick { display: inline-flex; gap: 10px; margin-top: 16px; padding-bottom: 4px; color: var(--bone); border-bottom: 1px solid var(--verdigris); }
.eplate__pick span { color: var(--verdigris); transition: transform .5s var(--ease); }
.eplate__pick:hover span { transform: translateX(4px); }
.etudes__note { margin: 48px 0 0; color: var(--bone-4); }

/* Подбор пакета */
.quiz { position: fixed; inset: 0; z-index: 122; overflow-y: auto; background: var(--void); display: flex; flex-direction: column; }
.quiz[hidden] { display: none; }
.quiz::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 85% 10%, rgba(95, 184, 140, .08), transparent 60%); }
.quiz__bar { position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.quiz__title { margin: 0; color: var(--bone-3); }
.quiz__step { margin: 0; color: var(--verdigris); }
.quiz__close { width: 40px; height: 40px; font: 300 26px/1 var(--f-text); color: var(--bone); border: 1px solid var(--line-2); }
.quiz__close:hover { border-color: var(--verdigris); }
.quiz__progress { height: 1px; background: var(--line); }
.quiz__progress i { display: block; height: 100%; background: var(--verdigris); box-shadow: 0 0 10px rgba(95, 184, 140, .7); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.quiz__body { position: relative; flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: clamp(40px, 9vh, 110px) var(--gutter) 64px; }
.quiz__num { margin: 0; color: var(--verdigris); }
.quiz__q { margin: 16px 0 0; font-size: clamp(40px, 5.4vw, 84px); }
.quiz__opts { display: grid; gap: 10px; margin-top: clamp(32px, 6vh, 56px); }
.quiz__opt {
  display: flex; align-items: baseline; gap: 18px; width: 100%;
  padding: 20px 22px; text-align: left;
  border: 1px solid var(--line-2); color: var(--bone-2);
  font: 300 clamp(17px, 1.4vw, 20px)/1.35 var(--f-text);
  transition: border-color .4s var(--ease), color .4s, background .4s, padding-left .5s var(--ease);
}
.quiz__opt .mono { color: var(--bone-4); }
.quiz__opt:hover, .quiz__opt:focus-visible { border-color: var(--verdigris); color: var(--bone); background: rgba(95, 184, 140, .05); padding-left: 28px; }
.quiz__opt:hover .mono, .quiz__opt:focus-visible .mono { color: var(--verdigris); }
.quiz__back { margin-top: 26px; padding: 6px 0; color: var(--bone-3); }
.quiz__back:hover { color: var(--bone); }
.quiz__result { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; margin-top: 10px; }
.quiz__type { margin: 0; color: var(--bone-3); }
.quiz__why { margin: 18px 0 0; color: var(--bone-2); font-size: 18px; max-width: 46ch; }
.quiz__notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.quiz__notes li { position: relative; padding-left: 22px; color: var(--bone-3); max-width: 52ch; }
.quiz__notes li::before { content: ''; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--verdigris); }
.quiz__facts { margin: 0; border-top: 1px solid var(--line-2); }
.quiz__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.quiz__facts dt { color: var(--bone-4); }
.quiz__facts dd { margin: 0; font: 300 22px/1 var(--f-wide); letter-spacing: .02em; text-transform: none; color: var(--bone); }
.quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 44px; }
.quiz__actions .quiz__back { margin-top: 0; }

/* Просмотрщик */
.viewer { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: var(--void); }
.viewer[hidden] { display: none; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 60px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.viewer__title { margin: 0; font: 500 22px/1 var(--f-display); }
.viewer__title .mono { color: var(--verdigris); margin-right: 12px; }
.viewer__actions { display: flex; align-items: center; gap: 22px; }
.viewer__actions a { color: var(--bone-2); }
.viewer__actions a:hover { color: var(--bone); }
.viewer__pick { color: var(--bone) !important; border-bottom: 1px solid var(--verdigris); padding-bottom: 3px; }
.viewer__close { width: 40px; height: 40px; font: 300 26px/1 var(--f-text); color: var(--bone); border: 1px solid var(--line-2); }
.viewer__close:hover { border-color: var(--verdigris); }
.viewer__frame { flex: 1; width: 100%; border: 0; background: #f3f1ec; }

/* Метод */
.method__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 40px); }
.step__line { display: block; height: 1px; background: var(--line); margin-bottom: 26px; }
.step__line i { display: block; height: 100%; width: 100%; background: var(--verdigris); box-shadow: 0 0 10px rgba(95, 184, 140, .6); transform: scaleX(0); transform-origin: left; }
.step .mono { color: var(--verdigris); margin: 0; }
.step h3 { margin: 14px 0 12px; font: 500 clamp(32px, 3vw, 46px)/1 var(--f-display); }
.step p:last-child { margin: 0; color: var(--bone-3); max-width: 32ch; }

/* Цены */
.ptabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  overflow-x: auto; scrollbar-width: none;
}
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 16px 28px 18px 0;
  margin-right: 28px;
  font: 500 clamp(22px, 2vw, 30px)/1 var(--f-display);
  color: var(--bone-3);
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.ptab .mono { color: var(--bone-4); font-size: 10px; transition: color .4s; }
.ptab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--verdigris); box-shadow: 0 0 10px rgba(95, 184, 140, .7);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.ptab:hover { color: var(--bone-2); }
.ptab[aria-selected="true"] { color: var(--bone); }
.ptab[aria-selected="true"] .mono { color: var(--verdigris); }
.ptab[aria-selected="true"]::after { transform: scaleX(1); }
.ppanel[hidden] { display: none; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(233, 227, 213, .025), transparent 40%);
  transition: border-color .6s var(--ease), background .6s var(--ease);
}
.tier:hover { border-color: var(--line-2); }
.tier--accent {
  border-color: rgba(95, 184, 140, .35);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(95, 184, 140, .09), transparent 70%),
    linear-gradient(180deg, rgba(233, 227, 213, .03), transparent 40%);
}
.tier--accent:hover { border-color: rgba(95, 184, 140, .6); }
.tier__num { color: var(--bone-4); margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.tier__num em { font-style: normal; color: var(--verdigris); }
.tier__name { margin: 18px 0 0; font: 500 clamp(36px, 3.4vw, 54px)/1 var(--f-display); }
.tier__price {
  margin: 20px 0 0;
  font: 300 clamp(30px, 2.6vw, 42px)/1 var(--f-wide);
  letter-spacing: .02em;
  color: var(--bone);
  display: flex; align-items: baseline; gap: 8px;
}
.tier__price small { font: 300 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bone-3); }
.tier__price--text { font: italic 400 clamp(28px, 2.4vw, 38px)/1 var(--f-display); margin: 0; }
.tier__term { margin: 12px 0 0; color: var(--verdigris); }
.tier__lead { margin: 18px 0 0; color: var(--bone-2); min-height: 3.2em; }
.tier__list {
  list-style: none; margin: 22px 0 0; padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 10px;
  font-size: 14.5px; color: var(--bone-3);
}
.tier__list li { position: relative; padding-left: 20px; }
.tier__list li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 8px; height: 1px; background: var(--verdigris);
}
.tier__list .tier__inherit { color: var(--bone-2); }
.tier__list .tier__inherit::before { width: 8px; height: 8px; top: .4em; background: none; border: 1px solid var(--verdigris); border-radius: 50%; }
.tier__mark { color: var(--verdigris); font-size: .8em; margin-left: 2px; }
.tier__foot { margin: 20px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--bone-4); }
.tier__cta {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0 0;
  font: 400 11px/1 var(--f-wide); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone);
}
.tier__cta span { color: var(--verdigris); font-family: var(--f-text); font-size: 15px; transition: transform .6s var(--ease); }
.tier__cta:hover span { transform: translateX(6px); }
.tier__list + .tier__cta { margin-top: auto; }
.tier__more { display: none; margin-top: 14px; padding: 6px 0; color: var(--verdigris); border-bottom: 1px dashed rgba(95, 184, 140, .5); align-self: flex-start; }
.tiers__dots { display: none; justify-content: center; gap: 10px; margin-top: 18px; }
.tiers__dots button { width: 28px; height: 3px; padding: 0; background: var(--line-2); transition: background .4s, width .4s var(--ease); }
.tiers__dots button[aria-current="true"] { background: var(--verdigris); width: 44px; }
.tier__lead + .tier__cta { padding-top: 40px; }

.tier--custom {
  margin-top: clamp(14px, 1.6vw, 24px);
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px 40px; align-items: center;
  border-style: dashed; border-color: var(--line-2);
  background: none;
}
.tier--custom .tier__name { margin-top: 12px; }
.tier--custom .tier__lead { margin: 0; min-height: 0; }
.tier__custom-side { display: grid; gap: 4px; justify-items: end; }
.tier__custom-side .tier__cta { padding-top: 14px; gap: 16px; }

.tier-common { margin-top: 32px; display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.tier-common p { margin: 0; color: var(--verdigris); }
.tier-common ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--bone-2); }
.tier-common li::before { content: '— '; color: var(--bone-4); }
.tier-note { margin: 24px 0 0; color: var(--bone-3); }

/* Контакт */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.contact__intro { grid-column: 1 / span 6; }
.contact__intro .section__index { margin-bottom: 4vh; }
.contact__title { font-size: clamp(60px, 9vw, 160px); }
.contact__intro .section__lede { margin-top: 4vh; max-width: 40ch; }
.contact__list { margin: 6vh 0 0; display: grid; gap: 0; max-width: 460px; }
.contact__list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact__list dt { color: var(--bone-4); }
.contact__list dd { margin: 0; color: var(--bone); text-transform: none; letter-spacing: .02em; font-size: 13px; }
.contact__list dd a { border-bottom: 1px solid var(--verdigris); }
.contact__list .is-empty { color: var(--bone-4); }

.form { grid-column: 8 / span 5; align-self: end; display: grid; gap: 26px; }
.form__chips { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form__chips legend { color: var(--bone-3); margin-bottom: 14px; padding: 0; }
.form__chips label { position: relative; cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form__chips span {
  display: inline-block; padding: 10px 14px;
  border: 1px solid var(--line-2);
  font-size: 13px; color: var(--bone-2);
  transition: all .4s var(--ease);
}
.form__chips input:checked + span { border-color: var(--verdigris); color: var(--bone); background: rgba(95, 184, 140, .1); }
.form__chips input:focus-visible + span { outline: 1px solid var(--verdigris); outline-offset: 3px; }
.field { display: grid; gap: 8px; }
.field .mono { color: var(--bone-3); }
.field input, .field textarea {
  width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  color: var(--bone); font: 300 18px/1.5 var(--f-text);
  padding: 8px 0 12px; resize: vertical; border-radius: 0;
  transition: border-color .4s var(--ease);
}
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--verdigris); }
.form__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--bone-4); }
.form__legal a, .form__note a { color: var(--bone-2); border-bottom: 1px solid var(--line-2); }
.form__legal a:hover, .form__note a:hover { color: var(--bone); border-color: var(--verdigris); }
.form button[disabled] { opacity: .55; pointer-events: none; }
.form-done { grid-column: 8 / span 5; align-self: end; display: grid; gap: 14px; justify-items: start; padding: 36px; border: 1px solid var(--line-2); background: radial-gradient(120% 80% at 0% 0%, rgba(95, 184, 140, .07), transparent 60%); }
.form-done[hidden] { display: none; }
.form-done__mark { width: 34px; }
.form-done .mono { margin: 6px 0 0; color: var(--verdigris); }
.form-done__title { margin: 0; font: 500 clamp(30px, 3vw, 44px)/1.05 var(--f-display); }
.form-done__text { margin: 0; color: var(--bone-2); max-width: 42ch; }
.form-done__text a { color: var(--bone); border-bottom: 1px solid var(--verdigris); }
.form__tg { color: var(--bone-2); border-bottom: 1px solid var(--verdigris); padding-bottom: 4px; }
.form__tg:hover { color: var(--bone); }
.form__note { flex-basis: 100%; margin: 0; color: var(--bone-3); max-width: 36ch; text-transform: none; letter-spacing: .02em; }

/* Подвал */
.footer {
  position: relative; z-index: 2;
  padding: 80px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__mark { width: 46px; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; color: var(--bone-3); }
.footer__nav a:hover { color: var(--bone); }
.footer__word {
  margin: 6vh 0 0;
  font-size: clamp(80px, 21vw, 400px);
  line-height: .78;
  letter-spacing: -.035em;
  color: var(--stone-2);
  text-align: center;
  background: linear-gradient(180deg, var(--bone-4) 0%, var(--stone-1) 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 36px; color: var(--bone-4); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a { color: var(--bone-3); transition: color .3s; }
.footer__legal a:hover { color: var(--bone); }
.colophon { max-width: 560px; text-align: right; }
.colophon summary { cursor: pointer; list-style: none; color: var(--bone-3); }
.colophon summary::-webkit-details-marker { display: none; }
.colophon p { text-transform: none; letter-spacing: .02em; line-height: 1.6; margin: 10px 0 0; }

/* ---------- Статичный режим (prefers-reduced-motion) ---------- */
.is-static .experience { height: auto; }
.is-static .exp { position: relative; height: auto; overflow: visible; padding-bottom: 10vh; }
.is-static .exp__canvas, .is-static .exp__vignette { height: 100vh; height: 100svh; }
.is-static .hero { position: relative; left: auto; top: auto; bottom: auto; margin: 0 auto; padding: calc(var(--header-h) + 8vh) var(--gutter) 10vh; width: 100%; max-width: 1200px; min-height: 100svh; }
.is-static .chapter, .is-static .impression {
  position: relative; inset: auto; top: auto; bottom: auto; left: auto; right: auto; transform: none;
  opacity: 1; visibility: visible;
  margin: 0 auto 18vh; padding: 0 var(--gutter); width: 100%; max-width: 1200px; text-align: left;
}
.is-static .chapter--center .chapter__meta { justify-content: flex-start; }
.is-static .chapter--center .chapter__text { margin-inline: 0; }
.is-static .impression { align-items: flex-start; text-align: left; }
.is-static .exp__painting, .is-static .exp__hud, .is-static .rail, .is-static .skip { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1260px) {
  /* ссылки шапки уходят в меню (с переключателем языка им тесно уже здесь) — нужна кнопка меню */
  .header__nav a:not(.header__cta) { display: none; }
  .header { grid-template-columns: 1fr auto auto auto; gap: 24px; }
  .header__menu { display: block; }
}
@media (max-width: 1100px) {
  .section__title { grid-column: 1 / -1; margin-top: 18px; }
  .section__index { grid-column: 1 / -1; }
  .section__lede { grid-column: 1 / span 8; margin-top: 28px; }
  .method__steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .hero__paths { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .header { grid-template-columns: 1fr auto auto; gap: 16px; }
  .header__hud, .header__nav { display: none; }
  .header__menu { display: block; }
  .rail { display: none; }
  .skip { bottom: 20px; }
  .skip__bar { width: 120px; }
  .exp__hud { display: none; }

  .exp__vignette { background: linear-gradient(to top, rgba(5,5,5,.96) 0%, rgba(5,5,5,.8) 42%, rgba(5,5,5,0) 66%); }
  .hero { left: var(--gutter); right: var(--gutter); width: auto; top: var(--header-h); bottom: 64px; justify-content: flex-end; }
  .hero__kicker { display: none; }
  .hero__title { font-size: clamp(64px, 19vw, 120px); }
  .hero__sub { margin-top: 2.4vh; }
  .hero__lede { font-size: 15px; }
  .btn__hint { display: none; }
  .hero__line--shift { padding-left: .6em; }
  .hero__lede { max-width: none; }
  .hero__paths { margin-top: 3vh; gap: 20px; }
  .hero__index { min-width: 0; max-width: none; }
  .hero__index a { font-size: 19px; padding: 8px 0; }

  .chapter--left, .chapter--right { left: var(--gutter); right: var(--gutter); width: auto; top: var(--header-h); bottom: 80px; justify-content: flex-end; }
  .chapter--center { width: calc(100% - 2 * var(--gutter)); }
  .exp__painting figcaption { display: none; }

  .services__list { grid-column: 1 / -1; }
  .services__preview { display: none; }
  .service { grid-template-columns: 40px 1fr; padding: 24px 0; }
  .service__num { padding-top: 8px; }
  .section__lede { grid-column: 1 / -1; }
  .folio__meta { grid-template-columns: 1fr; }
  .folio__meta .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
  .frame { width: 64vw; }
  .room__intro { grid-template-columns: 1fr; gap: 24px; }
  .room__mark { width: 72px; }
  .room__title { display: none; }
  .eplates { grid-template-columns: 1fr; }
  .eplate--3d, .eplate--brand, .eplate--site, .eplate--deck, .eplate--film { grid-column: 1; }
  .eplate--film { grid-template-columns: 1fr; }
  .eplate__brand { aspect-ratio: 4 / 3; }
  .eplate__film { aspect-ratio: 16 / 9; }
  .viewer__ext { display: none; }
  .quiz__title { display: none; }
  .quiz__bar { grid-template-columns: 1fr auto; }
  .quiz__result { grid-template-columns: 1fr; gap: 24px; }
  .quiz__opt { padding: 16px; }
  .viewer__title { font-size: 17px; }
  .method__steps { grid-template-columns: 1fr; }
  .ptabs {
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 48px 0 var(--gutter); margin-bottom: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent);
  }
  .ptab { margin-right: 18px; padding-right: 0; }
  /* Пакеты — свайп-карусель: сравнивать удобнее, чем листать три длинные карточки подряд */
  .tiers {
    display: flex; gap: 12px;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tiers::-webkit-scrollbar { display: none; }
  .tier { flex: 0 0 86%; scroll-snap-align: start; }
  .tier__lead { min-height: 0; }
  .tier__list li:nth-child(n + 6) { display: none; }
  .tier.is-open .tier__list li { display: block; }
  .tier__more { display: inline-flex; }
  .tiers__dots { display: flex; }
  .tier--custom { grid-template-columns: 1fr; }
  .tier__custom-side { justify-items: start; }
  .tier-common { grid-template-columns: 1fr; }
  .contact__intro, .form { grid-column: 1 / -1; }
  .form, .form-done { margin-top: 40px; grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
  .colophon { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
