/* ==========================================================================
   Старлайт — детская студия актёрского мастерства
   Визуальный язык: тёмный «занавес» + белая бумага, крупная строчная типографика,
   коралловые рисованные линии, круглые фото-«медальоны», пастельные плашки.
   ========================================================================== */

/* ---------- токены ---------- */
:root {
  --ink: #121212;
  --ink-80: rgba(18, 18, 18, .8);
  --ink-55: rgba(18, 18, 18, .55);
  --ink-30: rgba(18, 18, 18, .3);
  --ink-12: rgba(18, 18, 18, .12);

  --paper: #ffffff;
  --cream: #fff5ef;

  --coral: #f95d51;
  --coral-soft: #ff8562;
  --peri: #9596ff;
  --violet: #6946e8;
  --green: #62c584;
  --purple: #9c4ade;
  --yellow: #fab512;

  /* цвета фирменного знака — сняты пипеткой с логотипа */
  --logo-blue: #148cc8;
  --logo-yellow: #cfc121;
  --logo-green: #27b151;
  --logo-crimson: #ca1a5a;

  --tint-blue: #eff6ff;
  --tint-mint: #ecfff5;
  --tint-lilac: #f5efff;
  --tint-cream: #fff5ef;

  --r-card: 15px;
  --r-btn: 10px;
  --r-pill: 100px;

  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.62 'Onest', 'Golos Text', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: .98; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--coral); color: #fff; }

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

/* крупный строчный дисплей — сигнатура референса */
.display { text-transform: lowercase; font-weight: 800; }
.display em { font-style: normal; color: var(--coral); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--coral);
}

.lead { font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-55); max-width: 56ch; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 30px;
  border-radius: var(--r-btn);
  background: var(--peri);
  color: #fff;
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 17px);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.15;
  text-align: center;
  transition: transform .18s, background .18s, box-shadow .18s;
  box-shadow: 0 10px 0 -4px rgba(149, 150, 255, .35);
}
.btn:hover { background: var(--violet); transform: translateY(-2px); box-shadow: 0 14px 0 -4px rgba(105, 70, 232, .3); }
.btn:active { transform: translateY(0); }

.btn--coral { background: var(--coral); box-shadow: 0 10px 0 -4px rgba(249, 93, 81, .3); }
.btn--coral:hover { background: #e04539; box-shadow: 0 14px 0 -4px rgba(249, 93, 81, .28); }

.btn--dark { background: var(--ink); box-shadow: 0 10px 0 -4px rgba(18, 18, 18, .2); }
.btn--dark:hover { background: #000; }

.btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink-12);
}
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }

.btn--sm { padding: 13px 20px; font-size: 13px; border-radius: 8px; box-shadow: none; }
.btn--sm:hover { box-shadow: none; }

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: 18px 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.head.is-stuck {
  background: rgba(18, 18, 18, .92);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.head__in { display: flex; align-items: center; gap: 20px; position: relative; }

.logo { display: flex; align-items: center; gap: 11px; color: #fff; flex: 0 0 auto; }
.logo__mark { width: 38px; height: 38px; flex: none; object-fit: contain; transition: width .3s, height .3s; }
.head.is-stuck .logo__mark { width: 32px; height: 32px; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; text-transform: lowercase; }
.logo__txt small { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .55; margin-top: 4px; }

.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a {
  padding: 8px 12px; border-radius: var(--r-pill);
  font-size: 14px; color: rgba(255, 255, 255, .78); text-transform: lowercase;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav a:hover, .nav a.is-active { background: rgba(255, 255, 255, .12); color: #fff; }

.head__phone { font-size: 14px; color: #fff; white-space: nowrap; opacity: .9; }
.head__phone:hover { color: var(--coral); }

.head__cta { flex: none; }

.burger { display: none; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 11px; width: 20px; height: 2px; border-radius: 2px;
  background: #fff; transition: .25s;
}
.burger span { top: 20px; }
.burger::before { top: 14px; }
.burger::after { top: 26px; }
.head.is-open .burger span { opacity: 0; }
.head.is-open .burger::before { top: 20px; transform: rotate(45deg); }
.head.is-open .burger::after { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   ГЕРОЙ — тёмный занавес
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(118px, 14vw, 178px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  left: 50%; top: 6%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(149, 150, 255, .17), transparent 62%);
}

.hero__top { position: relative; z-index: 2; text-align: center; }

.hero h1 {
  font-size: clamp(40px, 9.6vw, 132px);
  text-transform: lowercase;
  line-height: .92;
}
.hero__sub {
  margin-top: clamp(10px, 1.4vw, 20px);
  /* держим подзаголовок в одну строку на любой ширине */
  font-size: clamp(14px, 4.1vw, 44px);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, .92);
}

/* завитушки в пустой полосе над заголовком по краям — букв не касаются */
.hero__scribble {
  position: absolute; z-index: 1; color: var(--coral-soft); pointer-events: none;
  width: clamp(92px, 9vw, 160px); top: clamp(-96px, -7vw, -60px);
}
.hero__scribble--a { right: 0; }
.hero__scribble--b { left: 0; transform: scaleX(-1); }   /* зеркально правой */

.hero__cta {
  position: relative; z-index: 2;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: clamp(22px, 3vw, 34px);
}

/* --- созвездие: медальоны + подписи --- */
.constel {
  position: relative; z-index: 2;
  max-width: 1180px; margin: clamp(26px, 4vw, 50px) auto 0;
  /* пропорции совпадают с viewBox линии — тогда точки всегда лежат на пунктире */
  aspect-ratio: 1180 / 540;
  container-type: inline-size;
}

/* цветное свечение за круглыми кадрами */
.constel__glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(46px); }
.constel__glow--warm {
  width: 32%; aspect-ratio: 1; right: 3%; top: -2%;
  background: radial-gradient(circle, rgba(255, 156, 40, .55), rgba(255, 90, 20, 0) 70%);
}
.constel__glow--cool {
  width: 30%; aspect-ratio: 1; left: 4%; bottom: -4%;
  background: radial-gradient(circle, rgba(92, 116, 255, .5), rgba(60, 60, 210, 0) 70%);
}
.constel__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.constel__lines path { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 2; stroke-dasharray: 7 10; stroke-linecap: round; }

.orb {
  position: absolute; margin: 0; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
}
.orb--a { width: 21.7%; left: 70.5%; top: 4%; }
.orb--b { width: 20%; left: 11.2%; top: 52%; }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.orb::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .14);
}

/* Подпись «висит» на своей точке: js ставит её ровно в точку пунктира,
   а текст уходит вверх или вниз — линию он не пересекает. */
.note {
  position: absolute; width: 21cqw; text-align: center;
  font-size: 1.16cqw; font-weight: 700; line-height: 1.32;
  letter-spacing: .045em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}
.note[data-side="up"] { transform: translate(calc(-50% + var(--dx, 0px)), -100%); padding-bottom: 2.1cqw; }
.note[data-side="down"] { transform: translate(calc(-50% + var(--dx, 0px)), 0); padding-top: 2.1cqw; }

.note i {
  position: absolute; left: calc(50% - var(--dx, 0px));
  width: .95cqw; height: .95cqw; margin-left: -.475cqw;
  border-radius: 30%; background: var(--logo-yellow);
  box-shadow: 0 0 1.4cqw .35cqw rgba(207, 193, 33, .6);
}
.note[data-side="up"] i { bottom: -.475cqw; }
.note[data-side="down"] i { top: -.475cqw; }

/* мобильный вариант созвездия */
.constel__mob { display: none; }

/* --- волна-переход --- */
.hero__wave { position: relative; z-index: 3; margin-top: clamp(24px, 4vw, 54px); }
.wave { display: block; width: 100%; height: clamp(34px, 5.5vw, 84px); }
.wave path { fill: var(--paper); }
.wave--cream path { fill: var(--cream); }
.wave--ink path { fill: var(--ink); }
/* фон самой полосы = цвет секции, из которой выходим */
.wave--on-ink { background: var(--ink); }
.wave--on-cream { background: var(--cream); }
.wave--on-paper { background: var(--paper); }

/* --- бегущая строка --- */
.marquee {
  background: var(--coral); color: #fff;
  padding: 13px 0; overflow: hidden; white-space: nowrap;
  position: relative; z-index: 4;
}
.marquee__track { display: inline-flex; align-items: center; animation: run 46s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 30px; padding-right: 30px;
  font-size: 14px; text-transform: lowercase;
}
.marquee__track span::after {
  content: ''; flex: none; width: 11px; height: 11px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.7 4.2 1.3 6.6 2.4 8.1 1.1 1.5 3.2 2.4 7.3 3.4-4.1 1-6.2 1.9-7.3 3.4-1.1 1.5-1.7 3.9-2.4 8.1-.7-4.2-1.3-6.6-2.4-8.1-1.1-1.5-3.2-2.4-7.3-3.4 4.1-1 6.2-1.9 7.3-3.4C10.7 6.6 11.3 4.2 12 0z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.7 4.2 1.3 6.6 2.4 8.1 1.1 1.5 3.2 2.4 7.3 3.4-4.1 1-6.2 1.9-7.3 3.4-1.1 1.5-1.7 3.9-2.4 8.1-.7-4.2-1.3-6.6-2.4-8.1-1.1-1.5-3.2-2.4-7.3-3.4 4.1-1 6.2-1.9 7.3-3.4C10.7 6.6 11.3 4.2 12 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}
@keyframes run { to { transform: translateX(-50%); } }

/* ==========================================================================
   СЕКЦИИ
   ========================================================================== */
.sec { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.sec--cream { background: var(--cream); }
.sec--ink { background: var(--ink); color: #fff; }
.sec--flush { padding-top: 0; }
.sec--tight { padding-bottom: clamp(36px, 5vw, 64px); }

.sec__head { margin-bottom: clamp(28px, 4vw, 52px); }
.sec__head h2 { font-size: clamp(30px, 5.2vw, 66px); }
.sec--ink .sec__head h2 { color: #fff; }
.sec__head .lead { margin-top: 16px; }
.sec--ink .lead { color: rgba(255, 255, 255, .62); }
.sec__head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 60px); align-items: end; }
.sec__head--split .lead { margin-top: 0; }
/* для длинных заголовков: строка во всю ширину, подводка — слева под ней */
.sec__head--wide h2 { font-size: clamp(28px, 4.8vw, 60px); }
.sec__head--wide .lead { margin-top: clamp(18px, 2vw, 26px); }

/* ==========================================================================
   МЕТОДОЛОГИЯ
   ========================================================================== */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* карточки на фотографиях со сцены — чтобы блок не был сплошным текстом */
.method__item {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-card); padding: clamp(26px, 2.8vw, 38px);
  color: #fff;
  background: #1a1a1a center / cover no-repeat;
}
.method__item::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(165deg, rgba(18, 18, 18, .58) 0%, rgba(18, 18, 18, .82) 55%, rgba(18, 18, 18, .92) 100%);
}
.method__item:nth-child(1) { background-image: url('../img/method/01.jpg'); }
.method__item:nth-child(2) { background-image: url('../img/method/02.jpg'); }
.method__item:nth-child(3) { background-image: url('../img/method/03.jpg'); }
.method__item:nth-child(4) { background-image: url('../img/method/04.jpg'); }
.method__item:nth-child(5) { background-image: url('../img/method/05.jpg'); }
.method__item:nth-child(6) { background-image: url('../img/method/06.jpg'); }

.method__n {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .18);
  font-size: 13px; font-weight: 700; color: #fff;
}
.method__item h3 { margin: 16px 0 12px; font-size: clamp(19px, 1.9vw, 26px); text-transform: lowercase; }
.method__item p { font-size: 14.5px; color: rgba(255, 255, 255, .82); }

/* три базовых блока */
.pillars { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillars__head { border-radius: var(--r-card); background: var(--ink); color: #fff; padding: clamp(24px, 2.6vw, 34px); }
.pillars__head h3 { margin: 12px 0 14px; font-size: clamp(24px, 2.6vw, 34px); }
.pillars__head p { font-size: 14.5px; color: rgba(255, 255, 255, .6); }
.pillars__head { display: flex; flex-direction: column; }
.pillars__arrow { margin-top: auto; padding-top: 24px; color: var(--coral); }
.pillars__arrow svg { width: 100px; display: block; }

.pillar { border-radius: var(--r-card); padding: clamp(24px, 2.6vw, 34px); color: #fff; }
.pillar--1 { background: var(--peri); }
.pillar--2 { background: var(--green); }
.pillar--3 { background: var(--purple); }
.pillar__n {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
  margin-bottom: 16px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .22); font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.pillar h4 { font-size: clamp(19px, 1.9vw, 25px); text-transform: lowercase; }
.pillar p { margin-top: 14px; font-size: 14.5px; color: rgba(255, 255, 255, .9); }

/* ==========================================================================
   ЦЕЛЬ / МИССИЯ
   ========================================================================== */
.goal { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 54px); align-items: start; }
.goal__side h2 { font-size: clamp(28px, 4vw, 56px); text-transform: lowercase; margin-top: 12px; }
.goal__q {
  margin-top: 22px; font-size: clamp(18px, 1.8vw, 23px); font-weight: 300; line-height: 1.35;
  padding-left: 20px; border-left: 2px solid var(--coral); color: rgba(255, 255, 255, .92);
}
/* кадр горизонтальный — контейнер под него, иначе действие уезжает за границу */
.goal__ph { margin-top: 28px; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16/10; }
.goal__ph img { width: 100%; height: 100%; object-fit: cover; }
.goal__list { display: grid; gap: 12px; align-content: start; }
.goal__list li {
  border-radius: var(--r-card); background: rgba(255, 255, 255, .06);
  padding: clamp(22px, 2.4vw, 30px); font-size: 14.5px; color: rgba(255, 255, 255, .68);
}
.goal__list b {
  display: block; margin-bottom: 10px; font-size: clamp(18px, 1.9vw, 24px); font-weight: 700;
  letter-spacing: -.02em; color: #fff; text-transform: lowercase;
}

/* ==========================================================================
   ПЕДАГОГИ (тёмный блок)
   ========================================================================== */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.teacher__q {
  min-height: 4.2em; font-size: clamp(16px, 1.5vw, 21px); font-weight: 300; line-height: 1.3;
  color: rgba(255, 255, 255, .92);
}
.teacher__ph {
  margin-top: 20px; border-radius: 50%; overflow: hidden; aspect-ratio: 1;
  /* у присланных портретов уже есть собственная светлая окантовка — свою не рисуем */
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.teacher__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.teacher:hover .teacher__ph img { transform: scale(1.05); }
.teacher h3 { margin-top: 20px; font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.teacher__role { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.teacher__addr { margin-top: 12px; display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.teacher__addr svg { width: 14px; flex: none; color: var(--coral); }

/* ==========================================================================
   ГРУППЫ ПО ВОЗРАСТУ
   ========================================================================== */
.ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.age { border-radius: var(--r-card); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; color: #fff; }
.age--1 { background: var(--peri); }
.age--2 { background: var(--green); }
.age--3 { background: var(--purple); }
.age__n { font-size: clamp(38px, 5.4vw, 74px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.age__n span { display: block; font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; opacity: .85; margin-top: 8px; }
.age h3 { margin-top: 22px; font-size: clamp(20px, 2vw, 27px); text-transform: lowercase; }
.age > p { margin-top: 12px; font-size: 14.5px; color: rgba(255, 255, 255, .88); }
.age ul { margin-top: 18px; display: grid; gap: 8px; }
.age li { position: relative; padding-left: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .82); line-height: 1.5; }
.age li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .75); }
.age li b { font-weight: 600; color: #fff; }
.age__foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.age__price { font-size: clamp(19px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; }
.age__price span { display: block; font-size: 12.5px; font-weight: 400; opacity: .8; letter-spacing: 0; }
.age .btn { background: #fff; color: var(--ink); box-shadow: none; }
.age .btn:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   ПОРТФОЛИО
   ========================================================================== */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); }

.pf-card {
  display: block; width: 100%; text-align: left; padding: 0;
  border-radius: var(--r-card); overflow: hidden; background: var(--tint-blue);
  transition: transform .25s, box-shadow .25s;
}
.sec--ink .pf-card, .pf-page .pf-card { background: rgba(255, 255, 255, .06); }
.pf-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.pf-card__ph { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #2a2a2a; }
.pf-card__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.pf-card:hover .pf-card__ph img { transform: scale(1.06); }
.pf-card__kind {
  position: absolute; left: 12px; top: 12px;
  background: var(--coral); color: #fff;
  padding: 7px 13px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.pf-card__play {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.pf-card__play::before {
  content: ''; width: 0; height: 0; margin-left: 3px;
  border: 7px solid transparent; border-left: 11px solid var(--ink);
}
.pf-card:hover .pf-card__play { background: var(--coral); transform: scale(1.08); }
.pf-card:hover .pf-card__play::before { border-left-color: #fff; }

.pf-card__body { padding: 18px 20px 22px; }
.pf-card__name { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.02em; }
.sec--ink .pf-card__name, .pf-page .pf-card__name { color: #fff; }
.pf-card__role { margin-top: 6px; font-size: 14px; color: var(--ink-55); }
.sec--ink .pf-card__role, .pf-page .pf-card__role { color: rgba(255, 255, 255, .55); }
.pf-card__role b { display: block; font-weight: 500; color: var(--coral); }
.pf-card__open { margin-top: 14px; display: inline-block; font-size: 13px; font-weight: 600; color: var(--coral); }

.pf-more { margin-top: clamp(26px, 3.4vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pf-more p { color: rgba(255, 255, 255, .55); font-size: 14.5px; }

/* поиск по ученикам */
.pf-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px);
}
.pf-search {
  position: relative; display: flex; align-items: center; gap: 12px;
  flex: 1 1 320px; max-width: 460px;
  padding: 0 20px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12);
  transition: box-shadow .2s;
}
.pf-search:focus-within { box-shadow: inset 0 0 0 1.5px var(--coral); }
.pf-search svg { width: 19px; flex: none; color: rgba(255, 255, 255, .45); }
.pf-search input {
  flex: 1; min-width: 0; padding: 15px 0; border: 0; background: none; color: #fff; font-size: 15px;
}
.pf-search input::placeholder { color: rgba(255, 255, 255, .4); }
.pf-search input:focus { outline: none; }
.pf-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.pf-count { font-size: 14px; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.pf-empty { color: rgba(255, 255, 255, .5); padding: 40px 0; }

.pf-page { background: var(--ink); color: #fff; padding-bottom: clamp(60px, 8vw, 110px); }
.pf-hero { background: var(--ink); color: #fff; padding: clamp(118px, 14vw, 172px) 0 clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.pf-hero h1 { font-size: clamp(36px, 7vw, 92px); text-transform: lowercase; }
.pf-hero .lead { margin-top: 18px; color: rgba(255, 255, 255, .6); }
.pf-back { display: inline-block; margin-bottom: 20px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.pf-back:hover { color: var(--coral); }

/* ==========================================================================
   ЛЕНТА КАДРОВ СО СЦЕНЫ
   ========================================================================== */
.gal { background: var(--ink); color: #fff; padding: clamp(30px, 4vw, 56px) 0 clamp(40px, 5vw, 70px); }
.gal__head { margin-bottom: clamp(22px, 3vw, 34px); }
.gal__head h2 { font-size: clamp(26px, 4vw, 52px); }

.gal__strip {
  overflow: hidden; width: 100%;
  display: grid; gap: clamp(10px, 1.1vw, 14px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gal__track { display: flex; gap: clamp(10px, 1.1vw, 14px); width: max-content; animation: gal-run 62s linear infinite; }
/* вторая строка идёт медленнее и со сдвигом, чтобы кадры не шли ровным строем */
.gal__track--slow { animation-duration: 88s; animation-delay: -18s; }
.gal__strip:hover .gal__track { animation-play-state: paused; }
@keyframes gal-run { to { transform: translateX(calc(-50% - clamp(5px, .55vw, 7px))); } }

.gal__item {
  flex: none; height: clamp(120px, 14vw, 200px); padding: 0;
  border-radius: 12px; overflow: hidden; background: #1d1d1d;
  transition: transform .25s, box-shadow .25s;
}
.gal__item img { height: 100%; width: 100%; display: block; object-fit: cover; }
.gal__item:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }

/* просмотр кадра */
.lightbox { position: fixed; inset: 0; z-index: 220; display: none; place-items: center; padding: clamp(16px, 4vw, 48px); }
.lightbox.is-open { display: grid; }
.lightbox__veil { position: absolute; inset: 0; background: rgba(8, 8, 8, .92); }
.lightbox img {
  position: relative; max-width: 100%; max-height: 88vh; width: auto;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: pop .3s ease;
}
.lightbox__close {
  position: absolute; right: 18px; top: 18px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 17px;
  display: grid; place-items: center; transition: .2s;
}
.lightbox__close:hover { background: var(--coral); }
.lightbox__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1;
  display: grid; place-items: center; transition: .2s;
}
.lightbox__arrow:hover { background: var(--coral); }
.lightbox__arrow--prev { left: clamp(10px, 2vw, 28px); }
.lightbox__arrow--next { right: clamp(10px, 2vw, 28px); }

/* ==========================================================================
   РАСПИСАНИЕ
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 32px); }
.tab {
  padding: 13px 22px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink-55);
  box-shadow: inset 0 0 0 1.5px var(--ink-12);
  font-size: 14px; transition: .2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; box-shadow: none; }

.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.group { background: #fff; border-radius: var(--r-card); padding: 26px; }
.group__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.group__age { font-size: clamp(21px, 2.1vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.group__name { font-size: 13.5px; color: var(--ink-30); margin-top: 2px; }
.group__seats {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--tint-mint); color: #2e7d51; white-space: nowrap;
}
.group__seats--none { background: #ffeceb; color: #c33; }
.group__days { margin: 20px 0 22px; display: grid; gap: 9px; }
.group__days li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 9px; border-bottom: 1px dashed var(--ink-12); }
.group__days li:last-child { border: 0; padding-bottom: 0; }
.group__days b { font-weight: 500; }
.group__days time { color: var(--ink-55); }
.group .btn { width: 100%; }
.sched-note { margin-top: 24px; font-size: 14px; color: var(--ink-55); }

/* ==========================================================================
   СТОИМОСТЬ
   ========================================================================== */
.tariff { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; align-items: start; }
.tariff__main { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: clamp(28px, 3.4vw, 46px); }
.tariff__sum { margin-top: 14px; font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tariff__per { margin-top: 10px; font-size: clamp(15px, 1.5vw, 18px); color: rgba(255, 255, 255, .6); }
.tariff__main ul { margin: 28px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.tariff__main li { position: relative; padding-left: 24px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.tariff__main li::before { content: ''; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; background: var(--coral); border-radius: 50%; }
.tariff__side { display: grid; gap: 14px; }
.tariff__card { border-radius: var(--r-card); padding: clamp(24px, 2.6vw, 32px); }
.tariff__card--a { background: var(--tint-lilac); }
.tariff__card--b { background: var(--tint-mint); }
.tariff__card h4 { font-size: clamp(20px, 2.2vw, 28px); text-transform: lowercase; }
.tariff__card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-55); }
.tariff__card b { display: block; margin-top: 14px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.02em; }

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
/* отзывы разной длины — раскладываем колонками, чтобы не было дыр */
.reviews { columns: 3; column-gap: 14px; }
.review {
  break-inside: avoid; margin-bottom: 14px;
  border-radius: var(--r-card); padding: 30px 26px; background: #fff;
}
.review__mark { color: var(--coral); font-size: 40px; line-height: .6; font-weight: 800; }
.review__text { margin-top: 14px; font-size: 15px; color: var(--ink-80); }
.review__who { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.review__ava {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--peri); color: #fff;
  font-weight: 700; font-size: 17px;
}
.review:nth-child(3n+2) .review__ava { background: var(--green); }
.review:nth-child(3n+3) .review__ava { background: var(--purple); }
.review__text { white-space: pre-line; }
.review__who b { display: block; font-size: 15px; font-weight: 600; }
.review__who span { font-size: 13px; color: var(--ink-55); }

/* ==========================================================================
   ФОРМА
   ========================================================================== */
.trial {
  border-radius: var(--r-card); overflow: hidden;
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: .85fr 1.15fr;
}
.trial__side { padding: clamp(30px, 4vw, 56px); }
.trial__side h2 { font-size: clamp(28px, 3.6vw, 50px); text-transform: lowercase; margin-top: 14px; }
.trial__side > p { margin-top: 18px; color: rgba(255, 255, 255, .65); font-size: 15px; }
.trial__list { margin-top: 26px; display: grid; gap: 12px; }
.trial__list li { position: relative; padding-left: 26px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.trial__list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }

.form { background: #fff; color: var(--ink); padding: clamp(26px, 3.4vw, 46px); display: grid; gap: 16px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; color: var(--ink-55); }
.field__hint { font-size: 12.5px; color: var(--coral); font-weight: 500; min-height: 16px; }
.field select:disabled { color: var(--ink-30); background: #fafafa; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: var(--r-btn);
  border: 1.5px solid var(--ink-12); background: #fff;
  font-size: 15px; transition: border-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--peri); }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink-55); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--coral); flex: none; }
.check a { text-decoration: underline; }
.form .btn { width: 100%; }
.form__msg { font-size: 14px; min-height: 20px; }
.form__msg--ok { color: #2e7d51; }
.form__msg--err { color: var(--coral); }

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */
.contacts { display: grid; grid-template-columns: 1.3fr .7fr; gap: 14px; }
.branches { display: grid; gap: 12px; align-content: start; }
.branch { display: flex; gap: 14px; align-items: flex-start; background: var(--tint-blue); border-radius: var(--r-card); padding: 22px 24px; }
.branch:nth-child(2) { background: var(--tint-mint); }
.branch:nth-child(3) { background: var(--tint-lilac); }
.branch svg { width: 20px; flex: none; margin-top: 3px; color: var(--coral); }
.branch b { display: block; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; letter-spacing: -.01em; }
.branch span { font-size: 13.5px; color: var(--ink-55); }
.map { border-radius: var(--r-card); overflow: hidden; height: clamp(240px, 30vw, 330px); background: var(--tint-cream); }
.map iframe { width: 100%; height: 100%; border: 0; }

.contact-card { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: clamp(26px, 3vw, 38px); align-self: start; }
.contact-card dl { display: grid; gap: 22px; margin: 0; }
.contact-card dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.contact-card dd { margin: 7px 0 0; font-size: 15px; }
.contact-card dd.big { font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.contact-card dd a:hover { color: var(--coral); }
.socials { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 10px 18px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .1); font-size: 13.5px; transition: .2s; }
.socials a:hover { background: var(--coral); }

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.foot { background: #111; color: rgba(255, 255, 255, .6); padding: clamp(40px, 5vw, 64px) 0 28px; }
.foot__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot__logo { flex: none; }
.foot__logo img { width: clamp(120px, 13vw, 168px); height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px; }
.foot nav a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; text-transform: lowercase; transition: .2s; }
.foot nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.foot__bottom { margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .4); }
.foot__bottom a:hover { color: #fff; }

/* ==========================================================================
   ПОПАП — «программка»
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; padding: 24px; overflow-y: auto; }
.modal.is-open { display: grid; }
.modal__veil { position: fixed; inset: 0; background: rgba(10, 10, 10, .78); backdrop-filter: blur(5px); }
.modal__box {
  position: relative; width: min(1120px, 100%); background: #fff; color: var(--ink);
  border-radius: var(--r-card); overflow: hidden; animation: pop .3s ease;
  /* именно margin: auto, а не place-items: center — иначе высокий попап
     обрезается сверху и до кнопки «закрыть» не добраться */
  margin: auto;
  /* попап никогда не выше экрана: прокручивается его содержимое,
     а кнопка «закрыть» всегда остаётся на виду */
  display: flex; flex-direction: column;
  max-height: calc(100dvh - 48px);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal__close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  font-size: 16px; display: grid; place-items: center; transition: .2s;
}
.modal__close:hover { background: var(--coral); color: #fff; }

/* слева — крупное фото и выбор кадров, справа — видео и текст */
.prog { display: grid; grid-template-columns: 1.05fr .95fr; flex: 1 1 auto; min-height: 0; overflow-y: auto; }

.prog__left { background: #f2f2f2; padding: clamp(16px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 12px; }
.prog__stage {
  aspect-ratio: 4/5; max-height: calc(88vh - 130px);
  border-radius: 12px; overflow: hidden; background: #e4e4e4;
}
.prog__stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prog__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.prog__thumb {
  flex: none; width: clamp(58px, 6vw, 76px); aspect-ratio: 4/5; padding: 0;
  border-radius: 9px; overflow: hidden; opacity: .55;
  transition: opacity .2s, box-shadow .2s;
}
.prog__thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog__thumb:hover { opacity: .85; }
.prog__thumb.is-active { opacity: 1; box-shadow: 0 0 0 2.5px var(--coral); }

.prog__right { padding: clamp(24px, 3vw, 40px); }
.prog__kind { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--coral); font-weight: 600; }
.prog__name { margin-top: 12px; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.03em; }
.prog__meta { margin: 22px 0 0; display: grid; gap: 14px; }
.prog__meta dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-30); }
.prog__meta dd { margin: 5px 0 0; font-size: 16px; font-weight: 500; }
.prog__desc { margin-top: 22px; font-size: 15px; color: var(--ink-80); }

.prog__video { margin-top: 22px; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.prog__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.prog__video--soon {
  display: grid; place-items: center; background: var(--tint-blue);
  color: var(--ink-55); font-size: 14px;
}

.prog__share {
  margin-top: 16px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 18px; border-radius: var(--r-btn);
  box-shadow: inset 0 0 0 1.5px var(--ink-12);
  font-size: 13.5px; color: var(--ink-55); transition: .2s;
}
.prog__share svg { width: 17px; flex: none; }
.prog__share:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-30); }
.prog__share.is-done { color: #2e7d51; box-shadow: inset 0 0 0 1.5px rgba(46, 125, 81, .4); }
/* запасной вариант: ссылка показана текстом, её можно выделить и скопировать вручную */
.prog__share.is-manual { user-select: all; font-size: 12.5px; word-break: break-all; }

.prog__nav { margin-top: 12px; display: flex; gap: 10px; }
.prog__nav button { flex: 1; padding: 13px; border-radius: var(--r-btn); font-size: 13.5px; box-shadow: inset 0 0 0 1.5px var(--ink-12); transition: .2s; }
.prog__nav button:hover:not(:disabled) { background: var(--ink); color: #fff; box-shadow: none; }
.prog__nav button:disabled { opacity: .32; cursor: default; }

/* ==========================================================================
   ТОСТ
   ========================================================================== */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--ink); color: #fff;
  border-radius: var(--r-card); padding: 24px 24px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(20px); transition: opacity .45s, transform .45s;
}
.toast.is-open { opacity: 1; transform: none; }
.toast__close { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; color: rgba(255, 255, 255, .6); }
.toast__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.toast h4 { font-size: 21px; text-transform: lowercase; padding-right: 26px; }
.toast p { margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.toast form { margin-top: 16px; display: grid; gap: 9px; }
.toast input {
  padding: 13px 15px; border-radius: var(--r-btn);
  border: 1.5px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 14px;
}
.toast input::placeholder { color: rgba(255, 255, 255, .4); }
.toast input:focus { outline: none; border-color: var(--coral); }
.toast .btn { width: 100%; }
.toast__msg { font-size: 13px; min-height: 18px; }
.toast__msg--ok { color: #7fdba5; }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
/* схема — композиция для широкого экрана; ниже 1000px показываем простую стопку */
@media (max-width: 1000px) {
  .constel { aspect-ratio: auto; container-type: normal; }
  .constel__lines, .constel__glow, .orb, .note { display: none; }
  .constel__mob { display: block; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .head__in { justify-content: space-between; }
  .head__phone { display: none; }
  .head.is-open .nav {
    display: grid; position: absolute; left: var(--gut); right: var(--gut); top: calc(100% + 16px);
    background: var(--ink); border-radius: var(--r-card); padding: 12px; gap: 2px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  }
  .head.is-open .nav a { color: rgba(255, 255, 255, .82); padding: 13px 16px; }

  .teachers { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pf-grid, .groups { grid-template-columns: repeat(2, 1fr); }
  .reviews { columns: 2; }
  .tariff { grid-template-columns: 1fr; }
  .tariff__side { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .trial { grid-template-columns: 1fr; }
  .ages { grid-template-columns: 1fr; }
  .goal { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .sec__head--split { grid-template-columns: 1fr; align-items: start; }
  .method { grid-template-columns: 1fr; }
  .prog { grid-template-columns: 1fr; }
  .prog__stage { aspect-ratio: 4/5; max-height: none; }
  .tariff__main ul { grid-template-columns: 1fr; }

  /* на узком экране рисованные завитки налезают на заголовок — убираем */
  .hero__scribble { display: none; }

  .constel__mobrow { display: flex; gap: 10px; justify-content: center; }
  .constel__mobrow figure { margin: 0; width: 30%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
  .constel__mobrow img { width: 100%; height: 100%; object-fit: cover; }
  /* плашки одного размера, в две колонки; окантовка — цвета фирменного знака */
  .constel__notes { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .constel__notes span {
    display: grid; place-items: center; text-align: center;
    min-height: 46px; padding: 8px 10px;
    border-radius: var(--r-pill); background: rgba(255, 255, 255, .06);
    border: 1.5px solid var(--logo-blue);
    font-size: 11.5px; font-weight: 500; line-height: 1.25;
    letter-spacing: .01em; color: rgba(255, 255, 255, .92);
  }
  .constel__notes span:nth-child(4n+2) { border-color: var(--logo-green); }
  .constel__notes span:nth-child(4n+3) { border-color: var(--logo-yellow); }
  .constel__notes span:nth-child(4n+4) { border-color: var(--logo-crimson); }
}

@media (max-width: 560px) {
  .head__cta { display: none; }
  .teachers, .pillars, .pf-grid, .groups { grid-template-columns: 1fr; }
  .reviews { columns: 1; }
  .tariff__side { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .pf-bar { flex-direction: column; align-items: stretch; }
  /* в колоночной раскладке flex-basis ушёл бы в высоту и раздул поле поиска */
  .pf-search { flex: none; max-width: none; }
  .toast { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .modal { padding: 0; }
  .modal__box { border-radius: 0; min-height: 100dvh; max-height: 100dvh; }
  .modal__close { background: rgba(18, 18, 18, .82); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
  .foot__top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .gal__track { animation: none; }
  .gal__strip { overflow-x: auto; }
}
