/* ==========================================================================
   Arena of Stars — reset.css
   Сброс базовых стилей. Независимый слой, без привязки к префиксам.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Блочный поток по умолчанию для семантичных элементов */
body,
header,
nav,
main,
section,
footer,
figure,
figcaption {
  display: block;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Аудио/видео наследуют размер контейнера */
video {
  width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Убираем стили списков — используем сброс там, где нужно */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

#root,
#__next,
#main-content {
  isolation: isolate;
}

/* Убираём внешние отступы у последнего дочернего элемента */
:last-child {
  margin-bottom: 0;
}

/* Запрет выделения для неинтерактивных интерфейсных элементов */
.no-select {
  -webkit-user-select: none;
  user-select: none;
}
/* ==========================================================================
   Arena of Stars — variables.css
   Дизайн-токены: цвета, типографика, сетка, движение.
   Источники: ТЗ §5.3, §5.4, §17.
   ========================================================================== */

:root {
  /* ── Цветовая система ─────────────────────────────────────────── */
  --color-bg: #0a0a0a;
  --color-bg-soft: #151515;
  --color-bg-deep: #050505;
  --color-surface: #f4f1eb;
  --color-surface-soft: #ebe5dc;
  --color-text: #f5f3ef;
  --color-text-dark: #111111;
  --color-muted: #a8a8a8;
  --color-muted-dark: #6f6f6f;
  --color-line: rgba(255, 255, 255, 0.18);
  --color-line-dark: rgba(17, 17, 17, 0.14);
  --color-accent: #c7a25f;
  --color-accent-dark: #72501d;
  --color-accent-dim: rgba(199, 162, 95, 0.18);

  /* Тематические семейства — переключаются модификатором секции */
  --theme-bg: var(--color-bg);
  --theme-text: var(--color-text);
  --theme-muted: var(--color-muted);
  --theme-line: var(--color-line);
  --theme-heading: var(--color-text);

  /* ── Типографика ──────────────────────────────────────────────── */
  --font-display: "Unbounded", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --font-display-xl: clamp(3.4rem, 7.4vw, 8.5rem);
  --font-display-lg: clamp(2.8rem, 7vw, 7.5rem);
  --font-display-md: clamp(2.4rem, 5.5vw, 6rem);
  --aos-font-heading: clamp(2.15rem, 3.35vw, 4.5rem);
  --font-subheading: clamp(1.4rem, 2.2vw, 2.4rem);
  --font-body-lg: clamp(1.1rem, 1.3vw, 1.5rem);
  --font-body-size: clamp(1rem, 1.02vw, 1.18rem);
  --font-small: clamp(0.82rem, 0.9vw, 0.95rem);
  --font-caption: 0.75rem;

  --leading-tight: 0.9;
  --leading-display: 0.98;
  --tracking-tight: -0.02em;
  --tracking-display: -0.03em;
  --tracking-wide: 0.12em;
  --tracking-wider: 0.22em;

  /* ── Сетка и отступы ──────────────────────────────────────────── */
  --container-width: 1840px;
  --page-padding: clamp(20px, 4vw, 64px);
  --section-space: clamp(64px, 8vw, 144px);
  --section-space-tight: clamp(48px, 6vw, 96px);
  --gutter: clamp(20px, 3vw, 56px);
  --radius-media: 0;
  --radius-pill: 999px;

  /* ── Движение ─────────────────────────────────────────────────── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.35s;
  --dur-base: 0.6s;
  --dur-slow: 1s;

  /* ── Слои ─────────────────────────────────────────────────────── */
  --z-base: 1;
  --z-content: 10;
  --z-header: 100;
  --z-menu: 200;
  --z-preloader: 1000;
  --z-cursor: 9999;

  /* ── Кастомный курсор ─────────────────────────────────────────── */
  --cursor-size: 10px;
  --cursor-size-hover: 56px;
}

/* ── Светлая тема секции ─────────────────────────────────────────── */
.aos-section--light,
.aos-theme-light {
  --theme-bg: var(--color-surface);
  --theme-text: var(--color-text-dark);
  --theme-muted: var(--color-muted-dark);
  --theme-line: var(--color-line-dark);
  --theme-heading: var(--color-text-dark);
}

/* ── Тёмная тема секции (по умолчанию) ───────────────────────────── */
.aos-section--dark,
.aos-theme-dark {
  --theme-bg: var(--color-bg);
  --theme-text: var(--color-text);
  --theme-muted: var(--color-muted);
  --theme-line: var(--color-line);
  --theme-heading: var(--color-text);
}
/* ==========================================================================
   Arena of Stars — fonts.css
   @font-face перенесены из main.css будущего сайта.
   Использованы локальные woff2 (субсетированы под кириллицу+латиницу).
   font-display: swap согласно ТЗ §4.3.
   ========================================================================== */

/* Unbounded — крупный дисплейный шрифт (заголовки) */
@font-face {
  font-family: "Tapestry";
  src: url("../fonts/Tapestry-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/Unbounded-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* M PLUS Rounded 1c — текстовый шрифт (основной набор текста) */
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/MPLUSRounded1c-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/MPLUSRounded1c-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/MPLUSRounded1c-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/MPLUSRounded1c-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   Arena of Stars — animations.css
   Reveal-состояния. БЕЗ защитного класса (.js) всё видно (ТЗ §19).
   Анимируется только transform/opacity (ТЗ §10.3).
   ========================================================================== */

/* ── Reveal по умолчанию: видим ───────────────────────────────────── */
.aos-reveal,
.aos-reveal-line,
.aos-reveal-up,
.aos-reveal-fade {
  opacity: 1;
  transform: none;
}

/* ── С защитным классом .js: скрываем до анимации ─────────────────── */
.js .aos-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}

.js .aos-reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}

.js .aos-reveal-fade {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out-expo);
}

/* Строки заголовков в маске */
.js .aos-reveal-line {
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

/* Когда анимация отработала — показываем (GSAP добавит класс вручную,
   но это страховка на случай IntersectionObserver-режима) */
.js .aos-reveal.is-in,
.js .aos-reveal-up.is-in,
.js .aos-reveal-fade.is-in {
  opacity: 1;
  transform: none;
}

.js .aos-reveal-line.is-in {
  transform: translateY(0);
}

/* Stagger-задержки для списков */
.js .aos-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-base) var(--ease-out-expo),
    transform var(--dur-base) var(--ease-out-expo);
}

.js .aos-stagger.is-in > * {
  opacity: 1;
  transform: none;
}

.js .aos-stagger.is-in > *:nth-child(1) { transition-delay: 0.04s; }
.js .aos-stagger.is-in > *:nth-child(2) { transition-delay: 0.10s; }
.js .aos-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.js .aos-stagger.is-in > *:nth-child(4) { transition-delay: 0.22s; }
.js .aos-stagger.is-in > *:nth-child(5) { transition-delay: 0.28s; }
.js .aos-stagger.is-in > *:nth-child(6) { transition-delay: 0.34s; }
.js .aos-stagger.is-in > *:nth-child(7) { transition-delay: 0.40s; }
.js .aos-stagger.is-in > *:nth-child(8) { transition-delay: 0.46s; }
.js .aos-stagger.is-in > *:nth-child(9) { transition-delay: 0.52s; }
.js .aos-stagger.is-in > *:nth-child(10) { transition-delay: 0.58s; }
.js .aos-stagger.is-in > *:nth-child(11) { transition-delay: 0.64s; }
.js .aos-stagger.is-in > *:nth-child(12) { transition-delay: 0.70s; }

/* ── Reveal медиа через clip-path (ТЗ §10.1) ─────────────────────── */
.aos-clip-reveal {
  clip-path: none;
}

/* Внутреннее изображение начинает чуть увеличенным и подгоняется */
.js .aos-media[data-parallax] .aos-media__img {
  transform: scale(1.12);
  transition: transform 1.4s var(--ease-out-expo);
}

.js .aos-media[data-parallax].is-in .aos-media__img {
  transform: scale(1);
}

/* ── Preloader reveal ─────────────────────────────────────────────── */
.js .aos-preloader {
  opacity: 1;
}

.js .aos-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out-expo),
    visibility 0s linear var(--dur-base);
}

/* ── Reduced motion (ТЗ §10.4) ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* В режиме сниженного движения всё показываем сразу */
  .js .aos-reveal,
  .js .aos-reveal-up,
  .js .aos-reveal-fade,
  .js .aos-reveal-line,
  .js .aos-stagger > *,
  .js .aos-clip-reveal,
  .js .aos-numbered-list--enhanced > *,
  .js .aos-section-number {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .aos-numbered-list__sweep {
    display: none !important;
  }

  .js .aos-preloader {
    display: none;
  }
}
/* ==========================================================================
   Arena of Stars — main.css
   Композиция, секции, типографика, навигация, контакты, footer.
   Все классы с префиксом aos-. ТЗ §5, §7, §17.
   Порядок CSS: без JS всё видимо (ТЗ §19).
   ========================================================================== */

/* ── База ─────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-body-size);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  font-weight: 400;
}

/* Когда активен JS — smooth-scroll берёт на себя Lenis, отключаем нативный */
.js body {
  scroll-behavior: auto;
}

::selection {
  background: var(--color-accent);
  color: var(--color-text-dark);
}

/* ── Контейнер ────────────────────────────────────────────────────── */
.aos-container {
  width: min(calc(100% - var(--page-padding) * 2), var(--container-width));
  margin-inline: auto;
}

/* ── Типографика: общие правила ───────────────────────────────────── */
.aos-eyebrow {
  font-family: var(--font-body);
  font-size: var(--font-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--theme-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

.aos-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.aos-section-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-accent);
  display: block;
}

/* ── Skip link ────────────────────────────────────────────────────── */
.aos-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-cursor);
  padding: 12px 20px;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: 2px;
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease-out-expo);
}

.aos-skip-link:focus-visible {
  transform: translateY(0);
}

/* ── Фокус ────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   PRELOADER  (ТЗ §7.1)
   ========================================================================== */
.aos-preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--color-bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vh, 48px);
}

.aos-preloader__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3vh, 26px);
  text-align: center;
  overflow: hidden;
}

.aos-preloader__logo {
  width: clamp(72px, 12vw, 120px);
  height: auto;
}

.aos-preloader__brand-text {
  font-family: "Tapestry", serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  letter-spacing: 0.015em;
  text-transform: none;
  color: var(--color-text);
  line-height: 1;
}

.aos-preloader__counter {
  font-family: var(--font-display);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-size: var(--font-small);
  color: var(--color-muted);
  letter-spacing: var(--tracking-wide);
}

.aos-preloader__bar {
  width: min(280px, 60vw);
  height: 1px;
  background: var(--color-line);
  overflow: hidden;
}

.aos-preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transform-origin: left;
}

/* Без JS прелоадер скрываем сразу */
.no-js .aos-preloader {
  display: none;
}

/* ==========================================================================
   HEADER / NAVIGATION  (ТЗ §7.2)
   ========================================================================== */
.aos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: background-color var(--dur-base) var(--ease-out-expo),
    transform var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo);
  border-bottom: 1px solid transparent;
}

.aos-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(16px, 2.4vh, 26px);
}

/* Состояние «прокручено»: полупрозрачный фон */
.aos-header.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--color-line);
}

/* Скрытие при скролле вниз */
.aos-header.is-hidden {
  transform: translateY(-100%);
}

.aos-logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 14px);
  line-height: 1;
}

.aos-logo__mark {
  width: clamp(38px, 3vw, 52px);
  height: auto;
  flex-shrink: 0;
}

.aos-logo__text {
  font-family: "Tapestry", serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
  letter-spacing: 0.015em;
  text-transform: none;
  color: var(--color-text);
  line-height: 1;
  /* Текст белый — всегда на тёмной/полупрозрачной шапке */
}

/* На мобильных оставляем знак + краткий текст */
@media (max-width: 600px) {
  .aos-logo__text {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
  }
  .aos-logo__mark {
    width: 36px;
  }
}

.aos-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 40px);
}

.aos-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.8vw, 34px);
  list-style: none;
}

.aos-nav__link {
  font-size: var(--font-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  position: relative;
  padding-block: 6px;
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.aos-nav__link:hover::after,
.aos-nav__link.is-active::after {
  transform: scaleX(1);
}

.aos-nav__phone {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-small);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-nav__phone,
.aos-menu__contact,
.aos-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}

.aos-nav__phone i,
.aos-menu__contact i,
.aos-footer__link i {
  color: var(--color-accent);
  flex-shrink: 0;
}

.aos-nav__phone:hover {
  color: var(--color-accent);
}

/* Выпадающее меню «Направления» (десктоп) */
.aos-nav__item {
  position: relative;
}

.aos-nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-block: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.aos-nav__dropdown-trigger i {
  font-size: 0.6em;
  color: var(--color-muted);
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.aos-nav__item.is-open .aos-nav__dropdown-trigger i {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.aos-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: calc(var(--z-header) + 1);
  min-width: 340px;
  padding: 24px 10px 10px;
  list-style: none;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition:
    opacity var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo),
    visibility 0s linear var(--dur-fast);
}

.aos-nav__item.is-open .aos-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.aos-nav__dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: var(--font-small);
  line-height: 1.4;
  color: var(--color-text);
  transition:
    color var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-fast) var(--ease-out-expo);
}

.aos-nav__dropdown-link:hover,
.aos-nav__dropdown-link:focus-visible {
  background: rgba(199, 162, 95, 0.12);
  color: var(--color-accent);
}

.aos-nav__dropdown-num {
  min-width: 2em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75em;
  color: var(--color-muted);
  flex-shrink: 0;
}

.aos-nav__dropdown-link:hover .aos-nav__dropdown-num {
  color: var(--color-accent);
  transform: translateX(4px);
}

.aos-nav__dropdown-num {
  transition:
    color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

/* Кнопка меню (мобильное) */
.aos-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

.aos-menu-toggle__lines,
.aos-menu-toggle__lines::before,
.aos-menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transform: translateX(-50%);
  transition: transform var(--dur-base) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-expo);
}

.aos-menu-toggle__lines {
  top: 50%;
  margin-top: -0.75px;
}

.aos-menu-toggle__lines::before {
  top: -7px;
}

.aos-menu-toggle__lines::after {
  top: 7px;
}

.aos-menu-toggle[aria-expanded="true"] .aos-menu-toggle__lines {
  background: transparent;
}

.aos-menu-toggle[aria-expanded="true"] .aos-menu-toggle__lines::before {
  transform: translateX(-50%) translateY(7px) rotate(45deg);
}

.aos-menu-toggle[aria-expanded="true"] .aos-menu-toggle__lines::after {
  transform: translateX(-50%) translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE MENU PANEL  (ТЗ §7.2)
   ========================================================================== */
.aos-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--color-bg-deep);
  display: flex;
  flex-direction: column;
  padding: clamp(80px, 14vh, 120px) var(--page-padding) clamp(32px, 6vh, 56px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur-base) var(--ease-out-expo),
    transform var(--dur-base) var(--ease-out-expo),
    visibility 0s linear var(--dur-base);
  overflow-y: auto;
}

.aos-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-base) var(--ease-out-expo),
    transform var(--dur-base) var(--ease-out-expo);
}

.aos-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.6vh, 14px);
}

.aos-menu__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  transition: color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.aos-menu__link:hover {
  color: var(--color-accent);
  transform: translateX(8px);
}

.aos-menu__link span:first-child {
  font-size: 0.35em;
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
}

/* Аккордеон «Направления» в мобильном меню */
.aos-menu__group {
  display: flex;
  flex-direction: column;
}

.aos-menu__group-trigger {
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.aos-menu__group-trigger i {
  margin-left: auto;
  font-size: 0.2em;
  color: var(--color-muted);
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.aos-menu__group.is-open .aos-menu__group-trigger i {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.aos-menu__sub {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height var(--dur-base) var(--ease-out-expo),
    opacity var(--dur-base) var(--ease-out-expo),
    visibility 0s linear var(--dur-base);
}

.aos-menu__group.is-open .aos-menu__sub {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  transition:
    max-height var(--dur-base) var(--ease-out-expo),
    opacity var(--dur-base) var(--ease-out-expo);
}

.aos-menu__sublink {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  padding: 12px 0 12px clamp(18px, 5vw, 32px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 4.5vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--color-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--dur-fast) var(--ease-out-expo),
    padding-left var(--dur-fast) var(--ease-out-expo);
}

.aos-menu__sublink:last-child {
  border-bottom: 0;
}

.aos-menu__sublink:hover {
  color: var(--color-accent);
  padding-left: clamp(24px, 6vw, 40px);
}

.aos-menu__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: clamp(24px, 4vh, 40px);
  border-top: 1px solid var(--color-line);
  margin-top: clamp(24px, 4vh, 40px);
}

.aos-menu__contact {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.aos-menu__messengers {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.aos-menu__tagline {
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
  margin-top: 8px;
}

.aos-menu__close {
  position: absolute;
  top: var(--page-padding);
  right: var(--page-padding);
  width: 44px;
  height: 44px;
}

.aos-menu__logo {
  position: absolute;
  top: var(--page-padding);
  left: var(--page-padding);
}

/* ==========================================================================
   HERO  (ТЗ §7.3)
   ========================================================================== */
.aos-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-bg-deep);
}

@supports (height: 100svh) {
  .aos-hero { min-height: 100svh; }
}

.aos-hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: var(--z-base);
}

.aos-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Без JS — видим постер; масштаб задаётся анимацией */
}

.aos-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(5, 5, 5, 0.55) 0%,
      rgba(5, 5, 5, 0.15) 30%,
      rgba(5, 5, 5, 0.35) 65%,
      rgba(5, 5, 5, 0.92) 100%),
    radial-gradient(120% 80% at 50% 20%, transparent 40%, rgba(5, 5, 5, 0.5) 100%);
}

.aos-hero__content {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  padding-left: clamp(10px, 1.8vw, 34px);
  padding-right: clamp(10px, 1.8vw, 34px);
  padding-bottom: clamp(112px, 13vh, 160px);
  padding-top: clamp(120px, 18vh, 200px);
}

.aos-hero__eyebrow {
  color: var(--color-text);
  margin-bottom: clamp(20px, 3.5vh, 40px);
}

.aos-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  /* Четыре ручные строки должны оставлять место для описания и CTA. */
  font-size: clamp(3.3rem, 6.4vw, 7.5rem);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-text);
  max-width: 16ch;
}

.aos-hero__title .aos-line {
  display: block;
  overflow: hidden;
}

.aos-hero__title .aos-line > span {
  display: block;
}

.aos-hero__sub {
  margin-top: clamp(40px, 5vh, 64px);
  font-size: var(--font-body-lg);
  line-height: 1.45;
  max-width: 38ch;
  color: var(--color-text);
  font-weight: 300;
}

.aos-hero__actions {
  margin-top: clamp(32px, 4.5vh, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.aos-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: clamp(15px, 1.8vh, 19px) clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--color-line);
  color: var(--color-text);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo);
  min-height: 48px;
}

.aos-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateY(101%);
  transition: transform var(--dur-base) var(--ease-out-expo);
  z-index: -1;
}

.aos-btn:hover {
  color: var(--color-text-dark);
  border-color: var(--color-accent);
}

.aos-btn:hover::before {
  transform: translateY(0);
}

.aos-btn--primary {
  background: var(--color-accent);
  color: var(--color-text-dark);
  border-color: var(--color-accent);
}

.aos-btn--primary::before {
  background: var(--color-text);
}

.aos-btn--primary:hover {
  color: var(--color-text);
}

.aos-btn__arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.aos-btn:hover .aos-btn__arrow {
  transform: translate(4px, -4px);
}

/* Hero: нижняя служебная панель */
.aos-hero__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-content);
  border-top: 1px solid var(--color-line);
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.4));
}

.aos-hero__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(14px, 2vh, 20px);
  flex-wrap: wrap;
}

.aos-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
}

.aos-hero__scroll-line {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--color-line);
  overflow: hidden;
}

.aos-hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--color-accent);
  animation: aos-scroll-tick 2.4s var(--ease-in-out-expo) infinite;
}

@keyframes aos-scroll-tick {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.aos-hero__geo {
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
}

/* Кнопка управления звуком */
.aos-sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-sound-toggle:hover,
.aos-sound-toggle.is-on {
  color: var(--color-accent);
}

.aos-sound-toggle__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.aos-sound-toggle__icon::before,
.aos-sound-toggle__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.aos-sound-toggle__icon::before {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 7px;
  clip-path: polygon(0 35%, 60% 0, 60% 100%, 0 65%);
}

.aos-sound-toggle__icon::after {
  left: 9px;
  top: 50%;
  width: 5px;
  height: 1.5px;
  transform: translateY(-50%) rotate(-45deg);
  transition: transform var(--dur-fast) var(--ease-out-expo),
    width var(--dur-fast) var(--ease-out-expo);
}

.aos-sound-toggle.is-on .aos-sound-toggle__icon::after {
  width: 7px;
  transform: translateY(-50%) rotate(45deg);
}

/* ==========================================================================
   MARQUEE  (ТЗ §7.4)
   ========================================================================== */
.aos-marquee {
  background: var(--color-bg-deep);
  border-block: 1px solid var(--color-line);
  padding-block: clamp(18px, 2.4vw, 32px);
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.aos-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  will-change: transform;
}

.aos-marquee__group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 0;
}

.aos-marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  padding-inline: clamp(20px, 2.5vw, 48px);
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.aos-marquee__item::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-left: clamp(20px, 2.5vw, 48px);
  flex-shrink: 0;
}

/* ==========================================================================
   SECTION (общий каркас)
   ========================================================================== */
.aos-section {
  position: relative;
  padding-block: var(--section-space);
  background: var(--theme-bg);
  color: var(--theme-text);
  overflow: hidden;
}

.aos-section--tight {
  padding-block: var(--section-space-tight);
}

/* Шахматная композиция split */
.aos-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 80px);
}

/* Reverse: текст слева, изображение справа */
.aos-split--reverse {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.aos-split > * {
  min-width: 0;
}

/* Медиаблок */
.aos-media {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-media);
}

.aos-media--landscape {
  aspect-ratio: 16 / 11;
}

.aos-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.aos-media__caption {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 2;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text);
  background: rgba(5, 5, 5, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px;
  border: 1px solid var(--color-line);
}

.aos-media__click-target {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
}

.aos-media__click-target:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -6px;
}

.aos-direction-name-link,
.aos-direction-title-link {
  color: inherit;
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-direction-name-link:hover,
.aos-direction-title-link:hover {
  color: var(--color-accent-dark);
}

/* Вертикальная подпись сбоку */
.aos-vertical-label {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--theme-muted);
  top: 50%;
  left: clamp(8px, 1.4vw, 22px);
  transform: rotate(180deg) translateY(50%);
}

/* Текстовый блок */
.aos-text-block {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vh, 32px);
  width: 100%;
  max-width: 46rem;
}

.aos-text-block--narrow {
  max-width: 42rem;
}

.aos-section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vh, 28px);
}

.aos-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--aos-font-heading);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--theme-heading);
  text-wrap: balance;
}

.aos-title .aos-line {
  display: block;
  overflow: hidden;
}

.aos-title .aos-line > span {
  display: block;
}

.aos-title__accent {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 700;
}

.aos-lead {
  font-size: var(--font-body-lg);
  line-height: 1.5;
  font-weight: 300;
  color: var(--theme-text);
  max-width: 44ch;
}

.aos-text {
  font-size: var(--font-body-size);
  line-height: 1.65;
  font-weight: 400;
  color: var(--theme-text);
}

/* Крупная акцентная фраза */
.aos-pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-subheading);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--theme-heading);
  border-left: 2px solid var(--color-accent);
  padding-left: clamp(16px, 1.6vw, 26px);
}

/* Список услуг */
.aos-service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.aos-service-list__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.4vw, 20px);
  padding-block: clamp(12px, 1.4vh, 18px);
  border-top: 1px solid var(--theme-line);
  font-size: var(--font-body-size);
  font-weight: 400;
  color: var(--theme-text);
  transition:
    color var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-base) var(--ease-out-expo);
}

.aos-service-list__link {
  display: flex;
  width: 100%;
  align-items: baseline;
  gap: clamp(12px, 1.4vw, 20px);
  color: inherit;
}

.aos-service-list__item:last-child {
  border-bottom: 1px solid var(--theme-line);
}

.aos-service-list__item:hover {
  color: var(--color-accent);
  background: rgba(215, 174, 92, 0.055);
}

.aos-section--light .aos-service-list__item:hover {
  color: var(--color-accent-dark);
  background: rgba(132, 91, 20, 0.055);
}

.aos-section--light .aos-section-number {
  color: var(--color-accent-dark);
}

.aos-service-list__num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-small);
  color: var(--theme-muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.4em;
  flex-shrink: 0;
}

.aos-numbered-list--enhanced > * {
  will-change: transform, opacity;
}

.aos-numbered-list__sweep {
  position: absolute;
  z-index: 0;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent) 12%,
    var(--color-accent) 82%,
    transparent 100%
  );
}

.aos-production__item .aos-numbered-list__sweep {
  top: 0;
  height: 2px;
  z-index: 2;
  box-shadow: 0 0 18px rgba(215, 174, 92, 0.42);
}

.aos-section--light .aos-numbered-list__sweep {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent-dark) 12%,
    var(--color-accent-dark) 82%,
    transparent 100%
  );
}

/* Локальная ссылка внутри секции */
.aos-local-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-body-size);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--theme-heading);
  margin-top: clamp(8px, 1vh, 14px);
  position: relative;
  width: fit-content;
}

.aos-local-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.aos-local-link:hover::after {
  transform: scaleX(1);
}

.aos-local-link__arrow {
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.aos-local-link:hover .aos-local-link__arrow {
  transform: translate(4px, -4px);
}

/* ==========================================================================
   PRODUCTION (интерактивный список) ТЗ §7.10
   ========================================================================== */
.aos-production {
  background: var(--color-bg-deep);
  color: var(--color-text);
  padding-block: clamp(64px, 6vw, 120px);
}

.aos-production__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 110px);
}

.aos-production__head {
  max-width: 38rem;
  margin-bottom: 0;
}

.aos-production__lead {
  margin-top: 28px;
}

.aos-production__hero {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.aos-production__hero picture,
.aos-production__hero img {
  width: 100%;
  height: 100%;
}

.aos-production__hero img {
  object-fit: cover;
}

.aos-production__hero::after {
  content: "Production / backstage";
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 10px;
  color: var(--color-text);
  background: rgba(5, 5, 5, 0.65);
  border: 1px solid var(--color-line);
  font-size: var(--font-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.aos-production__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
}

.aos-production__item {
  position: relative;
  min-width: 0;
  min-height: clamp(104px, 9vw, 150px);
  background: var(--color-bg-deep);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(18px, 2vw, 30px);
  cursor: default;
  transition:
    background-color var(--dur-fast) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo);
}

.aos-production__item:hover,
.aos-production__item:focus {
  z-index: 5;
  padding-left: clamp(18px, 2vw, 30px);
  background: #14110d;
  box-shadow: inset 0 0 0 1px rgba(215, 174, 92, 0.18);
  outline: none;
}

.aos-production__item-index {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--font-small);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  width: 3em;
  flex-shrink: 0;
  transition: color var(--dur-base) var(--ease-out-expo);
}

.aos-production__item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.75vw, 2rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  text-transform: none;
  color: var(--color-text);
  transition: color var(--dur-base) var(--ease-out-expo),
    opacity var(--dur-base) var(--ease-out-expo);
}

.aos-production__item:hover .aos-production__item-index,
.aos-production__item:hover .aos-production__item-name,
.aos-production__item:focus .aos-production__item-index,
.aos-production__item:focus .aos-production__item-name {
  color: var(--color-accent);
}

/* Приглушение соседних строк при наведении */
.aos-production__list:hover .aos-production__item:not(:hover) .aos-production__item-name {
  opacity: 0.7;
}

.aos-production__tooltip {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% - 10px);
  width: min(390px, calc(100vw - (var(--page-padding) * 2)));
  padding: clamp(22px, 2vw, 30px);
  color: rgba(248, 246, 241, 0.78);
  background:
    linear-gradient(135deg, rgba(215, 174, 92, 0.14), transparent 48%),
    rgba(19, 16, 12, 0.98);
  border: 1px solid rgba(215, 174, 92, 0.42);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.65;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px) scale(0.96);
  transform-origin: 50% 100%;
  transition:
    opacity 260ms ease,
    visibility 260ms ease,
    transform 420ms var(--ease-out-expo);
}

.aos-production__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #13100c;
  border-right: 1px solid rgba(215, 174, 92, 0.42);
  border-bottom: 1px solid rgba(215, 174, 92, 0.42);
  transform: translate(-50%, -8px) rotate(45deg);
}

.aos-production__tooltip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
}

.aos-production__item:nth-child(3n + 1) .aos-production__tooltip {
  left: 18px;
  transform: translate(0, 14px) scale(0.96);
  transform-origin: 16% 100%;
}

.aos-production__item:nth-child(3n) .aos-production__tooltip {
  right: 18px;
  left: auto;
  transform: translate(0, 14px) scale(0.96);
  transform-origin: 84% 100%;
}

.aos-production__item:hover .aos-production__tooltip,
.aos-production__item:focus .aos-production__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.aos-production__item:nth-child(3n + 1):hover .aos-production__tooltip,
.aos-production__item:nth-child(3n + 1):focus .aos-production__tooltip,
.aos-production__item:nth-child(3n):hover .aos-production__tooltip,
.aos-production__item:nth-child(3n):focus .aos-production__tooltip {
  transform: translate(0, 0) scale(1);
}

/* Превью-изображение (только десктоп, pointer:fine) */
.aos-production__preview {
  display: none;
}

.aos-production__item:hover .aos-production__preview {
  display: none;
}

.aos-production__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Мобильное: изображение между группами — статичное */
.aos-production__mobile-preview {
  display: none;
  margin: clamp(24px, 4vw, 48px) 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.aos-production__mobile-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PROCESS «Как мы работаем» ТЗ §7.11
   ========================================================================== */
.aos-process {
  background: var(--color-surface);
  color: var(--color-text-dark);
  --theme-bg: var(--color-surface);
  --theme-text: var(--color-text-dark);
  --theme-muted: var(--color-muted-dark);
  --theme-line: var(--color-line-dark);
  --theme-heading: var(--color-text-dark);
  padding: clamp(64px, 6vw, 120px) 0 clamp(40px, 3vw, 56px);
}

.aos-process__head {
  margin-bottom: clamp(48px, 7vw, 96px);
  max-width: 52rem;
}

.aos-process__line {
  position: relative;
  padding: clamp(40px, 5vw, 80px) 0 clamp(20px, 2vw, 36px);
}

.aos-process__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 2.5vw, 44px);
  align-items: start;
}

/* Горизонтальная линия прогресса */
.aos-process__progress {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-line-dark);
}

.aos-process__progress-fill {
  height: 100%;
  width: 100%;
  background: var(--color-text-dark);
  transform: scaleX(0);
  transform-origin: left;
}

.aos-process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-top: 42px;
  transition: background-color var(--dur-base) var(--ease-out-expo);
}

@media (hover: hover) and (pointer: fine) {
  .aos-process__step:hover {
    background: rgba(132, 91, 20, 0.035);
  }
}

.aos-process__step:nth-child(even) {
  margin-top: 0;
}

.aos-process__step-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-text-dark);
  z-index: 2;
}

.aos-process__step:nth-child(even) .aos-process__step-dot {
  top: 0;
  bottom: auto;
}

.aos-process__step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-subheading);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-dark);
}

.aos-process__step-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
  text-transform: none;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-dark);
}

.aos-process__step-text {
  font-size: var(--font-small);
  line-height: 1.55;
  color: var(--color-muted-dark);
  max-width: 26ch;
}

/* ==========================================================================
   EMOTIONAL full-screen  ТЗ §7.12
   ========================================================================== */
.aos-emotional {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg-deep);
  text-align: center;
}

@supports (height: 100svh) {
  .aos-emotional { min-height: 100svh; }
}

.aos-emotional__media {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
}

.aos-emotional__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.aos-emotional__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(82% 74% at 50% 48%, rgba(5, 5, 5, 0.16), rgba(5, 5, 5, 0.3) 62%, rgba(5, 5, 5, 0.64) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.28), rgba(5, 5, 5, 0.14) 48%, rgba(5, 5, 5, 0.68));
}

.aos-emotional__content {
  position: relative;
  z-index: var(--z-content);
  padding-inline: var(--page-padding);
  width: min(100%, 1280px);
  max-width: none;
}

.aos-emotional__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 7.2rem);
  line-height: 1.035;
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
  color: var(--color-text);
  text-wrap: balance;
  text-shadow:
    0 3px 9px rgba(0, 0, 0, 0.72),
    0 10px 34px rgba(0, 0, 0, 0.72);
}

.aos-emotional__sub {
  margin-top: clamp(24px, 3vh, 40px);
  font-size: var(--font-body-lg);
  font-weight: 300;
  color: rgba(245, 242, 236, 0.82);
  max-width: 40ch;
  margin-inline: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* ==========================================================================
   CONTACT  ТЗ §7.13
   ========================================================================== */
.aos-contact {
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
}

.aos-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}

.aos-contact__head {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.6vh, 32px);
  max-width: 48rem;
  min-width: 0;
}

.aos-contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 6.5rem);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  text-wrap: balance;
}

.aos-contact__text {
  font-size: var(--font-body-lg);
  font-weight: 300;
  color: var(--color-muted);
  max-width: 38ch;
  line-height: 1.5;
}

.aos-contact__primary {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 24px);
  padding-top: clamp(8px, 1vh, 12px);
  min-width: 0;
}

.aos-contact__row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.6vw, 22px);
  padding-block: clamp(16px, 2vh, 26px);
  border-bottom: 1px solid var(--color-line);
  transition: padding-left var(--dur-base) var(--ease-out-expo);
}

.aos-contact__row:hover {
  padding-left: 10px;
}

.aos-contact__row::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(-8px, -50%);
  opacity: 0;
  color: var(--color-accent);
  font-size: 1.4em;
  transition: transform var(--dur-base) var(--ease-out-expo),
    opacity var(--dur-base) var(--ease-out-expo);
}

.aos-contact__row:hover::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.aos-contact__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.6rem);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--color-text);
  transition: color var(--dur-base) var(--ease-out-expo);
}

.aos-contact__value[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.aos-contact__row:hover .aos-contact__value {
  color: var(--color-accent);
}

.aos-contact__row--address {
  cursor: default;
}

.aos-contact__row--address::after {
  content: none;
}

.aos-contact__row--address .aos-contact__value {
  font-style: normal;
}

.aos-contact__label {
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
  flex-shrink: 0;
}

.aos-contact__messengers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(10px, 1.2vw, 16px);
  margin-top: clamp(28px, 3.5vh, 44px);
}

.aos-contact__actions,
.aos-socials,
.aos-footer__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.2vw, 16px);
}

.aos-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 14px 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font-size: var(--font-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text);
  transition: border-color var(--dur-base) var(--ease-out-expo),
    background-color var(--dur-base) var(--ease-out-expo),
    color var(--dur-base) var(--ease-out-expo);
  min-height: 48px;
}

.aos-pill:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text-dark);
}

.aos-social-icon {
  --social-color: var(--color-accent);
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--social-color);
  border-radius: 50%;
  color: var(--social-color);
  font-size: 1.35rem;
  background: transparent;
  transition:
    color var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-fast) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-expo),
    transform var(--dur-fast) var(--ease-out-expo);
}

.aos-social-icon:hover {
  color: #fff;
  background: var(--social-color);
  border-color: var(--social-color);
  transform: translateY(-3px);
}

.aos-social-icon--telegram {
  --social-color: #229ed9;
}

.aos-social-icon--vk {
  --social-color: #0077ff;
}

.aos-social-icon--instagram {
  --social-color: #e4405f;
}

.aos-social-icon--instagram::after {
  content: "*";
  position: absolute;
  top: 4px;
  right: 8px;
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 600;
  line-height: 1;
  color: currentColor;
}

.aos-social-icon--youtube {
  --social-color: #ff0033;
}

/* Круглый плавающий CTA */
.aos-contact__orb {
  position: absolute;
  right: var(--page-padding);
  top: clamp(0px, -2vh, 0px);
  width: clamp(120px, 13vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-dark);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  z-index: 5;
  transform: translateY(-50%);
}

.aos-contact__orb-text {
  padding: 16px;
  line-height: 1.2;
}

/* ==========================================================================
   FOOTER  ТЗ §7.14
   ========================================================================== */
.aos-footer {
  background: var(--color-bg-deep);
  color: var(--color-text);
  border-top: 1px solid var(--color-line);
  padding-block: clamp(48px, 6vw, 80px) clamp(28px, 3vw, 40px);
}

.aos-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.aos-footer__logo {
  width: clamp(180px, 22vw, 300px);
  height: auto;
  display: block;
}

.aos-footer__brand-tag {
  margin-top: 16px;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
}

.aos-footer__brand-since {
  margin-top: 8px;
  font-size: var(--font-small);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.aos-footer__col-title {
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-muted);
  margin-bottom: clamp(16px, 1.8vh, 22px);
}

.aos-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aos-footer__link {
  font-size: var(--font-body-size);
  color: var(--color-text);
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-footer__link:hover {
  color: var(--color-accent);
}

.aos-footer__address {
  display: flex;
  align-items: flex-start;
  gap: 0.65em;
  margin-top: 4px;
  font-size: var(--font-body-size);
  line-height: 1.55;
  color: var(--color-muted);
}

.aos-footer__address i {
  flex-shrink: 0;
  margin-top: 0.25em;
  color: var(--color-accent);
}

.aos-footer__address address {
  font-style: normal;
}

.aos-footer__socials {
  margin-top: 8px;
}

.aos-footer__socials .aos-social-icon {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  font-size: 1.15rem;
}

.aos-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(24px, 2.5vw, 36px);
  border-top: 1px solid var(--color-line);
  flex-wrap: wrap;
}

.aos-footer__legal {
  max-width: 96ch;
  margin-top: clamp(18px, 2vw, 26px);
  font-size: clamp(0.66rem, 0.72vw, 0.75rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(245, 242, 236, 0.58);
}

.aos-footer__copy {
  font-size: var(--font-caption);
  color: var(--color-muted);
  letter-spacing: var(--tracking-wide);
}

.aos-footer__credit {
  font-size: var(--font-caption);
  color: var(--color-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-footer__credit:hover {
  color: var(--color-accent);
}

.aos-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.aos-footer__cms img {
  flex-shrink: 0;
}

.aos-footer__cms strong {
  display: block;
  margin-top: 3px;
  text-transform: none;
  color: var(--color-text);
}

.aos-footer__production {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 999px;
  color: var(--color-text);
  transition:
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out-expo);
}

.aos-footer__production span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.aos-footer__production strong {
  font-family: var(--font-display);
  font-size: var(--font-caption);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.aos-footer__production i {
  font-size: 0.7rem;
  color: var(--color-accent);
}

.aos-footer__production:hover {
  border-color: var(--color-accent);
  background: rgba(215, 174, 92, 0.08);
  transform: translateY(-2px);
}

.aos-footer__credit i {
  color: #229ed9;
}

.aos-footer__top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--font-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-footer__top-btn:hover {
  color: var(--color-accent);
}

/* ── Плавающая кнопка «Наверх» ──────────────────────────────────────── */
.aos-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: calc(var(--z-header) - 1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--color-text);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity var(--dur-base) var(--ease-out-expo),
    visibility var(--dur-base) var(--ease-out-expo),
    transform var(--dur-base) var(--ease-out-expo),
    background-color var(--dur-fast) var(--ease-out-expo),
    color var(--dur-fast) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-expo);
}

.aos-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aos-to-top:hover {
  background: rgba(215, 174, 92, 0.12);
  color: var(--color-accent);
  border-color: rgba(215, 174, 92, 0.42);
}

.aos-to-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   CUSTOM CURSOR  ТЗ §11
   ========================================================================== */
.aos-cursor,
.aos-cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  border-radius: 50%;
  mix-blend-mode: difference;
}

.aos-cursor {
  width: var(--cursor-size-hover);
  height: var(--cursor-size-hover);
  border: 1px solid var(--color-text);
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-out-expo),
    height var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-fast) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-expo),
    opacity var(--dur-fast) var(--ease-out-expo);
  opacity: 0;
}

.aos-cursor__dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: normal;
}

.aos-cursor.is-visible,
.aos-cursor__dot.is-visible {
  opacity: 1;
}

.aos-cursor.is-hover {
  width: var(--cursor-size-hover);
  height: var(--cursor-size-hover);
  background: var(--color-accent);
  border-color: var(--color-accent);
  mix-blend-mode: normal;
  opacity: 0.85;
}

.aos-cursor__label {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: var(--z-cursor);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-dark);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out-expo);
}

.aos-cursor.is-view .aos-cursor__label {
  opacity: 1;
}

/* ==========================================================================
   SCROLL PROGRESS (тонкая линия сверху)
   ========================================================================== */
.aos-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  z-index: var(--z-header);
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
}

/* ==========================================================================
   УТИЛИТЫ
   ========================================================================== */
.aos-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.aos-grid-lines span {
  border-inline: 1px solid var(--theme-line);
  opacity: 0.4;
}

.aos-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-caption);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--theme-muted);
}

.aos-status-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: aos-pulse 1.6s ease-in-out infinite;
}

@keyframes aos-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* Лёгкий кинематографичный шум (CSS-only) */
.aos-grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Блокировка скролла при открытом меню */
body.is-menu-open {
  overflow: hidden;
}

/* ==========================================================================
   НОВОСТИ НА ГЛАВНОЙ — горизонтальная галерея
   ========================================================================== */
.aos-home-news {
  overflow: hidden;
  background: var(--color-surface);
  color: var(--color-text-dark);
  --theme-heading: var(--color-text-dark);
  --theme-text: var(--color-text-dark);
  --theme-muted: var(--color-muted-dark);
  padding-block: clamp(48px, 4vw, 72px) clamp(56px, 5vw, 88px);
}

.aos-home-news .aos-title {
  color: var(--color-text-dark);
}

.aos-home-news__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 82px);
}

.aos-home-news__head .aos-title {
  max-width: 15ch;
}

.aos-home-news__intro {
  max-width: 54ch;
  justify-self: end;
}

.aos-home-news__intro > p {
  margin-bottom: 26px;
  font-size: var(--font-body-lg);
  line-height: 1.65;
  color: var(--color-muted-dark);
}

.aos-home-news__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--page-padding), calc((100vw - var(--container-width)) / 2 + var(--page-padding)));
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.aos-home-news__viewport::-webkit-scrollbar {
  display: none;
}

.aos-home-news__viewport:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: -2px;
}

.aos-home-news__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  width: max-content;
  padding-inline: max(var(--page-padding), calc((100vw - var(--container-width)) / 2 + var(--page-padding)));
  padding-bottom: 8px;
}

.aos-home-news-card {
  flex: 0 0 clamp(300px, 36vw, 610px);
  scroll-snap-align: start;
  transition: opacity 420ms ease;
}

.aos-home-news-card:not(.is-active) {
  opacity: 0.78;
}

.aos-home-news-card > a {
  display: block;
  color: inherit;
}

.aos-home-news-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: var(--radius-media);
  background: var(--color-bg-soft);
}

.aos-home-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 750ms var(--ease-out-expo), filter 450ms ease;
}

.aos-home-news-card__meta {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  font-size: var(--font-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.aos-home-news-card h3 {
  max-width: 24ch;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.14;
  transition: color var(--dur-fast) ease;
}

.aos-home-news-card p {
  max-width: 55ch;
  line-height: 1.65;
  color: var(--color-muted-dark);
}

.aos-home-news-card > a:hover .aos-home-news-card__media img {
  transform: scale(1.045);
  filter: brightness(1.08);
}

.aos-home-news-card > a:hover h3 {
  color: var(--color-accent-dark);
}

.aos-home-news__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(34px, 4vw, 58px);
}

.aos-home-news__counter {
  display: flex;
  gap: 9px;
  font-family: var(--font-display);
  font-size: var(--font-small);
  color: var(--color-muted-dark);
}

.aos-home-news__counter [data-news-current] {
  color: var(--color-accent-dark);
}

.aos-home-news__buttons {
  display: flex;
  gap: 10px;
}

.aos-home-news__buttons button {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--color-line-dark);
  border-radius: 50%;
  color: var(--color-text-dark);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.aos-home-news__buttons button:not(:disabled):hover {
  color: var(--color-text-dark);
  background: var(--color-accent);
  transform: scale(1.06);
}

.aos-home-news__buttons button:disabled {
  cursor: default;
  opacity: 0.3;
}

.aos-home-projects {
  background: var(--color-bg);
  color: var(--color-text);
  --theme-heading: var(--color-text);
  --theme-text: var(--color-text);
  --theme-muted: var(--color-muted);
}

.aos-home-projects .aos-title,
.aos-home-projects .aos-local-link,
.aos-home-projects .aos-home-news-card h3 {
  color: var(--color-text);
}

.aos-home-projects .aos-home-news__intro > p,
.aos-home-projects .aos-home-news-card p {
  color: var(--color-muted);
}

.aos-home-projects .aos-home-news__buttons button {
  border-color: var(--color-line);
  color: var(--color-text);
}

.aos-home-project-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

.aos-home-project-card__facts dt {
  margin-bottom: 5px;
  font-size: var(--font-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted);
}

.aos-home-project-card__facts dd {
  line-height: 1.45;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .aos-home-news__head {
    grid-template-columns: 1fr;
  }

  .aos-home-news__intro {
    justify-self: start;
  }

  .aos-home-news-card {
    flex-basis: min(84vw, 390px);
  }

  .aos-home-news__buttons button {
    width: 50px;
    height: 50px;
  }
}

/* Классы готовности для переходов (без мерцания) */
.aos-hero__video-wrap,
.aos-hero__title .aos-line > span,
.aos-hero__sub,
.aos-hero__actions {
  will-change: transform, opacity;
}

/* Нумерация меню десктоп */

.aos-nav__dropdown {
    counter-reset: aos-directions;
}

.aos-nav__dropdown > li {
    counter-increment: aos-directions;
}

.aos-nav__dropdown-num::before {
    content: counter(aos-directions, decimal-leading-zero);
}

/* Нумерация меню мобильный */

.aos-menu__nav {
    counter-reset: aos-mobile-nav;
}

.aos-menu__nav > .aos-menu__link,
.aos-menu__nav > .aos-menu__group {
    counter-increment: aos-mobile-nav;
}

.aos-menu__nav > .aos-menu__link .aos-menu__num::before,
.aos-menu__nav > .aos-menu__group > .aos-menu__link .aos-menu__num::before {
    content: counter(aos-mobile-nav, decimal-leading-zero);
}


/* ==========================================================================
   Arena of Stars — responsive.css
   Адаптивность ТЗ §12. Диапазоны: 360–479, 480–767, 768–1023,
   1024–1279, 1280–1599, 1600+.
   Мобильная шахматка → вертикальный поток (ТЗ §5.2), без CSS order.
   ========================================================================== */

/* ── 1280–1599: умеренное уплотнение ──────────────────────────────── */
@media (max-width: 1599px) {
  :root {
    --section-space: clamp(56px, 6.5vw, 112px);
  }
}

/* ── 1024–1279: планшет-десктоп ───────────────────────────────────── */
@media (max-width: 1279px) {
  :root {
    --container-width: 100%;
    --page-padding: clamp(20px, 4vw, 48px);
    --section-space: clamp(48px, 6vw, 96px);
  }

  .aos-split,
  .aos-split--reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: clamp(20px, 3vw, 48px);
  }

  .aos-contact__grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 56px);
  }

  .aos-contact__orb {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: clamp(24px, 3vw, 40px);
  }

  .aos-process__track {
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(10px, 1.4vw, 20px);
  }
}

/* ── 768–1023: планшет ────────────────────────────────────────────── */
@media (max-width: 1023px) {
  /* Прячем десктоп-навигацию, показываем кнопку меню */
  .aos-nav__list,
  .aos-nav__phone {
    display: none;
  }

  .aos-menu-toggle {
    display: block;
  }

  /* Шахматка превращается в вертикальный поток: изображение под текстом */
  .aos-split,
  .aos-split--reverse {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 44px);
  }

  /* HTML-порядок: media идёт после текста в обеих ориентациях */
  .aos-split .aos-text-block {
    order: 0;
  }

  .aos-split .aos-media {
    order: 1;
    aspect-ratio: 4 / 3;
  }

  /* Медиаблок делает шире */
  .aos-media {
    aspect-ratio: 4 / 3;
  }

  .aos-text-block {
    max-width: 60ch;
  }

  /* Production: десктоп-превью скрываем, мобильное показываем */
  .aos-production__preview {
    display: none;
  }

  .aos-production__intro {
    grid-template-columns: 1fr;
  }

  .aos-production__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aos-production__item:nth-child(n) .aos-production__tooltip {
    right: auto;
    left: 50%;
    transform-origin: 50% 100%;
  }

  .aos-production__item:nth-child(2n + 1) .aos-production__tooltip {
    left: 18px;
    transform-origin: 16% 100%;
  }

  .aos-production__item:nth-child(2n) .aos-production__tooltip {
    right: 18px;
    left: auto;
    transform-origin: 84% 100%;
  }

  .aos-production__item:nth-child(2n + 1):hover .aos-production__tooltip,
  .aos-production__item:nth-child(2n + 1):focus .aos-production__tooltip,
  .aos-production__item:nth-child(2n):hover .aos-production__tooltip,
  .aos-production__item:nth-child(2n):focus .aos-production__tooltip {
    transform: translate(0, 0) scale(1);
  }

  /* Process: вертикальная линия */
  .aos-process__track {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
  }

  .aos-process__progress {
    top: 0;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .aos-process__progress-fill {
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
  }

  .aos-process__step {
    padding-left: clamp(28px, 4vw, 44px);
    padding-top: 0;
  }

  .aos-process__step:nth-child(even) {
    margin-top: 0;
  }

  .aos-process__step-dot {
    position: absolute;
    top: 4px;
    left: 0;
    transform: translateX(-50%);
  }

  .aos-process__step:nth-child(even) .aos-process__step-dot {
    top: 4px;
    bottom: auto;
  }

  /* Footer */
  .aos-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .aos-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ── 480–767: большой мобильный ───────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --page-padding: clamp(18px, 5vw, 28px);
    --section-space: clamp(40px, 10vw, 72px);
    --section-space-tight: clamp(36px, 9vw, 60px);
    --font-display-xl: clamp(2.3rem, 10.5vw, 3.35rem);
    --font-display-lg: clamp(2.4rem, 11vw, 4rem);
    --font-display-md: clamp(2.1rem, 10vw, 3.4rem);
    --aos-font-heading: clamp(1.9rem, 8vw, 3rem);
    --font-subheading: clamp(1.25rem, 5vw, 1.8rem);
  }

  body {
    font-size: 1rem;
  }

  /* Hero: текст прижат к верху, чтобы заголовок был виден сразу */
  .aos-hero {
    align-items: flex-start;
  }

  .aos-hero__content {
    padding-top: clamp(76px, 11vh, 104px);
    padding-bottom: clamp(100px, 12vh, 140px);
  }

  /* Hero: убираем нижнюю панель в компактный вид */
  .aos-hero__bar-inner {
    gap: 12px;
  }

  .aos-hero__title {
    font-size: clamp(2.15rem, 9vw, 3rem);
    letter-spacing: -0.045em;
    max-width: 100%;
    hyphens: manual;
  }

  .aos-hero__scroll-line {
    width: 40px;
  }

  /* Контакты вертикально */
  .aos-contact__messengers {
    flex-direction: column;
    align-items: stretch;
  }

  .aos-contact__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .aos-contact__actions .aos-pill {
    width: 100%;
  }

  .aos-contact__messengers .aos-socials {
    justify-content: center;
    margin-top: 6px;
  }

  .aos-contact__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .aos-contact__value[href^="mailto:"] {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .aos-pill {
    justify-content: center;
  }

  /* Footer */
  .aos-footer__top {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 40px);
  }

  .aos-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .aos-emotional__content {
    max-width: 100%;
  }

  .aos-emotional__title {
    line-height: 1.075;
  }

  /* Marquee меньше */
  .aos-marquee__item {
    font-size: clamp(1.5rem, 8vw, 2.4rem);
  }

  /* Production items меньше */
  .aos-production__item-name {
    font-size: clamp(1.15rem, 5vw, 1.6rem);
  }
}

/* ── 360–479: малый мобильный ─────────────────────────────────────── */
@media (max-width: 479px) {
  :root {
    --page-padding: 18px;
    --font-display-xl: clamp(2.4rem, 14vw, 3.4rem);
  }

  .aos-hero__title {
    max-width: 100%;
    font-size: clamp(1.85rem, 8.4vw, 2.7rem);
    line-height: 1.05;
  }

  .aos-hero__sub {
    margin-top: clamp(16px, 2.5vh, 24px);
  }

  .aos-hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: clamp(16px, 2.5vh, 24px);
  }

  .aos-btn {
    justify-content: center;
    width: 100%;
  }

  .aos-hero__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .aos-pull-quote {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }

  .aos-contact__value {
    font-size: clamp(1.25rem, 7vw, 1.8rem);
  }

  .aos-production__list {
    grid-template-columns: 1fr;
  }

  .aos-production__item {
    overflow: hidden;
  }

  .aos-production__item:nth-child(n) .aos-production__tooltip {
    position: relative;
    inset: auto;
    width: 100%;
    max-height: 0;
    padding: 0 18px;
    margin-top: -20px;
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transform-origin: 50% 0;
    transition:
      max-height 500ms var(--ease-out-expo),
      margin 500ms var(--ease-out-expo),
      padding 500ms var(--ease-out-expo),
      opacity 240ms ease,
      visibility 240ms ease,
      transform 500ms var(--ease-out-expo);
  }

  .aos-production__tooltip::after {
    display: none;
  }

  .aos-production__item.is-tooltip-open .aos-production__tooltip {
    max-height: 360px;
    padding: 20px 18px;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* safe area для iOS */
  .aos-hero__bar,
  .aos-footer {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .aos-to-top {
    bottom: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .aos-header__inner {
    padding-top: env(safe-area-inset-top, 0);
  }
}

/* ── Большие экраны 1600+: добавляем воздуха ──────────────────────── */
@media (min-width: 1600px) {
  :root {
    --page-padding: clamp(40px, 4vw, 80px);
    --section-space: clamp(76px, 8vw, 160px);
  }
}

/* ── Очень большие экраны 1920+ ───────────────────────────────────── */
@media (min-width: 1920px) {
  :root {
    --container-width: 1840px;
    --font-display-xl: clamp(8rem, 9vw, 12rem);
  }
}

/* ── Тонкая подстройка под landscape телефоны ─────────────────────── */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .aos-hero {
    min-height: 100vh;
  }

  .aos-hero__content {
    padding-top: clamp(90px, 22vh, 120px);
    padding-bottom: clamp(80px, 18vh, 110px);
  }

  .aos-emotional {
    min-height: 100vh;
  }
}

/* ── Курсор только для точных указателей (ТЗ §11) ─────────────────── */
@media (hover: none), (pointer: coarse) {
  .aos-cursor,
  .aos-cursor__dot,
  .aos-cursor__label {
    display: none !important;
  }
}

@media (pointer: fine) and (hover: hover) {
  /* Скрываем системный курсор только когда есть замена и JS активен */
  .js.aos-has-cursor,
  .js.aos-has-cursor a,
  .js.aos-has-cursor button {
    cursor: none;
  }
}

/* ── Печать ───────────────────────────────────────────────────────── */
@media print {
  .aos-preloader,
  .aos-cursor,
  .aos-cursor__dot,
  .aos-cursor__label,
  .aos-grain,
  .aos-header,
  .aos-menu,
  .aos-hero__video-wrap,
  .aos-scroll-progress {
    display: none !important;
  }

  .aos-hero {
    min-height: auto;
  }

  body {
    overflow: visible;
  }
}

/* ── Высокая контрастность Windows ────────────────────────────────── */
@media (forced-colors: active) {
  .aos-btn,
  .aos-pill {
    border: 1px solid CanvasText;
  }

  .aos-cursor,
  .aos-cursor__dot,
  .aos-grain {
    display: none;
  }
}
/* ==========================================================================
   Arena of Stars — внутренние страницы услуг.
   Общие блоки для страницы раздела и страницы отдельной услуги.
   ========================================================================== */

.aos-content-page {
  background: var(--color-bg);
  color: var(--color-text);
}

.aos-content-page .aos-header {
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.82), transparent);
}

.aos-page-hero {
  position: relative;
  min-height: min(860px, 92svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.aos-page-hero__media,
.aos-page-hero__overlay {
  position: absolute;
  inset: 0;
}

.aos-page-hero__media picture,
.aos-page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.aos-page-hero__media img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.aos-page-hero--section .aos-page-hero__media img {
  object-position: center 42%;
}

.aos-page-hero__overlay {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.56) 0%, rgba(5, 5, 5, 0.12) 34%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.76) 0%, rgba(5, 5, 5, 0.3) 52%, rgba(5, 5, 5, 0.1) 100%);
}

.aos-page-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(150px, 22vh, 230px);
  padding-bottom: clamp(64px, 9vh, 110px);
}

.aos-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 5vh, 58px);
  font-size: var(--font-caption);
  line-height: 1.4;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.62);
}

.aos-breadcrumbs a {
  color: inherit;
  transition: color var(--dur-fast) var(--ease-out-expo);
}

.aos-breadcrumbs a:hover {
  color: var(--color-accent);
}

.aos-breadcrumbs__sep {
  color: var(--color-accent);
}

.aos-page-hero__eyebrow {
  margin-bottom: clamp(18px, 2.4vh, 28px);
  color: var(--color-accent);
}

.aos-page-hero__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 7rem);
  line-height: 0.96;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
  color: var(--color-text);
}

.aos-page-hero--service .aos-page-hero__title {
  max-width: 13ch;
  font-size: clamp(2.85rem, 5.9vw, 6.6rem);
}

.aos-page-hero__intro {
  max-width: 56ch;
  margin-top: clamp(24px, 3.5vh, 42px);
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
  line-height: 1.55;
  color: rgba(245, 243, 239, 0.88);
}

.aos-page-section {
  padding-block: clamp(80px, 11vw, 180px);
}

.aos-page-section--tight {
  padding-block: clamp(64px, 8vw, 130px);
}

.aos-page-section--light {
  background: var(--color-surface);
  color: var(--color-text-dark);
}

.aos-page-section--soft {
  background: var(--color-surface-soft);
  color: var(--color-text-dark);
}

.aos-page-section--dark {
  background: var(--color-bg);
  color: var(--color-text);
}

.aos-page-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 1.3fr);
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 90px);
}

.aos-page-head__title {
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.1vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.aos-page-head__text {
  max-width: 58ch;
  justify-self: end;
  font-size: var(--font-body-lg);
  line-height: 1.6;
  color: var(--color-muted-dark);
}

.aos-page-section--dark .aos-page-head__text {
  color: var(--color-muted);
}

.aos-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 130px);
  align-items: start;
}

.aos-editorial__aside {
  position: sticky;
  top: 120px;
}

.aos-editorial__index {
  display: block;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent-dark);
}

.aos-editorial__aside-title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
}

.aos-editorial__body {
  max-width: 78ch;
}

.aos-editorial__lead {
  margin-bottom: clamp(28px, 4vw, 54px);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}

.aos-editorial__body h2,
.aos-editorial__body h3 {
  max-width: 20ch;
  margin-top: clamp(42px, 5vw, 72px);
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
}

.aos-editorial__body h2 {
  font-size: clamp(1.8rem, 2.8vw, 3.3rem);
}

.aos-editorial__body h3 {
  font-size: clamp(1.35rem, 1.8vw, 2rem);
}

.aos-editorial__body p {
  margin-top: 1.15em;
  font-size: var(--font-body-size);
  line-height: 1.75;
  color: var(--color-muted-dark);
}

.aos-page-section--dark .aos-editorial__body p {
  color: var(--color-muted);
}

/* Карточки услуг: количество элементов не влияет на сетку. */
.aos-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
}

.aos-service-card {
  min-width: 0;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo),
    background-color var(--dur-base) var(--ease-out-expo);
}

.aos-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(199, 162, 95, 0.62);
  background: #1a1712;
}

.aos-service-card__link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
}

.aos-service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.aos-service-card__media picture,
.aos-service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.aos-service-card__media img {
  object-fit: cover;
  transition: transform 1.1s var(--ease-out-expo);
}

.aos-service-card:hover .aos-service-card__media img {
  transform: scale(1.055);
}

.aos-service-card__num {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(245, 243, 239, 0.4);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.68);
  font-family: var(--font-display);
  font-size: var(--font-caption);
  color: var(--color-accent);
  backdrop-filter: blur(10px);
}

.aos-service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 34px);
}

.aos-service-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.85rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: var(--tracking-tight);
}

.aos-service-card__description {
  margin-top: 16px;
  font-size: var(--font-small);
  line-height: 1.65;
  color: var(--color-muted);
}

.aos-service-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--font-display);
  font-size: var(--font-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent);
}

.aos-service-card__more i {
  transition: transform var(--dur-fast) var(--ease-out-expo);
}

.aos-service-card:hover .aos-service-card__more i {
  transform: translateX(6px);
}

/* УТП */
.aos-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-line-dark);
  border-left: 1px solid var(--color-line-dark);
}

.aos-benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 38px);
  min-height: 240px;
  padding: clamp(28px, 4vw, 58px);
  border-right: 1px solid var(--color-line-dark);
  border-bottom: 1px solid var(--color-line-dark);
}

.aos-benefit__icon {
  display: grid;
  width: clamp(60px, 6vw, 92px);
  height: clamp(60px, 6vw, 92px);
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  font-size: clamp(1.35rem, 2vw, 2rem);
  color: var(--color-text-dark);
}

.aos-benefit__title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
}

.aos-benefit__text {
  max-width: 45ch;
  margin-top: 14px;
  font-size: var(--font-small);
  line-height: 1.65;
  color: var(--color-muted-dark);
}

/* Повторяемая галерея. Добавление/удаление figure не требует изменения CSS. */
.aos-gallery {
  position: relative;
}

.aos-gallery__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.aos-gallery__viewport::-webkit-scrollbar {
  display: none;
}

.aos-gallery__track {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
}

.aos-gallery__slide {
  flex: 0 0 min(78vw, 1120px);
  scroll-snap-align: start;
}

.aos-gallery__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.aos-gallery__media picture,
.aos-gallery__media img,
.aos-gallery__media video {
  display: block;
  width: 100%;
  height: 100%;
}

.aos-gallery__media img,
.aos-gallery__media video {
  object-fit: cover;
}

.aos-gallery__media video {
  background: var(--color-bg-deep);
}

.aos-gallery__caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  font-size: var(--font-caption);
  line-height: 1.5;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted);
}

.aos-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(26px, 3vw, 42px);
}

.aos-gallery__buttons {
  display: flex;
  gap: 10px;
}

.aos-gallery__button {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-text);
  transition:
    color var(--dur-fast) var(--ease-out-expo),
    background-color var(--dur-fast) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-expo);
}

.aos-gallery__button:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text-dark);
}

.aos-gallery__button:disabled {
  cursor: default;
  opacity: 0.28;
}

.aos-gallery__counter {
  min-width: 6.5ch;
  font-family: var(--font-display);
  font-size: var(--font-small);
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
}

.aos-gallery__counter-current {
  color: var(--color-accent);
}

/* FAQ */
.aos-faq {
  border-top: 1px solid var(--color-line-dark);
}

.aos-faq__item {
  border-bottom: 1px solid var(--color-line-dark);
}

.aos-faq__question {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding-block: clamp(24px, 3vw, 38px);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
}

.aos-faq__question::-webkit-details-marker {
  display: none;
}

.aos-faq__question::after {
  content: "+";
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--color-line-dark);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent-dark);
  transition: transform var(--dur-base) var(--ease-out-expo);
}

.aos-faq__item[open] .aos-faq__question::after {
  transform: rotate(45deg);
}

.aos-faq__answer {
  overflow: hidden;
  max-width: 72ch;
  padding: 0 72px clamp(28px, 4vw, 48px) 0;
  font-size: var(--font-body-size);
  line-height: 1.7;
  color: var(--color-muted-dark);
}

/* CTA перед футером */
.aos-page-cta {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-deep);
  color: var(--color-text);
}

.aos-page-cta::before {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -18vw;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 162, 95, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 5vw rgba(199, 162, 95, 0.045),
    0 0 0 10vw rgba(199, 162, 95, 0.025);
}

.aos-page-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: var(--gutter);
  align-items: end;
  padding-block: clamp(80px, 11vw, 170px);
}

.aos-page-cta__title {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 5vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
}

.aos-page-cta__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.aos-page-cta__text {
  max-width: 42ch;
  font-size: var(--font-body-size);
  line-height: 1.65;
  color: var(--color-muted);
}

.aos-page-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Новости: повторяемая сетка и типографика публикации */
.aos-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
}

.aos-news-card {
  min-width: 0;
}

.aos-news-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
}

.aos-news-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-media);
}

.aos-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out-expo), filter 500ms ease;
}

.aos-news-card__meta,
.aos-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 14px;
  font-size: var(--font-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.aos-news-card__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.55vw, 1.65rem);
  font-weight: 650;
  line-height: 1.22;
}

.aos-news-card__description {
  max-width: 48ch;
  line-height: 1.65;
  color: var(--color-muted-dark);
}

.aos-news-card__link:hover .aos-news-card__media img {
  transform: scale(1.045);
  filter: brightness(1.07);
}

.aos-news-card__link:hover .aos-news-card__title {
  color: var(--color-accent-dark);
}

.aos-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(56px, 8vw, 110px);
}

.aos-pagination__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.aos-pagination__page,
.aos-pagination__arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--color-line-dark);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--font-small);
  color: var(--color-text-dark);
  transition:
    color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    transform var(--dur-fast) var(--ease-out-expo);
}

.aos-pagination__page:hover,
.aos-pagination__arrow:not(.is-disabled):hover,
.aos-pagination__page.is-active {
  border-color: var(--color-accent-dark);
  background: var(--color-accent);
  transform: translateY(-2px);
}

.aos-pagination__page.is-active {
  cursor: default;
}

.aos-pagination__arrow.is-disabled {
  pointer-events: none;
  opacity: 0.28;
}

.aos-pagination__ellipsis {
  display: grid;
  width: 36px;
  height: 48px;
  place-items: center;
  color: var(--color-muted-dark);
}

/* Реализованные проекты */
.aos-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(34px, 5vw, 82px) clamp(22px, 3vw, 48px);
}

.aos-project-card {
  min-width: 0;
}

.aos-project-card__link {
  display: block;
  color: inherit;
}

.aos-project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 26px;
  border-radius: var(--radius-media);
  background: var(--color-bg-soft);
}

.aos-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 750ms var(--ease-out-expo), filter 500ms ease;
}

.aos-project-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  font-size: var(--font-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.aos-project-card__title {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  font-weight: 750;
  line-height: 1.08;
}

.aos-project-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line-dark);
}

.aos-project-card__fact dt {
  margin-bottom: 5px;
  font-size: var(--font-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted-dark);
}

.aos-project-card__fact dd {
  line-height: 1.45;
  color: var(--color-text-dark);
}

.aos-project-card__scope {
  margin-top: 18px;
  line-height: 1.6;
  color: var(--color-muted-dark);
}

.aos-project-card__link:hover .aos-project-card__media img {
  transform: scale(1.045);
  filter: brightness(1.08);
}

.aos-project-card__link:hover .aos-project-card__title {
  color: var(--color-accent-dark);
}

.aos-project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-line-dark);
  border-bottom: 1px solid var(--color-line-dark);
}

.aos-project-fact {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--color-line-dark);
}

.aos-project-fact:last-child {
  border-right: 0;
}

.aos-project-fact dt {
  margin-bottom: 10px;
  font-size: var(--font-caption);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.aos-project-fact dd {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.35;
}

.aos-project-outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 34px);
}

.aos-project-outcome {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: clamp(20px, 2vw, 30px);
  min-height: 220px;
  padding: clamp(26px, 3vw, 44px);
  border: 1px solid var(--color-line-dark);
  background: rgba(255, 255, 255, 0.35);
}

.aos-project-outcome__icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-size: 1.75rem;
}

.aos-project-outcome h3 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.65rem);
  line-height: 1.2;
}

.aos-project-outcome p {
  line-height: 1.65;
  color: var(--color-muted-dark);
}

.aos-article {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.aos-article__aside {
  position: sticky;
  top: 130px;
}

.aos-article__content {
  max-width: 78ch;
}

.aos-article__lead {
  margin-bottom: clamp(32px, 5vw, 64px);
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.45;
  color: var(--color-heading-dark);
}

.aos-article__content h2 {
  margin: clamp(46px, 7vw, 82px) 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.08;
}

.aos-article__content p {
  margin-bottom: 22px;
  font-size: var(--font-body-size);
  line-height: 1.78;
  color: var(--color-muted-dark);
}

.aos-article__figure {
  margin-block: clamp(44px, 7vw, 84px);
}

.aos-article__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-media);
}

.aos-article__figure figcaption {
  margin-top: 12px;
  font-size: var(--font-small);
  color: var(--color-muted-dark);
}

@media (max-width: 1023px) {
  .aos-page-head,
  .aos-editorial,
  .aos-page-cta__inner,
  .aos-article {
    grid-template-columns: 1fr;
  }

  .aos-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aos-project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aos-project-fact:nth-child(2) {
    border-right: 0;
  }

  .aos-project-fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-line-dark);
  }

  .aos-article__aside {
    position: static;
  }

  .aos-page-head__text {
    justify-self: start;
  }

  .aos-editorial__aside {
    position: static;
  }

  .aos-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aos-gallery__slide {
    flex-basis: min(86vw, 920px);
  }
}

@media (max-width: 767px) {
  .aos-page-hero {
    min-height: min(560px, 88svh);
    align-items: flex-start;
  }

  .aos-page-hero__inner {
    padding-top: clamp(104px, 15vh, 132px);
    padding-bottom: clamp(48px, 6vh, 64px);
  }

  .aos-page-hero__title,
  .aos-page-hero--service .aos-page-hero__title {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.6rem);
    line-height: 1.03;
    hyphens: manual;
  }

  .aos-page-hero__intro {
    font-size: 1rem;
  }

  .aos-page-head {
    gap: 24px;
  }

  .aos-services-grid,
  .aos-benefits-grid,
  .aos-news-grid,
  .aos-projects-grid,
  .aos-project-outcomes {
    grid-template-columns: 1fr;
  }

  .aos-project-outcome {
    min-height: 0;
  }

  .aos-service-card:hover {
    transform: none;
  }

  .aos-benefit {
    min-height: 0;
    padding: 28px 22px;
  }

  .aos-gallery__slide {
    flex-basis: calc(100vw - var(--page-padding) * 2);
  }

  .aos-gallery__caption {
    flex-direction: column;
    gap: 6px;
  }

  .aos-faq__answer {
    padding-right: 0;
  }

  .aos-page-cta__contacts {
    width: 100%;
  }

  .aos-page-cta__contacts .aos-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 479px) {
  .aos-breadcrumbs {
    gap: 6px;
    font-size: 0.66rem;
  }

  .aos-benefit {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
  }

  .aos-benefit__icon {
    width: 52px;
    height: 52px;
    font-size: 1.15rem;
  }

  .aos-gallery__button {
    width: 48px;
    height: 48px;
  }

  .aos-pagination {
    gap: 8px;
  }

  .aos-pagination__list {
    gap: 4px;
  }

  .aos-pagination__page,
  .aos-pagination__arrow {
    width: 40px;
    height: 40px;
  }

  .aos-pagination__ellipsis {
    width: 22px;
    height: 40px;
  }

  .aos-project-card__facts,
  .aos-project-facts {
    grid-template-columns: 1fr;
  }

  .aos-project-fact,
  .aos-project-fact:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--color-line-dark);
  }

  .aos-project-fact:last-child {
    border-bottom: 0;
  }

  .aos-project-outcome {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .aos-project-outcome__icon {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
}

/* Страница 404 */
.aos-404 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(140px, 18vh, 190px) var(--page-padding) clamp(70px, 9vh, 110px);
  text-align: center;
  background: var(--color-bg-deep);
  color: var(--color-text);
}

.aos-404__orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 162, 95, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 6vw rgba(199, 162, 95, 0.05),
    0 0 0 13vw rgba(199, 162, 95, 0.025);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.aos-404__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.5vh, 30px);
}

.aos-404__star {
  display: grid;
  width: clamp(56px, 6vw, 84px);
  height: clamp(56px, 6vw, 84px);
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.aos-404__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(7rem, 24vw, 17rem);
  line-height: 0.85;
  letter-spacing: var(--tracking-display);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(199, 162, 95, 0.6);
  text-shadow: 0 0 80px rgba(199, 162, 95, 0.28);
}

.aos-404__title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

.aos-404__text {
  max-width: 46ch;
  font-size: var(--font-body-lg);
  line-height: 1.6;
  color: var(--color-muted);
}

.aos-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(10px, 2vh, 22px);
}

.aos-404__actions .aos-pill {
  text-transform: none;
  letter-spacing: var(--tracking-tight);
}

@media (max-width: 767px) {
  .aos-404 {
    min-height: 100svh;
    min-height: calc(100svh - 0px);
  }

  .aos-404__actions .aos-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aos-404__orb {
    box-shadow: none;
  }
}

/* ==========================================================================
   PCMS THEME LAYER — блоки контента и страницы CMS
   Стили Core-блоков (block_document) и служебных страниц в эстетике донора.
   ========================================================================== */

/* ── Контейнер тела страницы ─────────────────────────────────────── */
.aos-page-body {
  padding-top: clamp(48px, 8vw, 120px);
  padding-bottom: clamp(48px, 8vw, 120px);
}
.aos-page-body--plain { padding-top: clamp(96px, 12vw, 180px); }
.aos-page-body .aos-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--aos-font-heading);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0 0 clamp(16px, 2vw, 32px);
}
.aos-page-intro {
  font-size: var(--font-body-lg);
  color: var(--color-muted);
  max-width: 720px;
  margin: 0 0 clamp(24px, 3vw, 48px);
}
.aos-rich { max-width: 820px; }
.aos-rich p, .block p { line-height: 1.65; }

/* ── Мета в hero ─────────────────────────────────────────────────── */
.aos-page-hero__meta { display: flex; gap: 12px; margin-top: 18px; }

/* ── Core-блоки: базовая рамка ───────────────────────────────────── */
.aos-page-body .block, .aos-rich .block { margin: 0 0 clamp(24px, 3vw, 48px); }
.block-heading h2, .block-heading h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 0.6em;
}
.block-heading h2 { font-size: var(--font-subheading); }
.block-heading h3 { font-size: clamp(1.2rem, 1.6vw, 1.8rem); }
.block-quote {
  border-left: 2px solid var(--color-accent);
  padding: 8px 0 8px clamp(16px, 2vw, 28px);
  font-family: var(--font-display);
  font-size: var(--font-body-lg);
  color: var(--color-text);
  margin: 0 0 clamp(24px, 3vw, 48px);
}
.block-quote cite { display: block; margin-top: 12px; font-family: var(--font-body); font-size: var(--font-small); color: var(--color-muted); font-style: normal; }
.block-list ul { list-style: none; padding: 0; margin: 0; }
.block-list li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--color-text); }
.block-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 14px; height: 1px; background: var(--color-accent); }
.block-image img, .block-gallery img { width: 100%; height: auto; display: block; }
.block-image figcaption, .block-gallery figcaption { font-size: var(--font-caption); color: var(--color-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; margin-top: 10px; }
.block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(16px, 2vw, 32px); }
.block-callout { border: 1px solid var(--color-line); padding: clamp(20px, 3vw, 40px); }
.block-callout__title { font-family: var(--font-display); color: var(--color-text); margin: 0 0 10px; }
.block-faq details { border-bottom: 1px solid var(--color-line); padding: 14px 0; }
.block-faq summary { cursor: pointer; font-family: var(--font-display); color: var(--color-text); }
.block-faq .block-faq__a { color: var(--color-muted); padding-top: 10px; }
.block-table { width: 100%; border-collapse: collapse; color: var(--color-text); }
.block-table th, .block-table td { border: 1px solid var(--color-line); padding: 10px 14px; text-align: left; }
.block-code { background: var(--color-bg-deep); border: 1px solid var(--color-line); color: var(--color-text); padding: 18px; overflow-x: auto; font-size: 0.9em; }
.block-timeline ol { list-style: none; margin: 0; padding: 0; }
.block-timeline li { border-left: 1px solid var(--color-line); padding: 0 0 24px 24px; position: relative; }
.block-timeline li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.block-documents a { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent); }
.block-related ul { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.block-related .card { border: 1px solid var(--color-line); padding: 20px; }
.block-related .card a { color: var(--color-text); font-family: var(--font-display); }
.block-related .card p { color: var(--color-muted); margin: 8px 0 0; }
.block-video .block-video__frame, .block-video iframe { width: 100%; aspect-ratio: 16 / 9; display: block; }
.block-map .block-map__shell { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--color-line); display: grid; place-items: center; color: var(--color-muted); }
.block-calculator form { display: grid; gap: 14px; max-width: 480px; }
.block-calculator label { display: grid; gap: 6px; color: var(--color-muted); font-size: var(--font-small); }
.block-calculator input, .block-calculator select, .block-form input, .block-form textarea, .block-form select {
  background: var(--color-bg-soft); border: 1px solid var(--color-line); color: var(--color-text);
  padding: 12px 14px; font: inherit;
}
.block-form .block-form__row { display: grid; gap: 6px; margin-bottom: 14px; }
.block-form .block-form__status { color: var(--color-muted); }
.block-audio audio { width: 100%; }

/* ── Каталоги (проекты/новости/направления) ──────────────────────── */
.aos-projects-grid, .aos-news-grid, .aos-directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.aos-projects-grid .aos-home-news-card a,
.aos-news-grid .aos-home-news-card a,
.aos-direction-card a { display: block; height: 100%; }
.aos-direction-card { position: relative; border: 1px solid var(--color-line); }
.aos-direction-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.aos-direction-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out-expo); }
.aos-direction-card a:hover .aos-direction-card__media img { transform: scale(1.04); }
.aos-direction-card__num {
  position: absolute; top: clamp(12px, 2vw, 24px); left: clamp(12px, 2vw, 24px);
  font-family: var(--font-display); font-size: var(--font-small); color: var(--color-text);
  background: rgba(10, 10, 10, 0.55); padding: 6px 10px; letter-spacing: var(--tracking-wide);
}
.aos-direction-card h2 { font-family: var(--font-display); font-size: var(--font-subheading); color: var(--color-text-dark); margin: clamp(16px, 2vw, 28px); line-height: 1.1; }
.aos-direction-card p { color: var(--color-muted-dark); margin: 0 clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px); }

/* ── Юридические ссылки в подвале ────────────────────────────────── */
.aos-footer__legal-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; margin: clamp(16px, 2vw, 28px) 0 0; }
.aos-footer__legal-nav a { color: var(--color-muted); font-size: var(--font-small); }

/* ── Разделитель в мобильном меню ────────────────────────────────── */
.aos-menu__sep { border: 0; border-top: 1px solid var(--color-line); width: 100%; margin: 8px 0; }
