/* ──────────────────────────────────────────────────────────────────────────
   Сайт ведущего мероприятий. Все цвета — только через токены.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* Светлая тема */
  --ground: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f2f1ed;
  --ink: #0b0b0c;
  --ink-soft: #3b3b3f;
  --muted: #6e6e73;
  --line: #e4e2dd;
  --line-strong: #cfcdc6;
  --accent: #b3812c;
  --accent-soft: #e8d9b8;
  /* Секции «сцены» (промо, контакты, подвал) идут в цвет выбранной темы */
  --stage: #f1f0ec;
  --stage-ink: #0b0b0c;
  --stage-muted: #6e6e73;
  --stage-line: #e0ded8;
  --shadow: 0 1px 2px rgba(11, 11, 12, 0.04), 0 12px 32px rgba(11, 11, 12, 0.06);

  --font-display: 'Unbounded', 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 148px);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #0d0d0f;
    --surface: #161619;
    --surface-2: #1c1c20;
    --ink: #f6f5f2;
    --ink-soft: #d2d1cd;
    --muted: #97969c;
    --line: #26262b;
    --line-strong: #3a3a41;
    --accent: #d9a94e;
    --accent-soft: #4a3a1c;
    --stage: #08080a;
    --stage-ink: #f6f5f2;
    --stage-muted: #8f8e95;
    --stage-line: #232329;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 40px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme='dark'] {
  --ground: #0d0d0f;
  --surface: #161619;
  --surface-2: #1c1c20;
  --ink: #f6f5f2;
  --ink-soft: #d2d1cd;
  --muted: #97969c;
  --line: #26262b;
  --line-strong: #3a3a41;
  --accent: #d9a94e;
  --accent-soft: #4a3a1c;
  --stage: #08080a;
  --stage-ink: #f6f5f2;
  --stage-muted: #8f8e95;
  --stage-line: #232329;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 40px rgba(0, 0, 0, 0.45);
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ── Оформление текста из редактора ──────────────────────────────────────── */

/* шрифты */
.t-font-body { font-family: var(--font-body); }
.t-font-display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; }
.t-font-serif { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.t-font-mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.94em; }
.t-font-hand { font-family: 'Caveat', 'Segoe Script', cursive; font-size: 1.25em; }

/* размеры */
.t-size-xs { font-size: 0.72em; }
.t-size-sm { font-size: 0.86em; }
.t-size-md { font-size: 1em; }
.t-size-lg { font-size: 1.22em; }
.t-size-xl { font-size: 1.5em; line-height: 1.22; }
.t-size-2xl { font-size: 1.9em; line-height: 1.16; }
.t-size-3xl { font-size: 2.4em; line-height: 1.1; }

/* начертание */
.t-w-light { font-weight: 300; }
.t-w-regular { font-weight: 400; }
.t-w-medium { font-weight: 500; }
.t-w-bold { font-weight: 700; }

/* цвет */
.t-color-ink { color: var(--ink); }
.t-color-accent { color: var(--accent); }
.t-color-muted { color: var(--muted); }
.t-color-light { color: var(--surface); }
.t-mark {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 0.05em 0.28em;
  border-radius: 6px;
}

/* регистр и межбуквенное расстояние */
.t-upper { text-transform: uppercase; }
.t-lower { text-transform: lowercase; }
.t-caps { font-variant-caps: small-caps; }
.t-track { letter-spacing: 0.14em; }
.t-tight { letter-spacing: -0.02em; }

/* подчёркивание акцентом */
.t-underline {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

/* абзац целиком */
.t-left { display: block; text-align: left; }
.t-center { display: block; text-align: center; }
.t-right { display: block; text-align: right; }
.t-lh-tight { display: block; line-height: 1.25; }
.t-lh-loose { display: block; line-height: 1.95; }

/* прежние классы — чтобы уже оформленный текст не сбился */
.t-sm { font-size: 0.86em; }
.t-lg { font-size: 1.22em; }
.t-xl { font-size: 1.5em; line-height: 1.22; }
.t-display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; }
.t-accent { color: var(--accent); }
.t-muted { color: var(--muted); }

.section--stage .t-muted,
.section--stage .t-color-muted {
  color: var(--stage-muted);
}

.section--stage .t-color-ink {
  color: var(--stage-ink);
}

/* пустые абзацы не занимают место */
p:empty {
  display: none;
}

/* ── Общие элементы ──────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

/* «простые» секции тоже отделяются линией — иначе между ними читается провал */
.section--plain {
  border-top: 1px solid var(--line);
}

.section--tint {
  background: var(--surface-2);
  border-top: 0;
}

.section--stage {
  background: var(--stage);
  color: var(--stage-ink);
  border-top: 0;
}

.section--stage .eyebrow {
  color: var(--stage-muted);
}

.section--stage .section-head__sub {
  color: var(--stage-muted);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  /* сетка, а не флекс: точка держится первой строки, даже если текст перенёсся */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  /* ровно по середине первой строки */
  margin-top: calc((1.5em - 6px) / 2);
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* заголовок занимает всю ширину блока и переносится только когда места правда нет */
.section-head__title {
  max-width: none;
  text-wrap: pretty;
}

/* надпись над заголовком и подзаголовок держим узкими — так их удобнее читать */
.section-head > .eyebrow { max-width: 760px; }

.section-head__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.section-head__sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 62ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), background-color 0.25s,
    border-color 0.25s, color 0.25s, opacity 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--solid {
  background: var(--ink);
  color: var(--ground);
}

.btn--solid:hover {
  background: var(--accent);
  color: #0b0b0c;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.section--stage .btn--ghost {
  border-color: var(--stage-line);
  color: var(--stage-ink);
}

.section--stage .btn--ghost:hover {
  border-color: var(--stage-ink);
}

.btn--light {
  background: var(--stage-ink);
  color: var(--stage);
}

.btn--light:hover {
  background: var(--accent);
  color: #0b0b0c;
}

/* Заглушка под фото — пока изображения не загружены */
.ph {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ph::after {
  content: attr(data-label);
  position: relative;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 16px;
  text-align: center;
}

.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    var(--line) 14px 15px
  );
  opacity: 0.55;
}

.section--stage .ph {
  background: #0f0f12;
  border-color: var(--stage-line);
}

.section--stage .ph::before {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 14px,
    var(--stage-line) 14px 15px
  );
}

.section--stage .ph::after {
  color: var(--stage-muted);
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ── Шапка ───────────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header[data-scrolled='true'] {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 62px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo__role {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.logo {
  flex: none;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(11px, 1.5vw, 26px);
  font-size: 14px;
  color: var(--muted);
  flex: 0 1 auto;
}

.header__cta {
  flex: none;
}

.nav a {
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.header__cta {
  padding: 10px 20px;
  font-size: 14px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}

.burger span,
.burger span::before,
.burger span::after {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.25s, opacity 0.2s;
}

.burger span {
  top: 50%;
  margin-top: -0.75px;
}

.burger span::before,
.burger span::after {
  content: '';
  left: 0;
  transform: none;
}

.burger span::before {
  top: -5px;
}

.burger span::after {
  top: 5px;
}

.burger[aria-expanded='true'] span {
  background: transparent;
}

.burger[aria-expanded='true'] span::before {
  transform: translateY(5px) rotate(45deg);
}

.burger[aria-expanded='true'] span::after {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 0 22px;
  border-top: 1px solid var(--line);
  max-width: 560px;
  margin-left: auto;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav__links a {
  padding: 13px 2px;
  font-size: 18px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav__cta {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.mobile-nav[data-open='true'] {
  display: flex;
}

/* Меню сжимается по мере сужения окна, потом уходит в бургер */
@media (max-width: 1240px) {
  .nav {
    font-size: 13px;
    gap: 12px;
  }
}

@media (max-width: 1080px) {
  .nav {
    gap: 10px;
  }
  .header__cta {
    padding: 10px 16px;
  }
}

@media (max-width: 1000px) {
  .nav,
  .header__cta {
    display: none;
  }
  .burger {
    display: block;
  }
}

/* Если пункты меню перестают помещаться — вся навигация уходит в бургер */
.header[data-compact='true'] .nav,
.header[data-compact='true'] .header__cta,
.header[data-compact='true'] .socials--header {
  display: none;
}

.header[data-compact='true'] .burger {
  display: block;
}

/* ── Герой ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(52px, 8vw, 104px) clamp(48px, 7vw, 88px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.9rem, 8.4vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 22px 0 0;
  text-wrap: balance;
}

.hero__sub {
  margin: 26px 0 0;
  font-size: clamp(1.0625rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero .eyebrow {
  flex-wrap: wrap;
  row-gap: 2px;
}

.hero__portrait {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
}

/* Портрет без фона: вписывается целиком, стоит в пятне света */
.hero__portrait:not(.ph) {
  border: 0;
  background: none;
  position: relative;
}

/* У блока «О себе» фото остаётся липким — position здесь не переопределяем */
.about__photo:not(.ph) {
  border: 0;
  background: radial-gradient(58% 52% at 50% 60%, var(--surface-2) 0%, transparent 72%);
}

/* Свет за фигурой разгорается после её появления */
.hero__portrait:not(.ph)::before {
  content: '';
  position: absolute;
  inset: -4% -8%;
  background: radial-gradient(58% 52% at 50% 60%, var(--surface-2) 0%, transparent 72%);
  z-index: 0;
  pointer-events: none;
}

.js .hero__portrait:not(.ph)::before {
  animation: glow-in 1.5s cubic-bezier(0.2, 0.8, 0.3, 1) both 0.35s;
  animation-play-state: paused;
}

@keyframes glow-in {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__portrait .media {
  position: relative;
  z-index: 1;
}

.hero__portrait:not(.ph) .media,
.about__photo:not(.ph) .media {
  object-fit: contain;
  object-position: bottom center;
}

/* Обычная фотография (не вырезанная) заполняет блок по ширине текста */
.hero__portrait[data-fit='cover'],
.about__photo[data-fit='cover'] {
  background: var(--surface-2);
  overflow: hidden;
}

.hero__portrait[data-fit='cover'] .media,
.about__photo[data-fit='cover'] .media {
  object-fit: cover;
  object-position: center 22%;
}

.hero__portrait[data-fit='cover']::before {
  display: none;
}

/* Режим «целиком»: высота блока идёт от самой фотографии, ничего не режется */
.about__photo[data-fit='contain'] {
  aspect-ratio: auto;
  background: none;
}

.about__photo[data-fit='contain'] .media {
  height: auto;
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0;
  text-wrap: balance;
}

.stat__label {
  margin: 10px auto 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 24ch;
  text-wrap: balance;
}

/* На узких экранах цифры идут столбиком, каждая отделена линией */
@media (max-width: 680px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .stat {
    padding-block: 22px;
  }
  .stat + .stat {
    border-top: 1px solid var(--line);
  }
  .stat:first-child {
    padding-top: 0;
  }
  .stat:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__portrait {
    aspect-ratio: 4 / 3;
    order: -1;
  }
  /* обычное фото на телефоне стоит вертикально во всю ширину текста */
  .hero__portrait[data-fit='cover'] {
    aspect-ratio: 4 / 5;
  }
}

/* ── О себе ──────────────────────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.about__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.8vw, 2.05rem);
  line-height: 1.24;
  letter-spacing: -0.028em;
  margin: 0 0 28px;
  text-wrap: balance;
}

.about__text p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  max-width: 64ch;
}

.about__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  position: sticky;
  top: 92px;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.achievement__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.achievement__title::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  flex: none;
  transform: translateY(-5px);
}

.achievement__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .about__photo {
    position: static;
    aspect-ratio: 16 / 11;
  }
  /* обычное фото на телефоне стоит вертикально — так почти ничего не обрезается */
  .about__photo[data-fit='cover'] {
    aspect-ratio: 4 / 5;
  }
  .about__photo[data-fit='contain'] {
    aspect-ratio: auto;
  }
}

/* ── Форматы: строки, а не карточки ──────────────────────────────────────── */

.formats {
  display: grid;
}

.format {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 1fr) auto;
  gap: clamp(16px, 4vw, 48px);
  align-items: baseline;
  padding-block: clamp(26px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
  transition: background-color 0.3s;
}

.format:last-child {
  border-bottom: 1px solid var(--line);
}

.format__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.format__text {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.format__meta {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .format {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .format__meta {
    order: -1;
  }
}

/* ── Текстовый блок ──────────────────────────────────────────────────────── */

.text-block {
  display: grid;
  gap: 18px;
  max-width: 68ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--ink-soft);
}

.text-block p {
  margin: 0;
}

/* ── Видео ───────────────────────────────────────────────────────────────── */

[hidden] {
  display: none !important;
}

/* Ролик и текст рядом: сторону текста выбирают в админке */
.video-rows {
  display: grid;
  gap: clamp(36px, 6vw, 84px);
}

.video-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 3.4vw, 52px);
  align-items: center;
}

.video-row[data-solo='true'] {
  grid-template-columns: minmax(0, 1fr);
}

/* текст слева — меняем колонки местами, широкой всегда остаётся колонка с видео */
.video-row[data-side='left'] {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.video-row[data-side='left'] .video-row__media {
  order: 2;
}

.video-row[data-side='left'] .video-row__text {
  order: 1;
}

.video-row__media {
  min-width: 0;
}

.video-row__player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  border: 1px solid var(--stage-line);
}

.video-row__link {
  display: block;
}

.video-row__frame {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.video-row__link:hover .video-row__frame {
  transform: translateY(-4px);
}

.video-row__text {
  min-width: 0;
}

.video-row__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.video-row__caption {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  color: var(--stage-muted);
  max-width: 46ch;
}

.play {
  position: absolute;
  inset: auto auto 16px 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stage-ink);
  color: var(--stage);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background-color 0.25s, transform 0.25s;
}

.video-row__link:hover .play {
  background: var(--accent);
  transform: scale(1.06);
}

.play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

/* на узких экранах ролик сверху, текст под ним — независимо от выбранной стороны */
@media (max-width: 860px) {
  .video-row,
  .video-row[data-side='left'],
  .video-row[data-solo='true'] {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .video-row[data-side='left'] .video-row__media,
  .video-row[data-side='left'] .video-row__text {
    order: 0;
  }
}

/* ── Галерея ─────────────────────────────────────────────────────────────── */

/* ── Рилсы: лента вертикальных роликов ──────────────────────────────────── */

.reels {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* первая карточка встаёт вровень с заголовком раздела, лента уходит за правый край */
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  /* тот же отступ при перелистывании — иначе карточка прилипает к самому краю */
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding-block: 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.reels::-webkit-scrollbar {
  height: 6px;
}

.reels::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 3px;
}

.reel {
  position: relative;
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 268px);
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  isolation: isolate;
}

.reel__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #0b0b0c;
}

.reel__empty {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 9 / 16;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--line) 14px 15px);
}

.reel__caption {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 42px 14px 14px;
  font-size: 13px;
  color: #f6f5f2;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.85), transparent);
  z-index: 2;
  pointer-events: none;
}

.reel__sound {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: rgba(8, 8, 10, 0.55);
  color: #f6f5f2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.25s, color 0.25s;
}

.reel__sound[data-on='true'] {
  background: var(--accent);
  color: #0b0b0c;
}

.reel__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Пока роликов один-два, карточки крупнее — меньше пустоты справа */
.reels:has(.reel:only-child) .reel,
.reels:has(.reel:nth-child(2):last-child) .reel {
  width: clamp(240px, 26vw, 330px);
}

@media (max-width: 680px) {
  .reel,
  .reels:has(.reel:only-child) .reel,
  .reels:has(.reel:nth-child(2):last-child) .reel {
    width: 62vw;
  }
}

.reel--playable {
  cursor: pointer;
}


/* ── Блок цифр ───────────────────────────────────────────────────────────── */

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(18px, 3vw, 40px);
}

.numbers[data-count='4'] {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* одна-две цифры не растягиваются во всю ширину */
@media (min-width: 681px) {
  .numbers[data-count='1'] {
    grid-template-columns: minmax(220px, 340px);
  }
  .numbers[data-count='2'] {
    grid-template-columns: repeat(2, minmax(200px, 340px));
  }
}

/* цифры идут без карточки — как плитки достижений в разделе «О себе» */
.number {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.number__value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.number__label {
  margin: 12px auto 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 26ch;
  text-wrap: balance;
}

@media (max-width: 680px) {
  .numbers {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .number {
    padding-block: 22px;
  }
  .number + .number {
    border-top: 1px solid var(--line);
  }
  .number:first-child {
    padding-top: 0;
  }
}

/* ── Просмотр ролика во весь экран ──────────────────────────────────────── */

body.is-locked {
  position: fixed;
  inset-inline: 0;
  width: 100%;
  overflow: hidden;
}

.reel-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #06060a;
  animation: viewer-in 0.28s ease both;
}

.reel-viewer[hidden] {
  display: none;
}

@keyframes viewer-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reel-viewer__bar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}

.reel-viewer__btn {
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #f6f5f2;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s, color 0.25s;
}

.reel-viewer__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.reel-viewer__btn[data-on='true'] {
  background: var(--accent);
  color: #0b0b0c;
}

.reel-viewer__track {
  height: 100%;
  overflow: hidden;
}

.reel-viewer[data-mode='feed'] .reel-viewer__track {
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reel-viewer[data-mode='feed'] .reel-viewer__track::-webkit-scrollbar {
  display: none;
}

.reel-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.reel-slide__video {
  display: block;
  /* ролик вписывается в экран и сохраняет вертикальные пропорции */
  width: min(100%, calc(100vh * 9 / 16));
  width: min(100%, calc(100dvh * 9 / 16));
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.reel-viewer[data-mode='single'] .reel-slide__video {
  width: min(100%, calc(84vh * 9 / 16));
  width: min(100%, calc(84dvh * 9 / 16));
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.reel-slide__caption {
  position: absolute;
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
  max-width: min(520px, 86vw);
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  color: #f6f5f2;
  background: rgba(8, 8, 10, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.reel-viewer[data-mode='single'] .reel-slide__caption {
  bottom: 16px;
}

.reel-viewer__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #f6f5f2;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.25s, opacity 0.25s, transform 0.25s;
}

.reel-viewer__arrow svg {
  width: 24px;
  height: 24px;
}

.reel-viewer__arrow:hover {
  background: rgba(255, 255, 255, 0.26);
}

.reel-viewer__arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.reel-viewer__arrow[disabled] {
  opacity: 0.25;
  cursor: default;
}

.reel-viewer__arrow--prev {
  left: clamp(12px, 3vw, 44px);
}

.reel-viewer__arrow--next {
  right: clamp(12px, 3vw, 44px);
}

.reel-viewer__count {
  position: absolute;
  left: 50%;
  top: max(20px, env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  margin: 0;
  z-index: 3;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(246, 245, 242, 0.65);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.reel-viewer__count[hidden],
.reel-viewer__arrow[hidden] {
  display: none;
}

/* на телефоне листают смахиванием — стрелки не нужны */
@media (max-width: 900px) {
  .reel-viewer__arrow {
    display: none;
  }
}

.reel-viewer__hint {
  position: absolute;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 245, 242, 0.5);
  pointer-events: none;
  animation: hint-fade 4.5s ease forwards;
}

.reel-viewer__hint[hidden] {
  display: none;
}

@keyframes hint-fade {
  0%,
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ── Фотография во всю ширину ───────────────────────────────────────────── */

.banner {
  position: relative;
  width: 100%;
  background: var(--stage);
}

.banner__frame {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

.banner[data-height='tall'] .banner__frame {
  aspect-ratio: 16 / 9;
}

.banner[data-height='short'] .banner__frame {
  aspect-ratio: 32 / 9;
}

.banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Режим «фото целиком»: снимок не обрезается, высота блока идёт от пропорций */
.banner[data-fit='full'] .banner__frame,
.banner[data-fit='full'][data-height='tall'] .banner__frame,
.banner[data-fit='full'][data-height='short'] .banner__frame {
  aspect-ratio: auto;
}

.banner[data-fit='full'] .banner__image {
  height: auto;
  object-fit: contain;
}

.banner__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(60px, 12vw, 140px) var(--gutter) clamp(28px, 5vw, 56px);
  background: linear-gradient(to top, rgba(8, 8, 10, 0.78) 10%, transparent);
  color: #f6f5f2;
  display: grid;
  gap: 10px;
}

.banner__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.banner__text {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: #c9c8c4;
  max-width: 56ch;
}

@media (max-width: 760px) {
  .banner:not([data-fit='full']) .banner__frame,
  .banner:not([data-fit='full'])[data-height='tall'] .banner__frame,
  .banner:not([data-fit='full'])[data-height='short'] .banner__frame {
    aspect-ratio: 4 / 3;
  }
}

.gallery-grid {
  --gallery-gap: clamp(12px, 1.6vw, 20px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--gallery-gap);
}

/* фото без своей ширины подстраиваются под ширину блока */
.gallery-grid > .gallery-item:not([data-span]) {
  flex: 1 1 300px;
  max-width: calc((100% - var(--gallery-gap) * 2) / 3);
}

/* ширина фотографии выбирается в админке: 1 — во всю ширину, 2 — половина ряда и так далее */
.gallery-item[data-span] { flex: 0 0 auto; }
.gallery-item[data-span='1'] { width: 100%; max-width: 100%; }
.gallery-item[data-span='2'] { width: calc((100% - var(--gallery-gap)) / 2); max-width: none; }
.gallery-item[data-span='3'] { width: calc((100% - var(--gallery-gap) * 2) / 3); max-width: none; }
.gallery-item[data-span='4'] { width: calc((100% - var(--gallery-gap) * 3) / 4); max-width: none; }
.gallery-item[data-span='5'] { width: calc((100% - var(--gallery-gap) * 4) / 5); max-width: none; }
.gallery-item[data-span='6'] { width: calc((100% - var(--gallery-gap) * 5) / 6); max-width: none; }

/* планшет: не больше трёх в ряд */
@media (min-width: 561px) and (max-width: 860px) {
  .gallery-grid > .gallery-item:not([data-span]) { max-width: calc((100% - var(--gallery-gap)) / 2); }
  .gallery-item[data-span='2'],
  .gallery-item[data-span='3'] { width: calc((100% - var(--gallery-gap)) / 2); }
  .gallery-item[data-span='4'],
  .gallery-item[data-span='5'],
  .gallery-item[data-span='6'] { width: calc((100% - var(--gallery-gap) * 2) / 3); }
}

/* телефон: одна колонка, плотные ряды остаются по два */
@media (max-width: 560px) {
  .gallery-grid > .gallery-item:not([data-span]) { max-width: 100%; }
  .gallery-item[data-span='2'],
  .gallery-item[data-span='3'] { width: 100%; }
  .gallery-item[data-span='4'],
  .gallery-item[data-span='5'],
  .gallery-item[data-span='6'] { width: calc((100% - var(--gallery-gap)) / 2); }
}

.gallery-item--clickable {
  cursor: zoom-in;
}

.gallery-item {
  height: clamp(240px, 30vw, 440px);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

/* фото во всю ширину показываем полосой, чтобы не занимало весь экран */
.gallery-item[data-span='1'] { height: clamp(220px, 32vw, 500px); }

@media (max-width: 560px) {
  .gallery-item { height: 62vw; }
  .gallery-item[data-span='1'] { height: 58vw; }
  .gallery-item[data-span='4'],
  .gallery-item[data-span='5'],
  .gallery-item[data-span='6'] { height: 44vw; }
}

/* Фото целиком: высота ячейки — по пропорции самой фотографии, ничего не обрезается */
.gallery-grid[data-fit='whole'] .gallery-item,
.gallery-grid[data-fit='whole'] .gallery-item[data-span='1'] {
  height: auto;
}

.gallery-grid[data-fit='whole'] .gallery-item .media {
  height: auto;
  object-fit: contain;
  display: block;
}

/* пустая ячейка без файла в этом режиме всё равно должна быть видна */
.gallery-grid[data-fit='whole'] .gallery-item.ph {
  min-height: 200px;
}

/* Ровные ряды, фото вписано целиком — по краям остаётся фон */
.gallery-grid[data-fit='inside'] .gallery-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.gallery-grid[data-fit='inside'] .media {
  object-fit: contain;
}

/* какую часть показывать, если края обрезаются */
.gallery-item[data-focus='top'] .media { object-position: center top; }
.gallery-item[data-focus='bottom'] .media { object-position: center bottom; }

/* у круглой галереи зазор чуть больше — иначе круги касаются боками */
.gallery-grid[data-shape='circle'] { --gallery-gap: clamp(16px, 2.2vw, 28px); }

/* Круглые фотографии: ячейка становится квадратной, фото заполняет круг */
.gallery-grid .gallery-item[data-shape='circle'],
.gallery-grid[data-fit] .gallery-item[data-shape='circle'],
.gallery-grid[data-fit] .gallery-item[data-shape='circle'][data-span] {
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: none;
  border: 0;
}

.gallery-grid .gallery-item[data-shape='circle'] .media,
.gallery-grid[data-fit] .gallery-item[data-shape='circle'] .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* фото во всю ширину кругом не растягиваем — держим по центру ряда */
.gallery-grid .gallery-item[data-shape='circle'][data-span='1'] {
  width: min(100%, 420px);
  max-width: min(100%, 420px);
  margin-inline: auto;
}

/* пустая ячейка без файла тоже круглая */
.gallery-grid .gallery-item[data-shape='circle'].ph { min-height: 0; }

/* подпись внутри круга — по центру, чтобы не срезало углами */
.gallery-item[data-shape='circle'] .gallery-item__caption {
  padding: 26px 16% 13%;
  text-align: center;
}

@media (max-width: 560px) {
  .gallery-grid .gallery-item[data-shape='circle'][data-span='1'] { width: min(100%, 280px); max-width: min(100%, 280px); }
}

.gallery-item__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 16px 14px;
  font-size: 13px;
  color: #f6f5f2;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-within .gallery-item__caption {
  opacity: 1;
}

/* ── География событий ───────────────────────────────────────────────────── */

.geo {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

/* описание и фотография сбоку — над картой и лентами */
.geo__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.geo__col {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  min-width: 0;
}

.geo__intro[data-side='left'] .geo__col { order: 2; }
.geo__intro[data-side='left'] .geo__photo { order: 1; }

.geo__intro[data-solo='true'] { grid-template-columns: minmax(0, 1fr); }

.geo__intro[hidden] { display: none; }

.geo__text p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  max-width: 64ch;
}

.geo__text p:last-child { margin-bottom: 0; }

.geo__text[hidden] { display: none; }

.geo__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

.geo__photo[hidden] { display: none; }

.geo__photo[data-fit='contain'] {
  aspect-ratio: auto;
  background: none;
  border: 0;
}

.geo__photo[data-fit='contain'] .media {
  height: auto;
  width: 100%;
  object-fit: contain;
}

.geo__part + .geo__part { margin-top: clamp(24px, 4vw, 44px); }

/* карта и ленты в колонке рядом с фотографией */
.geo[data-place='beside'] .geo__score { gap: 16px clamp(20px, 3vw, 36px); }

.geo[data-place='beside'] .geo-score__value { font-size: clamp(30px, 4vw, 44px); }

@media (max-width: 860px) {
  .geo__intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .geo__intro[data-side='left'] .geo__col { order: 1; }
  .geo__intro[data-side='left'] .geo__photo { order: 2; }
  .geo__photo { aspect-ratio: 4 / 3; }
  .geo__photo[data-fit='contain'] { aspect-ratio: auto; }
}

.geo__score {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 5vw, 56px);
  align-items: flex-end;
}

.geo-score__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.geo-score__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.geo-score__label {
  font-size: 13.5px;
  color: var(--muted);
}

/* карта */

.geo-map__canvas {
  width: 100%;
  height: auto;
  display: block;
}

.geo-map__land {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 0.4;
}

.geo-map__country {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 0.4;
  transition: fill 0.5s ease;
  cursor: pointer;
}

.geo-map.is-visible .geo-map__country {
  fill: var(--accent);
}

.geo-map__country:hover,
.geo-map__country:focus-visible {
  fill: var(--ink);
  outline: none;
}

.geo-map__dot {
  fill: var(--accent);
  pointer-events: none;
}

.geo-map__dot--solo {
  pointer-events: auto;
  cursor: pointer;
}

.geo-map__dot--solo:hover,
.geo-map__dot--solo:focus-visible {
  fill: var(--ink);
  outline: none;
}

.geo-map__ping {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  pointer-events: none;
}

.geo-map.is-visible .geo-map__ping {
  animation: geo-ping 2.8s ease-out infinite;
}

@keyframes geo-ping {
  0% { r: 2; opacity: 0.7; }
  70% { r: 13; opacity: 0; }
  100% { r: 13; opacity: 0; }
}

.geo-map__caption {
  margin: 12px 0 0;
  min-height: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* плитки */

.geo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.geo-chips--under { margin-top: 18px; }

@media (max-width: 700px) {
  .geo-map__caption { display: none; }
}

.geo-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.geo-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.geo-chip__note {
  font-size: 13px;
  color: var(--muted);
}

.geo-chips.is-visible .geo-chip {
  animation: geo-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--step, 0) * 45ms);
}

@keyframes geo-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* бегущая строка */

.geo-run {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.geo-run + .geo-run { margin-top: 12px; }

.geo-run__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: geo-slide 48s linear infinite;
}

.geo-run--back .geo-run__track { animation-direction: reverse; }

.geo-run:hover .geo-run__track { animation-play-state: paused; }

.geo-run .geo-chip { white-space: nowrap; }

@keyframes geo-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* по частям света */

.geo-regions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.geo-region {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.geo-region__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.geo-region__name {
  font-family: var(--font-display);
  font-size: 15px;
}

.geo-region__count {
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.geo-region__bar {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.geo-region__fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.geo-region.is-visible .geo-region__fill { transform: scaleX(var(--share, 1)); }

.geo-region__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .geo-map.is-visible .geo-map__ping { animation: none; }
  .geo-chips.is-visible .geo-chip { animation: none; }
  .geo-run__track { animation: none; }
  .geo-region__fill { transition: none; transform: scaleX(var(--share, 1)); }
}

/* ── Просмотр фотографий ─────────────────────────────────────────────────── */

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #06060a;
  display: flex;
  align-items: center;
  justify-content: center;
  /* сверху — счётчик, снизу — подпись, по бокам — стрелки */
  padding: calc(58px + env(safe-area-inset-top, 0px)) clamp(12px, 6vw, 84px)
    calc(58px + env(safe-area-inset-bottom, 0px));
  animation: viewer-in 0.28s ease both;
}

.photo-viewer[hidden] {
  display: none;
}

.photo-viewer__stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-viewer__image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

.photo-viewer__bar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.photo-viewer__count {
  position: absolute;
  left: 50%;
  top: max(20px, env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  margin: 0;
  z-index: 3;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(246, 245, 242, 0.65);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.photo-viewer__caption {
  position: absolute;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
  max-width: min(720px, 86vw);
  padding: 10px 16px;
  border-radius: 999px;
  text-align: center;
  font-size: 14px;
  color: #f6f5f2;
  background: rgba(8, 8, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

.photo-viewer__caption[hidden],
.photo-viewer__count[hidden] {
  display: none;
}

.photo-viewer .reel-viewer__arrow[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .photo-viewer .reel-viewer__arrow {
    display: grid;
    width: 44px;
    height: 44px;
  }
}

/* ── Стоимость ───────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan__badge {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

.plan__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin: 0;
}

.plan__price {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.1;
}

.plan__unit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  display: block;
  margin-top: 6px;
}

.plan__desc {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.plan__features {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 11px;
  font-size: 15px;
  flex: 1;
}

.plan__features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
}

.plan__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}

.pricing-note {
  margin: clamp(24px, 3vw, 36px) 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

/* ── Отзывы ──────────────────────────────────────────────────────────────── */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.review__text {
  margin: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 16px;
}

.review__text::before {
  content: '«';
  color: var(--accent);
  margin-right: 2px;
}

.review__text::after {
  content: '»';
  color: var(--accent);
  margin-left: 2px;
}

.review__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.review__name {
  font-weight: 600;
  font-size: 15px;
}

.review__event {
  font-size: 14px;
  color: var(--muted);
}

.review__date {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* ── Клиенты ─────────────────────────────────────────────────────────────── */

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px) clamp(28px, 5vw, 64px);
  align-items: center;
}

.client {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.25s;
}

.client:hover {
  color: var(--ink);
}

.client img {
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.clients-note {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  max-width: 70ch;
}

/* ── Контакты и форма ────────────────────────────────────────────────────── */

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

/* Справа стоит форма, фотография или ничего */
.contact__grid[data-right='none'] {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.contact__grid[data-right='none'] .socials--contact {
  margin-top: 36px;
}

.contact__photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.contact__photo .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.contact__photo[data-fit='contain'] {
  aspect-ratio: auto;
  background: none;
}

.contact__photo[data-fit='contain'] .media {
  height: auto;
  object-fit: contain;
}

/* ── Мессенджеры и соцсети ──────────────────────────────────────────────── */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px;
  color: var(--ink);
  transition: border-color 0.25s, color 0.25s, background-color 0.25s, transform 0.25s;
}

.social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.social__icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
}

.social__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social__label {
  font-size: 15px;
  padding-right: 8px;
}

/* в шапке — только иконки, компактно и в одну строку */
.socials--header {
  gap: 4px;
  flex: none;
  flex-wrap: nowrap;
}

.socials--header .social {
  padding: 8px;
  border-color: transparent;
  color: var(--muted);
}

.socials--header .social:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* в мобильном меню — сеткой, с подписями */
.socials--mobile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.socials--mobile .social {
  padding-left: 14px;
  justify-content: flex-start;
  color: var(--muted);
}

.socials--mobile .social__label {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* телефон — отдельной строкой, чтобы номер не переносился */
.socials--mobile .social[href^='tel:'] {
  grid-column: 1 / -1;
  justify-content: center;
}

.socials--mobile .social:hover {
  color: var(--accent);
}

.socials--mobile[hidden] {
  display: none;
}

/* в блоке контактов — на тёмном фоне, с подписями */
.socials--contact {
  margin-top: 30px;
}

.socials--contact .social {
  border-color: var(--stage-line);
  color: var(--stage-ink);
  padding-left: 14px;
}

.socials--contact .social:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.socials--footer .social {
  border-color: var(--stage-line);
  color: var(--stage-muted);
}

.socials--footer .social:hover {
  color: var(--stage-ink);
  border-color: var(--stage-muted);
}

/* Если места в шапке мало, иконки уходят — они остаются в контактах и подвале */
@media (max-width: 1400px) {
  .socials--header {
    display: none;
  }
}

.contact-list {
  display: grid;
  gap: 2px;
  margin-top: 34px;
}

.contact-list a,
.contact-list span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--stage-line);
  font-size: 16px;
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list .label {
  color: var(--stage-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: center;
}

.form {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  display: grid;
  gap: 16px;
}

.form__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__submit {
  background: var(--ink);
  color: var(--ground);
  width: 100%;
  margin-top: 4px;
}

.form__submit:hover {
  background: var(--accent);
  color: #0b0b0c;
}

.form__submit[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.form__consent {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.form__status {
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 12px;
  margin: 0;
  display: none;
}

.form__status[data-kind='ok'] {
  display: block;
  background: #e7f0e7;
  color: #1f4d22;
}

.form__status[data-kind='error'] {
  display: block;
  background: #f6e4e4;
  color: #7a2020;
}

@media (max-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .field--row {
    grid-template-columns: 1fr;
  }
}

/* ── Подвал ──────────────────────────────────────────────────────────────── */

.footer {
  background: var(--stage);
  color: var(--stage-muted);
  padding-block: 40px 48px;
  font-size: 13px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--stage-line);
  padding-top: 32px;
}

.footer a:hover {
  color: var(--stage-ink);
}

/* ── Появление секций при прокрутке ──────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Крупные блоки въезжают с лёгким приближением */
.js .reveal.zoom-in {
  transform: scale(0.965);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.3, 1), transform 1.1s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.js .reveal.zoom-in.is-visible {
  transform: none;
}

/* ── Вступительная последовательность на первом экране ───────────────────── */

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-portrait {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.965);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Вступление ждёт, пока уйдёт экран загрузки: класс is-ready ставит страница */
.js .hero .eyebrow,
.js .hero__title,
.js .hero__sub,
.js .hero__actions,
.js .stats {
  animation: intro-rise 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-play-state: paused;
}

.js.is-ready .hero .eyebrow,
.js.is-ready .hero__title,
.js.is-ready .hero__sub,
.js.is-ready .hero__actions,
.js.is-ready .stats,
.js.is-ready .hero__portrait,
.js.is-ready .hero__portrait:not(.ph)::before {
  animation-play-state: running;
}

.js .hero .eyebrow {
  animation-delay: 0.05s;
}
.js .hero__title {
  animation-delay: 0.13s;
}
.js .hero__sub {
  animation-delay: 0.23s;
}
.js .hero__actions {
  animation-delay: 0.31s;
}
.js .stats {
  animation-delay: 0.42s;
}

.js .hero__portrait {
  animation: intro-portrait 1.15s cubic-bezier(0.2, 0.8, 0.3, 1) both 0.18s;
  animation-play-state: paused;
  overflow: hidden;
}

/* Параллакс: значения задаёт скрипт, CSS только применяет */
.hero__portrait .media {
  transform: translate3d(0, var(--shift, 0px), 0) scale(var(--zoom, 1));
  will-change: transform;
}

.hero__copy {
  transform: translate3d(0, var(--shift, 0px), 0);
  will-change: transform, opacity;
}

/* ── Микро-взаимодействия ────────────────────────────────────────────────── */

.gallery-item .media {
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.gallery-item:hover .media,
.gallery-item:focus-within .media {
  transform: scale(1.05);
}

.format {
  border-radius: 14px;
  padding-inline: 0;
  transition: padding-inline 0.45s cubic-bezier(0.2, 0.8, 0.3, 1),
    background-color 0.45s ease;
}

@media (hover: hover) and (min-width: 761px) {
  .format:hover {
    padding-inline: 16px;
    background-color: var(--surface-2);
  }
}

.format__title,
.format__meta {
  transition: color 0.35s ease;
}

.format:hover .format__title {
  color: var(--accent);
}

/* Подсветка под курсором на карточках тарифов */
.plan {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.plan::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.plan > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) {
  .plan:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
  }
  .plan:hover::after {
    opacity: 1;
  }
  .plan--featured:hover {
    border-color: var(--accent);
  }
}

.review,
.video-row__frame,
.achievement {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.5s ease;
}

@media (hover: hover) {
  .review:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}

.stat__value {
  font-variant-numeric: tabular-nums;
}

.header {
  transition: border-color 0.3s ease, background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header[data-scrolled='true'] {
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .reveal.zoom-in {
    opacity: 1;
    transform: none;
  }
  .hero__portrait .media,
  .hero__copy {
    transform: none;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Полоса с кнопкой на другую страницу ─────────────────────────────────── */

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
}

.cta-band__text { min-width: 0; }

.cta-band__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 10px 0 0;
  text-wrap: balance;
}

.cta-band__sub {
  margin: 12px 0 0;
  color: var(--ink-soft);
  max-width: 56ch;
}

.cta-band__btn { flex: none; }

@media (max-width: 720px) {
  .cta-band { align-items: flex-start; }
  .cta-band__btn { width: 100%; text-align: center; }
}

/* ── Круглая фотография в текстовых блоках ──────────────────────────────── */
/* Форма выбирается в дашборде у каждого блока: «О себе», «География», «Контакты» */

.about__photo[data-shape='circle'],
.about__photo[data-fit][data-shape='circle'],
.geo__photo[data-shape='circle'],
.geo__photo[data-fit][data-shape='circle'],
.contact__photo[data-shape='circle'],
.contact__photo[data-fit][data-shape='circle'] {
  aspect-ratio: 1 / 1;
  height: auto;
  width: min(100%, 420px);
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  border: 0;
}

.about__photo[data-shape='circle'] .media,
.about__photo[data-fit][data-shape='circle'] .media,
.geo__photo[data-shape='circle'] .media,
.geo__photo[data-fit][data-shape='circle'] .media,
.contact__photo[data-shape='circle'] .media,
.contact__photo[data-fit][data-shape='circle'] .media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* В круге фотография всегда заполняет его целиком — настройка «показывать целиком»
   здесь не действует, иначе внутри круга остаются пустые поля */
.about__photo[data-fit='contain'][data-shape='circle'] .media,
.geo__photo[data-fit='contain'][data-shape='circle'] .media,
.contact__photo[data-fit='contain'][data-shape='circle'] .media,
.about__photo:not(.ph)[data-shape='circle'] .media,
.about__photo:not(.ph)[data-fit][data-shape='circle'] .media {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

/* вырезанный портрет в круге тоже заполняет его */
.about__photo:not(.ph)[data-shape='circle'],
.about__photo:not(.ph)[data-fit][data-shape='circle'] {
  height: auto;
  aspect-ratio: 1 / 1;
}

@media (max-width: 860px) {
  .about__photo[data-shape='circle'],
  .about__photo[data-fit][data-shape='circle'],
  .geo__photo[data-shape='circle'],
  .geo__photo[data-fit][data-shape='circle'],
  .contact__photo[data-shape='circle'],
  .contact__photo[data-fit][data-shape='circle'] {
    aspect-ratio: 1 / 1;
    width: min(100%, 340px);
  }
}
