/* =====================================================================
   Уралгражданпроект — имиджевый сайт (прототип)
   Визуальная основа: графит · тёплый белый · бронза
   Шрифты: Prata (антиква), Great Vibes (рукописный акцент), Montserrat (текст)
   ===================================================================== */

:root {
  --ink: #0E1216;
  --graphite: #151A20;
  --graphite-2: #1C222A;
  --graphite-3: #262D36;
  --cream: #F5EDE6;
  --cream-2: #ECE1D7;
  --paper: #FAF6F2;
  --bronze: #C99C74;
  --bronze-2: #A98160;
  --bronze-3: #E7CBAE;
  --brown: #45332F;

  --text: #171C22;
  --muted: #66656B;
  --on-dark: #F5EDE6;
  --on-dark-muted: rgba(245, 237, 230, .62);
  --line-dark: rgba(245, 237, 230, .16);
  --line-light: rgba(23, 28, 34, .14);

  --f-display: 'Prata', 'Times New Roman', serif;
  --f-script: 'Great Vibes', cursive;
  --f-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4.2vw, 72px);
  --maxw: 1440px;
  --section: clamp(88px, 11vw, 176px);
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 92px;
}

/* ---------- Base ---------- */
*, *::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; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--graphite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: 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; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--bronze); color: var(--ink); }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Themes */
.t-dark  { background: var(--graphite); color: var(--on-dark); --curtain: var(--graphite); }
.t-ink   { background: var(--ink); color: var(--on-dark); --curtain: var(--ink); }
.t-light { background: var(--cream); color: var(--text); --curtain: var(--cream); }
.t-paper { background: var(--paper); color: var(--text); --curtain: var(--paper); }
.t-brown { background: var(--brown); color: var(--on-dark); --curtain: var(--brown); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--plain::before { display: none; }

.h1, .h2, .h3, .display {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .01em; line-height: 1.04;
}
.h1 { font-size: clamp(38px, 6.2vw, 104px); }
.h2 { font-size: clamp(32px, 4.6vw, 76px); }
.h3 { font-size: clamp(21px, 1.9vw, 30px); line-height: 1.18; }
.h4 { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.3; }

.script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--bronze); line-height: 1; }

/* «Duo»-заголовок: рукописное слово поверх антиквы — как «Знаковые МЕСТА» у референса */
.duo { position: relative; display: block; }
.duo__script {
  display: block; position: relative; z-index: 2;
  font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--bronze); line-height: .9;
  font-size: clamp(46px, 6vw, 104px);
  margin: 0 0 -.34em .5em; transform: rotate(-5deg); transform-origin: left bottom;
}
.duo__caps { display: block; font-family: var(--f-display); text-transform: uppercase; line-height: 1.02; font-size: clamp(34px, 5.2vw, 88px); }
.duo__sub { display: block; margin-top: .5em; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.3; letter-spacing: .06em; opacity: .8; }
.duo--center { text-align: center; }
.duo--center .duo__script { margin-left: 0; transform-origin: center bottom; }

.caps-lead {
  font-family: var(--f-sans); font-weight: 400; text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 27px); line-height: 1.35; letter-spacing: .12em;
}
.caps-lead em { font-style: normal; color: var(--bronze); }

.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.7; font-weight: 300; }
.text-muted { color: var(--muted); }
.t-dark .text-muted, .t-ink .text-muted, .t-brown .text-muted { color: var(--on-dark-muted); }
.small-caps { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.note { font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.t-dark .note, .t-ink .note, .t-brown .note { color: var(--on-dark-muted); }
.prose p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 58px; padding: 0 34px;
  border: 1px solid var(--bronze); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--on-dark); transition: color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--bronze); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn--solid { background: var(--bronze); color: var(--ink); }
.btn--solid::before { background: var(--cream); }
.btn--on-light { color: var(--text); border-color: var(--text); }
.btn--on-light::before { background: var(--text); }
.btn--on-light:hover { color: var(--cream); }
.btn__arrow { width: 22px; height: 10px; flex: none; }

.btn-circle {
  position: relative; display: inline-grid; place-items: center; text-align: center;
  width: clamp(128px, 11vw, 168px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--bronze); color: var(--bronze);
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; line-height: 1.6;
  transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease);
}
.btn-circle:hover { background: var(--bronze); color: var(--ink); transform: scale(1.04); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid currentColor;
  transition: gap .4s var(--ease), color .3s;
}
.link-arrow:hover { gap: 22px; color: var(--bronze); }

.round-btn {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid currentColor;
  display: inline-grid; place-items: center; transition: background .4s, color .4s, border-color .4s;
}
.round-btn svg { width: 20px; height: 10px; }
.round-btn:hover { background: var(--bronze); border-color: var(--bronze); color: var(--ink); }
.round-btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-dark);
  transition: transform .6s var(--ease), background .5s, backdrop-filter .5s;
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,18,22,.55), rgba(14,18,22,0));
  transition: opacity .5s;
}
.site-header.is-scrolled { background: rgba(14, 18, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-scrolled::after { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto;
}
.menu-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 22px; border: 1px solid rgba(201,156,116,.7); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transition: background .4s, color .4s;
}
.menu-toggle:hover { background: var(--bronze); color: var(--ink); }
.menu-toggle__icon { width: 18px; height: 8px; position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { bottom: 0; right: 6px; }

.brand { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--on-dark); }
.brand__mark { width: 34px; height: 40px; }
.brand__name { font-family: var(--f-display); font-size: 11px; letter-spacing: .28em; line-height: 1; white-space: nowrap; }
.brand__since { font-size: 8.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze); line-height: 1; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-phone { font-size: 13px; letter-spacing: .12em; font-weight: 500; white-space: nowrap; transition: color .3s; }
.header-phone:hover { color: var(--bronze); }
.header-cta {
  height: 46px; padding: 0 22px; border-radius: 999px; background: var(--bronze); color: var(--ink);
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .4s;
}
.header-cta:hover { background: var(--cream); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--on-dark);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease); }
.menu__inner {
  height: 100%; overflow-y: auto;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 6vw;
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto;
  padding: calc(var(--header-h) + 3vh) 0 5vh;
}
.menu__top {
  position: absolute; inset: 0 0 auto 0; height: var(--header-h);
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
}
.menu__close { display: inline-flex; align-items: center; gap: 14px; height: 46px; padding: 0 22px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; transition: border-color .3s, color .3s; }
.menu__close:hover { border-color: var(--bronze); color: var(--bronze); }
.menu__close span[aria-hidden] { font-size: 18px; line-height: 1; letter-spacing: 0; }
.menu__nav { align-self: center; }
.menu__link {
  display: flex; align-items: baseline; gap: 22px; padding: .18em 0;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(28px, 4.1vw, 62px); line-height: 1.12;
  color: var(--on-dark); transition: color .35s, transform .6s var(--ease);
  opacity: 0; transform: translateY(40px);
}
.menu.is-open .menu__link { opacity: 1; transform: none; transition: color .35s, opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: 0s, calc(.25s + var(--i) * .06s), calc(.25s + var(--i) * .06s); }
.menu__num { font-family: var(--f-sans); font-size: 11px; letter-spacing: .2em; color: var(--bronze); transform: translateY(-1.6em); }
.menu__link:hover, .menu__link.is-active { color: var(--bronze); }
.menu__link:hover { transform: translateX(14px); }
.menu__aside { align-self: center; display: grid; gap: 34px; }
.menu__img { position: relative; aspect-ratio: 4 / 5; max-height: 52vh; overflow: hidden; border-radius: 999px 999px 0 0; }
.menu__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s, transform 1.4s var(--ease-out); }
.menu__img img.is-active { opacity: 1; transform: scale(1); }
.menu__contacts { display: grid; gap: 8px; font-size: 13px; letter-spacing: .08em; }
.menu__contacts a:hover { color: var(--bronze); }
.menu__contacts .small-caps { color: var(--on-dark-muted); margin-bottom: 6px; }

/* ---------- Reveal animations ---------- */
.rv { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }
.rv-fade { opacity: 0; transition: opacity 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.rv-fade.is-in { opacity: 1; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--wi) * .045s); }
[data-split].is-in .w > span { transform: none; }

/* Появление фото: «шторка» цвета секции уезжает вверх. Не clip-path — полностью обрезанный элемент
   Chrome считает невидимым, и IntersectionObserver для него не срабатывает. */
.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after {
  content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  background: var(--curtain, var(--graphite)); transform-origin: 50% 0;
  transition: transform 1.5s var(--ease); transition-delay: var(--d, 0s);
}
.img-reveal.is-in::after { transform: scaleY(0); }
.img-reveal > img, .img-reveal > .parallax > img { transform: scale(1.22); transition: transform 2.2s var(--ease-out); transition-delay: var(--d, 0s); }
.img-reveal.is-in > img, .img-reveal.is-in > .parallax > img { transform: scale(1); }
.img-reveal img, .cover { width: 100%; height: 100%; object-fit: cover; }
.parallax { position: absolute; inset: -9% 0; }
.parallax img { width: 100%; height: 100%; object-fit: cover; }
.img-tag {
  position: absolute; z-index: 2; left: 14px; bottom: 14px;
  padding: 6px 10px; border-radius: 999px; background: rgba(14,18,22,.55); backdrop-filter: blur(6px);
  color: rgba(245,237,230,.8); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rv, .rv-fade { opacity: 1; transform: none; }
  [data-split] .w > span { transform: none; }
  .img-reveal::after { display: none; }
  .img-reveal > img { transform: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--on-dark);
  display: grid; place-items: center; transition: clip-path 1.1s var(--ease); clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader__box { display: grid; justify-items: center; gap: 22px; }
.preloader__mark { width: 64px; height: 76px; }
.preloader__mark path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.6s var(--ease) forwards; }
.preloader__mark path:nth-child(2) { animation-delay: .15s; }
.preloader__mark path:nth-child(3) { animation-delay: .3s; }
.preloader__mark path:nth-child(4) { animation-delay: .45s; }
.preloader__year { font-family: var(--f-display); font-size: 15px; letter-spacing: .4em; color: var(--bronze); font-variant-numeric: tabular-nums; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =====================================================================
   HOME
   ===================================================================== */
.hero { position: relative; height: 100svh; min-height: 680px; color: var(--on-dark); background: var(--graphite); }
.hero__media { position: absolute; inset: 0 0 13vh 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.12); animation: heroZoom 9s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0 0 13vh 0;
  background:
    linear-gradient(180deg, rgba(14,18,22,.62) 0%, rgba(14,18,22,.08) 30%, rgba(14,18,22,.12) 58%, rgba(21,26,32,.78) 88%, var(--graphite) 100%),
    linear-gradient(270deg, rgba(14,18,22,.45) 0%, rgba(14,18,22,0) 40%);
}
.hero__kicker {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 8vh);
  display: flex; justify-content: flex-end;
}
.hero__kicker p { text-shadow: 0 1px 14px rgba(0,0,0,.6); max-width: 330px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; line-height: 1.9; color: rgba(245,237,230,.85); border-left: 1px solid var(--bronze); padding-left: 18px; }
.hero__title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  bottom: 3.4vh;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 9.3vw, 168px); line-height: .96; letter-spacing: -.005em;
}
.hero__title .row { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .row > span { display: inline-block; transform: translateY(105%); animation: rise 1.4s var(--ease-out) forwards; }
.hero__title .row:nth-child(2) > span { animation-delay: .12s; }
.hero__line2 { display: flex; align-items: flex-end; flex-wrap: wrap; }
.hero__line2 .row { display: inline-block; }
.hero__script {
  display: inline-block; position: relative; margin: 0 0 .16em .22em;
  font-family: var(--f-script); text-transform: none; color: var(--bronze-3);
  font-size: .5em; line-height: 1; transform: rotate(-6deg); transform-origin: left bottom;
  opacity: 0; animation: fadeIn 1.6s var(--ease-out) .7s forwards;
}
@keyframes rise { to { transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
.hero__scroll {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 34px;
  display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: rgba(245,237,230,.7);
}
.hero__scroll i { width: 1px; height: 46px; background: rgba(245,237,230,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--bronze); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* Intro — тёмная панель под героем */
.intro { padding-top: calc(var(--section) * .8); }
.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: start; }
.intro__deco { position: relative; aspect-ratio: 1; max-width: 360px; }
.intro__deco svg { width: 100%; height: 100%; animation: spin 60s linear infinite; }
.intro__deco-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 68px); line-height: 1; color: var(--bronze); }
.intro__deco-label small { display: block; font-family: var(--f-sans); font-size: 10px; letter-spacing: .3em; color: var(--on-dark-muted); margin-top: 12px; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.intro__text .caps-lead { margin-bottom: 40px; }
.intro__text .lead { color: var(--on-dark-muted); max-width: 58ch; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }

/* Potential */
.potential__head { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: end; margin-bottom: clamp(56px, 7vw, 110px); }
.potential__head .lead { color: var(--muted); }
.potential__media { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
.potential__big { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 16 / 10; }
.potential__small { grid-column: 8 / 13; grid-row: 1; aspect-ratio: 4 / 5; margin-bottom: -12%; z-index: 2; border: 10px solid var(--cream); }
.potential__caption { grid-column: 1 / 7; margin-top: 26px; }

.questions { margin-top: clamp(110px, 12vw, 190px); }
.questions__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.q-list { border-top: 1px solid var(--line-light); }
.q-row {
  position: relative; display: grid; grid-template-columns: 90px 1.2fr 1fr 60px; gap: 30px; align-items: center;
  padding: 38px 0; border-bottom: 1px solid var(--line-light); cursor: default;
}
.q-row__num { font-size: 11px; letter-spacing: .2em; color: var(--bronze-2); }
.q-row__title { font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 36px); line-height: 1.15; text-transform: uppercase; transition: transform .6s var(--ease), color .3s; }
.q-row__desc { color: var(--muted); max-width: 44ch; }
.q-row__arrow { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.q-row__arrow svg { width: 16px; height: 8px; }
.q-row:hover .q-row__title { transform: translateX(14px); color: var(--bronze-2); }
.q-row:hover .q-row__arrow { background: var(--text); border-color: var(--text); color: var(--cream); transform: rotate(-45deg); }
.hover-img {
  position: fixed; z-index: 40; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 5; pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .4s, transform .5s var(--ease-out);
}
.hover-img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hover-img img { width: 100%; height: 100%; object-fit: cover; }

/* Process */
.process { overflow: hidden; }
.process__bg { position: absolute; inset: 0; opacity: .14; }
.process__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.process .container { position: relative; }
.process__head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: clamp(70px, 8vw, 120px); }
.process__head .lead { color: var(--on-dark-muted); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.steps__line { position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--line-dark); }
.steps__line i { position: absolute; inset: 0; background: var(--bronze); transform-origin: left; transform: scaleX(0); transition: transform 2.4s var(--ease); }
.steps.is-in .steps__line i { transform: scaleX(1); }
.step { position: relative; padding-right: 10px; }
.step__dot {
  position: relative; z-index: 1; width: 57px; height: 57px; border-radius: 50%; border: 1px solid var(--bronze);
  background: var(--ink); display: grid; place-items: center; margin-bottom: 34px;
  font-family: var(--f-display); font-size: 17px; color: var(--bronze);
}
.step__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.25; margin-bottom: 14px; }
.step__text { font-size: 14px; color: var(--on-dark-muted); line-height: 1.65; }
.process__foot { margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }

/* Audiences */
.aud { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; margin-top: clamp(56px, 6vw, 90px); }
.aud__list { border-top: 1px solid var(--line-light); }
.aud__btn {
  width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr 20px; gap: 16px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.3;
  color: rgba(23,28,34,.55); transition: color .3s, padding .5s var(--ease);
}
.aud__btn span:first-child { font-family: var(--f-sans); font-size: 11px; letter-spacing: .2em; color: var(--bronze-2); }
.aud__btn i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; justify-self: end; transition: background .3s; }
.aud__btn:hover { color: var(--text); }
.aud__btn.is-active { color: var(--text); padding-left: 12px; }
.aud__btn.is-active i { background: var(--bronze); border-color: var(--bronze); }
.aud__stage { position: relative; min-height: 560px; }
.aud__panel { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; gap: 34px; opacity: 0; visibility: hidden; transition: opacity .7s, visibility 0s .7s; }
.aud__panel.is-active { opacity: 1; visibility: visible; transition: opacity .7s; }
.aud__img { position: relative; overflow: hidden; min-height: 300px; }
.aud__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.aud__panel.is-active .aud__img img { transform: scale(1); }
.aud__body { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.aud__body h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-2); font-weight: 500; margin-bottom: 10px; font-family: var(--f-sans); }
.aud__body p { font-size: 15px; }
.aud__body .h4 { font-size: clamp(18px, 1.5vw, 23px); }

/* Cases slider */
.cases__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(50px, 6vw, 90px); flex-wrap: wrap; }
.cases__head .lead { max-width: 520px; color: var(--on-dark-muted); }
.slider { position: relative; }
.slider__track { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 7fr 5fr; gap: 5vw; align-items: start; opacity: 0; visibility: hidden; transition: opacity .9s, visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s; }
.slide__media { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease); }
.slide.is-active .slide__media { clip-path: inset(0 0 0 0); }
.slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 2s var(--ease-out); }
.slide.is-active .slide__media img { transform: scale(1); }
.slide__body { display: flex; flex-direction: column; padding-top: 6px; }
.slide__count { font-family: var(--f-display); font-size: 15px; color: var(--bronze); letter-spacing: .1em; margin-bottom: 36px; }
.slide__count b { font-weight: 400; font-size: 40px; color: var(--on-dark); margin-right: 6px; }
.slide__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.05; }
.slide__sub { font-family: var(--f-script); color: var(--bronze); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; margin: 8px 0 26px; }
.slide__text { color: var(--on-dark-muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); margin-top: 30px; }
.fact { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line-dark); }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.fact__v { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; }
.fact__k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 6px; line-height: 1.5; }
.slide__attr { margin-top: auto; padding-top: 28px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.slider__nav { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.slider__progress { flex: 1; height: 1px; background: var(--line-dark); position: relative; margin-left: 20px; }
.slider__progress i { position: absolute; inset: 0 auto 0 0; background: var(--bronze); transition: width .9s var(--ease); }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 46px 30px 40px 0; border-bottom: 1px solid var(--line-dark); }
.stat + .stat { padding-left: 30px; border-left: 1px solid var(--line-dark); }
.stat__num { font-family: var(--f-display); font-size: clamp(44px, 5.2vw, 86px); line-height: 1; color: var(--bronze-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .4em; margin-left: .15em; color: var(--bronze); }
.stat__label { margin-top: 22px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; }
.stat__who { margin-top: 12px; font-size: 12px; color: var(--on-dark-muted); }
.numbers__head { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: end; margin-bottom: 70px; }

/* Marquee */
.marquee { overflow: hidden; padding: 38px 0; border-block: 1px solid var(--line-dark); background: var(--ink); color: var(--on-dark); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(26px, 3.2vw, 50px); white-space: nowrap; line-height: 1; }
.marquee__item:nth-child(odd) { color: transparent; -webkit-text-stroke: 1px rgba(231,203,174,.7); }
.marquee__item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bronze); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Heritage gallery */
.heritage__head { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: end; margin-bottom: clamp(50px, 6vw, 90px); }
.heritage__head .lead { color: var(--on-dark-muted); }
.gallery { position: relative; }
.gallery__viewport {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab;
  padding-left: max(var(--gutter), (100vw - var(--maxw)) / 2); scroll-padding-left: max(var(--gutter), (100vw - var(--maxw)) / 2);
  scroll-snap-type: x proximity;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__viewport.is-dragging * { pointer-events: none; }
.gallery__track { display: flex; gap: 26px; width: max-content; padding-right: var(--gutter); }
.g-card { width: clamp(260px, 26vw, 400px); scroll-snap-align: start; user-select: none; }
.g-card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite-2); }
.g-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .8s; filter: saturate(.85); -webkit-user-drag: none; }
.g-card:hover .g-card__img img { transform: scale(1.06); filter: saturate(1); }
.g-card__tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(245,237,230,.4); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; background: rgba(14,18,22,.35); backdrop-filter: blur(6px); }
.g-card__meta { padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.g-card__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.25; }
.g-card__num { font-size: 11px; letter-spacing: .16em; color: var(--bronze); white-space: nowrap; }
.g-card__type { margin-top: 6px; font-size: 12px; color: var(--on-dark-muted); letter-spacing: .06em; }
.gallery__bar { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.gallery__progress { flex: 1; height: 1px; background: var(--line-dark); position: relative; margin-right: 20px; }
.gallery__progress i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--bronze); }

/* Institute teaser */
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.teaser__media { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); }
.teaser__a { grid-column: 1 / 6; grid-row: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.teaser__b { grid-column: 4 / 7; grid-row: 1; align-self: end; aspect-ratio: 1; margin-bottom: -10%; border: 10px solid var(--cream); z-index: 2; }
.teaser__body .lead { color: var(--muted); margin: 34px 0 44px; }
.teaser__year { font-family: var(--f-display); font-size: clamp(90px, 13vw, 210px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--bronze-2); margin-bottom: 20px; }

/* FAQ / accordion */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 6vw; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.faq__aside .lead { color: var(--muted); margin: 26px 0 36px; }
.acc { border-top: 1px solid var(--line-light); }
.t-dark .acc, .t-ink .acc { border-color: var(--line-dark); }
.acc__item { border-bottom: 1px solid var(--line-light); }
.t-dark .acc__item, .t-ink .acc__item { border-color: var(--line-dark); }
.acc__btn { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr 44px; gap: 24px; align-items: center; padding: 28px 0; }
.acc__q { font-family: var(--f-display); font-size: clamp(18px, 1.55vw, 24px); line-height: 1.3; transition: color .3s; }
.acc__btn:hover .acc__q { color: var(--bronze-2); }
.t-dark .acc__btn:hover .acc__q { color: var(--bronze); }
.acc__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; opacity: .5; position: relative; transition: transform .5s var(--ease), opacity .3s, background .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.acc__item.is-open .acc__icon { opacity: 1; transform: rotate(180deg); }
.acc__item.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel-inner { padding: 0 70px 32px 0; color: var(--muted); max-width: 70ch; }
.t-dark .acc__panel-inner, .t-ink .acc__panel-inner { color: var(--on-dark-muted); }

/* CTA + form */
.cta { position: relative; overflow: hidden; color: var(--on-dark); background: var(--ink); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,18,22,.95) 0%, rgba(14,18,22,.88) 50%, rgba(14,18,22,.8) 100%); }
.cta .container { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; align-items: start; }
.cta__lead { color: var(--on-dark-muted); margin: 30px 0 40px; max-width: 46ch; }
.cta__contacts { display: grid; gap: 6px; font-size: 14px; letter-spacing: .06em; }
.cta__contacts a:hover { color: var(--bronze); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.form--light .field input, .form--light .field textarea { color: var(--text); border-color: var(--line-light); }
.field { position: relative; display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  padding: 30px 0 12px; font: inherit; font-size: 15px; color: var(--on-dark); border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus { border-color: var(--bronze); }
.field span {
  position: absolute; left: 0; top: 30px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted);
  pointer-events: none; transition: top .35s var(--ease), font-size .35s var(--ease), color .3s;
}
.form--light .field span { color: var(--muted); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: 6px; font-size: 9.5px; color: var(--bronze); }
.field.is-invalid input { border-color: #D2826B; }
.field.is-invalid span { color: #D2826B; }
.check { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--on-dark-muted); margin-top: 16px; cursor: pointer; }
.form--light .check { color: var(--muted); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; border: 1px solid var(--bronze); border-radius: 50%; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked::after { transform: scale(1); }
.check.is-invalid input { border-color: #D2826B; }
.check a { border-bottom: 1px solid currentColor; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.form__status { font-size: 13px; line-height: 1.6; color: var(--bronze-3); max-width: 44ch; }
.form__status.is-error { color: #E29C86; }

/* CTA band (inner pages) */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band .lead { color: var(--on-dark-muted); margin-top: 24px; max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(80px, 9vw, 140px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 4fr 2fr 2fr 3fr; gap: 40px; padding-bottom: 70px; }
.footer__brand .brand { align-items: flex-start; }
.footer__brand p { margin-top: 26px; color: var(--on-dark-muted); font-size: 13px; max-width: 34ch; }
.footer__col h4 { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--bronze); font-weight: 500; margin-bottom: 22px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { font-size: 14px; color: var(--on-dark-muted); transition: color .3s; }
.footer__col a:hover { color: var(--on-dark); }
.footer__contact { font-size: 14px; line-height: 1.8; }
.footer__contact a { color: var(--on-dark); font-size: 15px; }
.footer__contact .note { margin-top: 10px; }
.footer__word {
  font-family: var(--f-display); text-transform: uppercase; line-height: .8; white-space: nowrap;
  font-size: 7.3vw; letter-spacing: -.01em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(201,156,116,.35);
  margin: 0 -1vw; padding-top: 10px; user-select: none;
}
.footer__bottom { border-top: 1px solid var(--line-dark); padding: 26px 0 30px; display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; font-size: 12px; color: var(--on-dark-muted); }
.footer__bottom a:hover { color: var(--on-dark); }

/* =====================================================================
   INNER PAGES
   ===================================================================== */
.page-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroZoom 8s var(--ease-out) forwards; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,18,22,.7) 0%, rgba(14,18,22,.2) 38%, rgba(14,18,22,.55) 70%, var(--graphite) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: clamp(56px, 7vw, 110px); padding-top: calc(var(--header-h) + 60px); }
.crumbs { display: flex; gap: 12px; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245,237,230,.7); margin-bottom: clamp(44px, 7vh, 76px); }
.crumbs a:hover { color: var(--bronze); }
.crumbs span[aria-hidden] { color: var(--bronze); }
.page-hero__script { display: block; font-family: var(--f-script); color: var(--bronze-3); font-size: clamp(44px, 5.6vw, 96px); line-height: .9; margin: 0 0 -.3em .3em; transform: rotate(-5deg); transform-origin: left bottom; position: relative; z-index: 2; opacity: 0; animation: fadeIn 1.4s var(--ease-out) .6s forwards; }
.page-hero__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 6vw, 104px); line-height: 1.02; max-width: 16ch; }
.page-hero__title .row { display: block; overflow: hidden; padding-bottom: .04em; }
.page-hero__title .row > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease-out) forwards; animation-delay: calc(.1s + var(--r, 0) * .1s); }
.page-hero__foot { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 40px; }
.page-hero__lead { max-width: 58ch; font-size: clamp(15px, 1.2vw, 18px); font-weight: 300; color: rgba(245,237,230,.85); opacity: 0; animation: fadeIn 1.4s var(--ease-out) .9s forwards; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; aspect-ratio: 4 / 5; }
.split__media--wide { aspect-ratio: 5 / 4; }
.split__body .lead, .split__body p { color: var(--muted); }
.t-dark .split__body .lead, .t-dark .split__body p, .t-ink .split__body p { color: var(--on-dark-muted); }
.split__body .h2, .split__body .duo { margin-bottom: 34px; }
.split__body .btn, .split__body .link-arrow { margin-top: 40px; }

.section-head { display: grid; grid-template-columns: 7fr 5fr; gap: 6vw; align-items: end; margin-bottom: clamp(50px, 6vw, 96px); }
.section-head .lead { color: var(--muted); }
.t-dark .section-head .lead, .t-ink .section-head .lead, .t-brown .section-head .lead { color: var(--on-dark-muted); }

/* Image cards (3 scales etc.) */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card-img__media { position: relative; aspect-ratio: 3 / 4; }
.card-img__num { display: block; margin: 28px 0 14px; font-size: 11px; letter-spacing: .22em; color: var(--bronze-2); }
.t-dark .card-img__num { color: var(--bronze); }
.card-img__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(22px, 2vw, 32px); line-height: 1.1; margin-bottom: 14px; }
.card-img p { color: var(--muted); }
.t-dark .card-img p { color: var(--on-dark-muted); }
.card-img__codes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.code-chip { font-size: 10px; letter-spacing: .16em; padding: 5px 10px; border: 1px solid var(--line-light); border-radius: 999px; color: var(--muted); }
.t-dark .code-chip { border-color: var(--line-dark); color: var(--on-dark-muted); }

/* Result list */
.result-list { border-top: 1px solid var(--line-light); counter-reset: r; }
.result-list li { counter-increment: r; display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line-light); font-family: var(--f-display); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.35; }
.result-list li::before { content: "0" counter(r); font-family: var(--f-sans); font-size: 11px; letter-spacing: .2em; color: var(--bronze-2); padding-top: .5em; }
.t-dark .result-list, .t-dark .result-list li { border-color: var(--line-dark); }

/* Service rows */
.svc-group + .svc-group { margin-top: clamp(60px, 7vw, 100px); }
.svc-group__title { display: flex; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.svc-group__title .small-caps { color: var(--bronze-2); }
.svc .acc__btn { grid-template-columns: 110px 1fr 1fr 44px; padding: 30px 0; }
.svc__code { font-size: 11px; letter-spacing: .2em; color: var(--bronze-2); }
.svc__task { color: var(--muted); font-size: 14px; }
.svc__detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 6px 0 36px 134px; }
.svc__detail h5 { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--bronze-2); margin: 0 0 10px; }
.svc__detail p { color: var(--muted); font-size: 14px; }

/* Entry products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.product { position: relative; padding: 46px 40px 50px 0; border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.product + .product { padding-left: 40px; border-left: 1px solid var(--line-dark); }
.product__num { font-family: var(--f-display); font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--bronze); margin-bottom: 30px; }
.product__q { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.15; margin-bottom: 18px; }
.product p { color: var(--on-dark-muted); }
.product__services { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Triad (keep / sell / develop) */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.triad__item { padding: 50px 40px 50px 0; border-bottom: 1px solid var(--line-light); }
.triad__item + .triad__item { padding-left: 40px; border-left: 1px solid var(--line-light); }
.triad__word { font-family: var(--f-script); color: var(--bronze-2); font-size: clamp(44px, 4.4vw, 70px); line-height: 1; margin-bottom: 18px; }
.triad__item p { color: var(--muted); }

/* Goals */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.goal { position: relative; padding: 34px 28px 40px; border: 1px solid var(--line-dark); min-height: 260px; display: flex; flex-direction: column; transition: background .5s, border-color .5s; }
.goal:hover { background: rgba(201,156,116,.08); border-color: rgba(201,156,116,.5); }
.goal__icon { width: 46px; height: 46px; color: var(--bronze); margin-bottom: auto; }
.goal__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; margin-top: 40px; }

/* Portfolio flow (steps vertical) */
.flow { display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.flow__item { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line-light); }
.flow__item b { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: var(--bronze-2); line-height: 1; }
.flow__item h4 { font-family: var(--f-display); text-transform: uppercase; font-weight: 400; font-size: 19px; line-height: 1.3; margin-bottom: 6px; }
.flow__item p { color: var(--muted); font-size: 14px; }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.filter { height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--on-dark-muted); transition: all .35s; }
.filter:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.filter.is-active { background: var(--bronze); border-color: var(--bronze); color: var(--ink); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 30px; }
.p-card { display: flex; flex-direction: column; transition: opacity .5s; }
.p-card[hidden] { display: none; }
.p-card--wide { grid-column: span 2; }
.p-card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphite-2); }
.p-card--wide .p-card__img { aspect-ratio: 2.72 / 1; }
.p-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.p-card:hover .p-card__img img { transform: scale(1.05); }
.p-card__meta { padding-top: 22px; }
.p-card__cat { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.p-card__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.2; margin: 10px 0 10px; }
.p-card__text { font-size: 14px; color: var(--on-dark-muted); }
.p-card__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12px; letter-spacing: .06em; }
.p-card__facts span { display: inline-flex; gap: 8px; align-items: center; }
.p-card__facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bronze); }
.p-card__role { margin-top: 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.p-card--text { border: 1px solid var(--line-dark); padding: 34px 30px; justify-content: space-between; min-height: 100%; }
.p-card--text .p-card__meta { padding-top: 0; }
.p-card--text .p-card__big { font-family: var(--f-display); font-size: clamp(34px, 3vw, 48px); color: var(--bronze-3); line-height: 1; margin-top: 40px; }
.p-card--text .p-card__big small { font-size: .45em; color: var(--bronze); margin-left: 6px; }
.p-card--text .p-card__bigk { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 8px; }

.registry { margin-top: clamp(70px, 8vw, 120px); }
.registry__cols { columns: 3; column-gap: 40px; margin-top: 30px; }
.registry__group { break-inside: avoid; margin-bottom: 34px; }
.registry__group h4 { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); font-weight: 500; margin-bottom: 12px; }
.registry__group li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 13px; line-height: 1.5; padding: 6px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.registry__group li b { font-weight: 500; font-size: 10.5px; letter-spacing: .08em; color: rgba(201,156,116,.75); padding-top: 2px; }

/* Timeline */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 180px; top: 0; bottom: 0; width: 1px; background: var(--line-light); }
.tl-item { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 60px; padding: 34px 0; }
.tl-item::before { content: ""; position: absolute; left: 175px; top: 48px; width: 11px; height: 11px; border-radius: 50%; background: var(--cream); border: 1px solid var(--bronze-2); }
.tl-item__year { font-family: var(--f-display); font-size: clamp(30px, 2.8vw, 44px); line-height: 1; color: var(--bronze-2); padding-top: 4px; }
.tl-item h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; margin-bottom: 8px; }
.tl-item p { color: var(--muted); max-width: 64ch; }

/* Competencies */
.comp { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); }
.comp__item { padding: 34px 24px 40px 0; border-bottom: 1px solid var(--line-dark); }
.comp__item + .comp__item { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.comp__item span { font-size: 11px; letter-spacing: .2em; color: var(--bronze); }
.comp__item h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.25; margin: 40px 0 10px; }
.comp__item p { font-size: 13px; color: var(--on-dark-muted); }

/* Stages (approach) */
.stage + .stage { margin-top: clamp(90px, 10vw, 160px); }
.stage .duo__script { font-size: clamp(50px, 5.4vw, 92px); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 6vw; }
.principle { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line-dark); }
.principle:nth-child(-n+2) { border-top: 1px solid var(--line-dark); }
.principle svg { width: 34px; height: 34px; color: var(--bronze); }
.principle h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.principle p { color: var(--on-dark-muted); font-size: 14px; }

/* Contacts page */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line-light); margin-top: 40px; }
.contact-list li { padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.contact-list .small-caps { color: var(--bronze-2); display: block; margin-bottom: 8px; }
.contact-list a, .contact-list p { font-family: var(--f-display); font-size: clamp(20px, 1.8vw, 28px); line-height: 1.3; }
.contact-list a:hover { color: var(--bronze-2); }
.contact-list .note { font-family: var(--f-sans); font-size: 12px; margin-top: 6px; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.next-step { border-top: 1px solid var(--line-dark); padding-top: 26px; }
.next-step b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 40px; color: var(--bronze); line-height: 1; margin-bottom: 20px; }
.next-step h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.next-step p { color: var(--on-dark-muted); font-size: 14px; }
.form-card { background: var(--paper); padding: clamp(30px, 4vw, 60px); }

/* Credits */
.credits { width: 100%; border-collapse: collapse; font-size: 13px; }
.credits th, .credits td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line-light); vertical-align: top; }
.credits th { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-2); font-weight: 500; }
.credits a { border-bottom: 1px solid var(--line-light); }
.credits a:hover { color: var(--bronze-2); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps__line { left: 28px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps__line i { transform-origin: top; transform: scaleY(0); }
  .steps.is-in .steps__line i { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 57px 1fr; gap: 26px; padding-bottom: 36px; }
  .step__dot { margin-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .goals { grid-template-columns: 1fr 1fr; }
  .comp { grid-template-columns: 1fr 1fr; }
  .comp__item, .comp__item + .comp__item { padding: 30px 20px 34px 0; border-left: 0; }
  .comp__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-dark); }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .registry__cols { columns: 2; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .svc .acc__btn { grid-template-columns: 90px 1fr 44px; }
  .svc__task { display: none; }
  .svc__detail { padding-left: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 76px; }
  body { font-size: 14.5px; }
  .header-phone, .header-cta { display: none; }
  .header-actions .round-cta { display: inline-grid; }
  .menu-toggle { padding: 0 16px; height: 42px; }
  .menu-toggle__label { display: none; }
  .brand__name { font-size: 9.5px; letter-spacing: .22em; }
  .brand__mark { width: 28px; height: 33px; }
  .brand__since { display: none; }
  .menu__inner { grid-template-columns: 1fr; gap: 50px; align-content: start; }
  .menu__img { display: none; }
  .hero__kicker { top: calc(var(--header-h) + 4vh); }
  .hero__kicker p { max-width: 240px; font-size: 10px; }
  .hero__scroll { display: none; }
  .intro__grid, .potential__head, .process__head, .aud, .heritage__head, .teaser, .faq, .cta .container,
  .numbers__head, .section-head, .split, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .intro__deco { max-width: 220px; }
  .split--rev .split__media { order: 0; }
  .potential__big { grid-column: 1 / 11; }
  .potential__small { grid-column: 7 / 13; }
  .q-row { grid-template-columns: 50px 1fr 44px; gap: 16px; padding: 28px 0; }
  .q-row__desc { grid-column: 2 / 3; grid-row: 2; }
  .q-row__arrow { grid-row: 1; grid-column: 3; }
  .hover-img { display: none; }
  .aud__list { display: flex; overflow-x: auto; gap: 8px; border: 0; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .aud__list::-webkit-scrollbar { display: none; }
  .aud__btn { flex: none; width: auto; grid-template-columns: auto; padding: 12px 18px; border: 1px solid var(--line-light); border-radius: 999px; font-family: var(--f-sans); font-size: 10.5px; letter-spacing: .14em; }
  .aud__btn span:first-child, .aud__btn i { display: none; }
  .aud__btn.is-active { padding-left: 18px; background: var(--text); color: var(--cream); border-color: var(--text); }
  .aud__stage { min-height: 620px; }
  .aud__body { grid-template-columns: 1fr; gap: 20px; }
  .slide { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { padding-left: 0; border-left: 0; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 34px 0; border-left: 0; }
  .faq__aside { position: static; }
  .acc__panel-inner { padding-right: 0; }
  .form { grid-template-columns: 1fr; }
  .cards-3, .products, .triad, .next-steps { grid-template-columns: 1fr; }
  .product + .product, .triad__item + .triad__item { padding-left: 0; border-left: 0; }
  .product, .triad__item { padding-right: 0; }
  .goals { grid-template-columns: 1fr; }
  .goal { min-height: 0; }
  .comp { grid-template-columns: 1fr; }
  .comp__item:nth-child(even) { padding-left: 0; border-left: 0; }
  .comp__item h3 { margin-top: 20px; }
  .principles { grid-template-columns: 1fr; }
  .principle:nth-child(2) { border-top: 0; }
  .proj-grid { grid-template-columns: 1fr; gap: 44px; }
  .p-card--wide { grid-column: auto; }
  .p-card--wide .p-card__img { aspect-ratio: 4 / 3; height: auto; }
  .registry__cols { columns: 1; }
  .timeline::before { left: 6px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding-left: 36px; }
  .tl-item::before { left: 1px; top: 44px; }
  .svc__detail { grid-template-columns: 1fr; gap: 18px; }
  .svc .acc__btn { grid-template-columns: 70px 1fr 44px; gap: 14px; }
  .page-hero__foot { grid-template-columns: 1fr; }
  .page-hero__foot .btn-circle { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 44px; }

  .teaser__media { max-width: 480px; }
  .credits th:nth-child(3), .credits td:nth-child(3) { display: none; }
}

@media (min-width: 861px) { .round-cta { display: none !important; } }
.round-cta { width: 42px; height: 42px; border-radius: 50%; background: var(--bronze); color: var(--ink); display: none; place-items: center; }
.round-cta svg { width: 18px; height: 18px; }

/* ---------- Additions for inner pages ---------- */
.cta .cta-band { grid-template-columns: 1fr auto; align-items: center; }
.page-hero__title--sm { font-size: clamp(30px, 4.6vw, 80px); max-width: none; }
.page-hero--short { min-height: 72svh; }
.mini-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mini-case { display: block; border-top: 1px solid var(--line-dark); padding-top: 24px; }
.mini-case__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; }
.mini-case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.mini-case:hover .mini-case__img img { transform: scale(1.05); }
.mini-case h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; }
.mini-case p { color: var(--on-dark-muted); font-size: 14px; margin-top: 8px; }
.svc-links { border-top: 1px solid var(--line-light); }
.svc-link { display: grid; grid-template-columns: 110px 1fr 1fr 44px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-light); transition: padding .5s var(--ease); }
.svc-link:hover { padding-left: 14px; }
.svc-link__code { font-size: 11px; letter-spacing: .2em; color: var(--bronze-2); }
.svc-link__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.25; }
.svc-link__text { font-size: 14px; color: var(--muted); }
.svc-link .q-row__arrow { width: 44px; height: 44px; }
.svc-link:hover .q-row__arrow { background: var(--text); border-color: var(--text); color: var(--cream); transform: rotate(-45deg); }
.t-dark .svc-links, .t-dark .svc-link { border-color: var(--line-dark); }
.t-dark .svc-link__text { color: var(--on-dark-muted); }
.big-quote { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(26px, 3.2vw, 52px); line-height: 1.15; max-width: 22ch; }
.big-quote em { font-style: normal; color: var(--bronze); }
.stack-40 > * + * { margin-top: 40px; }
@media (max-width: 1100px) {
  .svc-link { grid-template-columns: 80px 1fr 44px; }
  .svc-link__text { display: none; }
}
@media (max-width: 860px) {
  .mini-cases { grid-template-columns: 1fr; }
  .svc-link { grid-template-columns: 60px 1fr 44px; gap: 14px; }
  .cta .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-circle { justify-self: start; }
}
[id] { scroll-margin-top: 110px; }
.acc__item[id] { scroll-margin-top: 140px; }
.projects-note { display: flex; gap: 14px; align-items: flex-start; margin: -20px 0 44px; max-width: 80ch; }
.projects-note::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--bronze); }
.registry .acc__q { font-size: clamp(20px, 1.8vw, 28px); text-transform: uppercase; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stats--3 .stat:nth-child(3) { padding-left: 30px; border-left: 1px solid var(--line-dark); }
@media (max-width: 860px) {
  .stats--3 { grid-template-columns: 1fr; }
  .stats--3 .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
.form--light .form__status { color: var(--bronze-2); }
.form--light .form__status.is-error { color: #B5543C; }
.form--light .field.is-invalid input, .form--light .field.is-invalid textarea { border-color: #B5543C; }
.form--light .field.is-invalid span { color: #B5543C; }
@media (max-width: 860px) {
  .duo__caps { font-size: clamp(25px, 8vw, 46px); }
  .duo__script { font-size: clamp(40px, 11vw, 64px); }
  .h2 { font-size: clamp(25px, 7.6vw, 44px); }
  .slide__title { font-size: clamp(26px, 8vw, 40px); }
  .q-row__title { font-size: clamp(19px, 5.4vw, 26px); }
  .page-hero__title { font-size: clamp(28px, 8.6vw, 52px); }
  .page-hero__title--sm { font-size: clamp(24px, 6.8vw, 44px); }
  .caps-lead { letter-spacing: .08em; }
}

/* ---------- Карта офиса в подвале ---------- */
.footer__map { padding-bottom: clamp(50px, 6vw, 90px); }
.map { position: relative; border: 1px solid var(--line-dark); background: var(--graphite); }
.map__canvas { position: relative; height: clamp(340px, 36vw, 500px); overflow: hidden; isolation: isolate; }
.map__frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none;
  /* Перекраска: ч/б → инверсия (тёмная карта) → тёплый оттенок */
  filter: grayscale(1) invert(1) brightness(.82) contrast(1.18);
}
.map__tint { position: absolute; inset: 0; pointer-events: none; background: var(--bronze); mix-blend-mode: color; opacity: .62; }
.map__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(14,18,22,0) 40%, rgba(14,18,22,.4) 100%); }
.map__pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; transform: translate(-50%, -50%); z-index: 2; }
.map__pin i { position: absolute; inset: 0; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 5px rgba(201,156,116,.28), 0 6px 24px rgba(0,0,0,.5); }
.map__pin span { position: absolute; inset: -22px; border-radius: 50%; border: 1px solid var(--bronze); opacity: 0; animation: pinPulse 3s var(--ease-out) infinite; }
.map__pin span + span { animation-delay: 1.5s; }
.map__pin b {
  position: absolute; left: 28px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 7px 12px; background: rgba(14,18,22,.85); border: 1px solid rgba(201,156,116,.5);
  font-weight: 500; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-3);
}
@keyframes pinPulse { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.map__card {
  position: absolute; z-index: 3; left: 26px; bottom: 26px; width: min(380px, calc(100% - 52px));
  padding: 30px 32px; background: rgba(14,18,22,.88); border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.map__card .small-caps { color: var(--bronze); }
.map__addr { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.2; margin: 12px 0 10px; }
.map__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 22px; }
@media (max-width: 860px) {
  .map__canvas { height: 320px; }
  .map__card { position: relative; left: auto; bottom: auto; width: auto; border: 0; border-top: 1px solid var(--line-dark); backdrop-filter: none; }
  .map__pin b { display: none; }
}
/* Живая карта (JS API): подложка — ч/б инверсия, поверх — бронзовый тон (.map__tint) */
.map__ymaps { position: absolute; inset: 0; }
.map__ymaps [class*="ground-pane"] { filter: grayscale(1) invert(1) brightness(.82) contrast(1.18); }
.map__ymaps [class*="copyrights-promo"] { display: none; }
.map__canvas.is-live > .map__pin { display: none; }
.map__pin--live { left: 0; top: 0; }
