/* РепеТитор — тёмный «сценический» стиль */
:root{
  /* Фон сайта. Задан числами, чтобы полупрозрачная шапка брала тот же цвет
     отсюда же — иначе при правке фона она бы осталась прежнего оттенка. */
  --bg-rgb:12,11,9;
  --bg:rgb(var(--bg-rgb));
  --bg-card:rgb(var(--bg-card-rgb));
  --bg-card-rgb:23,21,18;
  --ink:#f5f1ea;
  --bg-footer:#000;
  --bg-photo:#26221d;
  --ink-dim:rgba(var(--ink-rgb),.72);
  --ink-faint:rgba(var(--ink-rgb),.6);
  --accent:#ff6a1a;
  --accent-text:var(--accent);
  --on-accent:#0c0b09;
  --line:rgba(var(--fg-rgb),.09);
  --fg-rgb:255,255,255;      /* накладки поверх фона: кромки, плашки */
  --ink-rgb:245,241,234;     /* цвет текста, от него берут прозрачность */
  /* Шрифтовая система по ролям.
     --display — фирменный акцент, только главные заголовки страниц.
     --text    — всё остальное: секции, текст, подписи, цифры. */
  --display:'Unbounded',sans-serif;
  /* Manrope — геометрический гротеск с широкими округлыми буквами.
     Раньше здесь стоял системный шрифт: на Windows это Segoe UI, поэтому
     сколько его ни «меняй», вид оставался прежним. Manrope скачивается
     и выглядит одинаково на всех устройствах. */
  --text:'Manrope','Segoe UI',Roboto,system-ui,Arial,sans-serif;
  color-scheme:dark;
}
/* Цвет задаём и напрямую: заголовок внутри карточки — это <strong>
   внутри <a>, он наследует цвет от body, а не от наших переменных. */

*{box-sizing:border-box}
/* Скрытие через атрибут hidden. Нужно !important: у кнопок и картинок
   свой display в стилях, и он перебивал бы стандартное скрытие. */
[hidden]{display:none !important}
html{scroll-behavior:smooth;-webkit-tap-highlight-color:rgba(255,106,26,.22)}
/* Убирает задержку ~300мс перед срабатыванием нажатия на телефоне */
a,button,input,select,textarea,summary,label,.chip-btn,.branch-tab{touch-action:manipulation}
/* Длинные русские слова в заголовках не должны распирать страницу */
h1,h2,h3,strong{overflow-wrap:break-word}
/* Фон страницы: цвет + едва заметная сетка точек. В промежутках между
   блоками она даёт лёгкую фактуру, под карточками её не видно. */
body{margin:0;color:var(--ink);font-family:var(--text);
  background-color:var(--bg);
  background-image:radial-gradient(circle, rgba(var(--fg-rgb),.035) 1px, transparent 1.1px);
  background-size:30px 30px;background-attachment:fixed}
a{color:inherit}

/* Header */
.site-header{display:flex;align-items:center;gap:24px;padding:18px 48px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;background:rgba(var(--bg-rgb),.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.site-header::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--accent) 0%,rgba(255,106,26,.25) 55%,transparent 100%)}
.logo{height:40px;width:auto;transition:transform .2s ease}
a:hover>.logo{transform:scale(1.05)}
.header-tag{display:flex;flex-direction:column;gap:2px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;border-left:1px solid rgba(var(--fg-rgb),.15);padding-left:18px;line-height:1.5}
.header-tag .ht-brand{color:var(--accent-text)}
.header-tag .ht-geo{color:rgba(var(--ink-rgb),.58);font-weight:600}
[id]{scroll-margin-top:96px}
.site-nav{display:flex;gap:26px;margin-left:auto;font-size:14.5px;font-weight:600;color:rgba(var(--ink-rgb),.75)}
.site-nav a{text-decoration:none;transition:color .15s;position:relative;padding:4px 0}
.site-nav a::after{content:"";position:absolute;left:0;bottom:-3px;width:100%;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.site-nav a:hover{color:var(--ink)}
.site-nav a:hover::after,.site-nav a.active::after{transform:scaleX(1)}
.site-nav a.active{color:var(--ink)}
/* Переключатель темы. Показывается та иконка, на что переключит:
   в тёмной теме — солнце, в светлой — луна. */

/* Бургер — 44×44: минимальный размер, в который уверенно попадаешь пальцем */
.burger{display:none;margin-left:auto;background:none;border:0;padding:0;cursor:pointer;
  width:44px;height:44px;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:8px}
.burger span{display:block;width:24px;height:2.5px;background:var(--ink);border-radius:2px;transition:transform .2s ease,opacity .2s ease}
/* Открытое меню — бургер превращается в крестик, видно что нажатие сработало */
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}

/* Buttons */
.btn{text-decoration:none;border-radius:999px;font-weight:800;display:inline-block;transition:background .15s,color .15s,border-color .15s,transform .18s ease,box-shadow .25s ease}
.btn-solid{background:var(--accent);color:var(--on-accent);font-size:14.5px;padding:12px 24px}
.btn-solid:hover{background:var(--ink);transform:translateY(-2px);box-shadow:0 10px 28px rgba(255,106,26,.35)}
.btn-solid:active{transform:translateY(0)}
.btn-ghost{border:2px solid rgba(var(--ink-rgb),.3);color:var(--ink);font-weight:700;padding:14px 28px}
.btn-ghost:hover{color:var(--accent-text);transform:translateY(-2px)}
.btn-ghost:active{transform:translateY(0)}
.btn-lg{font-size:16px;padding:16px 30px}
.btn-ghost.btn-lg{padding:14px 28px}

/* Hero */
.hero{position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(600px 400px at 85% 20%, rgba(255,106,26,.14), transparent 70%);pointer-events:none}
.hero-inner{display:grid;grid-template-columns:.92fr 1.12fr;gap:32px;padding:64px 48px 56px;max-width:1344px;margin:0 auto;position:relative}
.hero-copy{display:flex;flex-direction:column;gap:26px}
.kicker{font-family:var(--text);font-size:12px;font-weight:600;letter-spacing:.22em;color:var(--accent-text)}
.hero h1{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(36px,4.5vw,58px);line-height:1.06;text-transform:uppercase;letter-spacing:-.01em}
.hero .stroke{color:transparent;-webkit-text-stroke:2px var(--accent)}
.hero .accent{color:var(--accent-text)}
.hero p{margin:0;font-size:19px;line-height:1.55;color:var(--ink-dim);max-width:480px}
.hero-actions{display:flex;gap:14px;margin-top:6px;flex-wrap:wrap}
.hero-stats{display:flex;gap:34px;margin-top:18px;flex-wrap:wrap}
.hero-stats strong{font-family:var(--text);font-size:24px;color:var(--accent-text);display:block}
.hero-stats span{font-size:13px;color:var(--ink-faint);margin-top:4px;display:block}

/* Иллюстрация вырезана по контуру. Рамки и подложки нет — своё оформление
   (оранжевый круг, звуковая волна) уже вшито в картинку.
   Отрицательный отступ съедает нижний паддинг экрана, чтобы фигура села на ленту. */
.hero-photo{display:flex;align-items:flex-end;justify-content:flex-end;margin-bottom:-56px}
.photo-frame{position:relative;display:flex;justify-content:center;width:100%;max-width:760px}
/* Только на широких экранах, где по бокам есть свободное поле, подводим фигуру
   ближе к краю. Уже — нельзя: вылезет за экран и появится прокрутка вбок. */
@media (min-width:1400px){ .hero-photo{margin-right:-40px} }
.photo-frame img{position:relative;z-index:2;display:block;width:100%;height:auto;
  max-height:min(74vh,600px);object-fit:contain}

/* A few musical accents follow the illustration's actual proportions. */
.hero-copy{position:relative;z-index:3}
.photo-frame{isolation:isolate}
.photo-frame::before{content:"";position:absolute;inset:12% 10% 8%;z-index:0;background:radial-gradient(ellipse,#ff6a1a18,transparent 66%);pointer-events:none}
.hero-notes{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:visible;
  color:#ff8a42;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hero-note{opacity:.38}
.hero-note use{transform-box:fill-box;transform-origin:center;animation:noteFloat 8s ease-in-out infinite;animation-delay:var(--delay,0s)}
.hero-sparks circle{opacity:.25;animation:hero-spark-drift 7s ease-in-out infinite;animation-delay:var(--delay,0s)}
.hero:not(.is-playing) .hero-notes *{animation-play-state:paused}
@keyframes noteFloat{0%,100%{transform:translate(0,0) rotate(-3deg);opacity:.55}50%{transform:translate(4px,-12px) rotate(4deg);opacity:1}}
@keyframes hero-spark-drift{0%,100%{transform:translateY(3px);opacity:.18}50%{transform:translateY(-15px);opacity:.65}}
@media(min-width:1201px){
  .hero .hero-photo{margin-right:calc(-1 * clamp(32px,(100vw - 1200px)*.24,165px))}
  .hero .photo-frame{max-width:none}
  .hero .photo-frame img{max-height:none}
}
@media(prefers-reduced-motion:reduce){.hero-notes use,.hero-sparks circle{animation:none!important}}

/* Marquee */
/* Бегущая строка.
   Разметка — просто список слов. Звёздочки рисует CSS, копии добавляет
   и длину цикла считает assets/js/script.js, поэтому сдвиг всегда кратен набору
   и стыка не видно. Скорость задаётся в assets/js/script.js одним числом. */
.marquee{background:var(--accent);color:var(--on-accent);overflow:hidden;padding:13px 0;
  display:flex;user-select:none}
.marquee-track{display:flex;flex:none;
  animation:marquee var(--mq-time,40s) linear infinite}
.marquee-set{display:flex;flex:none;align-items:center;white-space:nowrap;
  font-family:var(--text);font-weight:700;font-size:15px;
  letter-spacing:.12em;text-transform:uppercase}
/* Слово и звёздочка-разделитель после него */
.marquee-set b{display:flex;align-items:center;gap:26px;
  font-weight:inherit;padding-right:26px}
.marquee-set b::after{content:"★";font-size:11px;opacity:.75}
@keyframes marquee{to{transform:translateX(calc(-1 * var(--mq-shift,50%)))}}


/* ===== «Почему РепеТитор» — слайдер =====
   Слева неподвижный текст и управление, справа лента карточек.
   Лента двигается transform'ом: он не вызывает пересчёт вёрстки,
   поэтому прокрутка остаётся плавной даже на слабых телефонах. */
/* Вторая цифра — доля слайдера. Больше = слайдер шире, текст слева у́же. */
.wrap.why{max-width:none;margin:0;border-top:0;
  padding:80px max(48px,calc((100% - 1248px) / 2));
  background:rgba(var(--fg-rgb),.045)}

/* Винил: пластинка с оранжевыми дорожками, на наводку доворачивается */
.vinyl-mark{position:relative;width:225px;height:125px;margin-bottom:2px}
.vinyl-disc{position:absolute;left:0;top:0;width:120px;height:120px;border-radius:50%;
  background:repeating-radial-gradient(circle,
    #100f0c 0 2px, rgba(255,106,26,.62) 3px, #100f0c 4px 6px);
  border:1px solid rgba(255,106,26,.45);
  box-shadow:0 6px 18px rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;
  transform:rotate(-17deg);transition:transform .8s ease}
.vinyl-disc::after{content:"";position:absolute;left:57px;top:57px;width:5px;height:5px;
  border:1px solid rgba(0,0,0,.6);border-radius:50%;background:#100f0c}
.vinyl-disc span{width:58px;height:58px;border-radius:50%;background:var(--accent);
  display:flex;flex-direction:column;justify-content:center;text-align:center;
  font-size:7px;line-height:1.4;letter-spacing:.04em;color:var(--on-accent);padding-bottom:12px}
.vinyl-disc b{font-weight:700;font-size:6px}
.vinyl-mark:hover .vinyl-disc{transform:rotate(28deg)}
.vinyl-stamp{position:absolute;left:107px;top:43px;width:116px;
  font-size:10px;line-height:1.6;font-weight:600;letter-spacing:.06em;
  color:var(--ink-dim);
  border-top:1px solid rgba(255,106,26,.35);border-bottom:1px solid rgba(255,106,26,.35);
  padding:10px 0 10px 12px;transform:rotate(-4deg)}

/* Окно ленты */
/* В тёмной теме карточка на тон светлее полосы, иначе они сливаются */

/* Directions */
.directions{padding:56px 48px;max-width:1344px;margin:0 auto}
.section-head{display:flex;align-items:baseline;gap:8px 20px;margin-bottom:30px;flex-wrap:wrap}
.section-head h2{margin:0;font-family:var(--text);font-size:30px;font-weight:800;text-transform:uppercase;letter-spacing:.01em}
.section-note{font-size:14px;color:rgba(var(--ink-rgb),.55)}
/* ===== Направления =====
   Каждая карточка — маленькая сцена: текст сверху, музыкант внизу в луче света.
   В покое всё приглушено, при наведении сцена «включается». */
.direction-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}

/* Заголовок секции по центру + оранжевая линия-разделитель */
.section-head.sh-center{flex-direction:column;align-items:center;text-align:center;gap:10px;
  margin-bottom:0;padding-bottom:26px;border-bottom:1px solid rgba(255,106,26,.4)}
.section-head.sh-center .section-note{color:var(--accent-text);font-weight:600;letter-spacing:.02em}
.directions .direction-grid{margin-top:34px}

/* Карточка: фото сверху, растворяется в фоне — там начинается текст */
.direction-card{
  /* Цвет карточки задан один раз здесь: и фон, и градиент растворения фото
     берут его отсюда. Меняете — меняйте только эту строку, иначе на стыке
     фото с текстом появится заметная граница. */
  --card-rgb:23,21,18;
  /* Цвет фона при наведении — тот же фон, только глубже */
  --card-hover-rgb:4,4,3;
  position:relative;
  background:rgb(var(--card-rgb));
  /* В покое края нет — рамка прозрачная, оранжевой она становится только
     при наведении. Толщину оставляем 1px, чтобы карточка не дёргалась,
     а background-clip не даёт цвету карточки просвечивать сквозь неё. */
  border:1px solid transparent;
  background-clip:padding-box;
  border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;
  /* сколько фото открыто над текстом (в долях ширины карточки) */
  padding-top:95%;
  text-decoration:none;
  box-shadow:0 8px 26px rgba(0,0,0,.3);
  transition:transform .35s cubic-bezier(.22,.61,.36,1),box-shadow .35s ease,
              border-color .35s ease;
}

/* Фото занимает ВСЮ карточку и лежит фоном — текст идёт поверх него.
   Отступ сверху у карточки (padding-top) задаёт, сколько фото открыто
   до начала текста. Стыка «фото / фон» больше нет в принципе:
   карточка и есть фото, поэтому та светлая полоса появиться не может. */
.dir-photo{position:absolute;inset:0;z-index:0}
.dir-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;
  object-fit:cover;object-position:50% 32%;
  filter:grayscale(1);
  transition:filter .45s ease,transform .55s cubic-bezier(.22,.61,.36,1)}
/* Фортепиано. Этот снимок шире остальных, и при обрезке по ширине он
   по вертикали не режется вовсе — видно всю высоту, а клавиши приходятся
   на самый низ карточки и тонут в тёмной зоне под текстом.
   object-position тут не поможет: подвинуть нечего, запаса по вертикали нет.
   Поэтому поднимаем сам снимок. Низ, который при этом освобождается,
   попадает в область сплошного цвета — там его и так не видно. */
.dc-piano .dir-photo img{top:-4%;bottom:auto}

/* Слой наведения: та же форма растворения, но более тёмным цветом.
   Проявляется прозрачностью, а не подменой цвета: градиент для браузера —
   картинка, он переключился бы рывком. Фотография при этом не тускнеет —
   темнеет именно фон под текстом. */
.dir-photo::before{
  content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(180deg,
    rgba(var(--card-hover-rgb),0) 34%, rgba(var(--card-hover-rgb),.26) 50%,
    rgba(var(--card-hover-rgb),.68) 62%, rgba(var(--card-hover-rgb),.90) 72%,
    rgba(var(--card-hover-rgb),.985) 80%, rgb(var(--card-hover-rgb)) 86%);
  opacity:0;transition:opacity .35s ease;
}
.dir-photo::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  /* ↓↓↓ ГДЕ НАЧИНАЕТСЯ ЗАТЕМНЕНИЕ ↓↓↓  Проценты — от высоты всей карточки.
     Первое число (34%) — где фото начинает уходить в тень.
     ВАЖНО: те же проценты продублированы выше в .dir-photo::before (слой
     наведения). Меняете здесь — поменяйте и там, иначе при наведении
     форма затемнения дёрнется. */
  background:linear-gradient(180deg,
    rgba(var(--card-rgb),0) 34%, rgba(var(--card-rgb),.26) 50%,
    rgba(var(--card-rgb),.68) 62%, rgba(var(--card-rgb),.90) 72%,
    rgba(var(--card-rgb),.985) 80%, rgb(var(--card-rgb)) 86%);
}

/* Текстовая часть — поверх фото, без собственной заливки */
.dir-body{display:flex;flex-direction:column;padding:0 20px 22px;
  position:relative;z-index:2}
/* Иконка инструмента — без подложки, просто рисунок.
   Рисуем фоном, а не тегом <img>: над картинками браузер показывает
   собственную панельку («визуальный поиск», меню из точек), и она
   всплывала серой полосой поверх карточки при наведении. */
.dir-icon{display:block;align-self:flex-start;flex:none;
  width:52px;height:52px;
  background:center/contain no-repeat}
.di-guitar{background-image:url("../../icon/logoGuitar.svg")}
.di-vocal {background-image:url("../../icon/VocalLogo.svg")}
.di-piano {background-image:url("../../icon/fonoLogo.svg")}
.di-drums {background-image:url("../../icon/drumLogo.svg")}
.direction-card strong{display:block;margin-top:14px;font-size:21px;font-weight:800;
  text-transform:uppercase;letter-spacing:.01em;line-height:1.15}
.direction-card .desc{display:block;margin-top:9px;font-size:14px;line-height:1.5;color:var(--ink-faint)}
.direction-card .more{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;
  margin-top:16px;font-size:14px;font-weight:700;color:var(--accent-text);
  border-bottom:1px solid rgba(255,106,26,.5);padding-bottom:2px}
.direction-card .more .ar{display:inline-block}

/* Наведение: карточка приподнимается и фото чуть наезжает.
   Перекраски фона и подсветки за курсором здесь намеренно нет. */
/* Только для устройств с мышью. На телефоне состояние наведения залипает
   после касания — карточка так и осталась бы с оранжевой рамкой. */
@media (hover:hover) and (pointer:fine){
  .direction-card:hover{
    transform:translateY(-5px);
    box-shadow:0 20px 46px rgba(0,0,0,.55), inset 0 1px 0 rgba(var(--fg-rgb),.05);
  }
  .direction-card:hover .dir-photo img{filter:grayscale(0);transform:scale(1.055)}
  .direction-card:hover .dir-photo::before{opacity:1}
}

/* Teachers */
.teachers{padding:0 48px 56px;max-width:1344px;margin:0 auto}
.teachers-line{border-top:1px solid var(--line);padding-top:36px;display:flex;flex-wrap:wrap;gap:12px 34px;align-items:baseline}
.teachers-line .label{font-family:var(--text);font-size:12px;letter-spacing:.18em;color:rgba(var(--ink-rgb),.5)}
.teachers-line .name{font-size:17px;font-weight:700}
.teachers-line .dot{color:var(--accent-text)}

/* Footer */
.site-footer{position:relative;background:var(--bg-footer);color:var(--ink-faint);font-size:14px;margin-top:8px}
.site-footer::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,var(--accent) 0%,rgba(255,106,26,.25) 55%,transparent 100%)}
.footer-inner{max-width:1344px;margin:0 auto;padding:52px 48px 26px}
.footer-grid{display:grid;grid-template-columns:1.35fr 1fr 1.55fr 1.15fr;gap:44px 32px}
.footer-head{font-family:var(--text);font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(var(--ink-rgb),.56);margin:0 0 16px}

.footer-logo{height:38px;width:auto;display:block}
.footer-tagline{margin:16px 0 0;font-size:13.5px;line-height:1.6;color:var(--ink-faint);max-width:250px}
.footer-socials{display:flex;gap:10px;margin-top:20px}
.footer-socials a{width:44px;height:44px;border-radius:50%;border:1px solid rgba(var(--fg-rgb),.14);display:flex;align-items:center;justify-content:center;color:var(--ink-dim);transition:color .18s ease,border-color .18s ease,transform .18s ease}
.footer-socials a:hover{color:var(--accent-text);transform:translateY(-2px)}
.footer-socials svg{width:18px;height:18px}

.footer-links{list-style:none;margin:0;padding:0}
.footer-links a{display:flex;align-items:center;min-height:38px;color:var(--ink-dim);text-decoration:none;font-size:14.5px;transition:color .15s ease}
.footer-links a:hover{color:var(--accent-text)}

.footer-branch{display:flex;gap:11px;margin-bottom:20px}
.footer-branch:last-child{margin-bottom:0}
.footer-branch>svg{flex:none;margin-top:2px;color:var(--accent-text);opacity:.75}
.footer-branch strong{display:block;font-size:14.5px;color:var(--ink);margin-bottom:4px}
.footer-branch p{margin:0;font-size:13.5px;line-height:1.55;color:var(--ink-faint)}
.footer-branch a{display:inline-flex;align-items:center;min-height:32px;margin-top:2px;font-size:13px;font-weight:700;color:var(--accent-text);text-decoration:none}
.footer-branch a:hover{text-decoration:underline}

.footer-phone{display:inline-block;font-family:var(--text);font-size:19px;font-weight:700;color:var(--ink);text-decoration:none;letter-spacing:-.01em;transition:color .15s ease}
.footer-phone:hover{color:var(--accent-text)}
.footer-hours{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink-faint)}
.footer-hours svg{flex:none;color:var(--accent-text);opacity:.75}
.footer-rating{display:flex;align-items:center;gap:7px;width:fit-content;min-height:38px;margin-top:6px;font-size:13.5px;line-height:1.4;color:var(--ink-dim);text-decoration:none;transition:color .15s ease}
.footer-rating:hover{color:var(--accent-text)}
.footer-rating b{font-family:var(--text);font-size:15px;color:var(--accent-text)}
.footer-cta{display:inline-flex;align-items:center;min-height:44px;margin-top:18px}

.footer-bottom-wrap{border-top:1px solid rgba(var(--fg-rgb),.08)}
.footer-bottom{max-width:1344px;margin:0 auto;padding:18px 48px 26px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;font-size:12.5px;color:rgba(var(--ink-rgb),.56)}
.footer-bottom a{color:rgba(var(--ink-rgb),.6);text-decoration:none;transition:color .15s ease}
.footer-bottom a:hover{color:var(--accent-text)}

/* ===== Внутренние страницы ===== */
.wrap{max-width:1344px;margin:0 auto;padding:0 48px}
.page-hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.page-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(520px 320px at 82% 0%, rgba(255,106,26,.16), transparent 70%);pointer-events:none}
.page-hero .wrap{width:100%;position:relative;padding-top:56px;padding-bottom:48px;display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.page-hero h1{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(32px,4vw,52px);text-transform:uppercase;line-height:1.08;letter-spacing:-.01em}
.page-hero .lead{margin:0;font-size:18px;line-height:1.6;color:var(--ink-dim);max-width:640px}
.page-hero.has-photo{min-height:470px;display:flex;align-items:center}
.page-hero.has-photo .wrap{width:100%;z-index:2}
/* Ширина и размер подобраны под самое длинное слово — «аккомпанемент»
   на фортепиано (стоит через неразрывный пробел с «и»): оно не рвётся
   от 1440px до 900px, где фото уходит на задний план. */
.page-hero.has-photo h1{max-width:min(64%,800px);font-size:clamp(30px,3.7vw,52px)}
.page-hero.has-photo .lead{max-width:min(50%,560px)}
.page-hero.has-photo::before{z-index:1}   /* тёплый отсвет поверх фото */
.hero-media{position:absolute;top:0;right:0;bottom:0;width:min(56%,860px);z-index:0;pointer-events:none}
.hero-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.hero-media::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb),.9) 16%,
                    rgba(var(--bg-rgb),.45) 46%, rgba(var(--bg-rgb),.12) 72%, rgba(var(--bg-rgb),.2) 100%),
    linear-gradient(0deg, rgb(var(--bg-rgb)) 0%, rgba(var(--bg-rgb),0) 34%)}
/* до 960px текст уже заходит на фото — переводим его в приглушённый фон */
@media (max-width:960px){
  .page-hero.has-photo{min-height:0}
  .page-hero.has-photo h1,.page-hero.has-photo .lead{max-width:none}
  .hero-media{width:100%}
  .hero-media img{object-position:50% 22%}
  .hero-media::after{background:linear-gradient(90deg, rgba(var(--bg-rgb),.86), rgba(var(--bg-rgb),.55))}
}
.section{padding:52px 0}
.section-line{border-top:1px solid var(--line)}

.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}

.tile{background:var(--bg-card);border:1px solid rgba(var(--fg-rgb),.08);border-radius:10px;padding:26px 24px;display:flex;flex-direction:column;gap:12px}
.tile .num{font-family:var(--text);font-size:13px;color:var(--accent-text);font-weight:600}
.tile strong{font-size:19px}
.tile p{margin:0;font-size:14.5px;line-height:1.55;color:var(--ink-faint)}

.check-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:15.5px;line-height:1.5;color:var(--ink-dim)}
.check-list li{display:flex;gap:12px;align-items:baseline}
.check-list li::before{content:"★";color:var(--accent-text);font-size:12px;flex:none}

/* Таблица цен */
.price-table{width:100%;border-collapse:collapse;font-size:15.5px}
.price-table th{font-family:var(--text);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:rgba(var(--ink-rgb),.55);text-align:left;padding:14px 16px;border-bottom:1px solid var(--line);font-weight:600}
.price-table td{padding:16px;border-bottom:1px solid var(--line)}
.price-table .price{font-weight:800;color:var(--accent-text);white-space:nowrap}
.price-note{font-size:13px;color:var(--ink-faint);margin-top:14px}
/* Когда таблица не помещается в экран, у правого края появляется затемнение —
   видно, что там есть ещё столбцы и их можно подтянуть пальцем */
.table-scroll{position:relative}
.table-scroll::after{
  content:"";position:absolute;top:0;right:0;bottom:0;width:56px;
  pointer-events:none;opacity:0;transition:opacity .25s ease;
  background:linear-gradient(90deg,transparent,var(--bg) 82%)}
.table-scroll.has-more::after{opacity:1}

/* Преподаватели */
.teacher-card{background:var(--bg-card);border:1px solid rgba(var(--fg-rgb),.08);border-radius:10px;padding:26px 24px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.avatar{width:64px;height:64px;border-radius:50%;background:rgba(255,106,26,.14);border:1px solid rgba(255,106,26,.4);color:var(--accent-text);display:flex;align-items:center;justify-content:center;font-family:var(--text);font-weight:700;font-size:18px}
.tag{display:inline-block;background:rgba(255,106,26,.12);color:var(--accent-text);font-size:12.5px;font-weight:700;padding:5px 12px;border-radius:999px}
.teacher-card .link{margin-top:auto;font-size:14px;font-weight:700;color:var(--accent-text);text-decoration:none}

/* Карточка преподавателя с фото (страница «Преподаватели») */
.teacher-photo{position:relative;width:calc(100% + 48px);margin:-26px -24px 4px;aspect-ratio:4/5;border-radius:10px 10px 0 0;overflow:hidden;background:linear-gradient(160deg,var(--bg-photo) 0%,var(--bg-card) 70%)}
.teacher-photo .tp-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--text);font-weight:800;font-size:56px;color:rgba(255,106,26,.35);letter-spacing:.04em}
.teacher-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
.teacher-card strong{font-size:19px}
.dir-chips{display:flex;gap:8px;flex-wrap:wrap}
.dir-chip{display:inline-block;background:var(--accent);color:var(--on-accent);font-size:12.5px;font-weight:800;padding:5px 13px;border-radius:999px;letter-spacing:.02em}
.branch-line{display:flex;align-items:center;gap:7px;font-size:13.5px;color:var(--ink-faint)}
.branch-line svg{flex:none;opacity:.7}

.filter-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px}
.chip-btn{background:var(--bg-card);border:1px solid rgba(var(--fg-rgb),.15);color:var(--ink-dim);border-radius:999px;padding:10px 20px;font-family:var(--text);font-weight:700;font-size:14px;cursor:pointer;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .12s ease}
.chip-btn:hover:not(.active){color:var(--ink)}
.chip-btn:active{transform:scale(.95)}
.chip-btn.active{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* Форма записи */
/* ===== Заявка =====
   Две колонки: слева неподвижное предложение, справа форма.
   Левая липнет при прокрутке — длинная форма едет, а цена и телефон
   остаются перед глазами. */
.booking{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:start}
.booking-side{position:sticky;top:112px;display:flex;flex-direction:column;align-items:flex-start}
.booking-side h2{margin:0;font-size:clamp(36px,4.1vw,58px);line-height:1.15;letter-spacing:-.02em}
.booking-side .kicker{margin-bottom:16px;font-size:15px}

/* Бейдж с наушниками. Наклон в −7° — тот самый приём из образца:
   мелкая небрежность оживляет строгую сетку. */
.booking-symbol{display:flex;align-items:center;justify-content:center;
  width:78px;height:78px;flex:none;margin-bottom:30px;
  border-radius:23px;transform:rotate(-7deg);
  background:rgba(255,106,26,.12);border:1px solid rgba(255,106,26,.32);
  color:var(--accent-text);box-shadow:0 10px 26px rgba(0,0,0,.35)}
.booking-symbol svg{width:36px;height:36px}

.booking-intro{color:var(--ink-dim);font-size:20px;line-height:1.7;margin:24px 0 0;max-width:470px}

/* Цена пробного: крупная цифра и подпись сбоку, отбита линиями */
/* Подпись выравниваем по центру цифры, а не по базовой линии:
   у двухстрочной подписи вторая строка иначе уезжает под цифру. */
.trial-price{display:flex;align-items:center;gap:18px;margin:30px 0 26px;
  padding:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  width:100%;max-width:470px}
.trial-price b{font-size:clamp(44px,4.5vw,60px);font-weight:800;letter-spacing:-.03em;line-height:1;white-space:nowrap;flex:none}
.trial-price > span{display:flex;align-items:center;gap:9px;min-width:0;
  font-size:16px;line-height:1.5;color:var(--ink-faint)}
.trial-price .trial-details{display:block}
.trial-price svg{width:19px;height:19px;flex:none;color:var(--accent-text)}

.booking-help{margin:0;font-size:16px;line-height:1.7;color:var(--ink-faint)}
.booking-help a{display:inline-block;margin-top:8px;font-size:25px;font-weight:800;
  color:var(--ink);text-decoration:none;transition:color .2s ease}
.booking-help a:hover{color:var(--accent-text)}
.booking>noscript{grid-column:1/-1}

.form-card{background:var(--bg-card);border:1px solid rgba(var(--fg-rgb),.08);border-radius:14px;padding:32px;display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.form-card label{display:flex;flex-direction:column;gap:8px;font-size:13.5px;font-weight:600;color:var(--ink-dim)}
.form-card label{min-width:0}
/* Кегль ровно 16px: при меньшем iOS сам увеличивает масштаб страницы, когда ставишь курсор в поле */
.form-card input,.form-card select,.form-card textarea{background:var(--bg);border:1px solid rgba(var(--fg-rgb),.15);border-radius:8px;color:var(--ink);font-family:var(--text);font-size:16px;padding:13px 14px;color-scheme:dark;width:100%;min-width:0;box-sizing:border-box}
.form-card input:focus,.form-card select:focus,.form-card textarea:focus{border-color:var(--accent)}
.form-card textarea{resize:vertical;min-height:64px}
/* Поле даты: видимый текст + иконка календаря + невидимый date-input */
.date-wrap{position:relative;display:flex}
.date-wrap input[name=birthday]{flex:1;width:100%;padding-right:44px}
.date-pick{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;color:rgba(var(--ink-rgb),.45);cursor:pointer;transition:color .15s}
.date-pick:hover{color:var(--accent-text)}
.date-wrap .date-hidden{position:absolute;inset:auto 0 0 0;width:100%;height:1px;opacity:0;pointer-events:none;border:0;padding:0;margin:0}
.form-card button{grid-column:1/-1;justify-self:start;background:var(--accent);color:var(--on-accent);border:0;border-radius:999px;font-family:var(--text);font-weight:800;font-size:16px;padding:16px 32px;cursor:pointer;transition:background .15s}
.form-card button:hover{background:var(--ink)}
.form-card button:disabled{opacity:.6;cursor:default}
.form-check{grid-column:1/-1;flex-direction:row !important;align-items:flex-start;gap:12px;font-size:13.5px;font-weight:500;color:var(--ink-dim);line-height:1.5;cursor:pointer}
.form-check input[type=checkbox]{width:18px;height:18px;flex:none;margin:1px 0 0;padding:0;accent-color:var(--accent-text);cursor:pointer}
.form-check a{color:var(--accent-text);font-weight:700}
.booking-extra{grid-column:1/-1;min-width:0;margin-top:4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.booking-extra > summary{display:grid;grid-template-columns:32px minmax(0,1fr) 30px;align-items:center;gap:12px;padding:20px 0;cursor:pointer;list-style:none;color:var(--ink)}
.booking-extra > summary::-webkit-details-marker{display:none}
.booking-extra-icon{display:grid;place-items:center;width:32px;height:36px;color:var(--accent-text)}
.booking-extra-icon svg{width:25px;height:25px}
.booking-extra-copy{display:flex;flex-direction:column;gap:6px}
.booking-extra-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;font-size:16px;font-weight:800;line-height:1.3}
.booking-extra-hint{font-size:12px;line-height:1.5;color:var(--ink-dim)}
.booking-extra-toggle{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;color:var(--ink-dim);transition:color .2s,border-color .2s,transform .25s}
.booking-extra-toggle svg{width:18px;height:18px}
.booking-extra > summary:hover .booking-extra-toggle{color:var(--accent-text);border-color:var(--accent-text)}
.booking-extra[open] .booking-extra-toggle{transform:rotate(180deg);color:var(--accent-text)}
.booking-extra-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0 0 22px}
.booking-consents{grid-column:1/-1;display:flex;flex-direction:column;gap:24px;padding:6px 0 4px}
.booking-selected-teacher{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:4px 10px;margin:0;padding:10px 12px;border-left:2px solid var(--accent);background:rgb(255 106 26 / 7%);font-size:14px;color:var(--ink-dim)}
.booking-selected-teacher strong{color:var(--ink)}
@media(max-width:600px){.booking-extra-fields{grid-template-columns:minmax(0,1fr)}.booking-extra > summary{gap:9px;grid-template-columns:28px minmax(0,1fr) 28px}}
@media(prefers-reduced-motion:reduce){.booking-extra-toggle{transition:none}}

.form-success{grid-column:1/-1;font-size:15px;color:var(--accent-text);font-weight:700;display:none}
.form-error{grid-column:1/-1;font-size:15px;color:#ff5252;font-weight:700;display:none}
.form-note{grid-column:1/-1;font-size:12.5px;color:var(--ink-faint)}

/* FAQ */
.faq{display:flex;flex-direction:column;gap:12px}
.faq details{background:var(--bg-card);border:1px solid rgba(var(--fg-rgb),.08);border-radius:10px;padding:18px 22px}
.faq summary{cursor:pointer;font-weight:700;font-size:16px}
.faq p{margin:12px 0 0;font-size:14.5px;line-height:1.6;color:var(--ink-dim)}

/* Концерты */
/* ===== Ближайший концерт =====
   Карточка-афиша: фотография со сцены уходит вправо и растворяется
   в фоне, слева круглый значок со сроком, отделённый пунктиром.
   Значок наклонён на 8° — та же «живая» небрежность, что у бейджа
   в заявке и у плашек в шагах. */
#next-concert:not(.home-concert){position:relative;isolation:isolate;overflow:hidden;
  min-height:224px;padding:32px 34px;border-color:rgba(var(--fg-rgb),.10);
  background:rgb(var(--bg-card-rgb))}
/* Фото справа + растворение влево в цвет карточки */
#next-concert:not(.home-concert)::before{content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(90deg, rgb(var(--bg-card-rgb)) 14%,
                    rgba(var(--bg-card-rgb),.95) 48%,
                    rgba(var(--bg-card-rgb),.72) 100%),
    url("../../why/band.webp") right center/cover no-repeat}
/* Пунктир между значком и текстом */
#next-concert:not(.home-concert)::after{content:"";position:absolute;left:150px;top:0;bottom:0;
  border-left:1px dashed rgba(var(--fg-rgb),.22);pointer-events:none}
/* Когда приходит настоящая афиша, слева появляется её картинка —
   пунктир в этом месте уже не разделяет, а мешает */
#next-concert:not(.home-concert):has(#concert-photo:not([hidden]))::after{display:none}

#next-concert:not(.home-concert) .event-date{width:86px;height:86px;border-radius:50%;
  background:var(--accent);border:0;color:var(--on-accent);
  transform:rotate(-8deg);font-size:12px;letter-spacing:.04em;
  box-shadow:0 0 0 6px rgba(255,106,26,.12)}
#next-concert:not(.home-concert)>div:nth-of-type(2){padding-left:20px}
/* Кнопка-контур стоит поверх фотографии — ей нужна своя подложка */
#next-concert:not(.home-concert) .btn-ghost{background:rgba(var(--bg-card-rgb),.72);
  border-color:rgba(var(--ink-rgb),.35);backdrop-filter:blur(3px)}
#next-concert:not(.home-concert) .btn-ghost:hover{background:var(--ink);color:var(--on-accent);
  border-color:var(--ink)}

/* Билет немного увеличивается, пунктирный разделитель остаётся отдельным слоем. */
#next-concert:not(.home-concert){transition:transform .32s cubic-bezier(.22,.61,.36,1),box-shadow .32s ease;
  transform-origin:50% 50%}
#next-concert:not(.home-concert):hover{transform:scale(1.02);border-color:rgba(var(--fg-rgb),.10);
  box-shadow:0 18px 44px rgba(0,0,0,.42)}

.event-card{display:flex;gap:26px;align-items:center;background:var(--bg-card);border:1px solid rgba(var(--fg-rgb),.08);border-radius:14px;padding:28px 30px}
.event-date{flex:none;width:92px;height:92px;border-radius:10px;background:rgba(255,106,26,.12);border:1px solid rgba(255,106,26,.4);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-family:var(--text);color:var(--accent-text);font-weight:700;text-align:center;font-size:13px;line-height:1.2}
.photo-ph{aspect-ratio:4/3;border-radius:10px;background:var(--bg-card);border:1px dashed rgba(var(--fg-rgb),.22);display:flex;align-items:center;justify-content:center;color:var(--ink-faint);font-size:13px;text-align:center;padding:12px;box-sizing:border-box}

/* Контакты */
.map-box{border-radius:14px;border:1px dashed rgba(var(--fg-rgb),.22);background:var(--bg-card);min-height:280px;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;color:var(--ink-faint);font-size:14px}
.contact-line{display:flex;gap:12px;align-items:baseline;font-size:16px}
.contact-line .label{font-family:var(--text);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:rgba(var(--ink-rgb),.5);width:110px;flex:none}
.contact-messengers{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;min-width:0}
.contact-messengers a{display:inline-flex;align-items:center;color:var(--accent-text);font-weight:700;text-decoration:none;text-underline-offset:4px}
.contact-messengers a:is(:hover,:focus-visible){text-decoration:underline}

/* Табы филиалов */
.branch-tabs{display:flex;gap:8px;margin-bottom:32px;border-bottom:1px solid var(--line);padding-bottom:0}
.branch-tab{background:none;border:none;border-bottom:2px solid transparent;padding:10px 22px 12px;font-family:var(--text);font-size:13px;font-weight:700;letter-spacing:.08em;color:var(--ink-faint);cursor:pointer;transition:color .15s,border-color .15s;margin-bottom:-1px}
.branch-tab.active{color:var(--accent-text);border-bottom-color:var(--accent-text)}
.branch-tab:hover:not(.active){color:var(--ink)}
.branch-panel{display:none}
.branch-panel.active{display:block;animation:panelIn .25s ease both}
@keyframes panelIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){
  .branch-panel.active{animation:none}
  .chip-btn{transition:none}
  .footer-socials a:hover{transform:none}
  /* Блоки показываем сразу, без выезда снизу */
  .reveal{opacity:1;transform:none;animation:none}
  .hero-copy>*,.page-hero .wrap>*,.hero-photo{animation:none}
  .hero-notes use{animation:none}      /* ноты замирают на месте */
  /* Бегущая строка крутится бесконечно — останавливаем */
  .marquee-track{animation:none}
  html{scroll-behavior:auto}
  .btn:hover,.tile:hover,.teacher-card:hover,.event-card:hover{transform:none}
  #next-concert:not(.home-concert):hover{transform:none}
  .step-dot,.step strong{transition:none}
  .direction-card:hover{transform:none}
  .direction-card:hover .dir-photo img{transform:none}
  .dir-photo img{transition:none}
  .dir-photo::before{transition:none}
  /* Карточки направлений: свет меняется, движения нет */
}

/* Бейджи филиала */
.branch-badge{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:3px 10px;border-radius:999px;background:rgba(255,106,26,.13);border:1px solid rgba(255,106,26,.35);color:var(--accent-text)}
.branch-badge.butovo{background:rgba(100,180,255,.1);border-color:rgba(100,180,255,.35);color:#6ab4ff}

/* Филиалы на странице контактов */
.branch-contacts-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.branch-title{margin:0;font-family:var(--text);font-size:20px;font-weight:700;text-transform:uppercase}

/* Рейтинг-полоса */
.rating-strip{display:flex;align-items:center;gap:18px;background:var(--bg-card);border:1px solid rgba(var(--fg-rgb),.08);border-radius:14px;padding:22px 28px;flex-wrap:wrap}
.rating-strip strong{font-family:var(--text);font-size:26px;color:var(--accent-text)}
.rating-strip span{font-size:15px;color:var(--ink-dim)}
.rating-strip a{margin-left:auto;color:var(--accent-text);font-weight:700;text-decoration:none;font-size:14.5px}

/* ===== Анимации ===== */
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.hero-copy>*,.page-hero .wrap>*{animation:fadeUp .6s ease backwards}
.hero-copy>*:nth-child(1),.page-hero .wrap>*:nth-child(1){animation-delay:.05s}
.hero-copy>*:nth-child(2),.page-hero .wrap>*:nth-child(2){animation-delay:.14s}
.hero-copy>*:nth-child(3),.page-hero .wrap>*:nth-child(3){animation-delay:.23s}
.hero-copy>*:nth-child(4),.page-hero .wrap>*:nth-child(4){animation-delay:.32s}
.hero-copy>*:nth-child(5),.page-hero .wrap>*:nth-child(5){animation-delay:.41s}
.hero-photo{animation:fadeIn .8s ease .3s backwards}

/* Появление блоков при прокрутке.
   Раньше здесь стоял transition — и он перезаписывал собственные переходы
   карточек, из-за чего наведение срабатывало рывком. Теперь это анимация:
   она ничего не отбирает, а по её окончании скрипт снимает классы. */
.reveal{opacity:0;transform:translateY(22px)}
.reveal.in{animation:revealIn .6s ease forwards}
@keyframes revealIn{to{opacity:1;transform:none}}

.tile,.teacher-card,.event-card,.rating-strip{transition:transform .2s ease,border-color .2s ease,box-shadow .25s ease}
/* У карточек направлений своя постановка ховера — их тут нет намеренно */
.tile:hover,.teacher-card:hover,.event-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,0,0,.35)}

/* Значки в «Почему мы» */
.icon-tile{align-items:center;text-align:center}
.icon-tile .icon{width:58px;height:58px;border-radius:50%;background:rgba(255,106,26,.12);border:1px solid rgba(255,106,26,.35);display:flex;align-items:center;justify-content:center}
.icon-tile .icon svg{width:27px;height:27px}

/* ===== Шаги «Всё начинается с одного урока» =====
   Четыре колонки, у каждой линия сверху и крупный номер.
   При наведении номер и название подрастают и загораются. */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.step{position:relative;display:flex;flex-direction:column;align-items:flex-start;
  gap:14px;padding:26px 16px 4px 0;border-top:1px solid var(--line)}

/* Номер и название растут через transform, а не через размер шрифта:
   размер пересчитал бы вёрстку и соседние шаги дёргались бы.
   Точка роста — левый край, чтобы текст не уезжал из колонки. */
.step-dot{font-size:32px;font-weight:500;line-height:1;color:var(--ink-faint);
  letter-spacing:-.02em;transform-origin:left center;
  transition:color .3s ease,transform .4s cubic-bezier(.34,1.56,.64,1)}
.step strong{font-size:18px;line-height:1.3;transform-origin:left center;
  transition:color .3s ease,transform .4s cubic-bezier(.34,1.56,.64,1)}
.step p{margin:-2px 0 0;font-size:14.5px;line-height:1.6;color:var(--ink-faint)}

.step:hover .step-dot{color:var(--accent-text);transform:scale(1.3)}
.step:hover strong{color:var(--ink);transform:scale(1.12)}

/* ===== Роли шрифта =====
   Один шрифт, но у каждой роли своя настройка: цифры считаются по-другому,
   чем читается текст, а маркеры и подписи должны звучать твёрже. */

/* Цифры: моноширинные, чтобы столбцы цен и рейтинги стояли ровно */
.price-table td,.price-table .price,.hero-stats strong,.rating-strip strong,.footer-rating b,.footer-phone,.event-date,.step-dot,.tile .num{font-variant-numeric:tabular-nums}

/* Маркеры и номера: без характерного Unbounded им нужен вес, иначе теряются */
.tile .num{font-weight:800;letter-spacing:.08em}
.kicker{font-weight:700}
.hero-stats strong,.rating-strip strong{font-weight:800;letter-spacing:-.01em}
.avatar,.event-date{font-weight:800}

/* ===== Видимый фокус при навигации с клавиатуры =====
   Появляется только при работе с клавиатуры, мышью — не мешает */
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:3px}
.form-card input:focus-visible,
.form-card select:focus-visible,
.form-card textarea:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.date-pick:focus-visible{color:var(--accent-text)}
/* Ссылка «сразу к содержимому» для тех, кто ходит табом */
.skip-link{position:absolute;left:-9999px;top:8px;z-index:200;background:var(--accent);color:var(--on-accent);
  font-weight:800;font-size:14px;padding:12px 20px;border-radius:8px;text-decoration:none;
  display:inline-flex;align-items:center;min-height:48px}
.skip-link:focus{left:16px}

/* Узкий десктоп: меню, подпись и кнопка «Записаться» переставали помещаться
   в строку и кнопка вылезала за экран. Поджимаем шапку в этой полосе. */
@media (min-width:901px) and (max-width:1120px){
  .site-header{padding:16px 24px;gap:14px}
  .header-tag{display:none}
  .site-nav{gap:18px;font-size:13.5px}
  .btn-solid.header-cta{padding:11px 18px;font-size:13.5px}
}

/* Mobile */
@media (max-width:900px){
  /* Винил и широкая полоса — только для десктопа */
  .vinyl-mark{display:none}
  .wrap.why{padding:56px 24px}

  .site-header{gap:16px;flex-wrap:wrap;
    padding:12px max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left))}
  .burger{display:flex}
  .site-header .burger{margin-left:0}
  .header-cta{display:none}
  /* Ссылки меню — по 50px в высоту, с разделителями: промахнуться трудно */
  .site-nav{display:none;flex-direction:column;width:100%;gap:0;padding-top:6px}
  .site-nav.open{display:flex}
  .site-nav a{display:flex;align-items:center;min-height:50px;font-size:16px;
    border-bottom:1px solid var(--line);padding:0}
  .site-nav a::after{display:none}          /* подчёркивание от десктопа тут лишнее */
  .site-nav a.active{color:var(--accent-text)}
  /* Главное действие сайта не должно пропадать на телефоне */
  .site-nav.open ~ .header-cta{display:flex;align-items:center;justify-content:center;
    width:100%;min-height:50px;margin:14px 0 4px;font-size:16px;padding:12px 24px}
  /* Первый экран поджат: иначе цифры рейтинга обрезались краем экрана,
     а иллюстрация начиналась так низко, что её никто не видел */
  .hero-inner{grid-template-columns:1fr;padding:28px 20px 32px;gap:26px}
  .hero-copy{gap:18px}
  .hero-stats{gap:22px;margin-top:6px}
  .hero p{font-size:17px}
  /* На телефоне иллюстрация уходит под текст и не должна занимать пол-экрана */
  .hero-copy,.hero-photo{min-width:0}
  /* на телефоне нижний отступ экрана 32px — столько же и съедаем */
  .hero-photo{margin-bottom:-32px;margin-right:0;justify-content:center}
  .photo-frame{max-width:440px}
  .photo-frame img{width:100%;height:auto;max-height:none}
  .directions{padding:40px 20px}
  .direction-grid{grid-template-columns:1fr 1fr}
  .direction-card{padding-top:80%}
  .teachers{padding:0 20px 40px}
  .footer-inner{padding:40px 20px 22px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:34px 24px}
  .footer-brand{grid-column:1/-1}
  .footer-links a{min-height:44px}
  .footer-bottom{padding:16px 20px 24px}
}
@media (max-width:900px){
  .wrap{padding:0 20px}
  .header-tag{display:none}
  .steps{grid-template-columns:1fr 1fr}
  .grid-3,.grid-4{grid-template-columns:1fr 1fr}
  .form-card{grid-template-columns:1fr;padding:24px}
  /* Заявка: колонки рядом не помещаются */
  .booking{grid-template-columns:1fr;gap:28px}
  .booking-side{position:static}
  .booking-intro{max-width:none}
  .trial-price{max-width:none}
  .event-card{flex-direction:column;align-items:flex-start}
  /* Концерт: пунктир делил колонки, которых на телефоне уже нет.
     Фото уходит под весь блок с плотным затемнением. */
  #next-concert:not(.home-concert){min-height:0;padding:24px;gap:20px}
  #next-concert:not(.home-concert)::after{display:none}
  #next-concert:not(.home-concert)::before{background:
    linear-gradient(180deg, rgba(var(--bg-card-rgb),.93), rgba(var(--bg-card-rgb),.88)),
    url("../../why/band.webp") center/cover no-repeat}
  #next-concert:not(.home-concert) .event-date{width:74px;height:74px;font-size:11px}
  #next-concert:not(.home-concert)>div:nth-of-type(2){padding-left:0}
  #next-concert:not(.home-concert)>div:last-child{width:100%}
  /* Филиалы на контактах шли в две колонки и не помещались в экран */
  .branch-contacts-grid{grid-template-columns:1fr}
  /* ===== Пальцем нужно попадать: доводим мелкие ссылки до 44px по высоте ===== */
  .chip-btn,.branch-tab{min-height:44px}
  .teachers-line a,.footer-branch a,.footer-phone,.footer-rating,.footer-bottom a,.teacher-card .link,.price-note a,.rating-strip a,.contact-line a{
    display:inline-flex;align-items:center;min-height:44px}
  .footer-links a{min-height:48px}
  .footer-brand>a{display:inline-flex;align-items:center;min-height:44px}
  /* Галочку согласия удобнее ставить пальцем, если она крупнее */
  .form-check input[type=checkbox]{width:22px;height:22px}
  /* Кнопки были 41px — не дотягивали до нормы */
  .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px}
  /* Вопросы в блоке «Частые вопросы» раскрывались зоной в 20px */
  .faq summary{display:flex;align-items:center;min-height:44px;padding:2px 0}

  /* Отступы с учётом «чёлки» и скруглённых углов экрана */
  .wrap,.directions,.teachers{
    padding-left:max(20px,env(safe-area-inset-left));
    padding-right:max(20px,env(safe-area-inset-right))}
  .footer-inner,.footer-bottom{
    padding-left:max(20px,env(safe-area-inset-left));
    padding-right:max(20px,env(safe-area-inset-right))}
  .site-footer{padding-bottom:env(safe-area-inset-bottom)}

  /* Таблица цен шире экрана — пусть прокручивается сама, а не тянет страницу */
  .price-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:14.5px}
  .price-table th,.price-table td{padding:12px 12px;white-space:nowrap}
  .price-table td:first-child,.price-table th:first-child{white-space:normal;min-width:150px}
}
@media (max-width:560px){
  /* Одна колонка: кадр делаем горизонтальным, иначе четыре карточки
     с квадратным фото растянулись бы на несколько экранов */
  .direction-grid{grid-template-columns:1fr;gap:14px}
  .direction-card{padding-top:62%}
  .direction-card strong{font-size:20px}
  .section-head.sh-center{padding-bottom:20px}
  .directions .direction-grid{margin-top:26px}
  .grid-2,.grid-3,.grid-4,.steps{grid-template-columns:1fr}
  /* Слайдер: на телефоне колонки не помещаются рядом */
  .wrap.why{padding:46px 20px}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  /* На узком экране крупные заголовки не помещались в строку */
  .hero h1{font-size:clamp(27px,7.6vw,36px)}
  .page-hero h1{font-size:clamp(25px,7vw,32px)}
  .section-head h2{font-size:23px}
  /* На узком экране название филиала с бейджем не помещалось в строку */
  .branch-title{font-size:17px}
  /* Подпись «АДРЕС» держала жёсткие 110px и выдавливала текст за экран —
     на узком экране пусть встаёт над значением */
  .contact-line{flex-wrap:wrap;gap:2px 12px}
  .contact-line .label{width:auto}
}

/* Главная: жизнь студии и концерт. Общая типографика, фото и фирменный оранжевый. */
.wrap.studio-life{padding:68px 48px 72px;border-top:1px solid var(--line)}
.life-head{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:34px}
.life-head .kicker{display:block;margin-bottom:16px}
.life-head h2{margin:0;font-family:var(--text);font-size:clamp(32px,3.5vw,46px);font-weight:800;line-height:1.13;letter-spacing:-.035em;text-transform:uppercase}
.life-head h2 span{color:var(--accent-text)}
.life-head>p{max-width:370px;margin:0 0 4px;font-size:16px;line-height:1.75;color:var(--ink-dim)}
.life-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:28px}
.life-feature{position:relative;display:block;isolation:isolate;overflow:hidden;border-radius:16px;text-decoration:none;color:#f5f1ea;background:#171512}
.life-feature img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .65s cubic-bezier(.22,.61,.36,1)}
.life-feature::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(12,11,9,.04) 28%,rgba(12,11,9,.5) 60%,rgba(12,11,9,.97) 100%)}
.life-feature img{z-index:-2}
.life-stage{min-height:514px;display:flex;align-items:flex-end}
.life-stage img{object-position:center 28%}
.life-photo-label{position:absolute;top:24px;left:24px;right:24px;width:fit-content;max-width:calc(100% - 48px);padding:9px 12px;border:1px solid rgba(245,241,234,.22);border-radius:6px;background:rgba(12,11,9,.65);font-size:10px;font-weight:700;line-height:1.5;letter-spacing:.09em}
.life-caption{position:relative;padding:30px 32px}
.life-caption-kicker{display:block;margin-bottom:12px;color:#ff8340;font-size:10px;font-weight:800;letter-spacing:.14em;line-height:1.5}
.life-caption h3{margin:0;font-family:var(--text);font-size:38px;line-height:1.15;font-weight:800;letter-spacing:-.035em}
.life-caption p{max-width:355px;margin:12px 0 0;font-size:15px;line-height:1.65;color:rgba(245,241,234,.8)}
.life-link{display:flex;align-items:center;gap:14px;width:fit-content;margin-top:22px;color:#ff8340;font-size:14px;font-weight:800}
.life-link span{font-size:22px;line-height:1}
.life-details{display:flex;flex-direction:column;min-width:0}
.life-benefit{display:grid;grid-template-columns:32px 1fr 22px;gap:20px;align-items:start;padding:23px 4px;border-top:1px solid var(--line);text-decoration:none}
.life-benefit:first-child{padding-top:8px;border-top:0}
.life-symbol{width:32px;height:32px;color:var(--accent-text);margin-top:2px}
.life-benefit h3{margin:0;font-size:21px;line-height:1.3;font-weight:800;letter-spacing:-.025em;transition:color .2s ease}
.life-benefit p{margin:9px 0 0;color:var(--ink-dim);font-size:14px;line-height:1.7;max-width:365px}
.life-benefit-arrow{color:var(--ink-faint);font-size:24px;line-height:1.1;transition:color .2s ease}
.life-community{flex:1;min-height:246px;margin-top:4px;display:flex;align-items:flex-end}
.life-community img{object-position:center 44%}
.life-community::after{background:linear-gradient(180deg,rgba(12,11,9,.04) 5%,rgba(12,11,9,.25) 35%,rgba(12,11,9,.94) 100%)}
.life-community .life-caption{padding:26px 76px 26px 28px}
.life-community h3{font-size:27px}
.life-community p{font-size:14px;margin-top:8px;max-width:290px}
.life-round-arrow{position:absolute;right:24px;bottom:28px;width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(245,241,234,.45);border-radius:50%;font-size:21px;transition:background .2s,color .2s,border-color .2s}
.life-feature:focus-visible{outline-offset:5px;border-radius:16px}

@media (hover:hover) and (pointer:fine){
  .life-feature:hover img{transform:scale(1.045)}
  .life-benefit:hover h3,.life-benefit:hover .life-benefit-arrow{color:var(--accent-text)}
  .life-feature:hover .life-round-arrow{background:var(--accent);color:#0c0b09;border-color:var(--accent)}
}
@media (max-width:1000px){
  .life-head{gap:30px}.life-head>p{max-width:300px;font-size:15px}
  .life-layout{grid-template-columns:1fr 1fr;gap:22px}
  .life-benefit{gap:14px;padding:20px 0}
  .life-benefit h3{font-size:19px}
  .life-caption{padding:28px}.life-community .life-caption{padding-left:24px}
}
@media (max-width:760px){
  .wrap.studio-life{padding:46px 20px 48px}
  .life-head{display:block;margin-bottom:26px}
  .life-head h2{font-size:clamp(28px,6.4vw,40px)}
  .life-head>p{max-width:470px;margin:18px 0 0;font-size:15px;line-height:1.7}
  .life-layout{grid-template-columns:1fr;gap:28px}
  .life-stage{min-height:480px}.life-stage img{object-position:center 28%}
  .life-caption h3{font-size:34px}
  .life-benefit{padding:24px 0;gap:17px}.life-benefit:first-child{padding-top:0}
  .life-benefit h3{font-size:20px}.life-benefit p{max-width:none}
  .life-community{min-height:270px;margin-top:2px}.life-community h3{font-size:27px}
}
@media (max-width:380px){
  .life-stage{min-height:430px}.life-caption{padding:24px}
  .life-photo-label{top:18px;left:18px;right:18px;max-width:calc(100% - 36px);font-size:8px}
  .life-benefit{grid-template-columns:27px 1fr 18px;gap:12px}.life-symbol{width:27px;height:27px}
  .life-benefit h3{font-size:18px}.life-benefit p{font-size:13px}
  .life-community .life-caption{padding:22px 62px 22px 22px}.life-community h3{font-size:24px}
  .life-round-arrow{right:18px;bottom:24px;width:34px;height:34px}
}
@media (prefers-reduced-motion:reduce){
  .life-feature img,.life-benefit h3,.life-benefit-arrow,.life-round-arrow{transition:none}
  .life-feature:hover img{transform:none}
}

/* Главная: компактный анонс на общей сетке страницы. */
.wrap.concert-section,.wrap.section:has(+ .concert-section),.concert-section ~ .wrap.booking{width:calc(100% - 96px);max-width:1344px;margin-inline:auto;padding-inline:0}
.wrap.concert-section{padding:30px 0;border-block:1px solid var(--line)}
.home-concert{position:relative;display:grid;grid-template-columns:224px minmax(0,1fr) 190px;align-items:center;gap:32px;min-height:150px;color:var(--ink)}
.concert-visual{position:relative;isolation:isolate;height:150px;min-width:0;overflow:hidden;border-radius:10px;background:#171512}
.concert-scene{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.concert-scene{object-position:57% 42%;transition:transform .7s cubic-bezier(.22,.61,.36,1)}
.concert-poster{display:block;width:100%;height:100%;object-fit:contain}
#next-concert .concert-visual:has(.concert-poster:not([hidden])){height:clamp(160px,24vw,240px);background:none}
.concert-visual:has(.concert-poster:not([hidden])) :is(.concert-scene,.concert-effects),
.concert-visual:has(.concert-poster:not([hidden]))::after{display:none}
@media(max-width:600px){
  #next-concert .concert-visual:has(.concert-poster:not([hidden])){height:clamp(112px,36vw,170px)}
}
.concert-copy{min-width:0}
.concert-status{display:flex;align-items:center;gap:8px;margin-bottom:11px;font-size:10px;line-height:1.5;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-text)}
.concert-status::before{content:"";width:6px;height:6px;flex:none;background:var(--accent);border-radius:50%;box-shadow:0 0 0 3px rgba(255,106,26,.08)}
.concert-copy h2,.concert-copy h3{margin:0;font-family:var(--text);font-size:30px;line-height:1.2;font-weight:800;letter-spacing:-.035em;text-transform:uppercase;overflow-wrap:anywhere}
.concert-copy>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-width:650px;margin:12px 0 0;white-space:pre-line;overflow-wrap:anywhere;font-size:14px;line-height:1.7;color:var(--ink-dim)}
.concert-actions{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:6px}
.concert-actions .btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 16px;font-size:13px;text-align:center;white-space:normal}
.concert-actions .btn-ghost{border-color:rgba(var(--fg-rgb),.24);color:var(--ink);background:transparent}
.concert-actions .btn-ghost:hover{color:var(--accent-text);background:rgba(255,106,26,.06)}
.concert-all{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;font-size:13px;font-weight:700;text-decoration:none;color:var(--ink-dim);transition:color .2s}
.concert-all span{display:inline-block;font-size:19px;font-weight:500;transition:transform .3s ease}
.concert-all:hover{color:var(--accent-text)}
@media (max-width:1100px){
  .home-concert{grid-template-columns:176px minmax(0,1fr) 178px;gap:24px}
  .concert-copy h2,.concert-copy h3{font-size:26px}
  .concert-actions .btn{padding:12px;font-size:12px}
}
@media (max-width:900px){
  .wrap.concert-section,.wrap.section:has(+ .concert-section),.concert-section ~ .wrap.booking{width:calc(100% - 40px)}
  .wrap.section:has(+ .concert-section),.concert-section ~ .wrap.booking{padding-block:40px}
  .wrap.concert-section{padding:28px 0}
  .home-concert{grid-template-columns:160px minmax(0,1fr);gap:0 24px}
  .concert-visual{grid-row:1/3;height:156px}
  .concert-actions{grid-column:2;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 20px;margin-top:16px}
  .concert-copy h2,.concert-copy h3{font-size:25px}
  .concert-copy>p{margin-top:10px}
}
@media (max-width:600px){
  .home-concert{grid-template-columns:110px minmax(0,1fr);gap:0 20px;min-height:0;align-items:start}
  .concert-visual{grid-column:1;grid-row:1/3;height:102px}
  .concert-copy{display:contents}
  .concert-status{grid-column:2;grid-row:1;margin:1px 0 8px;font-size:9px;letter-spacing:.11em}
  .concert-copy h2,.concert-copy h3{grid-column:2;grid-row:2;font-size:22px;line-height:1.2;align-self:start}
  .concert-copy:has(.concert-status[hidden]) h2{grid-row:1/3;align-self:center}
  .concert-copy>p{grid-column:1/-1;margin-top:18px;font-size:14px}
  .concert-actions{grid-column:1/-1;justify-content:space-between;gap:6px 12px;margin-top:16px}
  .concert-actions .btn{padding:12px 16px;font-size:12px}
  .concert-all{font-size:12px;gap:8px}
}
@media (max-width:380px){
  .home-concert{grid-template-columns:94px minmax(0,1fr);gap:0 16px}
  .concert-copy h2,.concert-copy h3{font-size:20px}
  .concert-copy>p{font-size:13px}
  .concert-actions .btn{padding-inline:12px}
}

/* Свет остаётся внутри фотографии, а текст — на фоне страницы. */
.concert-visual::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:radial-gradient(280px circle at var(--concert-x,20%) var(--concert-y,45%),rgba(255,135,62,.18),transparent 75%);opacity:.2;transition:opacity .35s ease}
.concert-effects{position:absolute;inset:0;z-index:3;overflow:hidden;border-radius:inherit;pointer-events:none}
.concert-effects::before{content:"";position:absolute;top:-80%;left:0;width:65%;height:260%;background:linear-gradient(110deg,transparent 28%,rgba(255,183,132,.025) 40%,rgba(255,226,206,.17) 50%,rgba(255,255,255,.025) 59%,transparent 72%);transform:translateX(-165%)}
.concert-intro .concert-effects::before{animation:concert-first-glint 1.55s .12s ease-out both}
@keyframes concert-first-glint{from{transform:translateX(-165%)}to{transform:translateX(330%)}}
@keyframes concert-hover-glint{from{transform:translateX(-165%)}to{transform:translateX(330%)}}
.home-concert:focus-within .concert-visual::after{opacity:1}
.home-concert:focus-within .concert-effects::before{animation:concert-hover-glint 1.15s ease-out both}
@media (hover:hover) and (pointer:fine){
  .home-concert:hover .concert-visual::after{opacity:1}
  .home-concert:hover .concert-effects::before{animation:concert-hover-glint 1.15s ease-out both}
  .home-concert:hover .concert-visual:not(:has(.concert-poster:not([hidden]))) .concert-scene{transform:scale(1.055)}
  .concert-all:hover span{transform:translate(3px,-3px)}
}
@media (prefers-reduced-motion:reduce){
  .concert-visual::after,.concert-scene,.concert-all,.concert-all span{transition:none}
  .concert-effects{display:none}
  .home-concert .concert-effects::before,.home-concert:hover .concert-effects::before,.home-concert:focus-within .concert-effects::before{animation:none}
  .home-concert:hover .concert-visual:not(:has(.concert-poster:not([hidden]))) .concert-scene,.concert-all:hover span{transform:none}
}


/* Свет сцены: спокойное состояние, один блик при появлении и реакция на курсор. */
.studio-life .life-feature{box-shadow:inset 0 0 0 1px rgba(245,241,234,.08);transition:transform .35s ease,box-shadow .35s ease}
.studio-life .life-feature::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(420px circle at var(--life-x,55%) var(--life-y,22%),rgba(255,151,72,.2),transparent 72%);opacity:.35;transition:opacity .4s ease}
.studio-life .life-community::before{background:radial-gradient(320px circle at var(--life-x,65%) var(--life-y,25%),rgba(158,171,255,.24),transparent 72%)}
.studio-life .life-caption,.studio-life .life-photo-label,.studio-life .life-round-arrow{z-index:2}
.studio-life .life-feature img{transform:scale(1.015);transition:transform .75s cubic-bezier(.22,.61,.36,1)}
.life-sheen{position:absolute;inset:0;z-index:1;overflow:hidden;border-radius:inherit;pointer-events:none}
.life-sheen::before{content:"";position:absolute;top:-25%;left:0;width:70%;height:150%;background:linear-gradient(110deg,transparent 26%,rgba(255,212,169,.025) 39%,rgba(255,232,212,.15) 49%,rgba(255,255,255,.04) 56%,transparent 72%);transform:translateX(-155%)}
.life-community .life-sheen::before{background:linear-gradient(110deg,transparent 26%,rgba(186,199,255,.035) 39%,rgba(223,231,255,.17) 49%,rgba(255,255,255,.04) 56%,transparent 72%)}
.life-arrived .life-sheen::before{animation:life-arrival-glint 1.4s .18s ease-out both}
@keyframes life-arrival-glint{from{transform:translateX(-155%)}to{transform:translateX(250%)}}
@keyframes life-hover-glint{from{transform:translateX(-155%)}to{transform:translateX(250%)}}
.studio-life .life-photo-label{display:flex;align-items:center;gap:9px;border-color:rgba(245,241,234,.24);background:rgba(12,11,9,.58);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.life-meter{display:inline-flex;align-items:center;justify-content:center;gap:2px;flex:none;width:17px;height:15px;color:#ff8340}
.life-meter i{display:block;width:2px;height:9px;border-radius:2px;background:currentColor;transform-origin:center}
.life-meter i:nth-child(2){height:15px}.life-meter i:nth-child(3){height:11px}.life-meter i:nth-child(4){height:6px}
.life-eq-bar{transform-box:fill-box;transform-origin:center}
.life-arrived .life-meter i{animation:life-equalizer .72s ease-in-out 4 alternate}
.life-arrived .life-meter i:nth-child(2){animation-delay:.12s}
.life-arrived .life-meter i:nth-child(3){animation-delay:.26s}
.life-arrived .life-meter i:nth-child(4){animation-delay:.08s}
@keyframes life-equalizer{0%,100%{transform:scaleY(.45)}50%{transform:scaleY(1)}}
.studio-life .life-benefit{position:relative;isolation:isolate}
.studio-life .life-benefit::before{content:"";position:absolute;inset:2px -12px;z-index:-1;border-radius:12px;pointer-events:none;background:linear-gradient(105deg,rgba(255,106,26,.09),rgba(255,106,26,.015) 80%);opacity:0;transition:opacity .3s ease}
.studio-life .life-benefit-arrow{transition:color .25s ease,transform .3s ease}
.studio-life .life-link{position:relative;min-height:28px}
.studio-life .life-link::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:currentColor;transform:scaleX(.25);transform-origin:left;opacity:0;transition:transform .35s ease,opacity .35s ease}
.studio-life .life-link span,.studio-life .life-round-arrow{transition:transform .35s ease,background .25s ease,color .25s ease,border-color .25s ease}
.studio-life .life-feature:focus-visible::before{opacity:1}
.studio-life .life-feature:focus-visible .life-link::after{transform:scaleX(1);opacity:.65}
.studio-life .life-feature:focus-visible .life-sheen::before{animation:life-hover-glint 1.1s ease-out both}
.studio-life .life-benefit:focus-visible::before{opacity:1}
@media (hover:hover) and (pointer:fine){
  .studio-life .life-feature:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(0,0,0,.18)}
  .studio-life .life-feature:hover::before{opacity:1}
  .studio-life .life-feature:hover img{transform:translate(var(--life-dx,0px),var(--life-dy,0px)) scale(1.055)}
  .studio-life .life-feature:hover .life-sheen::before{animation:life-hover-glint 1.1s ease-out both}
  .studio-life .life-feature:hover .life-meter i{animation:life-equalizer .72s ease-in-out infinite alternate}
  .studio-life .life-feature:hover .life-link::after{transform:scaleX(1);opacity:.65}
  .studio-life .life-feature:hover .life-link span{transform:translate(3px,-3px)}
  .studio-life .life-feature:hover .life-round-arrow{transform:rotate(45deg);background:var(--accent);border-color:var(--accent);color:#0c0b09}
  .studio-life .life-benefit:hover::before{opacity:1}
  .studio-life .life-benefit:hover .life-benefit-arrow{transform:translate(3px,-3px);color:var(--accent-text)}
  .studio-life .life-benefit:hover .life-eq-bar{animation:life-equalizer .8s ease-in-out infinite alternate}
  .studio-life .life-benefit:hover .life-eq-bar:nth-child(2){animation-delay:.13s}
  .studio-life .life-benefit:hover .life-eq-bar:nth-child(3){animation-delay:.26s}
  .studio-life .life-benefit:hover .life-eq-bar:nth-child(4){animation-delay:.07s}
}
@media (max-width:380px){.studio-life .life-photo-label{gap:7px}.life-meter{width:13px;gap:1.5px}}
@media (prefers-reduced-motion:reduce){
  .studio-life .life-feature,.studio-life .life-feature img,.studio-life .life-feature::before,.studio-life .life-benefit::before,.studio-life .life-benefit-arrow,.studio-life .life-link::after,.studio-life .life-link span,.studio-life .life-round-arrow{transition:none}
  .studio-life .life-feature,.studio-life .life-feature:hover,.studio-life .life-feature img,.studio-life .life-feature:hover img,.studio-life .life-benefit:hover .life-benefit-arrow,.studio-life .life-feature:hover .life-link span,.studio-life .life-feature:hover .life-round-arrow{transform:none}
  .studio-life .life-sheen::before,.studio-life .life-feature:hover .life-sheen::before,.studio-life .life-feature:focus-visible .life-sheen::before,.studio-life .life-meter i,.studio-life .life-feature:hover .life-meter i,.studio-life .life-benefit:hover .life-eq-bar{animation:none}
  .studio-life .life-sheen{display:none}
}

/* Блок «Больше, чем уроки музыки»: убран только «фонарик» за курсором.
   Блик и сдвиг картинки за мышью остаются. */
.studio-life .life-feature::before{display:none}

/* ===== Концерты: видео, галерея, просмотр фото ===== */
.video-frame{position:relative;overflow:hidden;border-radius:16px;aspect-ratio:16/9;
  background:#0c0b09;border:1px solid rgba(var(--fg-rgb),.10);box-shadow:0 18px 44px rgba(0,0,0,.35)}
.video-el{display:block;width:100%;height:100%;object-fit:cover;background:#0c0b09}
/* Крупная кнопка поверх обложки; прячется, как только видео запущено */
.video-play{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;
  display:grid;place-items:center;border:0;border-radius:50%;cursor:pointer;
  background:var(--accent);color:var(--on-accent);
  box-shadow:0 0 0 10px rgba(255,106,26,.18),0 14px 34px rgba(0,0,0,.45);
  transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s ease}
.video-play svg{width:34px;height:34px;margin-left:5px}
.video-play:hover{transform:scale(1.08);box-shadow:0 0 0 16px rgba(255,106,26,.16),0 18px 40px rgba(0,0,0,.5)}
.video-play:focus-visible{outline:3px solid var(--ink);outline-offset:6px}
.video-frame.is-playing .video-play{opacity:0;pointer-events:none;transform:scale(.8)}
.video-frame::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(0deg,rgba(12,11,9,.55),transparent 45%);transition:opacity .3s ease}
.video-frame.is-playing::before{opacity:0}
.video-el{position:relative;z-index:0}
.video-frame::before{z-index:1}
.video-play{z-index:2}
/* Заглушка, пока файла видео нет */
.video-empty{position:absolute;inset:0;z-index:2;display:none;flex-direction:column;
  justify-content:flex-end;align-items:flex-start;gap:14px;padding:clamp(22px,4vw,44px);
  color:#f5f1ea;background:linear-gradient(0deg,rgba(12,11,9,.92) 12%,rgba(12,11,9,.35) 62%,rgba(12,11,9,.15))}
.video-empty p{margin:0;max-width:460px;font-size:16px;line-height:1.65;color:rgba(245,241,234,.8)}
.video-empty .kicker{color:#ff8340}
.video-frame.is-empty .video-empty{display:flex}
.video-frame.is-empty .video-play{display:none}
/* Галерея почти во всю ширину экрана: сама секция снимает ограничение
   .wrap, а заголовок и кнопка остаются в общей колонке сайта. Ширину
   считаем через проценты, а не 100vw — иначе полоса прокрутки дала бы
   горизонтальный скролл. Линия-разделитель тоже остаётся в колонке. */
#photos.wrap{max-width:none;padding-left:16px;padding-right:16px;padding-top:0;border-top:0}
/* Видео чуть уже колонки сайта и по центру */
#video .video-frame{max-width:1080px;margin-left:auto;margin-right:auto}


/* Заголовок «ФОТО»: по центру, над ним маленькая подпись, по бокам
   тонкие оранжевые линии с точкой — как отметка на плёнке */
.photo-title-kicker{font-size:11px;font-weight:700;letter-spacing:.24em;color:var(--accent-text)}
/* разрядка добавляет пробел после последней буквы — уравниваем слева */

/* Просмотр фото на весь экран */
.lightbox{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;
  background:rgba(8,7,6,.94);color:#f5f1ea;overflow:hidden}
.lightbox::backdrop{background:rgba(8,7,6,.6)}
.lightbox[open]{display:grid;place-items:center;animation:lbIn .25s ease}
@keyframes lbIn{from{opacity:0}}
.lightbox img{max-width:min(92vw,1400px);max-height:84dvh;object-fit:contain;border-radius:8px;
  box-shadow:0 30px 80px rgba(0,0,0,.6)}
.lightbox .lb-btn{position:absolute;display:grid;place-items:center;width:52px;height:52px;border-radius:50%;
  border:1px solid rgba(245,241,234,.25);background:rgba(12,11,9,.55);color:#f5f1ea;cursor:pointer;
  transition:background .2s ease,border-color .2s ease,color .2s ease}
.lb-btn:hover{background:var(--accent);border-color:var(--accent);color:#0c0b09}
.lb-btn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.lb-btn svg{width:22px;height:22px}
.lb-close{top:18px;right:18px}
.lb-prev{left:18px;top:50%;margin-top:-26px}
.lb-next{right:18px;top:50%;margin-top:-26px}
.lb-count{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);
  font-size:13px;letter-spacing:.08em;color:rgba(245,241,234,.7);font-variant-numeric:tabular-nums}
@media (max-width:760px){
  #photos.wrap{padding-left:8px;padding-right:8px}
  .video-play{width:72px;height:72px;margin:-36px 0 0 -36px}
  .video-play svg{width:26px;height:26px}
  .video-frame{aspect-ratio:4/3}
  .lb-prev,.lb-next{top:auto;bottom:14px;margin:0}
  .lb-count{bottom:30px}
}
@media (prefers-reduced-motion:reduce){
  .video-play{transition:none}
  .lightbox[open]{animation:none}
}

/* Фотоблок концертов: React-галерея и статический резервный вариант. */
#photos.photo-album{padding-top:64px;padding-bottom:64px}
.photo-album-heading{display:flex;flex-direction:column;align-items:center;gap:18px;margin-bottom:40px;text-align:center}
.photo-title-frame{position:relative;display:inline-block;padding:18px 34px}
.photo-album-heading h2{margin:0;font-family:var(--display);font-size:clamp(54px,7vw,100px);font-weight:700;line-height:1.1;letter-spacing:-.065em}
.photo-title-frame::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.8;background:
  linear-gradient(var(--accent),var(--accent)) left top/18px 1px no-repeat,
  linear-gradient(var(--accent),var(--accent)) left top/1px 18px no-repeat,
  linear-gradient(var(--accent),var(--accent)) right top/18px 1px no-repeat,
  linear-gradient(var(--accent),var(--accent)) right top/1px 18px no-repeat,
  linear-gradient(var(--accent),var(--accent)) left bottom/18px 1px no-repeat,
  linear-gradient(var(--accent),var(--accent)) left bottom/1px 18px no-repeat,
  linear-gradient(var(--accent),var(--accent)) right bottom/18px 1px no-repeat,
  linear-gradient(var(--accent),var(--accent)) right bottom/1px 18px no-repeat}
.photo-album-heading.is-visible .photo-title-frame{animation:photo-heading-in .7s cubic-bezier(.22,.61,.36,1) both}
.photo-album-heading.is-visible .photo-title-frame::before{animation:photo-frame-in .95s ease-out both}
.photo-album-heading.is-visible .photo-title-kicker{animation:photo-heading-in .65s .08s ease-out both}
@keyframes photo-heading-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes photo-frame-in{from{opacity:0;transform:scale(1.12)}to{opacity:.8;transform:scale(1)}}
.concert-photo-fallback{columns:3;column-gap:24px}
.concert-photo-fallback a{display:block;break-inside:avoid;margin-bottom:24px;border-radius:12px;overflow:hidden}
.concert-photo-fallback img{display:block;width:100%;height:auto}
@media(max-width:1023px){.concert-photo-fallback{columns:2}}
@media(max-width:639px){.concert-photo-fallback{columns:1}}
.photo-album-footer{display:flex;justify-content:center;margin-top:34px}
.photo-all-button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;min-width:240px;max-width:100%;padding:15px 32px;font-size:14px}
@media(max-width:600px){
  #photos.photo-album{padding:40px 20px}
  .photo-album-heading{gap:14px;margin-bottom:28px}
  .photo-album-heading h2{font-size:56px}
  .photo-title-frame{padding:17px 26px}
  .photo-album-footer{margin-top:26px}
}
@media(prefers-reduced-motion:reduce){.photo-album *, .photo-album *::before, .photo-album *::after{transition:none!important;animation:none!important}}

/* Страница «Концерты»: анонс крупнее, чем компактный блок на главной,
   и линия снизу — раздел закрывается так же, как открывается. */
#next{border-bottom:1px solid var(--line)}
#next .home-concert{grid-template-columns:300px minmax(0,1fr) 220px;gap:40px;min-height:200px}
#next .concert-visual{height:200px}
#next .concert-copy h3{font-size:34px}
#next .concert-copy>p{margin-top:14px;font-size:15.5px;max-width:720px}
#next .concert-actions .btn{min-height:48px;font-size:14px}
@media (max-width:1100px){
  #next .home-concert{grid-template-columns:230px minmax(0,1fr) 200px;gap:30px}
  #next .concert-visual{height:170px}
  #next .concert-copy h3{font-size:28px}
}
@media (max-width:900px){
  #next .home-concert{grid-template-columns:190px minmax(0,1fr);gap:0 26px}
  #next .concert-visual{height:180px}
  #next .concert-copy h3{font-size:26px}
}
@media (max-width:600px){
  #next .home-concert{grid-template-columns:120px minmax(0,1fr);gap:0 20px}
  #next .concert-visual{height:112px}
  #next .concert-copy h3{font-size:22px}
}
/* Значок WhatsApp в кнопке билета */
.concert-actions .btn .btn-ico{display:block;width:20px;height:20px;flex:0 0 20px;margin:0}

/* Карты филиалов: виджет Яндекса вместо заглушки */
.map-box:has(.map-frame){border-style:solid;border-color:rgba(var(--fg-rgb),.12);
  padding:0;gap:0;overflow:hidden;display:block;position:relative}
.map-frame{display:block;width:100%;height:320px;border:0;background:var(--bg-card)}
.map-link{display:block;padding:13px 18px;font-size:13.5px;font-weight:700;
  text-decoration:none;color:var(--accent-text);border-top:1px solid var(--line);
  background:var(--bg-card);transition:color .2s ease,background .2s ease}
.map-link:hover{color:var(--ink);background:rgba(var(--fg-rgb),.05)}
@media (max-width:760px){.map-frame{height:260px}}

/* ===== Фоновое оформление: заполняем пустоту, не отвлекая от текста =====
   Три слоя, все нарисованы кодом — никаких новых картинок для загрузки:
   1) звуковая волна в шапках внутренних страниц (перекликается с главной),
   2) мелкая сетка точек,
   3) едва заметное зерно на всей странице, чтобы тёмный фон не был плоским. */

/* 1–2. Шапки страниц без фотографии */
.page-hero:not(.has-photo){min-height:300px;display:flex;align-items:center}
.page-hero:not(.has-photo)::after{
  content:"";position:absolute;right:24px;top:0;bottom:0;width:min(44%,760px);z-index:0;pointer-events:none;
  background:
    url("../../assets/sound-wave.svg") center / 100% 100% no-repeat,
    radial-gradient(circle, rgba(var(--fg-rgb),.10) 1.1px, transparent 1.2px) 0 0 / 26px 26px;
  /* Широкая волна справа, мягкий переход к тексту слева. */
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 18%, #000 94%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 18%, #000 94%, transparent);
  opacity:.55}
.page-hero .wrap{z-index:1}

/* 3. Зерно поверх всей страницы — очень слабое, текст не трогает */
body::after{content:"";position:fixed;inset:0;z-index:1;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.8%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22160%22%20height%3D%22160%22%20filter%3D%22url%28%23n%29%22%20opacity%3D%220.5%22%2F%3E%3C%2Fsvg%3E");background-size:160px 160px;
  opacity:.035;mix-blend-mode:overlay}
.site-header{z-index:40}

@media (max-width:900px){
  .page-hero:not(.has-photo){min-height:0}
  .page-hero:not(.has-photo)::after{right:0;width:100%;opacity:.16;
    -webkit-mask-image:linear-gradient(180deg, transparent 0%, #000 65%);
    mask-image:linear-gradient(180deg, transparent 0%, #000 65%)}
}
@media (prefers-reduced-motion:reduce){body::after{display:none}}

/* Подсветка рамок как в исходной копии. Отдельный слой сохраняет декор карточек. */
.hover-outline{position:relative}
.hover-rim{
  position:absolute;inset:0;z-index:8;padding:1px;border-radius:inherit;
  pointer-events:none;opacity:0;transition:opacity .3s ease;
  background:var(--accent);
  -webkit-mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);
  mask:linear-gradient(#fff,#fff) content-box,linear-gradient(#fff,#fff);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
@media (hover:hover) and (pointer:fine){
  .hover-outline:not(.active):hover > .hover-rim{opacity:1}
  .direction-card:hover{border-color:var(--accent)}
  .direction-card > .hover-rim{display:none}
  .tile:hover,.teacher-card:hover,.event-card:hover{border-color:rgba(255,106,26,.55)}
  .cursor-glow > .hover-rim{
    inset:-1px;padding:2px;opacity:1;
    background:radial-gradient(231px 231px at var(--gx,-999px) var(--gy,-999px),
      hsl(21 100% 62% / calc(.85 * var(--ga,0))),transparent 100%);
  }
}

/* Блоки, обновляемые из админки, используют существующий стиль сайта. */
[hidden]{display:none!important}
.cms-branch-contact{display:flex;flex-direction:column;gap:18px}
.cms-branch-heading{display:flex;align-items:center;gap:8px 12px;margin-bottom:4px;flex-wrap:wrap}
.cms-branch-contact .contact-line a{color:var(--accent-text);font-weight:700;text-decoration:none}
.cms-teacher-description,.cms-teacher-detail{margin:0;font-size:14.5px;line-height:1.55;color:var(--ink-faint)}
.cms-teacher-detail{font-size:13.5px}
.cms-teacher-compact{padding:26px 24px}
.cms-empty{color:var(--ink-dim);font-size:15px;line-height:1.6}
.cms-filter-separator{width:1px;background:var(--line);height:28px;margin:0 4px;align-self:center}
.cms-price-branch{margin:28px 0 14px;font-size:20px}

/* Страницы дисциплин: текст слева от фотографии, спокойные таблицы. */
.discipline-page>.wrap.section{width:calc(100% - 96px);max-width:1160px;margin-inline:auto;padding:64px 0}
.discipline-page .page-hero.has-photo{min-height:470px}
.discipline-page .page-hero .wrap{max-width:1344px;padding:56px 48px 48px;align-items:flex-start;text-align:left;gap:22px}
.discipline-page .page-hero.has-photo h1{max-width:min(66%,800px);font-size:clamp(30px,3.7vw,52px);line-height:1.1;letter-spacing:-.02em;text-wrap:balance}
.discipline-page .page-hero.has-photo .lead{max-width:min(50%,560px);color:rgba(var(--ink-rgb),.78);font-size:18px;line-height:1.7;text-wrap:pretty}
.discipline-page .page-hero .kicker{line-height:1.7;letter-spacing:.18em}
.discipline-page .hero-actions{justify-content:flex-start;margin-top:5px}
.discipline-page .hero-media{width:min(56%,860px);inset:0 0 0 auto}
.discipline-page .hero-media img{width:100%;margin:0;opacity:1;object-position:50% 30%}
.discipline-page .hero-media::after{background:linear-gradient(90deg,var(--bg),rgba(var(--bg-rgb),.9) 16%,rgba(var(--bg-rgb),.45) 46%,rgba(var(--bg-rgb),.12) 72%,rgba(var(--bg-rgb),.2)),linear-gradient(0deg,var(--bg),transparent 34%)}
.discipline-page .direction-overview{border-top:0}
.direction-overview .grid-2{gap:24px;align-items:stretch}
.direction-focus{padding:32px 36px 36px;background:rgba(var(--bg-card-rgb),.72);border:1px solid var(--line);border-radius:18px;position:relative}
.direction-focus::before{content:"";position:absolute;top:-1px;left:calc(50% - 24px);width:48px;height:2px;background:var(--accent);border-radius:2px}
.direction-focus .section-head{justify-content:center;text-align:center;margin-bottom:24px}
.direction-focus h2{font-size:clamp(22px,2vw,28px);letter-spacing:-.02em}
.direction-focus .check-list{width:fit-content;margin-inline:auto;gap:15px;color:rgba(var(--ink-rgb),.88);line-height:1.65}
.discipline-page .direction-prices{border-top:1px solid var(--line)}
.direction-prices>.section-head{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin-bottom:36px}
.direction-prices>.section-head h2{font-size:clamp(28px,3vw,36px);letter-spacing:-.025em;margin:0}
.direction-rate{padding:0;background:transparent}
.direction-rate+.direction-rate{margin-top:42px}
.direction-rate .cms-price-branch{display:flex;align-items:center;justify-content:center;gap:14px;text-align:center;margin:0 0 24px;font-size:22px;letter-spacing:-.02em}
.direction-rate .cms-price-branch::before,.direction-rate .cms-price-branch::after{content:"";height:1px;width:32px;background:rgba(255,106,26,.45)}
.direction-rate .price-table thead{background:rgba(255,106,26,.035)}
.direction-rate .price-table th{border-bottom-color:rgba(255,106,26,.28)}
.direction-rate .price-table tbody tr{transition:background-color .22s ease,box-shadow .22s ease}
@media(hover:hover){.direction-rate .price-table tbody tr:hover{background:rgba(255,106,26,.045);box-shadow:inset 2px 0 rgba(255,106,26,.6)}}
.direction-rate .price-table th:not(:first-child),.direction-rate .price-table td:not(:first-child){text-align:center}
.direction-rate .price-table th{color:rgba(var(--ink-rgb),.75);padding-top:10px;padding-bottom:18px}
.direction-rate .price-table td{padding-top:22px;padding-bottom:22px}
.direction-rate .price-table td:first-child{font-weight:600;color:var(--ink)}
.direction-rate .price-table .price{font-size:17px}
.direction-rate .price-table .price-note{display:block;color:rgba(var(--ink-rgb),.72);font-size:12px;margin-top:6px;font-weight:500}
.price-terms{margin:16px 0 0;padding:0;color:#eb955e;font-size:13px;font-weight:500;line-height:1.85;text-align:left;text-wrap:pretty}
.direction-price-link{display:inline-flex;align-items:center;gap:12px;margin-top:28px;padding:8px 0;color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(255,106,26,.35);font-size:14px;font-weight:700}
.direction-price-link span{transition:transform .2s ease}
.direction-price-link:hover span{transform:translate(2px,-2px)}
.discipline-page .rating-strip{justify-content:center;text-align:center}
.discipline-page .rating-strip a{margin-left:0}
.discipline-page .booking-side h2{font-size:clamp(34px,3.1vw,44px);line-height:1.2;text-wrap:balance}
@media(max-width:960px){
  .discipline-page>.wrap.section{width:calc(100% - 48px);padding:48px 0}
  .discipline-page .page-hero.has-photo{min-height:0}
  .discipline-page .page-hero.has-photo h1{max-width:none;font-size:clamp(28px,4.3vw,42px)}
  .discipline-page .page-hero.has-photo .lead{max-width:640px}
  .discipline-page .hero-media{width:100%}
  .discipline-page .hero-media img{width:100%;opacity:.6}
  .discipline-page .hero-media::after{background:linear-gradient(90deg,rgba(var(--bg-rgb),.85),rgba(var(--bg-rgb),.6)),linear-gradient(0deg,var(--bg),transparent 55%)}
  .direction-focus{padding:28px 24px}
}
@media(max-width:600px){
  .discipline-page>.wrap.section{width:calc(100% - 32px);padding:36px 0}
  .discipline-page .page-hero .wrap{padding:52px 20px 48px;gap:20px}
  .discipline-page .page-hero.has-photo{min-height:0}
  .discipline-page .page-hero.has-photo h1{font-size:clamp(25px,6.7vw,34px)}
  .discipline-page .page-hero.has-photo .lead{font-size:16px;line-height:1.65}
  .discipline-page .page-hero .kicker{font-size:10px;letter-spacing:.12em}
  .direction-overview .grid-2{gap:18px}
  .direction-focus{padding:26px 22px}
  .direction-focus .check-list{font-size:14.5px}
  .direction-rate{padding:0}
  .direction-rate .cms-price-branch{font-size:20px;margin-bottom:18px}
  .direction-rate .price-table .price{font-size:15px}
  .direction-rate .price-table td{padding:18px 12px}
  .direction-rate .table-scroll::before{content:"Листайте таблицу, чтобы увидеть все цены →";display:block;margin:0 0 12px;font-size:11px;line-height:1.5;color:var(--accent)}
  .price-terms{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
  .discipline-page .page-hero .wrap>*{animation:none!important}
  .direction-rate .price-table tbody tr,.direction-price-link span{transition:none}
}
/* Legal documents */
.route-document-link{display:inline-block;align-self:flex-start;padding:8px 0;color:var(--accent-text);font-size:15px;font-weight:600;line-height:1.6;text-decoration:underline;text-underline-offset:4px}
.route-document-link:hover{color:var(--ink)}
.route-document-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.legal-document{max-width:940px;color:var(--ink-dim);font-size:16px;line-height:1.8}
.legal-document .legal-date{margin:0 0 24px;font-size:13px}
.legal-operator{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:28px;border:1px solid var(--line, #38342e);border-radius:16px;background:var(--card, #171511)}
.legal-operator strong{font-size:22px;line-height:1.4;color:var(--ink)}
.legal-operator .kicker{font-size:11px;margin-bottom:8px}
.legal-document a{color:var(--accent);text-underline-offset:4px;overflow-wrap:anywhere}
.legal-contents{display:flex;flex-wrap:wrap;gap:10px 22px;padding:24px 0;border-bottom:1px solid var(--line, #38342e);font-size:14px}
.legal-document section{margin-top:38px;scroll-margin-top:110px}
.legal-document h2{font-family:var(--text);font-size:24px;line-height:1.4;color:var(--ink);margin:0 0 18px}
.legal-document p{margin:0 0 16px}
.legal-purposes{margin:0}
.legal-purposes>div{padding:18px 0;border-bottom:1px solid var(--line, #38342e)}
.legal-purposes dt{color:var(--ink);font-weight:700;margin-bottom:8px}
.legal-purposes dd{margin:0}
@media(max-width:600px){.legal-document{font-size:15px}.legal-document h2{font-size:21px}.legal-operator{padding:20px}.legal-operator strong{font-size:20px}.legal-document section{scroll-margin-top:90px}}

/* Stage background: a static haze and small, independent dot patches. */
body{position:relative;isolation:isolate;background-color:#090807;background-image:none}
body::before{content:"";position:absolute;inset:0;z-index:-2;pointer-events:none;background-image:radial-gradient(ellipse 48% 420px at 105% 450px,#c4470a12,transparent 74%),radial-gradient(ellipse 48% 460px at -8% 1300px,#e7520b10,transparent 74%);background-size:100% 1800px;background-repeat:repeat-y}
html body::after{display:none!important}

.stage-dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.stage-dot-patch {
  --stage-dot-offset: 8%;
  --stage-dot-opacity: .88;
  --stage-dot-tilt: 3deg;
  position: absolute;
  left: 0;
  aspect-ratio: 330 / 480;
  translate: calc(-1 * var(--stage-dot-offset)) 0;
  contain: layout paint;
}

.stage-dot-patch.is-right {
  --stage-dot-tilt: -3deg;
  left: auto;
  right: 0;
  translate: var(--stage-dot-offset) 0;
}

.stage-dot-art {
  position: absolute;
  inset: 6% 0;
  background: url('../background-dots-0.svg') left center / contain no-repeat;
  opacity: var(--stage-dot-opacity);
  animation: stage-dot-breathe 14s ease-in-out var(--stage-dot-delay, 0s) infinite;
  animation-play-state: paused;
}

.is-right .stage-dot-art {
  background-image: url('../background-dots-1.svg');
  background-position: right center;
}

.stage-dots:not(.is-paused) .stage-dot-patch.is-visible .stage-dot-art {
  animation-play-state: running;
}

@keyframes stage-dot-breathe {
  0%, 100% { transform: rotate(calc(-1 * var(--stage-dot-tilt))) scale(1.02); opacity: var(--stage-dot-opacity); }
  45% { transform: rotate(var(--stage-dot-tilt)) scale(1.09); opacity: calc(var(--stage-dot-opacity) + .1); }
}

@media (max-width: 1200px) {
  .stage-dot-patch { --stage-dot-offset: 23%; --stage-dot-opacity: .78; }
}

@media (max-width: 740px) {
  body::before{background-image:radial-gradient(ellipse 80% 300px at 110% 350px,#c4470a0d,transparent 80%),radial-gradient(ellipse 80% 340px at -10% 1000px,#e7520b0c,transparent 80%);background-size:100% 1400px}
  .stage-dot-patch { --stage-dot-offset: 42%; --stage-dot-opacity: .58; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-dot-art { animation: none; }
}

/* Contacts: links to the studio's social pages. */
.contact-social .section-head {
  margin-bottom: 24px;
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-social-card {
  --social-color: #ff6a1a;
  --social-glow: rgb(255 106 26 / 12%);
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 6px 12px;
  align-items: start;
  height: 100%;
  min-height: 140px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--social-color);
  border-radius: 17px;
  background: linear-gradient(145deg, var(--social-glow), transparent 68%), #171512;
  color: var(--ink);
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.contact-social-card--vk { --social-color: #2787ff; --social-glow: rgb(39 135 255 / 14%); }
.contact-social-card--youtube { --social-color: #ff4343; --social-glow: rgb(255 67 67 / 13%); }
.contact-social-card--telegram { --social-color: #26a5e4; --social-glow: rgb(38 165 228 / 13%); }
.contact-social-card--instagram { --social-color: #ed6393; --social-glow: rgb(237 99 147 / 14%); }

.contact-social-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: #080808;
  box-shadow: inset 0 0 0 1px var(--line);
}

.contact-social-arrow {
  width: 21px;
  height: 21px;
  color: var(--social-color);
  transition: transform .24s ease;
}

.contact-social-card strong {
  grid-column: 1 / -1;
  align-self: end;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-social-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .contact-social-card:hover {
    transform: translateY(-4px);
    border-color: var(--social-color);
    box-shadow: 0 12px 30px var(--social-glow);
  }
  .contact-social-card:hover .contact-social-arrow {
    transform: translate(3px, -3px);
  }
}

@media (max-width: 860px) {
  .contact-social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .contact-social-grid { gap: 12px; }
  .contact-social-card { min-height: 116px; padding: 14px; }
  .contact-social-icon { width: 42px; height: 42px; margin-bottom: 6px; }
  .contact-social-card strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-social-card, .contact-social-arrow { transition: none; }
  .contact-social-card:hover, .contact-social-card:hover .contact-social-arrow { transform: none; }
}
