@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/inter-tight-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/inter-tight-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Портфолио Фатимы Нурасуловой — дизайн-система, версия 2 (26.10.2026).
   Решения и источники — design-system.md рядом; слова Фатимы — videnie.md.
   Замеры референсов — design/analysis/*-v2-live.json. */


:root {
  /* ---------- Цвет. Нейтральные — пара KOBU (выбор Фатимы, прототип 2) ---------- */
  --paper: #FFFCF9;            /* фон */
  --ink: #242429;              /* текст, знак, нейтральные контуры */
  --muted: #596166;            /* второстепенный текст — служебный серый айдентики, 6:1 на фоне */
  --inactive: #9AA0A4;         /* неактивный язык RU/EN — «светло-серый» (решение 6) */
  --line: rgb(36 36 41 / .14); /* тонкие разделители и рамки карточек */

  --moss: #577828;
  --lime: #C9FE6E;
  --sky: #BCEFFF;

  /* Акцент по темам (пункт 4): светлая — мох, тёмная — лайм; небо — «СМОТРЕТЬ КЕЙС» в тёмной */
  --accent: var(--moss);
  --case-hover: var(--moss);
  --digits: var(--lime);       /* цифры scramble — всегда лайм, в любой теме (ответ 26.10) */

  /* Кнопка: светлая — заливка тёмным, тёмная — контур (прототип 2) */
  --btn-bg: var(--ink);
  --btn-text: var(--paper);
  --btn-border: var(--ink);

  /* Контрастная полоса призыва: обратная тема, решение Фатимы 05.11.2026. */
  --cta-bg: #1D1D23;
  --cta-text: #FFFCF9;
  --cta-muted: #9AA0A4;
  --cta-button-bg: transparent;
  --cta-button-text: #FFFCF9;
  --cta-button-border: #FFFCF9;

  /* ---------- Стекло, только плоское (пункт 5) ---------- */
  /* Шапка при прокрутке — прототип 2: фон 78% + размытие 22 px */
  --glass-bar-bg: color-mix(in srgb, var(--paper) 78%, transparent);
  --glass-bar-blur: 22px;
  /* Панель меню — прототип 2: фон 94% + размытие 30 px */
  --glass-panel-bg: color-mix(in srgb, var(--paper) 94%, transparent);
  --glass-panel-blur: 30px;
  /* Карточка вопроса, светлая: прозрачное молочное, без серой заливки */
  --glass-card-bg: rgb(255 252 249 / .55);
  --glass-card-blur: 16px;
  --glass-card-border: 1px solid rgb(36 36 41 / .10);
  --glass-card-shadow: inset 0 1px 0 rgb(255 255 255 / .9);
  /* Матовое зеркало при перевороте — Concurrence: blur 0 -> 37 px, белый 0 -> 10% */
  --mirror-blur: 37px;
  --mirror-tint: rgb(255 255 255 / .10);

  /* ---------- Шрифт ---------- */
  --font: "Inter Tight", Arial, sans-serif;
  --w-text: 400;
  --w-head: 600;               /* показать 500 / 600 / 700 — выбор Фатимы впереди */
  --text-body: 18px;           /* основной текст — 18 px (ответ 3) */
  --lh-body: 1.45;
  --h3-detail: 20px;
  --text-case-link: 16px;
  --text-ui: 16px;             /* кнопки и меню — 16–18 px, выбор на пробе */
  --text-label: 12px;          /* метки — размер не выбран; только в варианте «с метками» */
  --text-small: 16px;          /* сведения, подписи — не меньше 16 px */
  --ls-caps: -.02em;           /* капс — прототип 2 */
  --lh-caps: 1.1;
  --h1: 58px;                  /* пересчитывает interactions.js по самой длинной фразе */
  --h2: clamp(34px, 4.444vw, 120px);   /* 64 px на 1440 — заголовки SVZ */
  --h3: clamp(24px, 2.604vw, 56px);    /* 37,5 px на 1440 — название услуги, Cuberto */
  --menu-item: clamp(30px, 2.639vw, 60px); /* 38 px на 1440 — пункты меню ONLY */

  /* ---------- Сетка: центральная ось ONLY, поля прототипа 2 ---------- */
  --side: 50px;
  --axis: 50%;
  --intro-copy-width: min(600px, calc(100vw * 558 / 1440));
  /* Отступы — ступенями по шагу 4 px, между блоками ≥ 2 × «заголовок → содержимое» (решение Фатимы 27.10):
     телефон 72/40 · планшет 80/40 · 1024–1919 128/60 · 1920–2559 160/80 · от 2560 192/96 */
  --sec-gap: 128px;
  --head-gap: 60px;
  --footer-gap: var(--head-gap); /* внутри футера меньше, чем до футера — принцип близости (решение 27.10); было TinyWins ≈ 355 px */
  --gap: 16px;

  /* ---------- Геометрия ---------- */
  --radius: 0;                 /* прямые углы везде; круг — только переключатель проекта */
  --btn-h: 48px;
  /* Форма учебного предпросмотра, 05.11: прямые углы, существующие роли шрифта/цвета.
     Ширина ограничивает длину строк; на телефоне одна колонка и поля 20 px. */
  --contact-width: 800px;
  --contact-padding: 40px;
  --contact-gap: 24px;
  --contact-heading: clamp(24px, 3vw, 40px);
  --contact-scrim: color-mix(in srgb, var(--ink) 40%, transparent);
  --header-h: 76px;
  --switch: clamp(56px, 5.078vw, 96px);      /* кружок проекта: 73 px на 1440 — ONLY */
  --switch-icon: clamp(48px, 4.297vw, 82px);
  --faq-card-w: 331px;         /* SVZ: 331 x 300, постоянный размер — количество по ширине экрана */
  --faq-card-h: 300px;

  /* ---------- Движение: снято с источников (числа — в design-system.md) ---------- */
  --ease-css: ease;
  --ease-only-menu: cubic-bezier(.65, 0, .35, 1);   /* панель меню ONLY .7 с */
  --ease-in-out-css: ease-in-out;                    /* смена проекта ONLY .3 + .3 */
  --ease-flip: cubic-bezier(.4, .2, .2, 1);          /* переворот FAQ 3D Card .6 с */
  --ease-mirror: cubic-bezier(.4, 0, .2, 1);         /* Concurrence .3 с */
  --ease-power1-out: cubic-bezier(.25, .46, .45, .94);
  --ease-cubic-out: cubic-bezier(.215, .61, .355, 1);

  --t-ending: 320ms;       /* смена окончания ONLY: уход .32 + приход .32, ease */
  --t-ending-pause: 4500ms;
  --t-menu: 700ms;
  --t-burger: 300ms;
  --t-switch: 300ms;
  --t-flip: 600ms;
  --t-mirror: 300ms;
  --t-color: 300ms;        /* смена цвета ссылки «СМОТРЕТЬ КЕЙС», кольца проекта — ONLY .3 с */
  --t-scramble-link: 520ms;
  --t-scramble-btn: 950ms;
  --t-head-line: 700ms;    /* строки заголовков ONLY: .7 с, каскад .2 */
  --t-head-stagger: 200ms;
  --t-block-fade: 600ms;   /* блоки ONLY: прозрачность .6 с + сдвиг 5vw за .8 с */
  --t-block-move: 800ms;
  --block-shift: 5vw;

  color-scheme: light;
}

/* Поля — прототип 2 */
@media (min-width: 1440px) { :root { --side: clamp(50px, calc(17.6470588vw - 204.117647px), 140px); } }
@media (min-width: 1950px) { :root { --side: clamp(140px, calc(16.3934426vw - 179.67213px), 240px); } }
@media (min-width: 1920px) { :root { --sec-gap: 160px; --head-gap: 80px; } }
@media (min-width: 2560px) { :root { --sec-gap: 192px; --head-gap: 96px; } }
@media (min-width: 651px) and (max-width: 1023px) { :root { --side: 20px; --sec-gap: 80px; --head-gap: 40px; } }
@media (max-width: 650px) { :root { --side: 10px; --sec-gap: 72px; --head-gap: 40px; --faq-card-w: calc(100vw - 2 * var(--side) - 48px); } }

/* ---------- Тёмная тема ---------- */
:root[data-theme="dark"] {
  --cta-bg: #FFFCF9;
  --cta-text: #242429;
  --cta-muted: #596166;
  --cta-button-bg: #242429;
  --cta-button-text: #FFFCF9;
  --cta-button-border: #242429;
  --paper: #1D1D23;
  --ink: #FFFCF9;
  --muted: #9AA0A4;
  --inactive: #596166;
  --line: rgb(255 252 249 / .14);
  --accent: var(--lime);
  --case-hover: var(--sky);
  --btn-bg: transparent;
  --btn-text: var(--ink);
  --btn-border: var(--ink);
  --glass-card-bg: rgb(0 0 0 / .2);                       /* SVZ */
  --glass-card-blur: 6px;
  --glass-card-border: 1px solid rgb(255 255 255 / .12);
  --glass-card-shadow: inset 0 2px 5px rgb(255 255 255 / .2);
  color-scheme: dark;
}

/* Насыщенность заголовков — переключатель на странице образцов */
:root[data-weight="500"] { --w-head: 500; }
:root[data-weight="700"] { --w-head: 700; }
:root[data-ui="18"] { --text-ui: 18px; }

/* Компоненты версии 2 — только из tokens.css. Откуда каждое решение — design-system.md, раздел 9. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: var(--w-text) var(--text-body)/var(--lh-body) var(--font);
  font-feature-settings: "ss01" 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--paper); }
img, svg { display: block; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.caps { text-transform: uppercase; letter-spacing: var(--ls-caps); line-height: var(--lh-caps); font-weight: var(--w-head); }
.wrap { padding-inline: var(--side); }

/* ---------- Знак: две части, «гора» и «птица» (SVG из Figma, страница «Claude Code») ---------- */
.mark { fill: currentColor; overflow: visible; }
.mark .m-left { transform-box: view-box; transform-origin: 80px 40px; }
.mark .m-right { transform-box: view-box; transform-origin: 188.284px 40px; }

/* ---------- Ссылка капсом со scramble из цифр (SVZ + прототип 2) ---------- */
.slink { display: inline-block; text-transform: uppercase; font-size: var(--text-ui); line-height: 1.2; white-space: nowrap; }
.slink .sd { color: var(--digits); font-variant-numeric: tabular-nums; }
.case-link { display: inline-flex; align-items: center; gap: .45em; text-transform: uppercase; font-size: var(--text-case-link); font-weight: 500; transition: color var(--t-color) var(--ease-css); }
.case-link svg { width: .8em; height: .8em; stroke: currentColor; fill: none; stroke-width: 1.6; }
.case-link__arrow { transition: transform var(--t-color) var(--ease-css); }
.case-link:is(:hover, :focus-visible) .case-link__arrow { transform: rotate(45deg); }
.case-link:hover, .case-link:focus-visible { color: var(--case-hover); }

/* ---------- Кнопка (прототип 2): светлая — заливка, тёмная — контур; волна лаймовых цифр ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  min-height: var(--btn-h); min-width: 242px; padding: 0 24px;
  background: var(--btn-bg); color: var(--btn-text); border: 1px solid var(--btn-border); border-radius: var(--radius);
  font-size: var(--text-ui); text-transform: uppercase; letter-spacing: 0; white-space: nowrap;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease;
}
.btn > .btn__label { display: block; position: relative; white-space: pre; overflow: hidden; }
.btn .sc-cell { position: absolute; top: 0; display: block; text-align: center; white-space: pre; }
.btn .sc-letter, .btn .sc-number { position: absolute; inset: 0; display: block; text-align: center; white-space: pre; }
.btn .sc-number { color: var(--digits); opacity: 0; font-variant-numeric: tabular-nums; }
.btn.is-wide { width: 100%; min-width: 0; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 var(--side);
  transition: background-color .35s, backdrop-filter .35s, -webkit-backdrop-filter .35s;
}
.header.is-glass, .menu-open .header { background: var(--glass-bar-bg); backdrop-filter: blur(var(--glass-bar-blur)); -webkit-backdrop-filter: blur(var(--glass-bar-blur)); }
.identity { display: flex; align-items: center; gap: 12px; justify-self: start; min-width: 0; }
.identity .mark { width: 80px; height: auto; flex: 0 0 80px; }
.identity__text { display: flex; flex-direction: column; min-width: 0; }
.identity__name { font-size: 23px; font-weight: var(--w-head); letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.identity__role { font-size: 12px; line-height: 1.25; margin-top: 3px; white-space: nowrap; }
.nav { display: flex; gap: 26px; }
.menu-open .header .nav { visibility: hidden; }
.tools { justify-self: end; display: flex; align-items: center; gap: 24px; }
.lang { display: flex; gap: 5px; font-size: 16px; }
.lang button { color: var(--inactive); }
.lang button.is-active { color: var(--accent); }
.lang span { color: var(--inactive); }
.theme-btn { width: 28px; height: 28px; color: var(--accent); }
.theme-btn svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }
/* Иконка меню — ONLY: две линии 36 x 3, шаг 7, крест за .3 с */
.burger { position: relative; width: 48px; height: 36px; }
.burger span { position: absolute; left: 0; width: 100%; height: 3px; background: var(--ink); transition: translate var(--t-burger) var(--ease-css), opacity var(--t-burger) var(--ease-css), background-color var(--t-burger); }
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 20px; }
.menu-open .burger span:first-child { translate: 0 3.5px; }
.menu-open .burger span:last-child { translate: 0 -3.5px; opacity: 0; }

/* ---------- Панель меню — ONLY: съезжает сверху за .7 с; пункты от центральной оси ---------- */
.menu {
  position: fixed; left: 0; right: 0; top: var(--header-h); height: calc(100dvh - var(--header-h)); z-index: 30;
  background: var(--glass-panel-bg); backdrop-filter: blur(var(--glass-panel-blur)); -webkit-backdrop-filter: blur(var(--glass-panel-blur));
  border-bottom: 1px solid var(--line);
  transform: translateY(-110vh); transition: transform var(--t-menu) var(--ease-only-menu);
  display: grid; grid-template-columns: 1fr 1fr; padding: 48px var(--side) 40px; overflow-y: auto;
}
.menu-open .menu { transform: none; }
.menu__contacts { display: flex; flex-direction: column; gap: 18px; align-self: start; }
.menu__contacts small { color: var(--muted); font-size: var(--text-small); }
.menu__main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.menu__main .slink { font-size: var(--menu-item); font-weight: var(--w-head); letter-spacing: var(--ls-caps); line-height: 1.25; }
.menu__main .btn { margin-top: 40px; }

/* ---------- Первый экран и шоурил — прототип 2 ---------- */
.journey { position: relative; height: 146svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.composition { position: absolute; left: var(--side); right: var(--side); top: calc(100svh * 239 / 834); }
.h1 { margin: 0; font-size: var(--h1); font-weight: var(--w-head); line-height: var(--lh-caps); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.h1__first { display: block; white-space: nowrap; }
.h1__second { display: flex; align-items: center; gap: .3em; min-height: 1.1em; }
.h1__mark { position: relative; flex: 0 0 2.05em; width: 2.05em; height: .611em; color: var(--ink); }
.hero-measure { position: absolute; visibility: hidden; white-space: nowrap; width: max-content; }
.ending-list { display: none; }
:is(.reduce-motion) .h1__second { align-items: start; }
.reduce-motion .h1__second .ending { display: none; }
.reduce-motion .ending-list { display: block; }
@media (prefers-reduced-motion: reduce) {
  .h1__second { align-items: start; }
  .h1__second .ending { display: none; }
  .ending-list { display: block; }
}
:is(.h1__mark, .footer__mark) .mark { width: 100%; height: 100%; }
:is(.h1__mark, .footer__mark) canvas { position: absolute; inset: -10% -3%; width: 106%; height: 120%; pointer-events: none; }
:is(.h1__mark, .footer__mark).has-volume .mark { visibility: hidden; }
.dynamic { margin-left: var(--axis); }
.ending { position: relative; height: calc(var(--h1) * 1.1); overflow: hidden; font-size: var(--h1); font-weight: var(--w-head); line-height: var(--lh-caps); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.ending__inner { display: block; white-space: nowrap; transform: translateY(0); transition: transform var(--t-ending) var(--ease-css); will-change: transform; }
.ending.is-exiting .ending__inner { transform: translateY(-110%); }
.ending.is-entering .ending__inner { transform: translateY(110%); transition: none; }
.ending[data-mode="proto"] .ending__inner { transition-duration: 850ms; transition-timing-function: cubic-bezier(.22, 1, .36, 1); }
.lead { margin: clamp(16px, 1.388889vw, 24px) 0 0; max-width: var(--intro-copy-width); font-size: var(--text-body); line-height: var(--lh-body); }
.reel { position: absolute; z-index: 4; overflow: hidden; background: #1d1d23; left: var(--side); top: 48%; width: 330px; aspect-ratio: 16 / 9; }
.reel__inner { display: block; width: 100%; height: 100%; object-fit: cover; background: #1d1d23; }

/* ---------- Заголовок секции: вариант с меткой и без ---------- */
/* Между секциями — ONLY: 130 px на компьютере, 80 на планшете, 70 на телефоне; один отступ, не двойной */
.sec { padding-top: var(--sec-gap); }
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--head-gap); }
.sec-head.is-center { align-items: center; text-align: center; }
.label { display: none; font-size: var(--text-label); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
[data-labels="on"] .label { display: block; }
.h2 { margin: 0; font-size: var(--h2); font-weight: var(--w-head); line-height: var(--lh-caps); letter-spacing: var(--ls-caps); text-transform: uppercase; max-width: 22ch; }
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; }

/* ---------- Проекты: краткая закреплённая карточка слева, подробный кейс справа ---------- */
.projects__layout { display: grid; grid-template-columns: calc(var(--axis) - 40px) 1fr; column-gap: 40px; }
.projects__aside { grid-column: 1; grid-row: 1; min-width: 0; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 32px; }
.switches { display: flex; gap: 15px; }
.switch {
  position: relative; width: var(--switch); height: var(--switch); border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.switch::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px dashed transparent; transition: border-color var(--t-color) var(--ease-css); pointer-events: none; }
.switch[aria-pressed="true"]::after { border-color: var(--accent); }
.switch__icon { position: relative; width: var(--switch-icon); height: var(--switch-icon); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-weight: 600; font-size: clamp(13px, 1.1vw, 20px); letter-spacing: -.03em; }
.switch__icon::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgb(255 252 249 / .16), rgb(255 252 249 / .045) 28%, transparent 52%);
}
.switch__icon--sibentk { overflow: hidden; background: #003A39; }
.switch__icon--sibentk img { display: block; width: 80%; height: 80%; object-fit: contain; }
.switch__icon--moxel { overflow: hidden; background: #4b4f46; }
.switch__icon--moxel img { display: block; width: 84%; height: 84%; object-fit: contain; }
.switch__icon--dagestan { overflow: hidden; background: #fdfdef; }
.switch__icon--dagestan img { display: block; width: 100%; height: 100%; }
:root[data-theme="light"] .switch[aria-pressed="false"] .switch__icon--dagestan {
  outline: 1px solid #3e4631;
  outline-offset: -1px;
}
.project-info { display: flex; flex-direction: column; gap: 20px; transition: opacity var(--t-switch) var(--ease-in-out-css); }
.project-info.is-out { opacity: 0; }
.project-info h3 { margin: 0; font-size: var(--h3); font-weight: var(--w-head); line-height: 1.15; letter-spacing: -.02em; text-transform: uppercase; }
.project-info .kind { font-size: var(--text-small); color: var(--muted); text-transform: uppercase; }
.project-info p { margin: 0; max-width: 46ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: var(--text-small); }
.facts dt { color: var(--detail-text); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.materials { grid-column: 2; grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--head-gap); transition: opacity var(--t-switch) var(--ease-in-out-css); }
.materials.is-out { opacity: 0; }
.material { margin: 0; min-width: 0; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--ink) 6%, var(--paper)); display: flex; align-items: flex-end; padding: 16px; font-size: var(--text-small); color: var(--muted); }
.case-block { display: grid; gap: 24px; min-width: 0; }
.material--image { aspect-ratio: 16 / 9; padding: 0; background: #1D1D23; }
.material--image img { display: block; width: 100%; height: auto; }
#moxel, .projects__layout:has(#moxel) { scroll-margin-top: calc(var(--header-h) + 24px); }
#discover-dagestan, .projects__layout:has(#discover-dagestan) { scroll-margin-top: calc(var(--header-h) + 24px); }
.dagestan-opening-embed {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 808 / 632;
  border: 0;
  background: #3e4631;
}
.dagestan-dance { display: block; width: 100%; height: auto; }
:is(moxel-media, dagestan-publication) { display: block; position: relative; min-width: 0; }
.moxel-media__stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--sibentk-stage-ratio, 16 / 11);
  overflow: hidden;
  isolation: isolate;
  background: var(--sibentk-stage-background, var(--paper));
}
.moxel-media__stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.moxel-media__stage--full {
  aspect-ratio: 4 / 3;
  background: #111116;
}
.moxel-media__device {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: content-box;
  overflow: hidden;
  border: 10px solid #17171b;
  background: #4b4f46;
  box-shadow: 0 42px 92px #0006, 0 0 0 1px #fffcf947;
}
.moxel-media__screen { position: absolute; inset: 0; overflow: hidden; }
.moxel-media__screen > img, .moxel-media__phone-page {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  max-width: none;
}
.moxel-media__screen--tablet img { width: 768px; }
.moxel-media__phone-page { width: 390px; }
.moxel-media__team {
  position: absolute;
  top: 1682px;
  left: 0;
  width: 100%;
  height: 388px;
  overflow: hidden;
  background: #ededed;
}
.moxel-media__team-track { display: flex; gap: 10px; width: max-content; }
.moxel-media__team-track img { display: block; width: 260px; height: 260px; object-fit: cover; }
.moxel-media__team-track img:nth-child(2) { height: 388px; }
.moxel-media__team-track img:last-child { width: 350px; height: 276px; }
.moxel-media__desktop {
  width: 90%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ededed;
  box-shadow: 0 12px 36px #0003, 0 0 0 1px #17171b50;
}
.moxel-media__desktop img { display: block; width: 100%; }
:is(sibentk-motion, sibentk-ui-kit, sibentk-adaptives, moxel-media, dagestan-publication, zaibox-scene) {
  --sibentk-stage-ratio: 16 / 11;
  --sibentk-stage-background:
    radial-gradient(ellipse at 14% 13%, #BCEFFF85, transparent 54%),
    radial-gradient(ellipse at 91% 88%, #C9FE6E47, transparent 37%),
    radial-gradient(ellipse at 72% 105%, #57782840, transparent 56%),
    #FFFCF9;
}
:root[data-theme="dark"] :is(sibentk-motion, sibentk-ui-kit, sibentk-adaptives, moxel-media, dagestan-publication, zaibox-scene) {
  --sibentk-stage-background:
    radial-gradient(ellipse at 12% 13%, #BCEFFF57, transparent 47%),
    radial-gradient(ellipse at 93% 88%, #C9FE6E52, transparent 33%),
    radial-gradient(ellipse at 75% 100%, #577828ab, transparent 57%),
    linear-gradient(145deg, #203629, #11241c 63%, #263b1b);
}
:root[data-theme="dark"][data-entk-background="graphite"] :is(sibentk-motion, sibentk-ui-kit, sibentk-adaptives, moxel-media, dagestan-publication, zaibox-scene) {
  --sibentk-stage-background:
    radial-gradient(ellipse at 13% 14%, #BCEFFF30, transparent 49%),
    radial-gradient(ellipse at 92% 86%, #C9FE6E24, transparent 29%),
    radial-gradient(ellipse at 76% 105%, #57782880, transparent 58%),
    linear-gradient(155deg, #242429, #1D1D23 61%, #1c251f);
}
@media (max-width: 650px) {
  :is(sibentk-motion, sibentk-ui-kit, sibentk-adaptives, moxel-media, dagestan-publication, zaibox-scene) { --sibentk-stage-ratio: 4 / 5; }
}
.case-block h4 { margin: 0; font-size: var(--h3-detail); line-height: 1.2; font-weight: var(--w-head); letter-spacing: var(--ls-caps); text-transform: uppercase; overflow-wrap: anywhere; }
.case-copy { display: grid; gap: 20px; }
.case-block > h4 + .case-copy { margin-top: -12px; }
.case-copy p { margin: 0; max-width: 65ch; }

/* ---------- Услуги — закреплённые заголовки KRASSSA ---------- */
#services .sec-head { margin-bottom: 32px; }
.services__intro {
  max-width: min(520px, var(--intro-copy-width));
  margin: 0 0 clamp(80px, 6.25vw, 120px) var(--axis);
  font-size: var(--text-body);
  line-height: var(--lh-body);
}
@media (max-width: 1023px) {
  #services .sec-head { margin-bottom: 24px; }
  .services__intro { margin-bottom: 64px; }
}
@media (651px <= width <= 1023px) {
  .services__intro { max-width: none; }
}
@media (max-width: 650px) {
  #services .sec-head { margin-bottom: 20px; }
  .services__intro { margin-bottom: 48px; }
}
.services__list {
  --service-strip: 136px;
  --service-stack-step: calc(var(--service-strip) + 6px);
  --service-divider: color-mix(in srgb, currentColor 28%, transparent);
  --service-inset: calc(var(--side) + clamp(16px, 3vw, 56px));
  margin-inline: calc(-1 * var(--side));
  background: var(--ink);
  color: var(--paper);
}
.service {
  min-width: 0;
  background: var(--ink);
}
.services__stack .service {
  position: sticky;
  top: calc(var(--header-h) + var(--service-index) * var(--service-stack-step));
  min-height: var(--service-height, var(--service-strip));
  z-index: calc(var(--service-index) + 1);
}
.services__stack::after {
  content: "";
  display: block;
  height: 120px;
}
.service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--service-strip);
  padding: 24px var(--service-inset);
  background: var(--ink);
  color: var(--paper);
  --case-hover: var(--sky);
  border-block: 1px solid var(--service-divider);
}
.services__stack .service__head { height: var(--service-strip); }
.services__stack .service__content { background: var(--ink); }
:root[data-theme="dark"] .service__head { --case-hover: var(--moss); }
.service__title {
  min-width: 0;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: var(--w-head);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.service__actions { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 8px 24px; }
.service__actions .case-link { min-height: 44px; white-space: nowrap; }
.service__content { padding: clamp(24px, 4vw, 64px) var(--service-inset); }
.service__copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.service__copy h4 { margin: 0 0 8px; font-size: var(--h3-detail); font-weight: 600; text-transform: uppercase; }
.service__copy p { margin: 0; }
.service__accordion { display: none; }
@media (max-width: 650px), (max-height: 560px), (prefers-reduced-motion: reduce) {
  .services__stack .service { position: relative; top: auto; min-height: 0; }
  .services__stack::after { display: none; }
}
.reduce-motion .services__stack .service { position: relative; top: auto; min-height: 0; }
.reduce-motion .services__stack::after { display: none; }

@media (651px <= width <= 1023px) {
  .services__list { --service-strip: 96px; }
  .service__head { padding-block: 12px; }
  .service__title { font-size: clamp(21px, 2.9vw, 30px); white-space: nowrap; }
  .service__actions { flex-direction: column; align-items: flex-end; gap: 0; }
  .service__actions .case-link { min-height: 34px; }
  .service__copy { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .service { border-bottom: 1px solid var(--service-divider); }
  .service__head {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    min-height: 0;
    padding-block: 32px 12px;
    border: 0;
  }
  .services__stack .service__head { height: auto; }
  .service__title { font-size: clamp(20px, 5.6vw, 25px); text-align: center; }
  .service__actions { flex-direction: column; align-items: center; gap: 0; }
  .service__actions .case-link { min-height: 28px; }
  .service__copy { display: none; }
  .service__content { padding-block: 0 16px; }
  .service__accordion { display: block; border-top: 1px solid var(--service-divider); }
  .service__accordion details + details { border-top: 1px solid var(--service-divider); }
  .service__accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .service__accordion summary::-webkit-details-marker { display: none; }
  .service__accordion summary svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    transition: transform var(--t-color) var(--ease-css);
  }
  .service__accordion details[open] summary svg { transform: rotate(180deg); }
  .service__accordion p { margin: 0 0 16px; }
}

/* ---------- Этапы — SVZ: абзац собирается в столбик по прокрутке ---------- */
/* Заголовок внутри закреплённого блока: от заголовка до абзаца — тот же отступ, что в «Вопросах» */
.stages__track { position: relative; height: 500svh; margin-top: calc(var(--sec-gap) - var(--header-h) - 24px); }
.stages__sticky { position: sticky; top: 0; padding-top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: center; }
.stages__sticky .sec-head { margin-bottom: var(--head-gap); }
.stages__wrap { --stages-font-size: clamp(18px, 2.222vw, 48px); position: relative; width: min(calc(100vw * 792 / 1440), calc(100% - 2 * var(--side))); }
.stages__para { margin: 0; font-size: var(--stages-font-size); line-height: 1.1; letter-spacing: -.05em; text-transform: uppercase; text-align: justify; font-weight: 400; }
.stages__para .w { display: inline-block; will-change: transform, opacity; }
.stages__para .slot { display: inline-block; visibility: hidden; }
.stages__col { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; pointer-events: none; }
.stages__col .key { font-size: calc(var(--stages-font-size) * var(--key-size, 1)); line-height: calc(var(--stages-font-size) * 1.1); letter-spacing: -.05em; text-transform: uppercase; color: var(--accent); }

/* ---------- Вопросы — SVZ: ряд карточек, переворот FAQ 3D Card ---------- */
.faq__row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.faq-preview body > :not(main), .faq-preview main > :not(#faq),
.faq-preview [hidden], .faq-live .faq__row[hidden], .faq-live .faq-list[hidden] { display: none !important; }
.faq-preview #faq { padding-block: clamp(32px, 6vw, 88px); }
.faq-preview #faq .sec-head { margin-bottom: 24px; }
.faq-live #faq { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-live #faq .sec-head { margin-bottom: 24px; }
.faq-views { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 20px; }
.faq-views button { min-height: 44px; padding-inline: 16px; border: 1px solid var(--ink); }
.faq-views button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
:is(.faq-preview, .faq-live) .faq__arrow svg { fill: currentColor; stroke: none; }
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-list details { border-bottom: 1px solid var(--faq-divider, var(--line)); }
.faq-list details:first-child { border-top: 1px solid var(--faq-divider, var(--line)); }
.faq-list summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; min-height: 56px; padding-block: 18px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; flex: none; margin-top: calc((var(--h3-detail) * 1.15 - 10px) / 2); color: var(--ink); background: currentColor; opacity: .25; clip-path: polygon(0 15%, 100% 15%, 50% 90%); }
.faq-list details[open] summary::after { opacity: 1; transform: rotate(180deg); }
.faq-list details p { margin: 0 24px 20px 0; font-size: min(var(--text-small), calc(var(--h3-detail) - 1px)); line-height: 1.4; }
.faq-preview--glass .faq-views {
  width: min(100%, 276px);
  margin: 0 auto 24px;
  padding: 4px;
  background: linear-gradient(145deg, rgb(255 255 255 / .24), transparent 75%), var(--glass-bar-bg);
  backdrop-filter: blur(var(--glass-bar-blur));
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  box-shadow: inset 0 1px rgb(255 255 255 / .45), 0 6px 20px rgb(0 0 0 / .07);
}
.faq-preview--glass .faq-views button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 8px;
  border: 1px solid transparent;
}
.faq-preview--glass .faq-views button[aria-pressed="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 11%, var(--paper));
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
}
.faq-preview--glass .faq-views svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
:root[data-theme="dark"] .faq-list { --faq-divider: rgb(255 255 255 / .22); }
:root { --detail-text: var(--muted); }
:root[data-theme="dark"] { --detail-text: #c3c6ca; }
.case-copy p, .faq-list details p, .qcard__a, .service__copy p, .service__accordion p { color: var(--detail-text); }
:root:not([data-theme="dark"]) .services__stack .service__content { --detail-text: #c3c6ca; }
:root[data-theme="dark"] .services__stack .service__content { --detail-text: #596166; }
.faq-preview--glass .faq-list summary { padding-inline: 12px; font-weight: var(--w-head); }
.faq-preview--glass .faq-list details p { margin-left: 12px; }
[data-faq-shape] .faq-views {
  --faq-segment: 48px;
  --faq-inset: 4px;
  position: relative;
  isolation: isolate;
  width: max-content;
  gap: 0;
  padding: var(--faq-inset);
  background: linear-gradient(155deg, rgb(255 255 255 / .45), transparent 70%),
    color-mix(in srgb, var(--ink) 9%, var(--paper));
  backdrop-filter: blur(15px);
  border-radius: var(--faq-shell-radius, 0);
}
[data-faq-shape="round"], [data-faq-shape="round-square"] { --faq-shell-radius: 999px; }
[data-faq-shape="round"], [data-faq-shape="square-round"] { --faq-segment-radius: 999px; }
[data-faq-shape="round-labels"] {
  --faq-shell-radius: 999px;
  --faq-segment-radius: 999px;
}
[data-faq-shape="round-labels"] .faq-views { --faq-segment: 108px; }
[data-faq-shape] .faq-views::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--faq-inset) auto auto var(--faq-inset);
  width: var(--faq-segment);
  height: 48px;
  border-radius: var(--faq-segment-radius, 0);
  background: #151515;
  transition: transform .3s ease-out;
}
[data-faq-shape] .faq-views[data-view="list"]::before { transform: translateX(var(--faq-segment)); }
[data-faq-shape] .faq-views button {
  flex: 0 0 var(--faq-segment);
  width: var(--faq-segment);
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--faq-segment-radius, 0);
  transition: color .3s ease-out;
}
[data-faq-shape] .faq-views button[aria-pressed="true"] { background: transparent; color: white; }
.faq-views__glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  visibility: hidden;
  z-index: -2;
}
[data-faq-shape] .faq-views[data-glass="optical"] {
  background: transparent;
  backdrop-filter: none;
}
.faq-views[data-glass="optical"] .faq-views__glass { visibility: visible; }
[data-faq-shape] .faq-views svg { width: 20px; height: 20px; }
[data-faq-shape]:not([data-faq-shape="round-labels"]) .faq-views button span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
/* Оставляем углы активного квадрата внутри круглого стекла. */
[data-faq-shape="round-square"] .faq-views::before {
  inset: calc(var(--faq-inset) + 6px) auto auto calc(var(--faq-inset) + 6px);
  width: calc(var(--faq-segment) - 12px);
  height: calc(var(--faq-segment) - 12px);
}
@media (max-width: 1023px) {
  .faq-views { justify-content: center; }
  .faq-views button { flex: 1; }
}
.faq__arrow { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.faq__arrow svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.faq__arrow:disabled { opacity: .25; cursor: default; }
.faq__viewport { overflow: hidden; touch-action: pan-y; }
.faq__track { display: flex; gap: var(--gap); transition: transform .5s var(--ease-cubic-out); }
.qcard { flex: 0 0 var(--faq-card-w); height: var(--faq-card-h); perspective: 1000px; cursor: pointer; }
.qcard__tilt { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .2s ease-out; }
.qcard__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform var(--t-flip) var(--ease-flip); }
.qcard.is-flipped .qcard__inner { transform: rotateY(180deg); }
.qcard__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center;
  padding: clamp(28px, 3.9vw, 56px) clamp(20px, 2.22vw, 32px); overflow: hidden;
  background: var(--glass-card-bg); backdrop-filter: blur(var(--glass-card-blur)); -webkit-backdrop-filter: blur(var(--glass-card-blur));
  border: var(--glass-card-border); box-shadow: var(--glass-card-shadow);
}
.qcard__back { transform: rotateY(180deg); }
.qcard__q { margin: 0; font-size: var(--h3-detail); font-weight: var(--w-head); line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase; }
.qcard__a { margin: 0; font-size: var(--text-small); line-height: 1.4; }
.qcard__draft { font-size: 12px; color: var(--muted); }
.qcard__mirror { position: absolute; inset: 0; pointer-events: none; backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); background: transparent; transition: backdrop-filter var(--t-mirror) var(--ease-mirror), background-color var(--t-mirror) var(--ease-mirror); }
.qcard.is-turning .qcard__mirror { backdrop-filter: blur(var(--mirror-blur)); -webkit-backdrop-filter: blur(var(--mirror-blur)); background: var(--mirror-tint); }

/* ---------- Призыв — SVZ / Cuberto: всё по центру ---------- */
.cta-section { margin-top: var(--sec-gap); padding-block: var(--head-gap); background: var(--cta-bg); color: var(--cta-text); }
.cta-section .label { color: var(--cta-muted); }
.cta-section .btn { --btn-bg: var(--cta-button-bg); --btn-text: var(--cta-button-text); --btn-border: var(--cta-button-border); }
.cta-section :focus-visible { outline-color: var(--cta-text); }
.cta-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.cta-block p { margin: calc(var(--head-gap) - 14px) 0 0; max-width: 46ch; }   /* заголовок → текст — как везде */
.cta-block .btn[hidden] { display: none; }
.cta-block .btn { margin-top: 26px; }
@media (max-width: 650px) {
  .cta-block .btn { width: 100%; min-width: 0; }
}

/* ---------- Форма: поп-ап по запросу Фатимы 05.11, геометрия действующей системы ---------- */
.contact-open { overflow: hidden; }
.contact-dialog {
  width: min(var(--contact-width), calc(100% - var(--gap) * 2));
  max-height: calc(100dvh - var(--gap) * 2); margin: auto; overflow-y: auto;
  padding: var(--contact-padding); border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: inherit;
}
.contact-dialog::backdrop { background: var(--contact-scrim); }
.contact-dialog [hidden] { display: none !important; }
.contact-dialog__bar { display: flex; justify-content: flex-end; margin-bottom: var(--contact-gap); }
.contact-dialog h2 { margin: 0; font-size: var(--contact-heading); font-weight: var(--w-head); line-height: var(--lh-caps); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.contact-dialog p { margin: var(--gap) 0 var(--contact-gap); font-size: var(--text-small); }
.contact-dialog .contact-preview-note { color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--gap); }
.contact-form { display: grid; gap: var(--contact-gap); }
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: var(--gap); }
.contact-form__methods { display: flex; flex-wrap: wrap; gap: var(--gap); }
.contact-form__method { display: flex; align-items: center; gap: calc(var(--gap) / 2); cursor: pointer; }
.contact-form__method input, .contact-form__consent input { appearance: none; width: var(--text-body); height: var(--text-body); margin: 0; flex: none; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.contact-form__method input:checked { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.contact-form__field { display: grid; gap: calc(var(--gap) / 2); min-width: 0; font-size: var(--text-small); }
.contact-form legend, .contact-form__field > span, .contact-form__methods { font-size: var(--text-ui); }
.contact-form :is(input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), select, textarea) {
  width: 100%; min-width: 0; min-height: var(--btn-h); padding: calc(var(--gap) / 2) var(--gap);
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
}
.contact-form textarea { resize: vertical; min-height: calc(var(--btn-h) * 2); }
.contact-form__files { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap); min-width: 0; }
.contact-form__filename { font-size: var(--text-small); overflow-wrap: anywhere; }
.contact-form__consent { display: flex; align-items: flex-start; gap: var(--gap); font-size: var(--text-small); }
.contact-form__consent input { margin-top: calc(var(--gap) / 4); }
.contact-form .btn { width: 100%; min-width: 0; }
.contact-form .btn:disabled { cursor: not-allowed; opacity: .55; }
.contact-result { display: grid; gap: var(--contact-gap); }
.contact-result p { margin: 0; }
.contact-result .btn { min-width: 0; white-space: normal; }
@media (max-width: 650px) {
  .contact-dialog { --contact-padding: 20px; }
  .contact-form__files { align-items: stretch; flex-direction: column; }
  .contact-form__files .btn { min-width: 0; }
}

/* ---------- Отзывы — проверочный блок: только токены (линия, отступы, шрифты) и готовые компоненты ---------- */
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.review { display: flex; flex-direction: column; gap: 24px; padding: clamp(28px, 3.724vw, 72px); border: 1px solid var(--line); }
.review__text { margin: 0; font-size: var(--h3); font-weight: var(--w-head); line-height: 1.15; letter-spacing: -.02em; }
@media (max-width: 650px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Футер — расположение по фрейму Figma 401-691 и TinyWins ---------- */
.footer { display: flex; flex-direction: column; padding: var(--sec-gap) var(--side) 24px; scroll-margin-top: var(--header-h); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer__mark { position: relative; flex: none; width: clamp(160px, 14vw, 260px); aspect-ratio: 268.284 / 80; }
.footer__mark .mark { display: block; }
.footer__cols { display: flex; gap: clamp(48px, 7.5vw, 166px); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__bottom { margin-top: var(--footer-gap); }
.footer__role { font-size: clamp(18px, 2.083vw, 44px); font-weight: var(--w-head); text-transform: uppercase; letter-spacing: var(--ls-caps); line-height: 1.1; }
.footer__name { display: block; width: max-content; font-weight: var(--w-head); text-transform: uppercase; letter-spacing: -.04em; line-height: .9; white-space: nowrap; margin: 4px 0 0; }
.footer__legal { display: flex; justify-content: flex-end; align-items: center; gap: 16px 32px; margin-top: 24px; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.footer__back { color: var(--ink); }
.footer__back:is(:hover, :focus-visible, :active) { color: var(--case-hover); }
.footer__back:is(:hover, :focus-visible, :active) .case-link__arrow { transform: rotate(-45deg); }

/* ---------- Вступление — TinyWins + раскадровка Фатимы ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--cta-bg); color: var(--cta-text); overflow: hidden; }
.intro__plane { position: absolute; inset: 0; background: var(--paper); color: var(--ink); visibility: hidden; }
.intro__group { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.25vw, 18px); }
.intro__mark { width: clamp(180px, 20.83vw, 420px); height: auto; overflow: visible; }
.intro__mark .p-b { opacity: 0; transform-box: view-box; transform-origin: 70.18% 50%; }
.intro__text { display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; }
.intro__name { font-size: clamp(28px, 3.2vw, 64px); font-weight: var(--w-head); letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.intro__role { font-size: clamp(16px, 1.67vw, 34px); line-height: 1.25; margin-top: 4px; white-space: nowrap; }
.intro.is-done { display: none; }
.header.is-hidden-for-intro .identity { opacity: 0; }
.header.is-hidden-for-intro .nav > *, .header.is-hidden-for-intro .tools > * { opacity: 0; }

/* ---------- Появление по прокрутке — ONLY ---------- */
.reveal { opacity: 0; transform: translateY(var(--block-shift)); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity var(--t-block-fade) var(--ease-power1-out), transform var(--t-block-move) var(--ease-cubic-out); }

/* ---------- Планшет ---------- */
@media (max-width: 1023px) {
  .lead { max-width: none; }
  .faq__viewport { flex: 1 1 auto; min-width: 0; margin-right: calc(-1 * var(--side)); }   /* виден край следующей карточки */
  .footer__legal { justify-content: space-between; gap: 12px; margin-top: 8px; }
  .footer__back { order: 1; white-space: nowrap; }
  .projects__layout { grid-template-columns: 1fr; row-gap: 40px; }
  .projects__aside { grid-column: 1; grid-row: 1; position: relative; top: 0; }
  .materials { grid-column: 1; grid-row: 2; }
  .faq__arrow { display: none; }
}
@media (max-width: 1250px) {
  .nav { gap: 15px; } .tools { gap: 14px; } .identity__name { font-size: 20px; } .identity .mark { width: 58px; flex-basis: 58px; }
}
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; } .header .nav { display: none; }
}
/* Меню на планшете — ONLY 768: один столбец, пункты 32 px с шагом 60, кнопка под ними, контакты внизу; язык — в шапке */
@media (max-width: 1023px) {
  .menu { display: flex; flex-direction: column; padding: 24px var(--side) 32px; }
  .menu__main { order: -1; gap: 20px; padding-left: 0; }
  .menu__main .slink { font-size: 32px; line-height: 40px; margin-left: calc(16.15vw - var(--side)); }
  .menu__main .btn { margin-top: 80px; min-width: 275px; }
  .menu__contacts { margin-top: auto; padding-top: 48px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 650px) {
  :root { --header-h: 64px; }
  .identity .mark { width: 52px; flex-basis: 52px; }
  .identity__text { display: none; }
  /* Меню — ONLY 375: пункты 20 px с шагом 39 от оси + 15 px, кнопка во всю ширину на 40 px ниже, контакты ниже */
  .menu__main { gap: 15px; padding-left: 0; align-items: flex-start; }
  .menu__main .slink { font-size: 20px; line-height: 24px; margin-left: calc(50vw + 15px - var(--side)); }
  .menu__main .btn { margin-top: 25px; width: 100%; min-width: 0; }   /* 15 px промежутка + 25 = 40, как у ONLY */
  .menu__contacts { margin-top: 0; padding-top: 116px; }
  .tools { gap: 16px; } .lang { font-size: 14px; }
  /* Первый экран — ONLY 375: заголовок на 33 px ниже шапки; шоурил — следующим блоком через 70 px, 16 : 9 */
  .journey { height: auto; }
  .stage { position: relative; height: auto; overflow: visible; }
  .hero { position: relative; inset: auto; padding: calc(var(--header-h) + 33px) 0 0; }
  .composition { position: relative; left: auto; right: auto; top: auto; width: calc(100% - 2 * var(--side)); margin: 0 var(--side); }
  .dynamic { margin-left: 0; }
  .lead { max-width: none; font-size: clamp(13px, 3.7vw, 16px); line-height: 1.4; margin-top: 20px; }
  .services__intro { max-width: 36ch; margin-inline: auto; text-align: center; }
  .reel { position: relative; left: auto !important; top: auto !important; width: calc(100% - 2 * var(--side)); height: auto; aspect-ratio: 16 / 9; margin: 24px var(--side) 0; }
  .stages__wrap { width: calc(100% - 2 * var(--side)); }
  .footer__mark { display: none; }
  .footer__cols { width: 100%; justify-content: space-between; gap: 12px; }
  .footer__col .slink { font-size: 14px; }
  .footer__role { font-size: 12px; }
  .footer__name { font-size: 30px; }
  .footer__legal { margin-top: 4px; }
  .footer__back { min-height: 32px; font-size: 14px; }
}

/* ---------- Уменьшение движения: анимаций нет, состояния сразу ---------- */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { transition: none !important; animation: none !important; }
.reduce-motion .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (min-width: 651px) {
  .static-reel .journey { height: auto; }
  .static-reel .stage { position: relative; height: auto; overflow: visible; }
  .static-reel .hero { position: relative; height: 85svh; min-height: 530px; }
  .static-reel .reel { position: relative; inset: auto; width: calc(100% - 2 * var(--side)); margin: 0 auto; }
}

/* ---------- Кусок на доске канваса (?part=…): длинные сцены — неподвижным кадром фиксированной высоты ---------- */
.is-part .header { position: relative; }
.is-part .journey { height: auto; }
.is-part .stage { position: relative; height: 860px; }
.is-part .composition { top: 246px; }
.is-part .stages__track { height: auto; margin-top: 0; }
.is-part .stages__sticky { position: relative; padding: 40px 0; }
.is-part .intro { position: relative; inset: auto; height: 640px; }
.is-part .intro__group { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); }
.is-part .intro__text { opacity: 1 !important; }
.is-part .intro__mark .p-b { opacity: 1; }
.is-part .menu { position: relative; top: 0; height: auto; transform: none; }
.is-part .reveal { opacity: 1; transform: none; }

/* Узкая ширина 320 px: знак, имя и управление без наложений. */
@media (max-width: 360px) {
  .footer__name { font-size: 28px; }
  .header { gap: 6px; }
  .identity { gap: 6px; }
  .identity__text { max-width: 152px; }
  .identity__role { max-width: 152px; overflow: hidden; text-overflow: ellipsis; }
  .tools { gap: 6px; }
  .lang { font-size: 11px; gap: 2px; }
  .theme-btn { width: 20px; height: 24px; }
  .burger { width: 36px; }
}

/* ЭНТК: два абзаца справа от оси; с планшета — последовательно. */
.case-copy--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.case-copy--columns p { min-width: 0; max-width: none; text-wrap: pretty; }
@media (max-width: 1023px) {
  .case-copy--columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- ZaйБокс — материалы трёх эпизодов ---------- */
#zaibox, .projects__layout:has(#zaibox) { scroll-margin-top: calc(var(--header-h) + 24px); }
.switch__icon--zaibox { overflow: hidden; background: #071719; }
.switch__icon--zaibox img { display: block; width: 100%; height: 100%; }
zaibox-scene { display: block; position: relative; min-width: 0; }
.zaibox-opening { margin: 0; }
.zaibox-opening figcaption { padding-bottom: 8px; font-size: 16px; }
.zaibox-imac {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 12.3;
  background: var(--sibentk-stage-background);
}
.zaibox-imac__setup {
  position: absolute;
  left: 50%;
  top: -41%;
  width: 168%;
  aspect-ratio: 3 / 2;
  translate: -50% 0;
}
.zaibox-imac__setup > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
}
.zaibox-imac__table { clip-path: inset(76.38% 0 0); }
.zaibox-imac__monitor { clip-path: inset(31.45% 28.8% 23.55% 28.04% round 1.08% / 1.62%); }
.zaibox-imac__setup::after {
  content: "";
  position: absolute;
  inset: 76.38% 0 auto;
  height: 3%;
  background: linear-gradient(rgb(0 0 0 / var(--zaibox-table-shadow, .05)), transparent);
  pointer-events: none;
}
:root[data-theme="dark"] .zaibox-imac__setup { --zaibox-table-shadow: .1; }
.zaibox-imac video { position: absolute; left: 29.8%; top: 34.05%; width: 39.8%; height: 33.55%; object-fit: cover; }
.zaibox-compare { margin: 0; }
.zaibox-compare__labels { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 8px; font-size: 16px; }
.zaibox-compare__stage {
  --split: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1024 / 480;
  background: #282828;
}
.zaibox-compare__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zaibox-compare__before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.zaibox-compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  translate: -50% 0;
  background: #fff;
  box-shadow: 0 0 0 1px #0008;
}
.zaibox-compare__divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #fff;
  color: #17171b;
  border: 1px solid #17171b;
  border-radius: 50%;
  font-size: 22px;
}
.zaibox-compare__stage input {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.zaibox-compare__stage:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }
.zaibox-adaptive {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--sibentk-stage-background);
}
.zaibox-adaptive__device {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  box-sizing: content-box;
  border: var(--edge, 4px) solid #17171b;
  border-radius: var(--curve, 6px);
  background: #17171b;
  box-shadow: 0 16px 40px #0005;
}
.zaibox-adaptive__device::before,
.zaibox-adaptive__device::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 0;
  opacity: var(--monitor, 1);
  background: linear-gradient(#343438, #69696d);
}
.zaibox-adaptive__device::before {
  width: 22%;
  height: 9%;
  clip-path: polygon(24% 0, 76% 0, 93% 100%, 7% 100%);
}
.zaibox-adaptive__device::after {
  top: 109%;
  width: 30%;
  height: 2.3%;
  border-radius: 4px;
}
.zaibox-adaptive__screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: max(1px, calc(var(--curve, 6px) - var(--edge, 4px)));
}
.zaibox-adaptive__screen > img { position: absolute; top: 0; left: 0; width: 100%; height: auto; opacity: 0; }
.zaibox-adaptive__screen > img:first-child { opacity: 1; }
.zaibox-adaptive__notch {
  position: absolute;
  top: 3px;
  left: 50%;
  translate: -50% 0;
  width: 25%;
  height: 3%;
  border-radius: 999px;
  background: #17171b;
  opacity: var(--phone, 0);
}
@media (max-width: 650px) {
  :root { --text-body: 16px; }
  .zaibox-adaptive { aspect-ratio: 1 / 1; }
  .compact-project-visuals sibentk-adaptives { --sibentk-stage-ratio: 8 / 9; }
  .compact-project-visuals moxel-media[data-episode="1"] { --moxel-phone-scale: .92; }
  .compact-project-visuals zaibox-scene[data-episode="2"] .zaibox-adaptive { aspect-ratio: 10 / 9; }
}

/* AVA Digital: шапка возвращается при смене направления прокрутки. */
.header {
  transition: transform .3s ease, background-color .35s, backdrop-filter .35s;
}
.header.is-away { transform: translateY(-100%); }
.header.is-away:has(:focus-visible), .menu-open .header.is-away { transform: none; }
:root {
  --return-glass: linear-gradient(110deg, #fffcf99c, #fffcf9d9 55%, #e7e4e09e);
  --open-menu-glass: linear-gradient(122deg, #fffcf9e8, #eeeae5b3 45%, #fffcf9e0 74%, #e6e3e0c9);
  --menu-divider: #24242930;
  --faq-glass: linear-gradient(145deg, #fffdfaee, #e7e4e0d9);
  --faq-edge: rgb(36 36 41 / 17%);
}
:root[data-theme="dark"] {
  --return-glass: linear-gradient(110deg, #3b3b45b3, #1d1d23d9 55%, #2e2e36ad);
  --open-menu-glass: linear-gradient(122deg, #242429ed, #3d3d48b8 45%, #212128e6 74%, #31313bd4);
  --menu-divider: #fffcf943;
  --faq-glass: linear-gradient(145deg, #393941ed, #242429dd);
  --faq-edge: rgb(255 252 249 / 22%);
}
.header.is-glass, .menu-open .header {
  background: var(--return-glass);
  backdrop-filter: blur(24px) saturate(1.2);
}
.menu-open .header { border-bottom: 1px solid var(--menu-divider); }
.menu {
  background: var(--open-menu-glass);
  backdrop-filter: blur(32px) saturate(1.2);
  border-bottom: 0;
  grid-template-areas: "contacts sections" "legal sections";
  grid-template-rows: auto minmax(auto, 1fr);
  row-gap: 28px;
}
.menu__main { grid-area: sections; }
.menu .menu__contacts {
  grid-area: contacts;
  align-self: start;
  justify-self: start;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 0;
  text-align: left;
  font-size: 18px;
  text-transform: uppercase;
  line-height: 1.3;
}
.menu__legal { grid-area: legal; align-self: end; font-size: 12px; color: var(--muted); }
.menu__contact { overflow-wrap: anywhere; }
.menu__contact:is(:hover, :focus-visible) { color: var(--case-hover); }
@media (max-width: 1023px) {
  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "sections sections" "legal contacts";
    grid-template-rows: auto minmax(auto, 1fr);
    row-gap: clamp(28px, 6vh, 64px);
  }
  .menu__main { align-items: center; text-align: center; }
  .menu .menu__contacts {
    align-self: end; justify-self: end; align-items: flex-end;
    gap: 5px; max-width: 100%; text-align: right; font-size: 13px;
  }
  .menu__main .slink { margin-inline: 0; }
  .menu__main .btn { margin-top: 16px; width: 100%; min-width: 0; }
}
.qcard__face {
  background: var(--faq-glass);
  border: 1px solid var(--faq-edge);
  box-shadow: inset 0 1px rgb(255 255 255 / 22%);
  backdrop-filter: blur(14px);
}
.qcard__back { overflow: auto; }

.faq-optical .qcard__face {
  border: 0;
  box-shadow: inset 0 1px 2px rgb(255 255 255 / .55), inset 0 -1px 4px rgb(255 255 255 / .18);
}
.faq-optical .faq-views { --faq-inset: 1px; }
.faq-optical .faq-views button, .faq-optical .faq-views::before { height: 44px; }


@media (prefers-reduced-motion: reduce) {
  .header { transition: none; }
}

/* Управление шоурилом поверх кадра. */
.reel__toggle {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: clamp(44px, 14cqw, 88px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff82;
  border-radius: 50%;
  background: radial-gradient(ellipse at 25% 7%, #fffe, transparent 38%),
    radial-gradient(ellipse at 85% 95%, #ffffff70, transparent 45%), #ffffff19;
  box-shadow: inset 2px 2px 6px #fff9, inset -2px -3px 8px #17171b65, 0 5px 22px #0004;
  color: white;
  backdrop-filter: blur(5px) saturate(150%) contrast(1.15);
  cursor: pointer;
}
.reel { container-type: inline-size; }
.reel__progress {
  appearance: none;
  position: absolute;
  inset: auto 8% 4% 8%;
  width: 84%;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.reel__progress:disabled { opacity: .65; cursor: default; }
.reel__progress:focus-visible { outline: 2px solid white; border-radius: 10px; }
.reel__progress::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff9 var(--progress, 0%), #ffffff26 var(--progress, 0%));
  box-shadow: inset 0 1px 1px #fff9, 0 1px 5px #0007;
}
.reel__progress::-webkit-slider-thumb {
  appearance: none;
  margin-top: -4px;
  width: 15px;
  height: 15px;
  border: 1px solid #fffd;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffd, #ffffff40);
  box-shadow: 0 1px 5px #0008;
}
.reel__progress::-moz-range-track {
  height: 7px;
  border-radius: 8px;
  background: linear-gradient(90deg, #fff9 var(--progress, 0%), #ffffff26 var(--progress, 0%));
  box-shadow: inset 0 1px 1px #fff9, 0 1px 5px #0007;
}
.reel__progress::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 1px solid #fffd;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffd, #ffffff40);
  box-shadow: 0 1px 5px #0008;
}
.reel__toggle:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.reel__toggle-icon {
  width: 12px;
  height: 14px;
  background: currentColor;
  filter: drop-shadow(0 1px 2px #000a);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.reel__toggle.is-playing .reel__toggle-icon {
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}
.reel { --reel-track-height: 26px; --reel-track-bottom: 8%; --reel-progress-color: #FFFCF9; }
.reel__glass { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.reel--optical .reel__glass { visibility: visible; }
.reel .reel__toggle {
  inset: auto auto calc(var(--reel-track-bottom) + var(--reel-track-height) + 16px) 50%;
  transform: translateX(-50%);
  width: clamp(44px, 14cqw, 104px);
  padding: 0;
}
.reel--optical .reel__toggle {
  border-color: transparent;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.reel .reel__progress {
  box-sizing: border-box;
  inset: auto 6% var(--reel-track-bottom);
  width: 88%;
  height: var(--reel-track-height);
  padding: 0 12px;
  border-radius: 7px;
}
.reel .reel__progress::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--reel-progress-color) var(--progress, 0%), #fffcf952 var(--progress, 0%));
  box-shadow: 0 0 3px #0004;
}
.reel .reel__progress::-moz-range-track {
  height: 4px;
  background: linear-gradient(90deg, var(--reel-progress-color) var(--progress, 0%), #fffcf952 var(--progress, 0%));
  box-shadow: 0 0 3px #0004;
}
.reel .reel__progress::-webkit-slider-thumb { width: 0; height: 0; margin: 0; border: 0; }
.reel .reel__progress::-moz-range-thumb { width: 0; height: 0; border: 0; }
@media (max-width: 1023px) {
  .reel { --reel-track-lens-inset: 6px; }
  .reel .reel__toggle {
    width: 38px;
    bottom: calc(var(--reel-track-bottom) + var(--reel-track-height) + 10px);
  }
  .reel .reel__progress::-webkit-slider-runnable-track { height: 2px; }
  .reel .reel__progress::-moz-range-track { height: 2px; }
}

.headline-design-preview .h1__prefix { white-space: nowrap; }
.headline-design-preview { --hero-weight: 800; }
.headline-design-preview.headline-bold { --hero-weight: 700; }
.headline-design-preview .h1,
.headline-design-preview .h1 .ending { font-weight: var(--hero-weight); }
#projects.projects-medium .h2 { font-weight: 500; }
.headline-design-preview .h1__mobile-sites { display: none; }
@media (max-width: 650px) {
  .headline-design-preview .h1__first > :first-child { display: block; }
  .headline-design-preview .h1__mobile-sites { display: inline; }
  .headline-design-preview .h1__desktop-sites { display: none; }
}
.hero .hero-cta { margin-top: 24px; pointer-events: auto; }
.stage > .hero-cta-mobile { display: none; }
@media (min-width: 651px) and (max-width: 1023px) {
  .hero .hero-cta { width: 100%; min-width: 0; }
}
@media (max-width: 650px) {
  .hero .hero-cta { display: none; }
  .stage > .hero-cta-mobile {
    display: flex;
    width: calc(100% - 2 * var(--side));
    min-width: 0;
    margin: 16px var(--side) 0;
  }
  .static-reel .hero { height: auto; min-height: 0; }
  .headline-design-preview .hero .lead { font-size: 16px; }
  #services { --h2: clamp(30px, 8.2vw, 40px); }
  .headline-design-preview #projects { --h2: 26px; --h3: 18px; }
  #projects .h2 { margin-inline: auto; text-align: center; text-wrap: balance; }
  #projects .switches { justify-content: center; gap: 16px; }
  #projects .projects__aside { gap: 24px; }
  #projects .projects__layout { row-gap: 24px; }
  #projects .project-info { gap: 0; }
  .project-info :is(h3, .kind, p) { text-align: center; }
  .project-info h3 { margin-top: 8px; }
  .project-info p { margin: 12px auto 0; }
  .project-info .facts { margin-top: 24px; text-align: left; }
  .project-info .kind { font-size: 14px; }
  #projects .project-info > .case-link { align-self: center; margin-top: 8px; min-height: 44px; }
}
@media (min-width: 651px) {
  .headline-design-preview .h1__second {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) minmax(0, calc(100% - var(--axis)));
    column-gap: 0;
  }
  .headline-design-preview .h1__mark { justify-self: center; }
}
@media (min-width: 651px) and (max-width: 1023px) {
  html:not(.is-part) .journey + #projects { padding-top: 40px; }
  .headline-design-preview #projects,
  #services {
    --h2: clamp(34px, 4.1vw, 44px);
    --h3: clamp(20px, 2.8vw, 28px);
  }
}
.header .identity { transition: gap 360ms ease; }
.header .identity .mark { transition: flex-basis 360ms ease, width 360ms ease, opacity 240ms ease, translate 360ms ease; }
body:not(.menu-open) .header.is-hero-mark-away .identity { gap: 0; }
body:not(.menu-open) .header.is-hero-mark-away .identity .mark {
  flex-basis: 0;
  width: 0;
  opacity: 0;
  translate: -8px 0;
}
.header.is-at-footer { visibility: hidden; }
@media (max-width: 650px) {
  .header.is-hero-brand .identity__text,
  .menu-open .header .identity__text { display: flex; }
  .header.is-hero-brand .identity__name,
  .menu-open .header .identity__name { font-size: 16px; }
}
@media (min-width: 651px) and (max-width: 1023px) {
  html:not(.static-reel, .is-part) .journey { height: calc(var(--tablet-stage-height, 100svh) + 46svh); }
  html:not(.static-reel, .is-part) .stage { height: var(--tablet-stage-height, 100svh); }
}
@media (max-width: 340px) {
  .headline-design-preview #projects { --h2: 22px; --h3: 17px; }
}
@media (max-width: 650px) {
  .headline-design-preview .h1__second { gap: .12em; }
  .headline-design-preview .h1__mark { width: 1.85em; flex-basis: 1.85em; height: .62em; }
  .header.is-hero-brand .identity__name,
  .menu-open .header .identity__name { font-size: 12px; }
  .header .identity__role { font-size: 10px; max-width: none; }
}

.service__accordion summary { font-size: var(--h3-detail); font-weight: 600; text-transform: uppercase; }

.faq-views--simple { justify-content: center; align-items: center; gap: 5px; color: var(--muted); }
.faq-views--simple button, .faq-views--simple button[aria-pressed="true"] {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.faq-views--simple button[aria-pressed="true"] { color: var(--accent); }
.faq-views--simple svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.faq-views--simple button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.faq-views--simple ~ .faq__row .qcard__face {
  border: 0;
  box-shadow: inset 0 1px 2px rgb(255 255 255 / .55), inset 0 -1px 4px rgb(255 255 255 / .18);
}
@media (max-width: 1023px) { :root { --h3-detail: 18px; } }
@media (max-width: 650px) { :root { --h3-detail: 14px; --text-case-link: 14px; } }

.qcard.is-resetting .qcard__inner { transition: none; }

:root:not([data-theme="dark"]) .service__accordion { --service-divider: rgb(255 252 249 / .14); }

@media (max-width: 650px), (prefers-reduced-motion: reduce) {
  .stages__track { height: auto; margin-top: var(--sec-gap); }
  .stages__sticky { position: relative; padding-top: 0; }
}
.reduce-motion .stages__track { height: auto; margin-top: var(--sec-gap); }
.reduce-motion .stages__sticky { position: relative; padding-top: 0; }
