/* ==========================================================================
   ЯАртист — театральная студия
   Цвета: #000 · #FFF21B · #FE6BD3 · #FFF   Шрифты: Gilroy, Anjhay (акценты)
   Брейкпоинты повторяют дизайн: mobile < 768, narrow < 1100
   ========================================================================== */

@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Extrabold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../assets/fonts/Gilroy-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Anjhay'; src: url('../assets/fonts/Anjhay.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --black: #000;
  --yellow: #FFF21B;
  --pink: #FE6BD3;
  --white: #fff;
  --line: rgba(0, 0, 0, .12);
  --gutter: clamp(20px, 4vw, 64px);
  --section-y: clamp(72px, 9vw, 140px);
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section, footer { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: 'Gilroy', 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.only-mobile { display: none; }

/* ---------- Общие элементы ---------- */
.script { font-family: 'Anjhay', 'Marck Script', cursive; font-weight: 400; line-height: 1; letter-spacing: 0; }
.star { display: block; flex: none; clip-path: var(--star); }
.pink { color: var(--pink); }
.yellow { color: var(--yellow); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: block; flex: none; }
.eyebrow--dark::before { background: var(--black); }
.eyebrow--yellow { color: var(--yellow); }

.h2 { font-weight: 600; font-size: clamp(36px, 5vw, 72px); line-height: .95; letter-spacing: -0.04em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }

.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: 0; bottom: -.16em; width: 100%; height: .22em; display: block; overflow: visible; }
.scribble path { stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.1s var(--ease) .35s; }
.is-visible .scribble path, .scribble.is-visible path { stroke-dashoffset: 0; }

.mark { background: var(--yellow); color: var(--black); padding: 0 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pill-dashed {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px;
  border-radius: 999px; border: 1.5px dashed currentColor; font-size: 14px; font-weight: 600;
}
.tag {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  background: var(--black); color: var(--white); font-size: 13px; font-weight: 700; white-space: nowrap;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 26px; border-radius: 16px; border: 0;
  font-size: 16px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 64px; padding: 0 34px; }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--pink); color: var(--black); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--pink); }
.btn--pink { background: var(--pink); color: var(--black); }
.btn--pink:hover { background: var(--yellow); }
.btn--outline { border: 1.5px solid var(--black); background: transparent; }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--outline-light { border: 1.5px solid var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--black); }

.link-u {
  font-size: 16px; font-weight: 700; padding: 8px 0;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--pink);
  transition: text-underline-offset .2s;
}
.link-u:hover { text-underline-offset: 9px; }

.round-btn {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--black);
  background: var(--white); color: var(--black); font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s, color .2s;
}
.round-btn:hover { background: var(--yellow); }
.round-btn--dark { background: var(--black); color: var(--white); }
.round-btn--dark:hover { background: var(--pink); color: var(--black); }

/* Фото с обрезкой */
.ph { position: relative; overflow: hidden; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ph--top > img { object-position: 50% 0; }

/* ---------- Reveal-анимации ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes ya-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes ya-spin { to { transform: rotate(360deg); } }
@keyframes ya-marquee { to { transform: translateX(-50%); } }
@keyframes ya-sway { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(-7deg) translateY(-4px); } }

.doodle { position: absolute; pointer-events: none; z-index: 1; animation: ya-float var(--dur, 6s) ease-in-out var(--delay, 0s) infinite; }
.doodle--ring { border: 2px solid var(--pink); border-radius: 50%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 92px;
  background: rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { height: 68px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; flex: none; }
.header__logo img { height: 48px; width: auto; transition: height .3s ease; }
.header.is-scrolled .header__logo img { height: 42px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-size: 15px; font-weight: 600; }
.nav a {
  padding: 6px 0; text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 2px; text-underline-offset: 7px; transition: text-decoration-color .2s;
}
.nav a:hover, .nav a.is-active { text-decoration-color: var(--pink); }
.header__right { display: flex; align-items: center; gap: 20px; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.header__phone-icon { flex: none; width: 18px; height: 18px; }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--black);
  background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; padding: 0;
}
.burger span { width: 20px; height: 2px; background: var(--black); display: block; transition: transform .25s; }
.burger:hover span:first-child { transform: translateX(-2px); }
.burger:hover span:last-child { transform: translateX(2px); }

/* Мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 85; background: var(--yellow);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px; overflow: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s ease, transform .35s var(--ease), visibility 0s .35s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .35s var(--ease); }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.menu__top img { height: 44px; width: auto; }
.menu__close {
  width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--black);
  background: transparent; font-size: 18px; cursor: pointer;
}
.menu__nav { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; font-weight: 500; font-size: clamp(34px, 9vw, 56px); letter-spacing: -0.04em; line-height: 1.15; }
.menu__nav a { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .4s var(--ease), color .2s; }
.menu__nav a:hover { color: var(--pink); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .2s; }
.menu__bottom { margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.menu__bottom .menu__phone { display: inline-flex; align-items: center; gap: 12px; font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.menu__phone-icon { flex: none; width: 28px; height: 28px; }
.menu__bottom .btn { height: 60px; font-size: 17px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--yellow); overflow: hidden; padding-top: clamp(104px, 9vw, 128px); }
.hero__inner { position: relative; padding-bottom: clamp(110px, 10vw, 160px); }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 0; }
.hero__content {
  flex: 1 1 460px; min-width: 0; position: relative; z-index: 3;
  display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); padding: clamp(24px, 4vw, 72px) 0;
}
.hero__title { font-weight: 600; font-size: clamp(50px, 8.4vw, 128px); line-height: .92; letter-spacing: -0.04em; white-space: nowrap; }
.hero__title span { display: block; }
.hero__text { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; font-weight: 500; max-width: 340px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hero__free {
  display: flex; align-items: center; gap: 6px; color: var(--pink);
  margin-left: clamp(16px, 4vw, 64px); transform: translateY(-68px) rotate(-6deg);
}
.hero__free svg { display: block; flex: none; transform: translateY(10px); }
.hero__free .script { font-size: clamp(44px, 4vw, 64px); white-space: nowrap; }
/* Надпись не поместилась рядом с кнопкой — ставим под ней, стрелкой вверх */
.hero__free.is-wrapped { margin-left: 0; transform: rotate(-6deg); }
.hero__free.is-wrapped svg { transform: scaleY(-1) translateY(6px); }
.hero__media { flex: 1.15 1 520px; min-width: 0; position: relative; z-index: 1; margin: -4% 0 -6% 0; }
.hero__img { position: relative; width: 126%; left: 50%; transform: translateX(-50%); }
.hero__img img { position: relative; width: 100%; height: auto; }
.hero__ring {
  position: absolute; left: -2%; right: -1%; top: 14%; bottom: 4%;
  border: 2px solid var(--pink); border-top-color: transparent;
  border-radius: 50% 50% 46% 54% / 56% 48% 52% 44%; transform: rotate(-10deg);
  animation: ya-sway 9s ease-in-out infinite;
}
.hero__tagline { display: flex; justify-content: flex-end; padding-right: 6%; margin-top: clamp(8px, 1.5vw, 24px); }
.hero__tagline .script { font-size: clamp(32px, 3.4vw, 54px); color: var(--pink); transform: rotate(-7deg); white-space: nowrap; }
.wave { position: absolute; left: 0; display: block; width: 100%; }
.wave--hero { bottom: -1px; height: clamp(40px, 5vw, 72px); }

/* ==========================================================================
   Возраст / программа
   ========================================================================== */
.about { position: relative; background: var(--white); padding: clamp(56px, 7vw, 100px) 0 clamp(72px, 8vw, 120px); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.about__head { gap: 20px 24px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.about__head .h2 { font-size: clamp(38px, 5vw, 72px); }
.about__note { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.about__hand { display: flex; align-items: flex-end; gap: 4px; color: var(--pink); transform: rotate(-5deg); transform-origin: left bottom; }
.about__hand .script { font-size: clamp(32px, 3vw, 46px); }
.about__note .lead { max-width: 360px; }
.ages { column-gap: 24px; row-gap: 0; }
.age { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 24px; border-bottom: 1.5px solid var(--line); min-width: 0; }
.age__num { display: flex; align-items: baseline; gap: 8px; padding-bottom: 14px; }
.age__num b { font-weight: 600; font-size: clamp(48px, 5vw, 80px); line-height: .85; letter-spacing: -0.05em; }
.age__num span { font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; }
.age__label { font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: .08em; line-height: 1; padding-bottom: 14px; }
.age p { font-size: 17px; line-height: 1.45; max-width: 340px; text-wrap: pretty; }
.about .eyebrow--plain { margin-top: clamp(48px, 5vw, 72px); margin-bottom: 20px; }
.features { gap: 24px; }
.feature { min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 16px 16px 32px; border-radius: 28px; transition: transform .35s var(--ease); }
.feature:hover { transform: translateY(-6px); }
.feature:hover .ph > img { transform: scale(1.05); }
.feature--outline { border: 2px solid var(--black); background: var(--white); }
.feature--yellow { background: var(--yellow); }
.feature--dark { background: var(--black); color: var(--white); }
.feature .ph { aspect-ratio: 318 / 225; }
.feature__body { padding: 0 12px; display: flex; flex-direction: column; gap: 12px; }
.feature__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feature h3 { font-weight: 500; font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.04em; line-height: 1; }
.feature p { font-size: 17px; line-height: 1.45; text-wrap: pretty; }
.about__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: clamp(36px, 3.5vw, 48px); padding-top: 28px; border-top: 1.5px solid var(--line);
}
.about__foot p { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; letter-spacing: -0.01em; }

/* ==========================================================================
   Почему ЯАртист
   ========================================================================== */
.why { position: relative; background: var(--black); color: var(--white); padding: var(--section-y) 0; overflow: hidden; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 72px); }
.why .h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: .98; max-width: 920px; }
.why .lead { max-width: 340px; }
.why__grid { gap: 16px; }
.wcard { position: relative; min-height: 300px; border-radius: 32px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; transition: transform .35s var(--ease); }
.wcard:hover { transform: translateY(-4px); }
.wcard__n { font-weight: 700; font-size: 56px; line-height: .85; letter-spacing: -0.05em; }
.wcard h3 { margin: 0 0 10px; font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.05; }
.wcard p { font-size: 17px; line-height: 1.45; }
.wcard--line { border: 1.5px solid rgba(255, 255, 255, .9); }
.wcard--line p, .wcard--yline p { color: rgba(255, 255, 255, .78); }
.wcard--line .wcard__n, .wcard--yline .wcard__n { color: var(--yellow); }
.wcard--white { background: var(--white); color: var(--black); }
.wcard--yline { border: 1.5px solid var(--yellow); }
.wcard--big { min-height: 360px; background: var(--yellow); color: var(--black); padding: clamp(24px, 3vw, 40px); gap: 32px; }
.wcard--big .wcard__n { font-size: clamp(80px, 10vw, 150px); line-height: .8; letter-spacing: -0.06em; }
.wcard--big h3, .wcard--pink h3 { margin-bottom: 12px; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.wcard--big p, .wcard--pink p { font-size: 18px; }
.wcard__hand { position: absolute; right: clamp(24px, 4vw, 56px); top: clamp(28px, 4vw, 52px); font-size: clamp(30px, 3vw, 46px); color: var(--pink); transform: rotate(-7deg); }
.wcard--photo { position: relative; min-height: 360px; border-radius: 32px 140px 32px 32px; overflow: hidden; background: var(--yellow); }
.wcard--photo .tag { position: absolute; left: 20px; bottom: 20px; z-index: 1; }
.wcard--photo:hover .ph > img { transform: scale(1.05); }
.wcard--pink { background: var(--pink); color: var(--black); padding: clamp(24px, 3vw, 40px); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px; }
.wcard--pink .wcard__col { flex: 1 1 300px; display: flex; flex-direction: column; gap: 40px; }
.wcard--pink p { max-width: 400px; }
.wcard__circle { position: relative; flex: none; width: clamp(180px, 18vw, 240px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--black); }
.wcard--r4 { border-radius: 32px 32px 120px 32px; }
.wcard__stars span { position: absolute; }

/* ==========================================================================
   Чему учимся
   ========================================================================== */
.learn { background: var(--white); padding: var(--section-y) 0 clamp(64px, 7vw, 110px); }
.learn__head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.learn__head .h2 { max-width: 900px; }
.learn__head .script { font-size: clamp(32px, 3.2vw, 50px); color: var(--pink); transform: rotate(-6deg); margin-bottom: 10px; }
.dirs { margin-top: clamp(40px, 5vw, 64px); border-bottom: 2px solid var(--black); }
.dir {
  display: flex; align-items: center; gap: clamp(14px, 3vw, 48px);
  padding: clamp(16px, 2vw, 26px) clamp(4px, 1.5vw, 24px); border-top: 2px solid var(--black);
  transition: background-color .3s ease, padding .3s ease;
}
.dir:hover { background: var(--yellow); padding-left: clamp(16px, 3vw, 48px); }
.dir__n { flex: none; width: clamp(28px, 3vw, 44px); font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.dir__t { flex: 1; min-width: 0; font-weight: 600; font-size: clamp(26px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.045em; }
.dir__a {
  flex: none; width: clamp(40px, 4vw, 64px); aspect-ratio: 1; border-radius: 50%; background: var(--black); color: var(--yellow);
  display: flex; align-items: center; justify-content: center; font-size: clamp(18px, 1.6vw, 26px); font-weight: 700;
  transition: transform .3s var(--ease);
}
.dir:hover .dir__a { transform: rotate(-45deg); }

/* ==========================================================================
   Группы
   ========================================================================== */
.groups { background: var(--yellow); padding: 0 0 var(--section-y); overflow: hidden; }
.marquee {
  margin: 44px -60px 0; background: var(--black); color: var(--yellow); transform: rotate(-2deg);
  padding: 20px 0; overflow: hidden; font-weight: 600; font-size: clamp(24px, 3vw, 44px);
  letter-spacing: -0.03em; white-space: nowrap; line-height: 1;
}
.marquee__track { display: flex; width: max-content; animation: ya-marquee 32s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: .8em; padding-right: .8em; }
.marquee__group i { font-style: normal; color: var(--pink); }
.groups .container { margin-top: clamp(56px, 7vw, 100px); }
.groups .h2 { margin-bottom: clamp(32px, 4vw, 52px); }
.groups__grid { column-gap: 20px; row-gap: 20px; }
.gcard {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; min-width: 0;
  background: var(--white); border-radius: 28px; padding: 12px 12px 20px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.gcard:hover .ph > img { transform: scale(1.05); }
.gcard .ph { aspect-ratio: 318 / 180; }
.gcard__sp { height: 6px; }
.gcard h3 { padding: 12px 10px 0; align-self: end; font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -0.04em; line-height: 1.05; }
.gcard p { padding: 8px 10px 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.gcard__price { padding: 18px 10px 0; height: 62px; display: flex; align-items: flex-end; }
.gcard__price b { font-weight: 700; font-size: clamp(36px, 3vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.gcard__price span { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.gcard__price small { font-size: 15px; font-weight: 600; }
.gcard__btn { padding: 14px 10px 0; }
.gcard__btn .btn { width: 100%; height: 56px; }
.gcard--outline { background: transparent; box-shadow: inset 0 0 0 2px var(--black); }
.gcard--outline:hover { box-shadow: inset 0 0 0 2px var(--black), 0 18px 40px rgba(0, 0, 0, .12); }
.gcard--dark { background: var(--black); color: var(--white); }
.gcard--dark h3 { color: var(--yellow); }
.gcard--dark p { color: rgba(255, 255, 255, .82); }
.groups__help {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(22px, 2.4vw, 32px) clamp(22px, 3vw, 40px); border: 2px solid var(--black); border-radius: 28px;
}
.groups__help p { font-weight: 800; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
.groups__help .btn { padding: 0 28px; }

/* ==========================================================================
   Преподаватели
   ========================================================================== */
.teachers { background: var(--white); padding: var(--section-y) 0; }
.teachers .h2 { max-width: 820px; }
.teachers .lead { max-width: 380px; }
.teachers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tcard {
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; min-width: 0; cursor: pointer;
  padding: 20px 22px 24px; border-radius: 28px; border: 1.5px solid var(--line); background: var(--white); text-align: left;
  transition: transform .25s ease, border-color .25s ease;
}
.tcard:hover { transform: translateY(-6px); border-color: var(--black); }
.tcard:hover .tcard__photo img { transform: scale(1.06); }
.tcard__media { position: relative; height: clamp(180px, 15vw, 212px); }
.tcard__plate { position: absolute; left: 34%; right: 0; bottom: 6px; height: 48%; background: var(--yellow); border-radius: 20px 20px 20px 4px; }
.tcard__photo {
  position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--white); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); background: var(--yellow);
}
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--black); color: var(--yellow); font-weight: 700; font-size: clamp(44px, 4vw, 60px); letter-spacing: -0.04em;
}
.initials::after { content: ''; position: absolute; right: 22%; top: 20%; width: 14px; height: 14px; background: var(--pink); clip-path: var(--star); }
.tcard h3 { padding-top: 22px; font-weight: 600; font-size: clamp(24px, 2vw, 30px); line-height: 1.02; letter-spacing: -0.035em; }
.tcard__role { padding-top: 10px; font-size: 15px; line-height: 1.4; font-weight: 700; text-wrap: pretty; }
.tcard ul { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.facts li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: rgba(0, 0, 0, .76); }
.facts li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 5px; background: var(--pink); clip-path: var(--star); }
.tcard__more {
  align-self: end; justify-self: start; margin-top: 18px; font-size: 15px; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--pink);
}

/* ==========================================================================
   Спектакли
   ========================================================================== */
.shows { position: relative; background: var(--black); color: var(--white); padding: var(--section-y) 0; overflow: hidden; }
.shows .split-head { margin-bottom: clamp(40px, 5vw, 64px); }
.shows .h2 { font-size: clamp(36px, 5.6vw, 84px); letter-spacing: -0.045em; max-width: 980px; }
.shows .link-u { color: var(--white); }
.shows__row { display: flex; flex-wrap: wrap; gap: clamp(20px, 2vw, 28px); }
.show-main { flex: 1.5 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.show-main .ph { aspect-ratio: 4 / 3; border-radius: 32px 32px 32px 160px; background: #111; }
.show-main__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.show-main__foot > div { display: flex; flex-direction: column; gap: 12px; }
.show-main h3 { font-weight: 500; font-size: clamp(30px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.04em; }
.show-main .btn { min-height: 52px; padding: 0 24px; font-size: 15px; }
.shows__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: clamp(24px, 2.4vw, 36px); }
.show { display: flex; flex-direction: column; gap: 16px; }
.show .ph { aspect-ratio: 318 / 225; border-radius: 28px 100px 28px 28px; background: var(--yellow); }
.show--wide .ph { aspect-ratio: 16 / 10; border-radius: 28px; background: #111; }
.show:hover .ph > img, .show-main:hover .ph > img { transform: scale(1.04); }
.show__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.show__foot > div { display: flex; flex-direction: column; gap: 6px; }
.show h3 { font-weight: 500; font-size: clamp(24px, 2vw, 30px); line-height: 1.05; letter-spacing: -0.03em; }
.show__go {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--white); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 20px; transition: background-color .2s, color .2s;
}
.show__go:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

/* ==========================================================================
   Жизнь студии
   ========================================================================== */
.life { position: relative; background: var(--yellow); padding: var(--section-y) 0; overflow: hidden; }
.life .h2 { max-width: 900px; margin-bottom: clamp(40px, 5vw, 72px); }
.collage { position: relative; aspect-ratio: 1312 / 740; }
/* Карточка коллажа: наклонена; при наведении выпрямляется, мягко поднимается и выходит вперёд.
   z-index переключается сразу при наведении и с задержкой при уходе — карточка не «проваливается» назад, пока возвращается */
.collage__item {
  --lift: cubic-bezier(.34, 1.36, .64, 1);
  position: absolute; z-index: var(--z, 1);
  transform: rotate(var(--rot));
  transition: transform .55s var(--lift), z-index 0s linear .55s;
  will-change: transform;
}
.collage__item:hover, .collage__item:focus-within {
  z-index: 10;
  transform: rotate(0deg) translateY(-8px) scale(1.05);
  transition: transform .55s var(--lift), z-index 0s linear 0s;
}
.collage__card { position: absolute; inset: 0; }
.collage__img {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: var(--black);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18); transition: box-shadow .55s var(--ease);
}
.collage__item:hover .collage__img { box-shadow: 0 30px 60px rgba(0, 0, 0, .28); }
.collage__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.collage__item:hover .collage__img img { transform: scale(1.05); }
.collage__item .tag { position: absolute; left: 18px; bottom: -14px; height: 32px; pointer-events: none; }
.collage__vk {
  position: absolute; left: 68%; top: 62%; width: 30%; height: 32%; border-radius: 28px 28px 120px 28px;
  background: var(--black); color: var(--white); padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; justify-content: space-between; transition: background-color .25s, color .25s;
}
.collage__vk:hover { background: var(--pink); color: var(--black); }
.collage__vk .script { font-size: clamp(28px, 2.6vw, 42px); color: var(--yellow); }
.collage__vk b { font-weight: 700; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -0.03em; }
.strip { display: none; }
.life__vk-mobile { display: none; }

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews { background: var(--white); padding: var(--section-y) 0; overflow: hidden; }
.reviews .split-head { margin-bottom: 0; }
.reviews .h2 { max-width: 820px; }
.rating { display: flex; align-items: center; gap: 16px; }
.rating b { font-weight: 700; font-size: clamp(56px, 5vw, 76px); line-height: .85; letter-spacing: -0.05em; }
.rating div { display: flex; flex-direction: column; gap: 6px; }
.rating div span:first-child { font-size: 20px; letter-spacing: .12em; color: var(--yellow); }
.rating div span:last-child { font-size: 14px; font-weight: 600; max-width: 160px; line-height: 1.3; }
.slider {
  display: flex; align-items: flex-start; gap: 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-top: clamp(40px, 5vw, 64px); overscroll-behavior-x: contain;
}
.slider::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(420px, 86%); scroll-snap-align: start; border-radius: 28px; padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 24px; min-height: 340px;
  background: var(--yellow); border: 2px solid var(--yellow);
}
.review:nth-child(even) { background: var(--white); border-color: var(--black); }
.review__q { font-weight: 700; font-size: 96px; line-height: .7; height: 44px; }
.review p {
  --lines: 6;
  font-size: 19px; line-height: 1.5; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere;
  /* По умолчанию — одинаковая высота: ровно N строк */
  min-height: calc(1.5em * var(--lines)); max-height: calc(1.5em * var(--lines));
  overflow: hidden; transition: max-height .45s var(--ease);
}
.review.is-clamped p { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.review.is-expanded p { -webkit-mask-image: none; mask-image: none; }
.review__more {
  align-self: flex-start; margin-top: -10px; padding: 4px 0; background: none; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--black);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--pink);
  transition: text-underline-offset .2s;
}
.review__more:hover { text-underline-offset: 9px; }
.review__more[hidden] { display: none; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__ava { width: 48px; height: 48px; border-radius: 50%; background: var(--black); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex: none; }
.review__author div { display: flex; flex-direction: column; gap: 2px; }
.review__author b { font-size: 16px; font-weight: 800; }
.review__author small { font-size: 14px; }
.reviews__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.reviews__nav > div { display: flex; gap: 12px; }

/* ==========================================================================
   Как попасть
   ========================================================================== */
.how { background: var(--black); color: var(--white); padding: var(--section-y) 0 clamp(120px, 12vw, 180px); }
.how .h2 { margin-bottom: clamp(48px, 6vw, 80px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) 24px; }
.step { display: flex; flex-direction: column; gap: 22px; padding-top: 28px; border-top: 2px solid var(--yellow); }
.step--pink { border-top-color: var(--pink); }
.step b { font-weight: 700; font-size: clamp(60px, 6vw, 96px); line-height: .85; letter-spacing: -0.05em; color: var(--yellow); }
.step h3 { font-weight: 500; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.step--pink h3 { line-height: 1.3; }
.how__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(48px, 5vw, 72px); }
.how__cta .btn { min-height: 64px; padding: 0 32px; font-size: 17px; }
.how__cta span { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .78); }

/* ==========================================================================
   Большой CTA
   ========================================================================== */
.cta { position: relative; background: var(--yellow); overflow: hidden; padding: clamp(110px, 11vw, 170px) 0 clamp(80px, 9vw, 140px); }
.wave--cta { top: -1px; height: clamp(48px, 6vw, 90px); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px clamp(24px, 4vw, 64px); }
.cta__content { flex: 1.35 1 520px; min-width: 0; display: flex; flex-direction: column; gap: clamp(24px, 2.6vw, 36px); position: relative; z-index: 2; }
.cta h2 { font-weight: 600; font-size: clamp(46px, 7.4vw, 124px); line-height: .9; letter-spacing: -0.05em; text-wrap: balance; }
.cta__free { font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.02em; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta__actions .btn { min-height: 68px; padding: 0 34px; border-radius: 18px; font-size: 18px; }
.hand-arrow { display: flex; align-items: center; gap: 4px; color: var(--pink); transform: rotate(-5deg); }
.hand-arrow .script { font-size: clamp(34px, 3vw, 50px); }
.cta__media { flex: 1 1 360px; min-width: 0; position: relative; max-width: 520px; margin: 0 auto; }
.cta__outline { position: absolute; inset: 0; transform: translate(16px, -14px) rotate(3deg); border: 2px solid var(--pink); border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%; transition: transform .6s var(--ease); }
.cta__media:hover .cta__outline { transform: translate(8px, -8px) rotate(-1deg); }
.cta__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%; overflow: hidden; background: var(--black); }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.sticker { position: absolute; aspect-ratio: 1; z-index: 3; }
.sticker::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--black); }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: ya-spin 22s linear infinite; }
.sticker text { fill: var(--yellow); font-family: 'Gilroy', 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .14em; }
.sticker::after { content: ''; position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); background: var(--pink); clip-path: var(--star); }
.cta .sticker { right: -2%; bottom: 4%; width: clamp(96px, 9vw, 132px); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--white); padding: var(--section-y) 0; }
.faq__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(32px, 5vw, 96px); }
.faq__aside { flex: 1 1 300px; min-width: 0; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.faq__aside .eyebrow { margin: 0; }
.faq__aside p { font-size: 18px; line-height: 1.45; max-width: 340px; }
.faq__aside .btn { align-self: flex-start; }
.faq__list { flex: 2 1 520px; min-width: 0; border-bottom: 1.5px solid var(--black); }
.qa { border-top: 1.5px solid var(--black); }
.qa__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 2vw, 28px) 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.qa__q span:first-child { font-size: clamp(18px, 1.6vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; transition: color .2s; }
.qa__q:hover span:first-child { color: #333; }
.qa__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--black);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 500;
  transition: transform .25s ease, background-color .25s ease;
}
.qa.is-open .qa__icon { transform: rotate(45deg); background: var(--yellow); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a > div > * { margin: 0 68px clamp(22px, 2vw, 30px) 0; font-size: 18px; line-height: 1.5; }
.qa__a .pill-dashed { display: inline-flex; }

/* ==========================================================================
   Адреса
   ========================================================================== */
.places { background: var(--white); padding: 0 0 var(--section-y); }
.places__head {
  border-top: 1.5px solid var(--line); padding-top: clamp(56px, 7vw, 100px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px);
}
.places__head h2 { font-weight: 600; font-size: clamp(40px, 6vw, 96px); line-height: .9; letter-spacing: -0.05em; }
.places__row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.addrs { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.addr {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px;
  border-radius: 24px; background: var(--white); border: 1.5px solid rgba(0, 0, 0, .14);
  transition: background-color .25s, border-color .25s; text-align: left; width: 100%;
}
.addr:hover { border-color: var(--black); }
.addr.is-active { background: var(--yellow); border-color: var(--yellow); }
.addr__l { display: flex; align-items: center; gap: 18px; min-width: 0; }
.addr__n { flex: none; font-weight: 600; font-size: 28px; letter-spacing: -0.04em; }
.addr__city { font-weight: 600; font-size: clamp(16px, 1.35vw, 19px); letter-spacing: -0.02em; line-height: 1.2; }
.addr__street { font-weight: 600; font-size: clamp(16px, 1.35vw, 19px); letter-spacing: -0.02em; line-height: 1.2; }
.addr__route {
  flex: none; min-height: 44px; padding: 0 16px; display: flex; align-items: center; border-radius: 12px;
  background: var(--black); color: var(--white); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s, color .2s;
}
.addr__route:hover { background: var(--pink); color: var(--black); }
.map { flex: 1.7 1 520px; min-width: 0; position: relative; height: clamp(340px, 36vw, 520px); border-radius: 32px; overflow: hidden; background: var(--yellow); border: 2px solid var(--black); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   Контакты + Footer
   ========================================================================== */
.contacts { position: relative; background: var(--black); color: var(--white); padding: clamp(80px, 10vw, 150px) 0 clamp(64px, 7vw, 100px); overflow: hidden; }
.contacts__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px; }
.contacts__content { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contacts h2 { font-weight: 600; font-size: clamp(46px, 7vw, 112px); line-height: .9; letter-spacing: -0.05em; }
.contacts p { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; max-width: 560px; text-wrap: pretty; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.contacts__btns .btn { min-height: 60px; padding: 0 28px; }
.contacts .sticker { position: relative; flex: none; width: clamp(150px, 16vw, 220px); margin-right: 4%; }
.contacts .sticker::before { border: 2px solid var(--yellow); }

.footer { background: var(--black); color: var(--white); padding: 0 0 32px; }
.footer__inner { padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid rgba(255, 255, 255, .18); }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 48px; }
.footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; }
.footer__logo { display: inline-flex; align-self: flex-start; }
.footer__logo img { height: clamp(64px, 5.4vw, 78px); width: auto; transition: transform .3s var(--ease); }
.footer__logo:hover img { transform: rotate(-2deg) scale(1.03); }
.footer__brand p { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .72); max-width: 280px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col:nth-child(4) { line-height: 1.4; }
.footer__col:nth-child(2) { flex: 0 1 180px; }
.footer__col:nth-child(3) { flex: 0 1 220px; }
.footer__col:nth-child(4) { flex: 0 1 260px; }
.footer__col > span:first-child { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--yellow); margin-bottom: 4px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--yellow); }
.footer__qr { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 6px; }
.footer__qr img { width: 120px; height: 120px; border-radius: 12px; background: #fff; transition: transform .25s var(--ease); }
.footer__qr span { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .72); transition: color .2s; }
.footer__qr:hover img { transform: scale(1.04); }
.footer__qr:hover span { color: var(--yellow); }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; font-size: 14px; color: rgba(255, 255, 255, .72);
}
.footer__bottom > :nth-child(2) { justify-self: center; }
.footer__bottom > :nth-child(3) { justify-self: end; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom a:hover { color: var(--white); }
.footer__bottom .footer__dev { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.footer__dev span { text-decoration: underline; text-underline-offset: 4px; }
.footer__dev img { height: 17.6px; width: auto; opacity: .85; transition: opacity .2s, transform .25s var(--ease); }
.footer__dev:hover img { opacity: 1; transform: scale(1.06); }

/* ==========================================================================
   Модальные окна
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .62);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.modal__box {
  position: relative; width: min(940px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--white); border-radius: 32px; padding: clamp(28px, 4vw, 52px);
  transform: translateY(24px) scale(.97); transition: transform .4s var(--ease);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--black); background: var(--white); font-size: 18px; cursor: pointer; z-index: 2; transition: background-color .2s;
}
.modal__close:hover { background: var(--yellow); }

.tmodal .modal__box { display: flex; flex-wrap: wrap; gap: 36px clamp(28px, 4vw, 56px); align-items: flex-start; }
.tmodal__media { position: relative; flex: 0 0 clamp(200px, 26vw, 280px); aspect-ratio: 1; margin: 0 auto; }
.tmodal__plate { position: absolute; left: 30%; right: -10%; bottom: -6%; height: 50%; background: var(--yellow); border-radius: 20px 20px 20px 4px; }
.tmodal__photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 6px solid var(--white); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); background: var(--yellow); }
.tmodal__photo img { width: 100%; height: 100%; object-fit: cover; }
.tmodal__photo .initials { font-size: 80px; }
.tmodal__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tmodal h3 { padding-right: 48px; font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.tmodal__role { font-size: 17px; font-weight: 700; line-height: 1.7; }
.tmodal__role span { background: var(--yellow); padding: 3px 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tmodal .facts { display: flex; flex-direction: column; gap: 12px; }
.tmodal .facts li { font-size: 17px; line-height: 1.45; color: var(--black); gap: 12px; }
.tmodal .facts li::before { width: 14px; height: 14px; }
.tmodal__nav { display: flex; gap: 12px; margin-top: 8px; }
.tmodal__nav .round-btn { width: 52px; height: 52px; }

.smodal { z-index: 95; }
.smodal .modal__box { width: min(560px, 100%); background: var(--yellow); padding: clamp(28px, 4vw, 48px); }
.smodal .modal__close { background: transparent; }
.smodal .modal__close:hover { background: var(--white); }
.smodal__eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; margin-bottom: 16px; }
.smodal h3 { margin: 0 56px 8px 0; font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.04em; }
.smodal__try { display: inline-block; font-size: 34px; color: var(--pink); transform: rotate(-4deg); line-height: 1.2; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.form input, .form select {
  height: 58px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--black); background: var(--white);
  font: inherit; font-size: 16px; color: var(--black); width: 100%; transition: box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form select {
  padding: 0 44px 0 14px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.form input::placeholder { color: rgba(0, 0, 0, .55); }
.form input:focus, .form select:focus { outline: none; box-shadow: 0 0 0 3px var(--pink); }
.form input.is-invalid { box-shadow: 0 0 0 3px var(--pink); }
.form button[type="submit"] { height: 60px; margin-top: 4px; font-size: 17px; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form__note { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { font-size: 14px; font-weight: 600; color: #b0006e; display: none; }
.form__error.is-shown { display: block; }
.smodal__sent { display: flex; flex-direction: column; gap: 18px; padding: 12px 0; }
.smodal__sent .script { font-size: 44px; color: var(--pink); transform: rotate(-4deg); align-self: flex-start; }
.smodal__sent p { font-size: 18px; line-height: 1.45; }
.smodal__sent .btn { align-self: flex-start; padding: 0 28px; }
.smodal [hidden] { display: none !important; }

/* Липкая кнопка на мобильных */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; transform: translateY(120%); transition: transform .35s var(--ease); }
.sticky-cta.is-shown { transform: none; }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; height: 58px; border-radius: 16px;
  background: var(--yellow); border: 2px solid var(--black); font-weight: 800; font-size: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1099px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .hero__img { width: 112%; }
  .teachers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Hero в одну колонку: заголовок → текст → фото → кнопка */
@media (max-width: 1064px) {
  .hero__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero__content { display: contents; }
  .hero__title { order: 1; position: relative; z-index: 3; margin-top: clamp(24px, 4vw, 72px); }
  .hero__text { order: 2; position: relative; z-index: 3; margin-top: clamp(28px, 3vw, 44px); }
  .hero__media { order: 3; flex: none; margin: clamp(24px, 4vw, 40px) 0 0; }
  .hero__actions { order: 4; position: relative; z-index: 3; margin-top: clamp(24px, 4vw, 40px); }
  .hero__free { transform: rotate(-6deg); }
}

@media (max-width: 999px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .header.is-scrolled { background: var(--yellow); }
  .footer__bottom { grid-template-columns: 1fr; justify-items: start; }
  .footer__bottom > :nth-child(2), .footer__bottom > :nth-child(3) { justify-self: start; }
  .review p { font-size: 17px; }
  .only-mobile { display: block; }
  .hide-mobile { display: none !important; }
  .grid3, .steps { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: span 1; }

  .hero__actions .btn { width: 100%; }
  .hero__free { margin-left: 0; transform: rotate(-6deg); }
  .hero__free svg { transform: scaleY(-1) translateY(6px); }
  .hero__media { margin: 0; }
  .hero__img { width: 118%; }

  .ages { row-gap: 48px; }
  .features { gap: 16px; }
  .groups__grid { row-gap: 16px; }

  .collage { display: none; }
  .strip { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 20px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); }
  .strip::-webkit-scrollbar { display: none; }
  .strip__item { position: relative; flex: none; height: 300px; scroll-snap-align: start; }
  .strip__item .collage__img { box-shadow: none; }
  .strip__item .tag { position: absolute; left: 14px; bottom: 14px; height: 30px; padding: 0 12px; }
  .life__vk-mobile { display: flex; margin-top: 12px; width: 100%; }

  .teachers__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__aside { position: static; }
  .footer { padding-bottom: calc(32px + 76px); }
  .sticky-cta { display: block; }
  .contacts .sticker { margin: 0 auto; }
  .how__cta .btn, .cta__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .addr__l { gap: 12px; }
  .addr__route { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .scribble path { stroke-dashoffset: 0; }
}
