/* Сайт Ксении · стиль «Сцена»: чёрный, красный, золото */
@import url("fonts/fonts.css");

:root {
  --black: #0D0A09; --black-2: #161010;
  --red: #B3201C; --red-hi: #E23A2E;
  --gold: #C9A15D; --cream: #F2E8D8; --muted: #A39684; --soft: #CFC3B1;
  --display: "Alumni Sans", "Oswald", Impact, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 6vw, 96px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--cream); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: screen;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .8  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .005em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--cream); color: var(--black); text-decoration: none; }
.skip:focus { top: 12px; }

/* шапка */
.top { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--pad); }
.logo { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.logo small { display: block; margin-top: 6px; font: 500 10.5px/1 var(--sans); letter-spacing: .22em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav .pill { color: var(--cream); padding: 10px 18px; border: 1px solid rgba(201, 161, 93, .55); border-radius: 999px; transition: background .3s, color .3s; }
.nav .pill:hover { background: var(--gold); color: var(--black); }
/* кнопка сверху: сразу в Telegram, самолётик в цвет сайта */
.pill-tg { display: inline-flex; align-items: center; gap: 9px; }
.pill-tg svg { flex: none; width: 19px; height: 19px; fill: var(--gold); transition: fill .3s, transform .5s var(--spring); }
.pill-tg:hover svg { fill: var(--black); transform: translate(2px, -2px); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 999px;
  background: var(--red); color: var(--cream); text-decoration: none; font-weight: 600; font-size: 16px;
  box-shadow: 0 0 0 1px rgba(226, 58, 46, .5), 0 18px 40px -14px rgba(179, 32, 28, .8);
  transition: transform .5s var(--spring), background .35s, box-shadow .5s var(--spring);
}
.btn:hover { background: var(--red-hi); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(226, 58, 46, .7), 0 24px 50px -14px rgba(226, 58, 46, .9); }
.btn:active { transform: scale(.94); transition: transform .08s ease-out; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  border: 1px solid rgba(201, 161, 93, .6); color: var(--cream); text-decoration: none; font-weight: 500; font-size: 16px;
  transition: background .3s, color .3s, transform .5s var(--spring);
}
.btn-ghost:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }
.btn-ghost:active { transform: scale(.95); transition: transform .08s ease-out; }
.link { font-weight: 500; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid rgba(201, 161, 93, .6); transition: border-color .3s, color .3s; }
.link:hover { color: var(--gold); border-color: var(--gold); }
/* круглая кнопка Telegram — только на телефоне, см. @media (max-width: 760px) */
.tg-float { display: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* появление при прокрутке */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* первый экран: сцена */
.stage { position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; }
.stage.short { height: 92svh; min-height: 640px; }
.visual { position: absolute; inset: 0; }
.spot {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(34% 62% at 60% 0%, rgba(255, 226, 180, .2), transparent 72%),
    conic-gradient(from 180deg at 60% -12%, transparent 162deg, rgba(255, 230, 190, .07) 171deg, rgba(255, 230, 190, .13) 180deg, rgba(255, 230, 190, .07) 189deg, transparent 198deg);
}
.glow {
  position: absolute; left: 60%; top: 52%; z-index: -2; width: min(72vw, 820px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(179, 32, 28, .6), rgba(179, 32, 28, .16) 45%, transparent 70%);
  filter: blur(30px); animation: glow 6s ease-in-out infinite;
}
@keyframes glow { 50% { opacity: .72; transform: translate(-50%, -50%) scale(1.07); } }
.sidelight { position: absolute; right: -12%; top: 6%; z-index: -2; width: 46vw; height: 86%; background: radial-gradient(closest-side, rgba(179, 32, 28, .42), transparent); filter: blur(40px); }
.dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.word {
  position: absolute; left: 0; right: 0; top: 31%; z-index: -1; transform: translateY(-50%);
  font-family: var(--display); font-weight: 800; font-size: clamp(140px, 24vw, 460px); line-height: .8;
  text-align: center; text-transform: uppercase; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, rgba(201, 161, 93, .6), rgba(201, 161, 93, .06) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dancer {
  position: absolute; left: 62%; bottom: 6%; z-index: 1; height: min(74svh, 780px); width: auto; max-width: none;
  transform: translateX(-46%);
  filter: drop-shadow(0 0 34px rgba(226, 58, 46, .28)) drop-shadow(0 40px 40px rgba(0, 0, 0, .65));
}
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55) 70%, var(--black)); }
.floor::before {
  content: ""; position: absolute; left: 62%; bottom: 18%; width: min(52vw, 560px); height: 70px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 226, 180, .26), transparent); filter: blur(6px);
}
/* на страницах направлений фигура правее, чтобы слово за ней читалось */
.stage.short .dancer { left: 74%; }
/* главная: видео Ксении вместо фигуры (2026-10-19). Видео вертикальное — на компьютере это высокое окно на месте фигуры,
   края растворяются в сцене (маска: прозрачные края, а не чёрная рамка поверх красного света). На телефоне — фон
   всего первого экрана, см. @media (max-width: 760px). Замедлено до 0,8, конец плавно переходит в начало */
.hero-video {
  position: absolute; left: 62%; bottom: 0; z-index: 1; height: 100%; aspect-ratio: 9 / 16; transform: translateX(-46%);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 22%, var(--black) 78%, transparent), linear-gradient(180deg, transparent, var(--black) 12%, var(--black) 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, var(--black) 22%, var(--black) 78%, transparent), linear-gradient(180deg, transparent, var(--black) 12%, var(--black) 82%, transparent);
  mask-composite: intersect;
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.stage.short .glow, .stage.short .floor::before { left: 72%; }
.hero-copy { position: absolute; left: var(--pad); bottom: clamp(36px, 8vh, 84px); z-index: 3; max-width: min(560px, 46vw); }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 14px 2px rgba(226, 58, 46, .7); }
h1 { font-weight: 600; font-size: clamp(52px, 6vw, 98px); line-height: .9; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
h1 em { font-style: italic; font-weight: 500; color: var(--red-hi); }
.lead { max-width: 38ch; margin: 24px 0 34px; color: var(--soft); text-shadow: 0 1px 16px rgba(0, 0, 0, .8); }
.hero-rule { display: none; } /* линии после кнопки первого экрана — только на телефоне, см. @media (max-width: 760px) */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

/* программа: три акта (главная) */
.program { max-width: 1400px; margin: 0 auto; padding: clamp(96px, 12vw, 170px) var(--pad); }
.program .head, .sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow { margin-bottom: 14px; font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
h2 { font-weight: 600; font-size: clamp(48px, 6.4vw, 104px); line-height: .9; }
.sub { max-width: 32ch; color: var(--muted); }
.acts { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(201, 161, 93, .35); }
.act {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 110px 1.05fr 1fr 190px; grid-template-areas: "num title text media";
  align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: clamp(30px, 3.4vw, 48px) clamp(8px, 1.5vw, 24px); border-bottom: 1px solid rgba(201, 161, 93, .35);
}
.act::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(179, 32, 28, .34), rgba(179, 32, 28, .06) 70%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out);
}
/* is-lit — та же подсветка на сенсорных экранах: там нет наведения, и её включает site.js, когда акт проходит середину экрана */
.act:hover::before, .act:focus-within::before, .act.is-lit::before { transform: scaleX(1); }
.roman { grid-area: num; font-family: var(--display); font-weight: 500; font-size: clamp(64px, 7vw, 120px); line-height: .8; color: var(--gold); }
.roman small { display: block; margin-bottom: 10px; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ttl { grid-area: title; }
.act h3 { font-weight: 700; font-size: clamp(40px, 4vw, 66px); line-height: .9; }
.act h3 a { text-decoration: none; }
.act h3 a::after { content: ""; position: absolute; inset: 0; }
.act h3 a:focus-visible { outline: none; }
.act:focus-within { outline: 2px solid var(--gold); outline-offset: -2px; }
.tag { display: inline-block; margin-top: 16px; padding: 7px 13px; border: 1px solid rgba(201, 161, 93, .6); border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.txt { grid-area: text; color: var(--muted); font-size: 16px; }
.more { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--cream); font-weight: 500; }
.more span { transition: transform .5s var(--spring); }
.act:hover .more span, .act.is-lit .more span { transform: translateX(6px); }
.media {
  grid-area: media; justify-self: end; position: relative; width: 100%; aspect-ratio: 3 / 4; margin: 0;
  overflow: hidden; border-radius: 14px; background: #1D1514;
  transform: rotate(-3deg) scale(.95); opacity: .8; transition: transform .8s var(--spring), opacity .5s;
}
.act:hover .media, .act.is-lit .media { transform: rotate(0) scale(1.04); opacity: 1; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }

/* манифест и обо мне (главная) */
.manifest { position: relative; padding: clamp(80px, 10vw, 150px) var(--pad); text-align: center; }
.manifest::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: clamp(50px, 7vw, 100px); background: linear-gradient(180deg, transparent, var(--gold)); }
.manifest blockquote { max-width: 18ch; margin: 0 auto; font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(40px, 5.2vw, 88px); line-height: .98; }
.manifest blockquote em { font-style: italic; font-weight: 500; color: var(--red-hi); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); max-width: 980px; margin: clamp(40px, 5vw, 72px) auto 0; text-align: left; color: var(--soft); }
.about-cols p + p { margin-top: 14px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 36px auto 0; padding: 0; list-style: none; }
.facts li { padding: 9px 16px; border: 1px solid rgba(201, 161, 93, .55); border-radius: 999px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* разделы страниц направлений */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad); }
.section + .section { padding-top: 0; }
.prose { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); color: var(--soft); font-size: 18px; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--cream); font-weight: 600; }
.pull { margin-top: clamp(40px, 5vw, 64px); max-width: 20ch; font-family: var(--display); font-weight: 300; font-size: clamp(36px, 4.4vw, 72px); line-height: .98; text-transform: uppercase; }
.pull em { font-style: italic; font-weight: 500; color: var(--red-hi); }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(201, 161, 93, .35); counter-reset: row; }
.rows li { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid rgba(201, 161, 93, .35); counter-increment: row; }
.rows li::before { content: counter(row, decimal-leading-zero); font: 400 clamp(36px, 3.6vw, 56px)/.8 var(--display); color: var(--gold); }
.rows h3 { font-weight: 700; font-size: clamp(28px, 2.8vw, 42px); line-height: .95; }
.rows p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.card { padding: 30px 26px 28px; border: 1px solid rgba(201, 161, 93, .5); border-radius: 22px; background: linear-gradient(180deg, rgba(255, 226, 180, .05), transparent 60%); transition: transform .5s var(--spring), border-color .4s; }
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card h3 { font-weight: 700; font-size: 32px; line-height: .95; }
.card p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.card .n { display: block; margin-bottom: 18px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.note { max-width: 70ch; margin-top: 32px; padding: 18px 22px; border-left: 2px solid rgba(201, 161, 93, .6); color: var(--muted); font-size: 15px; }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.other { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 28px; border-radius: 22px; border: 1px solid rgba(201, 161, 93, .35); text-decoration: none; transition: background .4s, border-color .4s; }
.other:hover { background: rgba(179, 32, 28, .18); border-color: var(--gold); }
.other small { display: block; margin-bottom: 10px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.other b { font: 700 clamp(30px, 3vw, 44px)/.92 var(--display); text-transform: uppercase; }
.other span { font-size: 22px; transition: transform .5s var(--spring); }
.other:hover span { transform: translateX(6px); }

/* финал: занавес */
.finale { position: relative; isolation: isolate; overflow: hidden; min-height: 86svh; display: grid; place-items: center; padding: 120px 24px; text-align: center; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(42% 60% at 50% 40%, rgba(255, 226, 180, .14), transparent 72%); }
.curtain {
  position: absolute; top: 0; bottom: 0; z-index: 2; width: 50.5%; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 22%, transparent 70%, rgba(0, 0, 0, .5)),
    repeating-linear-gradient(90deg, #4E0C0A 0, #8C1914 2.2%, #A8211A 3.4%, #7A1511 5%, #4E0C0A 6.4%);
  transform: scaleX(.14); transition: transform 1.9s cubic-bezier(.7, 0, .2, 1);
}
.curtain.l { left: 0; transform-origin: left center; box-shadow: inset -30px 0 50px rgba(0, 0, 0, .55); }
.curtain.r { right: 0; transform-origin: right center; box-shadow: inset 30px 0 50px rgba(0, 0, 0, .55); }
.js .finale:not(.is-open) .curtain { transform: scaleX(1); }
.finale-copy { position: relative; z-index: 1; }
.finale h2 { max-width: 12ch; margin: 0 auto; font-size: clamp(56px, 8vw, 132px); }
.finale p { max-width: 38ch; margin: 22px auto 34px; color: var(--soft); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.finale .contacts { max-width: none; margin: 30px auto 0; font-size: 15px; color: var(--muted); }
.finale .contacts a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(201, 161, 93, .5); }

/* подвал */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px var(--pad) 40px; font-size: 13.5px; color: var(--muted); border-top: 1px solid rgba(201, 161, 93, .2); }
footer a { text-decoration: none; }
footer a:hover { color: var(--cream); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 900px) {
  .nav a:not(.pill) { display: none; }
  /* minmax(0, …): длинное слово не растягивает колонку, иначе блок становится шире экрана */
  .act { grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "num media" "title media" "text text"; row-gap: 12px; }
  .roman { font-size: 54px; }
  .media { width: 104px; align-self: start; transform: none; opacity: 1; }
  .about-cols, .prose, .others { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 56px 1fr; }
  .rows li p { grid-column: 2; }
}
@media (max-width: 760px) {
  /* первый экран (правки Ксении 2026-10-18): заголовок сверху, под ним фигура, под фигурой кнопка, ниже пояснение.
     Огромного слова за фигурой и кнопки «Написать» в шапке на телефоне нет: имя и «хореограф · танцовщица» — один раз,
     в логотипе, а Telegram — кнопка первого экрана и круглая кнопка при прокрутке.
     Высота фото считается от высоты экрана: 278 и 334 px — место под заголовок (с подписью акта на страницах направлений)
     и кнопку, чтобы они поместились в первый экран */
  .nav, .word { display: none; }
  .stage, .stage.short { display: flex; flex-direction: column; height: auto; min-height: 0; padding-bottom: 48px; }
  .hero-copy { display: contents; }
  .hero-copy > * { margin-inline: var(--pad); }
  .hero-copy > :first-child { margin-top: 92px; }
  .kicker { order: 1; margin-bottom: 12px; letter-spacing: .12em; }
  .hero-copy h1 { order: 2; }
  .visual { order: 3; position: relative; height: calc(100vh - 278px); height: calc(100svh - 278px); min-height: 220px; margin-top: 8px; }
  .stage.short .visual { height: calc(100vh - 334px); height: calc(100svh - 334px); }
  .dancer, .stage.short .dancer { left: 50%; bottom: 0; height: calc(100% - 6px); width: auto; max-width: 94vw; object-fit: contain; object-position: 50% 100%; transform: translateX(-50%); }
  /* свет софита — с центром за заголовком, а верх слоя уходит за верх экрана: иначе там, где начинается слой,
     видна резкая граница света (под заголовком или между шапкой и подписью акта) */
  .spot { inset: -260px 0 0; background: radial-gradient(52% 360px at 50% 160px, rgba(255, 226, 180, .2), transparent 72%); }
  .glow, .stage.short .glow { left: 50%; width: 120vw; }
  .floor::before, .stage.short .floor::before { left: 50%; bottom: 4%; width: 90vw; }
  /* главная: видео — фон всего первого экрана, а не окно между заголовком и кнопкой; блок света становится просто
     промежутком (position: static), и видео встаёт от верха сцены. Затемнение сверху — под логотип и заголовок,
     снизу — под кнопку и переход в чёрный */
  .stage.has-video .visual { position: static; }
  .stage.has-video .spot, .stage.has-video .glow, .stage.has-video .sidelight, .stage.has-video .dust, .stage.has-video .floor { display: none; }
  .hero-video { left: 0; top: 0; bottom: auto; z-index: -1; width: 100%; height: 100vh; height: 100svh; aspect-ratio: auto; transform: none; -webkit-mask-image: none; mask-image: none; }
  .hero-video video { object-position: 50% 40%; }
  .hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .65) 26%, rgba(0, 0, 0, .3) 38%, transparent 50%, transparent 64%, rgba(0, 0, 0, .65) 84%, var(--black)); }
  /* тёмный ореол у букв заголовка: за ним неон меняет цвет, а красное «с тебя» на малиновом читается хуже всего */
  .stage.has-video h1 { text-shadow: 0 0 2px rgba(0, 0, 0, .6), 0 2px 18px rgba(0, 0, 0, .8); }
  .sidelight { right: -45%; width: 90vw; }
  .logo small { letter-spacing: .14em; white-space: nowrap; }
  .hero-copy .actions { order: 4; margin-top: 14px; gap: 12px 22px; }
  .hero-copy .lead { order: 5; margin: 22px var(--pad) 0; }
  /* главная (правки Ксении 19.10): под абзацем-пояснением, перед «Что тебе сейчас ближе?» — золотая горизонтальная линия
     и под ней вертикальная, как перед «Обо мне»; линия того же цвета, что между актами, вертикальная — как .manifest::before */
  .hero-rule { display: block; order: 6; margin-top: 32px; border-top: 1px solid rgba(201, 161, 93, .35); }
  .hero-rule::after { content: ""; display: block; width: 1px; height: 40px; margin: 28px auto 0; background: linear-gradient(180deg, transparent, var(--gold)); }
  /* и без пустоты перед «Что тебе сейчас ближе?»: под линиями нет отступа сцены, от вертикальной линии до заголовка 24 px,
     как от линии до «Обо мне» */
  .stage.has-video { padding-bottom: 0; }
  .btn, .btn-ghost { padding: 15px 24px; }

  /* подписи крупнее; ярлык направления — без рамки, чтобы рамка не ломалась на 2–3 строки */
  .eyebrow { font-size: 13.5px; }
  .roman small { font-size: 12px; }
  .tag { margin-top: 12px; padding: 0; border: 0; border-radius: 0; font-size: 12.5px; letter-spacing: .12em; line-height: 1.45; }
  .facts li { letter-spacing: .03em; } /* плашка «Танцевально-двигательная терапия» — в одну строку от 360 px */
  .card .n, .other small { font-size: 13px; }
  footer { font-size: 15px; }

  /* зона нажатия ссылок не меньше 44 px, внешне почти без изменений */
  .link { position: relative; }
  .link::before { content: ""; position: absolute; inset: -12px -6px; }
  /* телефон и Instagram — отступами, а не невидимым запасом: на узком экране они на разных строках,
     и запасы перекрыли бы друг друга; подчёркивание — линией текста, чтобы отступ его не сдвигал */
  .finale .contacts a { display: inline-block; padding: 12px 0; border-bottom: 0; white-space: nowrap; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(201, 161, 93, .5); text-underline-offset: 5px; }
  footer nav { gap: 0 20px; }
  footer nav a { display: inline-block; padding: 10px 0; }

  /* пустоты между блоками примерно на треть меньше */
  .program { padding: 24px var(--pad) 64px; }
  .program .head, .sec-head { margin-bottom: 32px; }
  .manifest { padding: 64px var(--pad) 56px; }
  .manifest::before { height: 40px; }
  .about-cols, .pull { margin-top: 32px; }
  .section { padding: 56px var(--pad); }

  /* круглая кнопка Telegram: появляется, когда кнопка первого экрана ушла вверх, у финала прячется (site.js) */
  .tg-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--red); color: var(--cream);
    box-shadow: 0 0 0 1px rgba(226, 58, 46, .5), 0 18px 40px -14px rgba(179, 32, 28, .8);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(18px) scale(.9);
    transition: opacity .35s var(--ease-out), transform .5s var(--spring), visibility 0s linear .35s;
  }
  .tg-float.is-shown { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .35s var(--ease-out), transform .5s var(--spring), visibility 0s; }
  .tg-float:active { transform: scale(.94); transition: transform .08s ease-out; }
  .tg-float svg { width: 26px; height: 26px; margin-left: -2px; fill: currentColor; }
}
/* узкие экраны (Android 360 px, старые iPhone SE, iPhone в режиме «Увеличенный»):
   заголовок первого экрана держится в две строки, иначе кнопка уходит за экран;
   «ПОЧУВСТВОВАТЬ» влезает в колонку рядом с фото */
@media (max-width: 389px) {
  h1 { font-size: min(52px, 14vw); }
  .act h3 { font-size: calc(17vw - 28px); }
}
@media (max-width: 374px) {
  .logo { padding-block: 7px; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
