/* ===================== Шапка ===================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, height .3s var(--ease);
}
.header.is-compact { --header-h: 64px; height: 64px; }
/* Фон с размытием — на псевдоэлементе: backdrop-filter на самой шапке сделал бы её
   containing block для fixed-меню, и меню сжималось бы до 64px */
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .3s;
  background: rgba(251, 247, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-compact::before { opacity: 1; }
.header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 38px; height: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text b { font: 700 18px/1 var(--font-display); letter-spacing: .02em; }
.logo__text small { font-size: 11px; font-weight: 600; color: var(--ink-70); letter-spacing: .02em; margin-top: 3px; }
.logo--light { color: #fff; }
.logo--light .logo__text small { color: rgba(255, 255, 255, .65); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 999px;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .2s;
}
.header__cta { white-space: nowrap; }
.nav__link:hover, .nav__drop-btn[aria-expanded="true"] { background: rgba(43, 24, 93, .07); }
.nav__drop-btn svg { transition: transform .3s var(--ease); }
.nav__drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__item--drop { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.nav__item--drop.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__drop a:hover { background: var(--bg); }
.nav__drop i { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.nav__mobile-extra { display: none; }

.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.header__phone svg { color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; flex-shrink: 0; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* телефон в шапке — круглая иконка: номер есть в меню, подвале и контактах */
.header__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header__phone { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 1120px) {
  .burger { display: block; }
  .header__phone { margin-left: auto; width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  /* музыкальный фон меню: нотный стан снизу справа и мягкие пятна бренда */
  .nav {
    background:
      url("../img/menu-music.svg?v=2") right -10px bottom -20px / min(440px, 115%) auto no-repeat,
      radial-gradient(60% 40% at 100% 100%, rgba(122, 63, 209, .10), transparent 70%),
      radial-gradient(50% 35% at 0% 75%, rgba(210, 39, 111, .08), transparent 70%),
      var(--bg);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font: 600 22px/1.2 var(--font-display); border-bottom: 1px solid var(--line); }
  .nav__link:hover, .nav__drop-btn[aria-expanded="true"] { background: none; }
  .nav__drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; padding: 0; display: none; }
  .nav__item--drop.is-open .nav__drop { display: block; }
  .nav__drop a { font-size: 17px; padding: 12px 4px; }
  .nav__mobile-extra { display: grid; gap: 12px; margin-top: 28px; }
  .nav__phone { font: 700 20px/1.2 var(--font-body); text-decoration: none; }
  .nav__phone { display: flex; align-items: center; gap: 12px; }
  .nav__ico { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
  .nav__phone--wa .nav__ico { background: #25D366; color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 211, 102, .7); }
  .nav__socials { display: flex; gap: 12px; }
  .nav__label { justify-self: start; margin: 14px 0 -2px; padding: 5px 12px; border-radius: 999px; font: 700 15px/1.3 var(--font-body); color: var(--ink-70); background: rgba(251, 247, 241, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(43, 24, 93, .06); }
  .nav__socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--accent), var(--c-studio)); box-shadow: 0 8px 18px -10px rgba(122, 63, 209, .7); transition: transform .3s var(--ease); }
  .nav__socials a:active { transform: scale(.94); }
}
@media (max-width: 520px) { .header__cta { display: none; } .header__phone { margin-left: auto; } }

/* ---------- Переключатель языка ---------- */
.lang { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); flex-shrink: 0; }
.lang__link { padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-decoration: none; color: var(--ink-70); transition: background-color .2s, color .2s; }
.lang__link:hover { color: var(--ink); background: var(--bg); }
.lang__link[aria-current="true"] { background: linear-gradient(110deg, var(--accent), var(--c-studio)); color: #fff; box-shadow: 0 6px 14px -8px rgba(122, 63, 209, .7); }
.lang--menu { display: none; }
@media (max-width: 1120px) {
  .lang--header { display: none; }
  .lang--menu { display: inline-flex; justify-self: start; margin-top: 12px; padding: 5px; }
  .lang--menu .lang__link { padding: 10px 18px; font-size: 16px; }
}

/* ===================== Первый экран ===================== */
.hero { position: relative; padding: calc(var(--header-h) + clamp(24px, 5vw, 64px)) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 900px; height: 900px; right: -300px; top: -360px; z-index: -1;
  background: radial-gradient(closest-side, rgba(210, 39, 111, .16), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; width: 700px; height: 700px; left: -320px; bottom: -280px; z-index: -1;
  background: radial-gradient(closest-side, rgba(122, 63, 209, .12), transparent 70%);
}
.strings { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.strings path { fill: none; stroke: var(--ink); stroke-opacity: .13; stroke-width: 1.5; }
.strings path:nth-child(2) { stroke: var(--accent); stroke-opacity: .25; }
.strings path:nth-child(3) { stroke-width: 1; }

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { margin-bottom: 20px; }
.hero__title { font-size: clamp(30px, 4.1vw, 56px); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__title .word { display: inline-block; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-70); max-width: 34em; margin-bottom: 28px; }
.hero__lead:has(+ .hero__points) { margin-bottom: 14px; }
.ticks.hero__points { grid-template-columns: 1fr; gap: 8px; margin-bottom: 28px; font-size: 16px; color: var(--ink); max-width: 34em; }
.hero__points li::before { top: 3px; }

.hero__media { position: relative; }
.blob {
  aspect-ratio: 1 / 1.05; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--c-studio-soft);
  animation: blob 14s ease-in-out infinite alternate;
}
.blob img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@keyframes blob { 50% { border-radius: 44% 56% 58% 42% / 46% 58% 42% 54%; } 100% { border-radius: 52% 48% 40% 60% / 58% 40% 60% 42%; } }
.hero__badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.hero__badge b { font: 700 22px/1 var(--font-display); color: var(--accent); }
.hero__badge svg { color: var(--c-studio); }
.hero__badge--a { left: -6%; top: 14%; }
.hero__badge--b { right: -4%; bottom: 12%; }

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 5vw, 64px); }
.facts li { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(6px); }
.facts b { font: 700 clamp(28px, 3vw, 36px)/1 var(--font-display); color: var(--accent-ink); flex-shrink: 0; }
.facts span { font-weight: 600; line-height: 1.35; color: var(--ink-70); }

/* Форма */
.lead-form { position: relative; }
.lead-form--hero { background: #fff; border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow); max-width: 640px; }
.lead-form__title { font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-bottom: 18px; font-size: 15px; color: var(--ink-70); }
.ticks li { position: relative; padding-left: 26px; line-height: 1.4; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23D2276F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--steps { grid-template-columns: 1fr; gap: 10px; counter-reset: step; font-size: 15.5px; color: var(--ink); }
.ticks--steps li { padding-left: 36px; counter-increment: step; }
.ticks--steps li::before {
  content: counter(step); top: -1px; width: 24px; height: 24px; background: var(--accent-soft);
  color: var(--accent-ink); font: 800 13px/24px var(--font-display); text-align: center;
}
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-form__row .btn { grid-column: 1 / -1; }
.lead-form__note { margin-top: 12px; font-size: 12.5px; color: var(--ink-50); line-height: 1.4; }
.lead-form__note a { color: inherit; }
.form-status { font-size: 14.5px; font-weight: 600; margin-top: 10px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--accent-ink); }
/* значок у подсказки об ошибке («Как вас зовут?», «Проверьте номер…») */
.form-status.is-error { position: relative; padding-left: 28px; }
.form-status.is-error::before { content: ''; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23B01E5C'/%3E%3Cpath d='M12 7v6' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.8' r='1.4' fill='white'/%3E%3C/svg%3E") center / contain no-repeat; }
.form-wa { display: inline-block; margin-top: 4px; color: #128C4A; font-weight: 800; }
.form-success {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #fff; border-radius: inherit; text-align: center; padding: 24px; font-size: 18px;
}
.form-success[hidden] { display: none; }
/* после отправки благодарность занимает место формы и растягивает карточку по своему содержимому,
   а не накрывает форму поверх (иначе на широком экране текст и иконки вылезают за карточку) */
.lead-form.is-sent > :not(.form-success), .footer__form.is-sent > :not(.form-success) { display: none !important; }
.lead-form.is-sent > .form-success:not([hidden]) { position: static; inset: auto; padding: 12px 0; }
.footer__form.is-sent > .form-success:not([hidden]) { position: static; inset: auto; padding: 22px 16px; }
.form-success:not([hidden]) { animation: fade-in .4s var(--ease); }
.form-success__check { width: 72px; height: 72px; }
.form-success__check circle { fill: none; stroke: #1BA672; stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .6s var(--ease) forwards; }
.form-success__check path { fill: none; stroke: #1BA672; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; transform: scale(.96); } }

@media (max-width: 900px) {
  /* порядок на мобильном: заголовок → подзаголовок → фото → форма */
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__text { display: contents; }
  .hero__text > .eyebrow, .hero__title { order: 1; }
  .hero__lead, .hero__points { order: 2; }
  .hero__media { order: 3; max-width: 360px; width: 72%; margin: 4px auto 28px; }
  .lead-form--hero { order: 4; }
  .hero__badge { font-size: 13px; padding: 9px 14px; }
  .hero__badge b { font-size: 18px; }
  .hero__badge--a { left: -14%; }
  .hero__badge--b { right: -12%; }
}
@media (max-width: 640px) {
  .ticks { grid-template-columns: 1fr; }
  .lead-form__row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 10px; }
  .facts li { padding: 14px 18px; }
}

/* ===================== Бегущая строка ===================== */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: 18px 0; transform: rotate(-1.2deg); margin: 8px -20px; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 600 clamp(20px, 2.4vw, 30px)/1 var(--font-display); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; } }

/* ===================== Направления ===================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { perspective: 900px; }
.card__link {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 14px 14px 22px;
  background: var(--cs); border-radius: var(--radius); text-decoration: none; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease); transform-style: preserve-3d;
}
.card__link::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 60%);
}
.card__link:hover { box-shadow: var(--shadow-lg); }
.card__link:hover::after { opacity: 1; }
.card__img { display: block; aspect-ratio: 1 / .9; border-radius: 18px; overflow: hidden; margin-bottom: 18px; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__link:hover .card__img img { transform: scale(1.07); }
.card__title { font: 600 21px/1.15 var(--font-display); padding: 0 6px; }
.card__price { display: inline-block; align-self: flex-start; margin: 10px 6px 0; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--c); font-weight: 800; font-size: 15px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin: auto 6px 0; padding-top: 16px; font-weight: 700; font-size: 14.5px; color: var(--c); }
.card__more svg { transition: transform .3s var(--ease); }
.card__link:hover .card__more svg { transform: translateX(4px); }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .cards { gap: 12px; } .card__title { font-size: 17px; } .card__price { font-size: 13px; } .card__link { padding: 10px 10px 16px; } }

/* ===================== Оффер ===================== */
.offer { background: var(--ink); color: #fff; overflow: hidden; }
.offer::before {
  content: ''; position: absolute; width: 800px; height: 800px; left: -260px; top: -300px;
  background: radial-gradient(closest-side, rgba(210, 39, 111, .35), transparent 70%); pointer-events: none;
}
.offer__grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.offer__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.offer__intro h2 { margin-bottom: 20px; }
.offer__intro p { color: rgba(255, 255, 255, .78); font-size: 18px; }
.scarcity { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 14.5px !important; font-weight: 700; color: #fff !important; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #FF4D8D; flex-shrink: 0; }

.stack { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 28px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.stack__list { display: grid; gap: 4px; }
.stack__list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 14px 10px; border-bottom: 1px dashed var(--line); }
.stack__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--bg); font: 700 17px/1 var(--font-display); }
.stack__bonus .stack__n { background: var(--accent-soft); font-size: 20px; }
.stack__list b { display: block; font-size: 16.5px; line-height: 1.3; }
.stack__list small { display: block; font-size: 14px; color: var(--ink-70); margin-top: 2px; }
.stack__val { text-align: right; font-weight: 800; white-space: nowrap; font-size: 15.5px; }
.stack__val s { color: var(--ink-50); font-weight: 600; display: block; font-size: 13.5px; }
.stack__val em { font-style: normal; color: var(--accent-ink); }
.stack__total { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 22px 10px; font-weight: 700; color: var(--ink-70); }
.stack__total s { color: var(--ink-50); }
.stack__total strong { font: 700 clamp(26px, 3vw, 34px)/1 var(--font-display); color: var(--accent-ink); }
@media (max-width: 900px) { .offer__grid { grid-template-columns: 1fr; } .offer__intro { position: static; } }
@media (max-width: 480px) {
  .stack__list li { grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 4px; }
  .stack__n { width: 36px; height: 36px; border-radius: 11px; font-size: 15px; }
  .stack__val { grid-column: 2; text-align: left; }
  .stack__val s { display: inline; margin-right: 6px; }
}

/* ===================== Шаги ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 32px 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step__n { display: block; font: 700 48px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 20px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-70); }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 56px; right: -20px; width: 20px; height: 0;
  border-top: 2px dotted var(--accent);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* ===================== О школе ===================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__text h2 { margin-bottom: 20px; }
.about__text p { color: var(--ink-70); margin-bottom: 14px; }
.about__teachers { padding: 18px 20px; background: var(--accent-soft); border-radius: 16px; color: var(--ink) !important; }

.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10.5; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video:hover img { transform: scale(1.04); }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 12px rgba(255, 255, 255, .45);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.video__play svg { margin-left: 4px; }
.video:hover .video__play { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(255, 255, 255, .35); }
.video__label { position: absolute; left: 20px; bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(43, 24, 93, .85); color: #fff; font-weight: 700; font-size: 14px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.benefits li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border-radius: 18px; font-weight: 700; font-size: 15.5px; line-height: 1.3; transition: transform .35s var(--ease), box-shadow .35s; }
.benefits li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.benefits svg { width: 40px; height: 40px; padding: 9px; flex-shrink: 0; border-radius: 12px; color: var(--accent-ink); background: var(--accent-soft); }
.benefits li:nth-child(3n+2) svg { color: var(--c-studio); background: var(--c-studio-soft); }
.benefits li:nth-child(3n) svg { color: var(--c-art); background: var(--c-art-soft); }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr 1fr; gap: 8px; } .benefits li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font-size: 14px; } }

/* ===================== Ленты ===================== */
@property --fl { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --fr { syntax: '<length>'; inherits: false; initial-value: 0px; }
.rail {
  --fl: 0px; --fr: 0px;
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 12px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 28px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
  /* мягкое затухание краёв — подсказка, что ленту можно листать */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  transition: --fl .4s var(--ease), --fr .4s var(--ease);
}
.rail.can-left { --fl: clamp(32px, 8vw, 120px); }
.rail.can-right { --fr: clamp(48px, 10vw, 160px); }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { pointer-events: none; }
.rail > * { scroll-snap-align: start; flex-shrink: 0; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); transition: transform .3s var(--ease), opacity .3s, background .3s, color .2s; }
.rail-btn:hover { background: linear-gradient(135deg, var(--accent), var(--c-studio)); color: #fff; transform: scale(1.06); }
.rail-btn[disabled] { opacity: .35; pointer-events: none; }

/* полоса прогресса под лентой (создаётся в JS) */
.rail-progress { position: relative; height: 4px; margin-top: 4px; border-radius: 4px; background: rgba(43, 24, 93, .1); overflow: hidden; }
.rail-progress span {
  position: absolute; inset: 0 auto 0 0; width: var(--w, 30%); border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--c-studio), #FF9F6B);
  transform: translateX(var(--x, 0%)); transition: transform .25s linear, width .25s;
}
@media (max-width: 640px) { .rail-nav { display: none; } .rail { gap: 12px; } }

.teacher { width: clamp(240px, 24vw, 300px); }
.teacher__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--c) 18%, #fff); position: relative; }
.teacher__media::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(43, 24, 93, .35)); }
.teacher video, .teacher img { width: 100%; height: 100%; object-fit: cover; }
.teacher picture, .bio__media picture { display: block; width: 100%; height: 100%; }
.teacher figcaption { padding: 16px 4px 0; }
.teacher b { display: block; font: 600 18px/1.2 var(--font-display); }
.teacher span { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }

.tile { position: relative; display: block; border-radius: 20px; overflow: hidden; background: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.rail--media .tile { width: clamp(270px, 32vw, 400px); aspect-ratio: 360 / 220; border-radius: 24px; }
.rail--gallery .tile { width: clamp(240px, 26vw, 340px); aspect-ratio: 3 / 2; }
.tile__play {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--c-studio) 100%);
  box-shadow: 0 10px 24px -8px rgba(20, 10, 45, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .4s var(--ease);
}
.tile__play::before { /* кольцо при наведении */
  content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7);
  opacity: 0; transform: scale(.8); transition: opacity .35s, transform .45s var(--ease);
}
.tile__play svg { margin-left: 3px; }
.tile:hover .tile__play { transform: scale(1.1); }
.tile:hover .tile__play::before { opacity: 1; transform: scale(1); }

/* видео-карточки: градиент, подпись, градиентная рамка */
.tile--video { isolation: isolate; box-shadow: 0 18px 40px -22px rgba(43, 24, 93, .55); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile--video::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(29, 16, 64, 0) 38%, rgba(29, 16, 64, .55) 66%, rgba(29, 16, 64, .92) 100%),
    linear-gradient(135deg, rgba(210, 39, 111, .18), rgba(122, 63, 209, .12) 60%, transparent);
}
.tile--video::before { /* градиентная рамка */
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 2px; pointer-events: none;
  background: linear-gradient(135deg, #FF4D8D, var(--c-studio), #FF9F6B);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
.tile--video:hover, .tile--video:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(43, 24, 93, .7); }
.tile--video:hover::before, .tile--video:focus-visible::before { opacity: 1; }
.tile__cap { position: absolute; left: 18px; right: 84px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.tile__cap b { font: 600 clamp(17px, 1.6vw, 20px)/1.15 var(--font-display); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.tile__cap small {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* фон блока результатов — мягкие градиентные пятна */
.results-sec { overflow: hidden; }
.results-sec::before, .results-sec::after { content: ''; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(10px); }
.results-sec::before { width: 640px; height: 640px; left: -220px; top: -160px; background: radial-gradient(closest-side, rgba(210, 39, 111, .18), transparent); }
.results-sec::after { width: 720px; height: 720px; right: -260px; bottom: -280px; background: radial-gradient(closest-side, rgba(122, 63, 209, .16), transparent); }
.results-sec > * { position: relative; z-index: 1; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile--review { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; max-width: 520px; } }

/* ===================== Вопросы ===================== */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 20px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font-weight: 800; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232B185D' stroke-width='2.5' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq__a { padding: 0 24px 22px; color: var(--ink-70); }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* ===================== Гарантия ===================== */
.guarantee {
  display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 4vw, 48px);
  background: #fff; border: 2px dashed rgba(210, 39, 111, .35); border-radius: var(--radius);
}
.guarantee h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 10px; }
.guarantee p { color: var(--ink-70); font-size: 17.5px; max-width: 46em; }
.guarantee__seal { position: relative; width: clamp(110px, 12vw, 150px); flex-shrink: 0; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.guarantee__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.guarantee__seal text { fill: #fff; font: 700 10.5px var(--font-body); letter-spacing: .18em; }
.guarantee__seal > span { font: 700 clamp(22px, 2.4vw, 30px)/1 var(--font-display); }
@media (max-width: 640px) { .guarantee { flex-direction: column; align-items: flex-start; } }

/* ===================== Финальная запись ===================== */
.signup { background: linear-gradient(135deg, #2B185D 0%, #4A1E6E 55%, #8B1F5F 100%); color: #fff; overflow: hidden; }
.signup::after { content: '♪'; position: absolute; right: 4%; top: -6%; font-size: clamp(200px, 30vw, 420px); line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }
.sonar__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; color: #FF8FB6; }
.signup__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.signup__text h2 { margin-bottom: 18px; }
.signup__text > p { color: rgba(255, 255, 255, .8); font-size: 18px; }
.signup__hours { margin-top: 16px; font-size: 15px !important; }
.signup__text > p.signup__steps-title { margin-top: 24px; color: #fff; font-weight: 700; font-size: 17px; }
.ticks--steps.signup__steps { margin: 14px 0 0; color: rgba(255, 255, 255, .92); font-size: 16px; }
.signup__steps li::before { background: rgba(255, 255, 255, .16); color: #fff; }
.signup__alt { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lead-form--card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.lead-form--card .lead-form__title { font: 600 22px/1.2 var(--font-display); margin-bottom: 4px; }
@media (max-width: 900px) { .signup__grid { grid-template-columns: 1fr; } }

/* ===================== Адреса ===================== */
.branches { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.branch { padding: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.branch h3 { font-size: 22px; }
.branch p { color: var(--ink-70); margin-bottom: 6px; }
.branch a { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.branch a svg { color: var(--accent); }
.branch__map { color: var(--ink-70); font-weight: 700 !important; }
.branch__map:hover, .branch__phone:hover { color: var(--accent); }
.map { grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; height: clamp(320px, 40vw, 440px); background: var(--bg-tint); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) { .branches { grid-template-columns: 1fr; } }

/* ===================== Подвал ===================== */
.footer { background: #1D1040; color: rgba(255, 255, 255, .78); padding: clamp(56px, 7vw, 88px) 0 28px; margin-top: clamp(40px, 6vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.2fr .9fr 1fr 1.2fr; gap: 40px; }
.footer__brand p { margin: 20px 0 16px; font-size: 15px; }
.footer__follow { margin: 22px 0 12px; font-size: 15px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s, transform .3s var(--ease); }
.socials a:hover { background: var(--accent); transform: translateY(-3px); }
.footer__h { font: 600 15px/1.2 var(--font-display); color: #fff; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; font-size: 15px; }
.footer__hours { display: grid; gap: 2px; margin-top: 4px; }
.footer__hours b { color: #fff; font-weight: 700; margin-bottom: 2px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover, .footer__bottom a:hover { color: #fff; text-decoration: underline; }
.footer__form { position: relative; }
.footer__form-row { display: grid; gap: 10px; }
.footer__form .field input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.footer__form .field input::placeholder { color: #D6C9F2; }
.footer__form .field input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.footer__form .form-status.is-error { color: #FF8FB6; }
.footer__form .form-wa { color: #5BE39A; }
.footer__form .form-success { background: #1D1040; color: #fff; border-radius: 16px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ===================== Липкая кнопка ===================== */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  .sticky-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .sticky-cta.is-visible { transform: none; }
}

/* ===================== Лайтбокс ===================== */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0;
  background: rgba(20, 10, 45, .94); color: #fff; overscroll-behavior: contain;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .3s var(--ease); }
.lightbox__stage { width: min(92vw, 1100px); max-height: 86dvh; display: grid; place-items: center; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 86dvh; border-radius: 16px; object-fit: contain; }
.lightbox__stage iframe { width: 100%; aspect-ratio: 16 / 9; max-height: 86dvh; border: 0; border-radius: 16px; background: #000; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font-weight: 700; font-size: 14px; opacity: .7; }
@media (max-width: 640px) { .lightbox__nav { top: auto; bottom: 8px; translate: none; } .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; } }

html.is-locked { overflow: hidden; }

.nav__link[aria-current="page"] { color: var(--accent-ink); }

/* ===================== Шаг 2: выбор времени пробного ===================== */
.lead-form.is-booking > :not(.bk):not(.form-success) { display: none !important; }
.bk { display: grid; gap: 16px; outline: none; animation: fade-in .4s var(--ease); }
.bk-accepted { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px 6px 8px; border-radius: 999px; background: #E3F6EC; color: #11704A; font-size: 14px; font-weight: 700; }
.bk-accepted span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1BA672; color: #fff; font-size: 12px; }
.lead-form .bk-title { margin-bottom: -4px; }
.bk-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.bk-label { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-70); }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 44px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-size: 15px; font-weight: 700; line-height: 1.2; text-align: left;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.bk-chip:hover { border-color: rgba(43, 24, 93, .35); }
.bk-chip:active { transform: scale(.97); }
.bk-chip[aria-checked="true"] {
  border-color: transparent; color: #fff;
  background: linear-gradient(110deg, var(--accent), #A92FA0 55%, var(--c-studio));
  box-shadow: 0 8px 18px -10px rgba(122, 63, 209, .6);
}
.bk-chip__sub { font-size: 12.5px; font-weight: 600; color: var(--ink-50); }
.bk-chip[aria-checked="true"] .bk-chip__sub { color: rgba(255, 255, 255, .85); }
.bk-group--ages .bk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.bk-group--ages .bk-chip { align-items: center; padding-inline: 0; }
/* дни — горизонтальная лента со скроллом */
.bk-group--scroll .bk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px 4px; scroll-snap-type: x proximity; }
.bk-group--scroll .bk-chips::-webkit-scrollbar { display: none; }
.bk-group--scroll .bk-chip { flex: none; scroll-snap-align: start; white-space: nowrap; }
.bk-group--times .bk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bk-group--times .bk-chip__main { font-size: 17px; }
.bk-group--list .bk-chips { display: grid; grid-template-columns: 1fr; gap: 6px; }
.bk-group--list .bk-chip { width: 100%; }
.bk-hint--small { font-size: 13.5px; margin-top: -4px; }
.bk-group.is-disabled { opacity: .45; }
.bk-group.is-disabled .bk-chip { cursor: not-allowed; }
.bk-hint { font-size: 15px; color: var(--ink-70); line-height: 1.45; }
.bk-hint.is-error { color: var(--accent-ink); font-weight: 600; }
.bk-hint--loading { display: flex; align-items: center; gap: 10px; }
.bk-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
.bk-submit[disabled] { opacity: .45; cursor: not-allowed; }
.bk-submit.is-loading { opacity: .8; cursor: progress; }
.bk-skip { justify-self: center; padding: 6px 4px; font-size: 14.5px; font-weight: 600; color: var(--ink-50); text-decoration: underline; text-underline-offset: 3px; }
.bk-skip:hover { color: var(--ink); }
/* подтверждение записи */
.form-success p.bk-done { display: grid; gap: 6px; }
.bk-done b { font: 600 20px/1.25 var(--font-display); }
.bk-done__card { display: grid; gap: 4px; justify-items: center; margin: 6px 0 2px; padding: 14px 18px; border: 2px solid var(--accent); border-radius: 18px; background: color-mix(in srgb, var(--accent) 7%, #fff); box-shadow: 0 10px 24px -16px rgba(176, 30, 92, .55); }
.footer__form .bk-done__card { background: rgba(255, 255, 255, .06); }
.bk-done__when { font-size: 19px; font-weight: 800; color: var(--accent-ink); }
.bk-done__when::first-letter { text-transform: uppercase; }
.bk-done__place { font-size: 16px; color: var(--ink-70); }
.bk-done__who { margin-top: 6px; padding-top: 8px; border-top: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent); font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bk-done__note { margin-top: 6px; font-size: 15px; color: var(--ink-70); }

/* соцсети на экране «Благодарим» */
.success-socials { display: grid; gap: 10px; justify-items: center; margin-top: 22px; text-align: center; }
.success-socials__label { font-size: 15px; font-weight: 500; opacity: .75; margin: 0; max-width: 300px; }
.success-socials__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.success-socials__row a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--accent), var(--c-studio)); box-shadow: 0 8px 18px -10px rgba(122, 63, 209, .7); transition: transform .3s var(--ease); }
.success-socials__row a:hover { transform: translateY(-2px); }
.success-socials__row svg { flex: none; }

/* Плашка над заголовком: город, филиалы, формат, возраст школы */
.hero-pill {
  display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 12px; max-width: 100%;
  margin-bottom: 18px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font: 600 12.5px/1.2 ui-monospace, 'SF Mono', Menlo, 'Roboto Mono', monospace;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.hero-pill__text > span { white-space: nowrap; } /* на узких экранах переносится между частями */
.hero-pill__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.hero-pill__eq i { width: 3px; border-radius: 2px; background: #F062C8; /* цвета логотипа: розовый → сиреневый → голубой */ animation: eq 1.1s ease-in-out infinite alternate; }
.hero-pill__eq i:nth-child(1) { height: 45%; }
.hero-pill__eq i:nth-child(2) { height: 100%; background: #A77DE2; animation-delay: -.4s; }
.hero-pill__eq i:nth-child(3) { height: 70%; background: #1AA3FA; animation-delay: -.8s; }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.hero-pill__eq i { transform-origin: bottom; }
.hero-pill__tag {
  padding: 7px 14px; border-radius: 999px; color: #fff; font-weight: 700;
  background: linear-gradient(100deg, var(--accent), #A92FA0 60%, var(--c-studio));
}
@media (prefers-reduced-motion: reduce) { .hero-pill__eq i { animation: none; } }
@media (max-width: 900px) { .hero-pill { order: 1; } }
@media (max-width: 480px) {
  /* текст не мельче 11px: на узком экране он переносится на две строки, метка остаётся справа */
  .hero-pill { flex-wrap: nowrap; border-radius: 18px; font: 700 11px/1.35 var(--font-body); letter-spacing: .04em; gap: 10px; padding: 6px 6px 6px 14px; }
  .hero-pill__text { flex: 1; white-space: normal; }
  .hero-pill__text > span:not(.hero-pill__sep) { display: block; white-space: normal; }
  .hero-pill__sep { display: none; }
  .hero-pill__tag { flex: none; padding: 7px 10px; }
}
@media (max-width: 1100px) { .hero-pill__text > span { white-space: normal; } }
