/* ==========================================================================
   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(--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(96px, 9vw, 168px);
}

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

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

.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(96px, 10vw, 180px) 0 clamp(52px, 4vw, 72px);
}

.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__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(64px, 5vw, 96px) clamp(72px, 7vw, 124px);
}

.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);
}


