/* Alex Dance Studio — сцена: чорне тло, фіолетове світло */
@property --lx { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@property --ly { syntax: '<percentage>'; inherits: true; initial-value: 40%; }

:root {
  --bg: #07060a;
  --bg2: #0f0d14;
  --bg3: #16131d;
  --ink: #f4f1f8;
  --mut: #a6a0b4;
  --dim: #6f6a7c;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --ac: #a45cff;
  --ac-hi: #c495ff;
  --pink: #ff4fd8;
  --glow: rgba(164, 92, 255, .45);
  --fd: 'Unbounded', 'Arial Black', sans-serif;
  --fb: 'Onest', system-ui, sans-serif;
  --g: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --hd: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--fb);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body::after { /* плівкове зерно */
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ac-hi); outline-offset: 3px; }
::selection { background: var(--ac); color: #fff; }

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

.h2 {
  font: 500 clamp(32px, 5.4vw, 76px)/1.02 var(--fd); letter-spacing: -.025em;
  overflow-wrap: anywhere; hyphens: auto;
}

/* ---------- кнопки й плитки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border: 1px solid transparent; background: none;
  font: 600 15px/1 var(--fb); letter-spacing: .01em; white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn svg { font-size: 20px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ac { background: var(--ac); color: #fff; box-shadow: 0 10px 40px -12px var(--glow); }
.btn--ac:hover { background: #b274ff; box-shadow: 0 14px 50px -10px rgba(164, 92, 255, .7); }
.btn--ghost { border-color: var(--line2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--line { border-color: var(--line2); }
.btn--line:hover { border-color: var(--ac); background: rgba(164, 92, 255, .12); }
.btn--full { width: 100%; }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 14px; }
.btn:disabled { border-color: var(--line); color: var(--dim); cursor: default; box-shadow: none; }

.tile {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line2); background: rgba(7, 6, 10, .3); color: var(--ink);
  transition: border-color .3s, background .3s, color .3s;
}
.tile svg { font-size: 20px; }
.tile:hover { border-color: var(--ac); background: var(--ac); }

/* ---------- шапка ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.hd.is-solid { background: rgba(7, 6, 10, .72); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.hd__in { display: flex; align-items: center; gap: 32px; height: var(--hd); }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
/* лого: неон на темному; screen прибирає темне тло, а краї квадрата м'яко гаснуть — без кола, напис влазить повністю */
.logo img {
  display: block; width: 64px; height: 64px; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.nav { display: flex; gap: 30px; font-size: 15px; color: var(--mut); }
.nav a { position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ac); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.hd__act { display: flex; gap: 8px; }
.tile--menu { display: none; }

.mnav {
  /* від низу шапки до низу екрана; absolute, бо шапка з розмиттям тла стає «рамкою» для fixed і обрізала фон меню */
  position: absolute; top: 100%; left: 0; right: 0; height: calc(var(--vh1, 1svh) * 100 - var(--hd)); overflow-y: auto; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--g) 40px;
  border-top: 1px solid var(--line);
}
.mnav[hidden] { display: none; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a { font: 500 clamp(26px, 8vw, 40px)/1 var(--fd); padding: 18px 0; border-bottom: 1px solid var(--line); letter-spacing: -.02em; }
.mnav__tel { font: 500 20px/1 var(--fd); color: var(--ac-hi); }

/* ---------- перший екран ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(620px, calc(var(--vh1, 1svh) * 100));
  display: flex; align-items: center; padding: calc(var(--hd) + 24px) 0 clamp(48px, 6vw, 80px);
}
.stage { /* світло плавно гасне до низу, без рівної межі */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent);
}
.beam {
  position: absolute; top: -6%; width: 90vmax; height: 130%; transform-origin: 50% 0;
  background: conic-gradient(from 0deg at 50% 0%, transparent 169deg, var(--c) 180deg, transparent 191deg);
  filter: blur(14px); mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(#000 20%, transparent 92%); mask-image: linear-gradient(#000 20%, transparent 92%);
  animation: sway var(--t) ease-in-out infinite alternate;
}
.beam--1 { --c: rgba(164, 92, 255, .55); --t: 11s; --a: -26deg; --b: -10deg; left: calc(22% - 45vmax); }
.beam--2 { --c: rgba(255, 79, 216, .32); --t: 14s; --a: 14deg; --b: 30deg; left: calc(78% - 45vmax); animation-delay: -4s; }
.beam--3 { --c: rgba(236, 226, 255, .22); --t: 9s; --a: -6deg; --b: 8deg; left: calc(52% - 45vmax); animation-delay: -2s; }
@keyframes sway { from { transform: rotate(var(--a)); } to { transform: rotate(var(--b)); } }
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: radial-gradient(ellipse 60% 45% at 45% 100%, rgba(164, 92, 255, .22), transparent 70%);
}
.hero::after { /* темрява зверху під шапкою */
  content: ''; position: absolute; inset: 0 0 auto; height: 30%; z-index: -1;
  background: linear-gradient(var(--bg), transparent);
}

.hero__in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__t {
  position: relative; font: 500 clamp(64px, 14.2vw, 220px)/.9 var(--fd); letter-spacing: -.045em;
}
.t-base { color: #554e66; display: block; }
.t-lit { /* шар ширший за заголовок, щоб світло накривало хвостики літер */
  position: absolute; inset: -.25em; padding: .25em; color: transparent;
  background: radial-gradient(circle min(46vw, 500px) at var(--lx) var(--ly), #fff 0%, #efe4ff 24%, rgba(196, 149, 255, .55) 46%, transparent 72%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 26px rgba(164, 92, 255, .5));
}
.hero__t.is-auto { animation: wander 16s ease-in-out infinite alternate; }
@keyframes wander {
  0% { --lx: 12%; --ly: 30%; }
  35% { --lx: 58%; --ly: 22%; }
  70% { --lx: 30%; --ly: 82%; }
  100% { --lx: 78%; --ly: 70%; }
}
.hero__row { display: flex; justify-content: center; margin-top: clamp(32px, 4.4vw, 60px); }
.hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero__cta .btn { min-width: 230px; min-height: 60px; }
.hero__cta .btn--ghost { background: rgba(7, 6, 10, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero__side {
  position: absolute; right: calc(var(--g) * .6); top: 50%; transform: translate(50%, -50%) rotate(90deg);
  font: 500 12px/1 var(--fb); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); white-space: nowrap;
}

/* ---------- секції ---------- */
.sec { padding: clamp(80px, 11vw, 160px) 0 0; }
.sec__hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__note { max-width: 34ch; color: var(--mut); font-size: 17px; }

/* світло за курсором на картках */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(164, 92, 255, .2), transparent 65%);
}
@media (hover: hover) { [data-spot]:hover::before { opacity: 1; } }

/* ---------- як це працює ---------- */
.how { padding-top: clamp(16px, 3vw, 48px); }
.how__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.steps { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step__ic { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border: 1px solid var(--line2); color: var(--ac-hi); position: relative; }
.step__ic svg { font-size: 24px; }
.step h3 { font: 500 clamp(17px, 1.6vw, 21px)/1.2 var(--fd); letter-spacing: -.01em; }
.step p { color: var(--mut); font-size: 16px; margin-top: 4px; }

/* телефон з чатом Telegram (нічна тема, як у самому застосунку) */
.tgp {
  justify-self: center; position: relative; width: min(100%, 340px); aspect-ratio: 340 / 700; padding: 10px;
  border-radius: 56px; background: linear-gradient(150deg, #34303b, #141218 38%, #0c0b0f 62%, #2a2631);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 0 0 1px #000, 0 50px 130px -40px rgba(164, 92, 255, .65);
}
.tgp__screen {
  height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 46px; background: #0e1621; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
.tgp__status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 4px 24px 0 34px; background: #17212b; font-size: 15px; }
.tgp__status b { font-weight: 600; letter-spacing: .01em; }
.tgp__island { position: absolute; left: 50%; top: 11px; width: 98px; height: 29px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.tgp__sys { display: flex; align-items: center; gap: 5px; }
.tgp__sys svg { font-size: 16px; }
.tgp__sys .tgp__bat { width: 25px; height: 12.5px; }
.tgp__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 12px 9px; background: #17212b; border-bottom: 1px solid #0a1017; }
.tgp__back { display: flex; align-items: center; color: #6ab3f3; font-size: 16px; }
.tgp__back svg { font-size: 23px; margin-left: -6px; }
.tgp__who { text-align: center; line-height: 1.2; }
.tgp__who b { display: block; font-size: 16px; font-weight: 600; }
.tgp__who small { font-size: 13px; color: #7f91a4; }
.tgp__ava { justify-self: end; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: linear-gradient(135deg, #c495ff, #7b3fe4); font: 700 14px/1 var(--fd); }
.tgp__chat {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 12px 10px; overflow: hidden;
  background: radial-gradient(ellipse 120% 60% at 100% 0%, rgba(82, 136, 193, .1), transparent 60%), #0e1621;
}
.tgp__about { align-self: center; max-width: 88%; margin-bottom: auto; padding: 10px 14px 11px; border-radius: 14px; background: #182533; text-align: center; font-size: 14px; line-height: 1.4; color: #c5d0db; }
.tgp__about b { display: block; margin-bottom: 3px; color: #fff; font-weight: 600; }
.tgp__date { align-self: center; margin-bottom: 4px; padding: 3px 10px; border-radius: 12px; background: rgba(0, 0, 0, .3); font-size: 13px; font-weight: 500; }
.bub { position: relative; padding: 6px 10px 7px 11px; border-radius: 16px; font-size: 15px; line-height: 1.35; }
.bub b { font-weight: 600; }
.bub::before { content: ''; position: absolute; bottom: 0; width: 9px; height: 17px; background: inherit; }
.bub--in { background: #182533; border-bottom-left-radius: 5px; }
.bub--in::before { left: -7px; clip-path: path('M9 0C9 9 6 14 0 17H9Z'); }
.bub--out { align-self: flex-end; max-width: 82%; background: #2b5278; border-bottom-right-radius: 5px; }
.bub--out::before { right: -7px; clip-path: path('M0 0C0 9 3 14 9 17H0Z'); }
.tm { float: right; display: inline-flex; align-items: center; gap: 2px; margin: 9px -3px -4px 12px; font-size: 12px; line-height: 1; color: #6d7f8f; }
.bub--out .tm { color: #7da8d3; }
.tm svg { font-size: 16px; color: #64b5ef; }
.bmsg { align-self: flex-start; display: grid; gap: 4px; max-width: 84%; margin-left: 2px; }
.kb {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 9px 14px;
  border-radius: 10px; background: rgba(42, 60, 79, .85); font-size: 14px; font-weight: 500;
}
.kb svg { position: absolute; top: 5px; right: 5px; font-size: 9px; }
.tgp__bar { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px 26px; background: #17212b; border-top: 1px solid #0a1017; }
.tgp__bar::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 118px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .85); transform: translateX(-50%); }
.tgp__menu { display: flex; align-items: center; gap: 4px; padding: 6px 11px 6px 8px; border-radius: 16px; background: #5288c1; font-size: 14px; font-weight: 600; }
.tgp__menu svg { font-size: 17px; }
.tgp__input { flex: 1; min-width: 0; padding: 7px 12px; border-radius: 18px; background: #242f3d; color: #6d7f8f; font-size: 15px; white-space: nowrap; overflow: hidden; }
.tgp__mic { font-size: 25px; color: #6d7f8f; }
.tgp__chat > * { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .tgp:not(.is-on) .tgp__chat > * { opacity: 0; transform: translateY(12px); }
.tgp.is-on .tgp__chat > :nth-child(3) { transition-delay: .35s; }
.tgp.is-on .tgp__chat > :nth-child(4) { transition-delay: 1.15s; }
.tgp.is-on .tgp__chat > :nth-child(5) { transition-delay: 1.95s; }

/* ---------- абонементи ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan {
  display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); background: var(--bg2);
  overflow: hidden;
}
.plan::after { /* промінь зверху */
  content: ''; position: absolute; left: 50%; top: 0; width: 140%; height: 70%; z-index: -1; transform: translateX(-50%);
  background: radial-gradient(ellipse 45% 60% at 50% 0%, rgba(164, 92, 255, .16), transparent 70%);
}
.plan--hot { border-color: rgba(164, 92, 255, .55); }
.plan--hot::after { background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(164, 92, 255, .38), transparent 70%); }
.plan__tag { align-self: flex-start; margin-bottom: 20px; padding: 7px 12px; border: 1px solid rgba(196, 149, 255, .45); color: var(--ac-hi); font: 600 12px/1 var(--fb); letter-spacing: .04em; }
.plan__t { font: 500 clamp(24px, 2.3vw, 32px)/1.08 var(--fd); letter-spacing: -.02em; }
.plan__lvl { margin-top: 10px; color: var(--mut); font-size: 15px; }
.plan__list { display: grid; gap: 12px; margin: 28px 0 36px; color: var(--mut); font-size: 16px; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; }
.plan__list svg { font-size: 18px; color: var(--ac-hi); margin-top: 3px; }
.plan__price { margin-top: auto; margin-bottom: 20px; color: var(--mut); font-size: 16px; }
.plan__price b { font: 500 clamp(40px, 4vw, 56px)/1 var(--fd); color: var(--ink); letter-spacing: -.03em; margin-right: 4px; }

.plans__dots { display: none; justify-content: center; gap: 6px; margin-top: 14px; }
.plans__dots button { padding: 10px 0; border: 0; background: none; cursor: pointer; }
.plans__dots button::before { content: ''; display: block; width: 22px; height: 3px; background: var(--line2); transition: width .35s var(--ease), background .35s; }
.plans__dots button.is-on::before { width: 40px; background: var(--ac); }

.plan__note { margin-top: 12px; text-align: center; color: var(--dim); font-size: 13px; }

/* ---------- плитки розділів ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tl {
  position: relative; display: flex; flex-direction: column; min-height: 156px; padding: 20px;
  border: 1px solid var(--line); background: var(--bg2); transition: border-color .3s, background .3s;
}
.tl__ic { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line2); color: var(--ac-hi); }
.tl__ic svg { font-size: 22px; }
.tl b { margin-top: auto; padding-top: 18px; font: 500 17px/1.2 var(--fd); letter-spacing: -.01em; }
.tl small { margin-top: 4px; color: var(--mut); font-size: 14px; }
.tl__go { position: absolute; top: 22px; right: 20px; font-size: 20px; color: var(--dim); transition: transform .3s var(--ease), color .3s; }
.tl:hover { border-color: rgba(164, 92, 255, .5); background: var(--bg3); }
.tl:hover .tl__go { color: var(--ac-hi); transform: translateX(4px); }

/* ---------- розклад ---------- */
.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; max-width: 620px; margin-bottom: 20px; }
.day {
  height: 62px; padding: 0; border: 1px solid var(--line2); background: var(--bg2); color: var(--mut);
  font: 500 17px/1 var(--fd); transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.day:hover { border-color: var(--ac); color: var(--ink); }
.day[aria-selected="true"] { background: var(--ac); border-color: var(--ac); color: #fff; box-shadow: 0 10px 34px -12px var(--glow); }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 110px 150px; align-items: center; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.row__d { display: grid; place-items: center; align-content: center; width: 84px; height: 60px; border: 1px solid var(--line2); color: var(--mut); font-size: 13px; line-height: 1; gap: 4px; }
.row__d b { font: 500 19px/1 var(--fd); color: var(--ink); letter-spacing: -.02em; }
.row__m h3 { font: 500 clamp(19px, 2vw, 26px)/1.15 var(--fd); letter-spacing: -.015em; }
.row__m p { color: var(--mut); font-size: 15px; margin-top: 6px; }
.row__s { color: var(--mut); font-size: 15px; }
.row__s--hot { color: var(--ac-hi); }
.row__p { font: 500 22px/1 var(--fd); }
.row .btn { justify-self: end; }
.row--full { opacity: .45; }
@media (hover: hover) { .row[data-spot]::before { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(164, 92, 255, .14), transparent 70%); } }

/* ---------- консультації ---------- */
.cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.con {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "d d" "m p" "b b"; grid-template-rows: auto 1fr auto auto;
  gap: 0 16px; padding: clamp(28px, 3.4vw, 48px); border: 1px solid var(--line); background: var(--bg2);
}
.con__t { grid-area: t; font: 500 clamp(24px, 2.6vw, 34px)/1.1 var(--fd); letter-spacing: -.02em; }
.con__d { grid-area: d; color: var(--mut); margin: 16px 0 40px; max-width: 36ch; }
.con__m { grid-area: m; display: flex; align-items: center; gap: 8px; color: var(--mut); align-self: end; }
.con__m svg { font-size: 18px; color: var(--ac-hi); }
.con__p { grid-area: p; align-self: end; font: 500 clamp(30px, 3vw, 40px)/1 var(--fd); letter-spacing: -.03em; }
.con .btn { grid-area: b; margin-top: 28px; }

/* ---------- записи ---------- */
.recs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rec { display: flex; flex-direction: column; min-height: 270px; padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--line); background: var(--bg2); }
.rec__tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 10px; border: 1px solid var(--line2); color: var(--ac-hi); font-size: 13px; font-weight: 600; }
.rec__tag svg { font-size: 16px; }
.rec__t { margin-top: 24px; font: 500 clamp(22px, 2.1vw, 28px)/1.12 var(--fd); letter-spacing: -.02em; }
.rec__d { margin-top: 10px; color: var(--mut); font-size: 15px; }
.rec__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 28px; }
.rec__p { font: 500 26px/1 var(--fd); letter-spacing: -.02em; }

/* ---------- танцетерапія: слова підсвічуються по черзі ---------- */
.therapy__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.therapy__words { display: flex; flex-direction: column; gap: .08em; font: 600 clamp(44px, 7vw, 108px)/1 var(--fd); letter-spacing: -.04em; overflow-wrap: anywhere; }
/* без контуру: у Unbounded контур показує внутрішні лінії літер («калякулі»), тож неактивні слова просто приглушені */
.therapy__words span { color: #2c2638; animation: lightup 6s ease-in-out infinite; }
.therapy__words span:nth-child(2) { animation-delay: 2s; }
.therapy__words span:nth-child(3) { animation-delay: 4s; }
@keyframes lightup {
  0%, 40%, 100% { color: #2c2638; text-shadow: none; }
  12%, 26% { color: #fff; text-shadow: 0 0 30px rgba(196, 149, 255, .7), 0 0 90px rgba(164, 92, 255, .5); }
}
/* розмір слів від ширини колонки, щоб «Підсвідоме» й «Танцетерапія» не ламались посередині */
.therapy__words { container-type: inline-size; }
.therapy__words span { font-size: min(14cqi, 112px); }
.therapy__txt { container-type: inline-size; }
.therapy__txt .h2 { font-size: min(11.6cqi, 76px); }
.therapy__txt .sec__note { margin-top: 20px; max-width: 40ch; }
.therapy__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- безкоштовно в Telegram ---------- */
.free { padding-top: clamp(64px, 8vw, 120px); }
.free__in {
  display: flex; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(164, 92, 255, .35); background: linear-gradient(100deg, rgba(164, 92, 255, .16), transparent 60%), var(--bg2);
}
.free__ic { display: grid; place-items: center; flex: none; width: 64px; height: 64px; background: var(--ac); }
.free__ic svg { font-size: 30px; }
.free__txt { flex: 1; min-width: 0; }
.free__txt h3 { font: 500 clamp(20px, 2.2vw, 28px)/1.15 var(--fd); letter-spacing: -.015em; }
.free__txt p { margin-top: 6px; color: var(--mut); }

/* ---------- кнопка «Написати» в кутку ---------- */
.fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; background: var(--ac); color: #fff;
  box-shadow: 0 12px 40px -10px var(--glow); opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease), background .3s;
}
.fab svg { font-size: 26px; }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #b274ff; }

/* ---------- контакт ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact .sec__note { margin-top: 18px; }
.tg {
  display: flex; align-items: center; gap: 14px; margin-top: 40px; padding: 22px 26px; max-width: 420px;
  background: var(--ac); font: 500 clamp(16px, 1.5vw, 19px)/1.2 var(--fd); letter-spacing: -.01em;
  box-shadow: 0 20px 60px -24px var(--glow); transition: background .3s, box-shadow .3s;
}
.tg svg { font-size: 26px; }
.tg:hover { background: #b274ff; box-shadow: 0 24px 70px -20px rgba(164, 92, 255, .75); }
.tel { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font: 500 20px/1 var(--fd); color: var(--mut); transition: color .3s; }
.tel svg { font-size: 22px; color: var(--ac-hi); }
.tel:hover { color: var(--ink); }

.form { display: grid; gap: 14px; }
.fld { position: relative; display: block; }
.fld input, .fld textarea {
  width: 100%; padding: 26px 18px 10px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 0;
  color: var(--ink); font: 400 17px/1.4 var(--fb); outline: none; resize: vertical; transition: border-color .3s, background .3s;
}
.fld textarea { min-height: 120px; }
.fld span { position: absolute; left: 19px; top: 19px; color: var(--dim); font-size: 16px; pointer-events: none; transition: transform .25s var(--ease), font-size .25s, color .25s; transform-origin: left top; }
.fld input:focus, .fld textarea:focus { border-color: var(--ac); background: var(--bg3); }
.fld input:focus + span, .fld input:not(:placeholder-shown) + span,
.fld textarea:focus + span, .fld textarea:not(:placeholder-shown) + span { transform: translateY(-11px); font-size: 12px; color: var(--ac-hi); }
.fld.is-bad input { border-color: var(--pink); }
.form .btn { margin-top: 6px; }
.form__ok { display: flex; align-items: center; gap: 10px; color: var(--ac-hi); }
.form__ok[hidden] { display: none; }
.form__ok svg { font-size: 20px; }

/* ---------- підвал ---------- */
.ft { border-top: 1px solid var(--line); overflow: hidden; }
.ft__brand { width: fit-content; max-width: 100%; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--g) clamp(32px, 4.5vw, 64px); }
.ft__big {
  font: 700 clamp(88px, 25vw, 400px)/.8 var(--fd); letter-spacing: -.02em; text-align: center; padding: .04em 0 .03em;
  background: linear-gradient(180deg, rgba(164, 92, 255, .6), rgba(164, 92, 255, .04) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* DANCE STUDIO на всю ширину ALEX: літери розставлені рівно від краю до краю */
.ft__sub { display: flex; justify-content: space-between; margin-top: clamp(14px, 2.2vw, 32px); padding: 0 .06em; font: 500 clamp(15px, 3.1vw, 48px)/1 var(--fd); color: #fff; }
.ft__sub i { width: .5em; }
.ft__row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 28px 36px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; position: relative; }
.ft__nav { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.ft__nav a:hover { color: var(--ink); }

/* ---------- оплата (демо) ---------- */
.pay {
  width: min(100% - 32px, 460px); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line2);
  background: var(--bg2); color: var(--ink); overflow: auto;
  box-shadow: 0 40px 140px -30px rgba(164, 92, 255, .6);
}
.pay::backdrop { background: rgba(4, 3, 7, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pay[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.pay__in { position: relative; padding: 36px clamp(22px, 5vw, 40px) 32px; }
.pay__in::before { content: ''; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--ac-hi), transparent); }
.pay__x { position: absolute; top: 14px; right: 14px; }
.pay__kind { color: var(--ac-hi); font-size: 14px; font-weight: 500; }
.pay__t { font: 500 clamp(28px, 7vw, 38px)/1.05 var(--fd); letter-spacing: -.02em; margin-top: 10px; padding-right: 48px; }
.pay__meta { color: var(--mut); margin: 10px 0 28px; }
.pay form { display: grid; gap: 12px; }
.chk { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 2px; color: var(--mut); font-size: 14px; line-height: 1.45; cursor: pointer; }
.chk[hidden] { display: none; }
.chk b { color: var(--ink); font-weight: 600; }
.chk input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer;
  border: 1px solid var(--line2); background: var(--bg) center / 16px no-repeat; transition: background-color .2s, border-color .2s;
}
.chk input:checked {
  background-color: var(--ac); border-color: var(--ac);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m4.5 12.5 5 5 10-11' fill='none' stroke='%23fff' stroke-width='2.4'/%3E%3C/svg%3E");
}
.chk input:focus-visible { outline: 2px solid var(--ac-hi); outline-offset: 2px; }
.chk.is-bad input { border-color: var(--pink); }
.pay__safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--dim); font-size: 14px; }
.pay__safe svg { font-size: 16px; }
.pay__ok { display: grid; place-items: center; width: 64px; height: 64px; background: var(--ac); box-shadow: 0 0 60px var(--glow); }
.pay__ok svg { font-size: 30px; }
#pay2 .pay__t { margin-top: 24px; }
.pay__demo { margin-top: 16px; text-align: center; color: var(--dim); font-size: 13px; }
.pay__step[hidden] { display: none; }

/* консультація: день і час обирають у вікні оплати */
.when { display: grid; gap: 10px; margin-bottom: 10px; }
.when[hidden] { display: none; }
.when__l { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.when__days {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin: 0 calc(-1 * clamp(22px, 5vw, 40px)); padding: 2px clamp(22px, 5vw, 40px) 6px;
}
.when__days::-webkit-scrollbar { display: none; }
.when__d, .when__t {
  border: 1px solid var(--line2); background: var(--bg2); color: var(--mut); cursor: pointer;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.when__d { flex: none; width: 64px; padding: 10px 0 9px; text-align: center; scroll-snap-align: start; font: 500 12px/1.2 var(--fb); }
.when__d b { display: block; margin: 4px 0 3px; color: var(--ink); font: 500 21px/1 var(--fd); }
.when__t { min-width: 88px; height: 48px; padding: 0 16px; color: var(--ink); font: 500 16px/1 var(--fd); }
.when__d:hover, .when__t:hover { border-color: var(--ac); }
.when__d[aria-selected="true"], .when__t[aria-selected="true"] {
  background: var(--ac); border-color: var(--ac); color: #fff; box-shadow: 0 10px 34px -12px var(--glow);
}
.when__d[aria-selected="true"] b { color: #fff; }
.when__times { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; }
.when__note { color: var(--mut); font-size: 14px; }
.when.is-bad .when__times .when__t { border-color: var(--pink); }

/* ---------- поява при гортанні ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .tile--menu { display: grid; }
  .row { grid-template-columns: 84px minmax(0, 1fr) auto auto; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .how__in, .contact__in { grid-template-columns: minmax(0, 1fr); }
  /* абонементи на телефоні — гортання вбік, наступна картка виглядає з краю */
  .plans {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--g);
    margin-inline: calc(var(--g) * -1); padding: 2px var(--g) 4px; scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(82%, 340px); scroll-snap-align: start; padding: 26px 22px 22px; }
  .plan--hot { order: -1; }
  .plan__tag { margin-bottom: 14px; }
  .plan__list { margin: 20px 0 24px; gap: 10px; font-size: 15px; }
  .plans__dots { display: flex; }
  .cons { grid-template-columns: minmax(0, 1fr); }
  .hero__side { display: none; }
  /* плитки розділів на телефоні — смужка, що гортається вбік */
  .tiles { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); scrollbar-width: none; padding-block: 4px; }
  .tiles::-webkit-scrollbar { display: none; }
  .tl { flex: 0 0 152px; min-height: 136px; padding: 16px; scroll-snap-align: start; }
  .tl b { font-size: 15px; padding-top: 14px; }
  .tl small { font-size: 13px; }
  .tl__go { top: 18px; right: 16px; font-size: 18px; }
  .recs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rec { min-height: 0; }
  .therapy__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
  :root { --hd: 64px; }
  body { font-size: 16px; }
  .logo img { width: 50px; height: 50px; }
  .hd__act .tile:not(.tile--menu):first-child { display: none; }
  .hero { padding-bottom: 32px; }
  .hero__t { font-size: clamp(56px, 17.5vw, 96px); }
  .hero__cta { width: 100%; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .row { grid-template-columns: 68px minmax(0, 1fr) auto; grid-template-areas: "d m m" "d p b"; gap: 12px 14px; padding: 20px 0; }
  .row__d { grid-area: d; align-self: start; width: 68px; height: 52px; }
  .row__d b { font-size: 16px; }
  .days { gap: 6px; }
  .day { height: 50px; font-size: 14px; }
  .therapy__words { font-size: clamp(36px, 10.5vw, 72px); }
  .therapy__cta { flex-direction: column; }
  .therapy__cta .btn { width: 100%; }
  .free__in { flex-wrap: wrap; gap: 16px; }
  .free__in .btn { width: 100%; }
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .row__m { grid-area: m; }
  .row__p { grid-area: p; font-size: 20px; }
  .row .btn { grid-area: b; }
  .con { grid-template-areas: "t t" "d d" "m p" "b b"; }
  .con .btn { width: 100%; }
  .ft__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .hero__t.is-auto, .therapy__words span { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* ===== СТОРІНКИ: візитка, внутрішні сторінки, заокруглення ===== */
:root { --r: 18px; --rb: 12px; }

/* заокруглення: трохи, не «кружечки» */
.btn, .tile, .day, .fld input, .fld textarea, .row__d, .step__ic, .plan__tag, .rec__tag, .tl__ic { border-radius: var(--rb); }
.btn--sm { border-radius: 10px; }
.plan, .con, .rec, .tl, .free__in, .tg { border-radius: var(--r); }
.free__ic { border-radius: 16px; }
.chk input { border-radius: 6px; }
.fab { border-radius: 16px; }
.pay { border-radius: 24px; }
.mnav__links a { border-radius: 0; }
.plans__dots button::before { border-radius: 2px; }
[data-spot]::before { border-radius: inherit; }

/* ---------- головна-візитка ---------- */
.hero--home { align-items: center; }
.home__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero--home .hero__t { font-size: clamp(56px, 8.4vw, 150px); }
.home__meta { margin-top: clamp(18px, 2.4vw, 32px); color: var(--mut); font: 500 13px/1 var(--fb); letter-spacing: .28em; text-transform: uppercase; }

.menu { display: grid; gap: 10px; }
/* кнопки-рядки під першим екраном головної: одна колонка по центру */
.menu--home { max-width: calc(780px + var(--g) * 2); }
.menu--home + .how { padding-top: clamp(64px, 9vw, 120px); }
.mb {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; align-items: center; gap: 16px;
  padding: 12px 12px 12px 12px; border: 1px solid var(--line2); border-radius: var(--r);
  background: rgba(15, 13, 20, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.mb__ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff;
  background: linear-gradient(140deg, #b67dff, #7b3fe4); box-shadow: 0 8px 24px -10px var(--glow);
}
.mb__ic svg { font-size: 24px; }
.mb__txt { display: grid; gap: 4px; min-width: 0; }
.mb__txt b { font: 500 clamp(16px, 1.35vw, 19px)/1.2 var(--fd); letter-spacing: -.01em; }
.mb__txt small { color: var(--mut); font-size: 14px; line-height: 1.3; }
.mb__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--rb); border: 1px solid var(--line2); color: var(--mut); transition: background .3s, border-color .3s, color .3s; }
.mb__go svg { font-size: 20px; transition: transform .3s var(--ease); }
.mb:hover { border-color: rgba(164, 92, 255, .6); background: rgba(28, 22, 38, .75); }
.mb:hover .mb__go { background: var(--ac); border-color: var(--ac); color: #fff; }
.mb:hover .mb__go svg { transform: translateX(3px); }

/* ---------- верх внутрішніх сторінок ---------- */
.phead { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--hd) + clamp(40px, 6vw, 88px)) 0 clamp(24px, 3vw, 40px); }
.phead .stage { -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); opacity: .8; }
.phead .beam { height: 160%; }
.phead__in { position: relative; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: clamp(18px, 2.4vw, 28px); padding: 8px 14px 8px 10px; border: 1px solid var(--line2); border-radius: 999px; color: var(--mut); font-size: 14px; font-weight: 500; transition: border-color .3s, color .3s; }
.back svg { font-size: 18px; }
.back:hover { border-color: var(--ac); color: var(--ink); }
.phead__t { font: 500 clamp(40px, 7.4vw, 112px)/1 var(--fd); letter-spacing: -.035em; overflow-wrap: anywhere; hyphens: auto; }
.phead__note { margin-top: clamp(14px, 2vw, 22px); max-width: 48ch; color: var(--mut); font-size: clamp(16px, 1.4vw, 19px); }
.sec--page { padding-top: clamp(20px, 3vw, 40px); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* танцетерапія на своїй сторінці */
.therapy__lead { font: 500 clamp(20px, 2vw, 28px)/1.35 var(--fd); letter-spacing: -.015em; max-width: 26ch; }

/* контакти на своїй сторінці */
.contact .tg { margin-top: 0; }
.contact__l { display: flex; flex-direction: column; align-items: flex-start; }
.contact__addr { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--mut); font: 500 18px/1 var(--fd); }
.contact__addr svg { font-size: 22px; color: var(--ac-hi); }
.page-inner .free { padding-top: 0; padding-bottom: clamp(64px, 8vw, 120px); }

@media (max-width: 1000px) {
  .home__in { grid-template-columns: minmax(0, 1fr); }
  .hero--home { align-items: flex-start; }
  .hero--home .hero__t { font-size: clamp(52px, 13vw, 120px); }
}
@media (max-width: 600px) {
  .hero--home { padding-top: calc(var(--hd) + 36px); padding-bottom: 40px; }
  .menu { gap: 8px; }
  .mb { grid-template-columns: 46px minmax(0, 1fr) 36px; gap: 12px; padding: 10px; border-radius: 16px; }
  .mb__ic { width: 46px; height: 46px; border-radius: 12px; }
  .mb__ic svg { font-size: 22px; }
  .mb__go { width: 36px; height: 36px; border-radius: 10px; }
  .mb__go svg { font-size: 18px; }
  .mb__txt small { font-size: 13px; }
  .home__meta { font-size: 11px; letter-spacing: .22em; }
}

/* ---------- «Як це працює»: заголовок → телефон → кроки ---------- */
.how__in { grid-template-areas: "h p" "s p"; row-gap: 0; align-items: start; }
.how__h { grid-area: h; align-self: end; }
.how__steps { grid-area: s; }
.how__in .tgp { grid-area: p; align-self: center; }
@media (max-width: 900px) {
  .how__in { grid-template-areas: "h" "p" "s"; row-gap: 32px; }
  .how__steps { margin-top: 0; }
}

/* ---------- місця під фото (поки порожні; фото кладеться як <img> усередину) ---------- */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--rb);
  border: 1px solid rgba(196, 149, 255, .16); color: rgba(196, 149, 255, .5);
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(164, 92, 255, .14), transparent 70%), var(--bg3);
}
.ph > svg { font-size: 30px; }
.ph > img, .ph > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(> img) > svg, .ph:has(> video) > svg { display: none; }
.plan__ph { aspect-ratio: 16 / 10; margin-bottom: 22px; }

.kons { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.kons .cons { grid-template-columns: minmax(0, 1fr); }
.author { margin: 0; min-height: 420px; border-radius: var(--r); }
.author__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 56px 24px 22px; text-align: left;
  background: linear-gradient(transparent, rgba(7, 6, 10, .85)); color: var(--ink);
}
.author__cap b { font: 500 clamp(20px, 2vw, 26px)/1.1 var(--fd); letter-spacing: -.015em; }
.author__cap span { color: var(--mut); font-size: 14px; }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.gallery .ph { border-radius: var(--r); }
.gallery__big { grid-column: span 2; grid-row: span 2; }

@media (max-width: 900px) {
  .kons { grid-template-columns: minmax(0, 1fr); }
  .author { min-height: 0; aspect-ratio: 4 / 3; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 8px; }
}

/* місце під відео: квадратна кнопка «play»; відео вставляється як <video autoplay muted loop playsinline poster="…"> */
.ph__play {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; color: #fff;
  background: linear-gradient(140deg, #b67dff, #7b3fe4); box-shadow: 0 14px 44px -12px var(--glow);
}
.ph__play svg { font-size: 30px; margin-left: 3px; }
.ph:has(> video) > .ph__play { display: none; }
@media (max-width: 600px) { .ph__play { width: 60px; height: 60px; border-radius: 16px; } .ph__play svg { font-size: 26px; } }

/* помилка відправки форми (оплата, заявка) */
.form__err { margin: 4px 0 0; color: #ff8fb8; font-size: 14px; }
.form__err[hidden] { display: none; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ================= головна однією сторінкою ================= */
/* перший екран: хто ми й дві головні дії */
.page-home .hero { min-height: max(640px, calc(var(--vh1, 1svh) * 100)); }
.hero__kicker { margin-bottom: clamp(16px, 2.2vw, 26px); color: var(--ac-hi); font: 600 13px/1 var(--fb); letter-spacing: .28em; text-transform: uppercase; }
.page-home .hero__t { font-size: clamp(60px, 11.5vw, 178px); }
.hero__lead { max-width: 46ch; margin-top: clamp(22px, 2.6vw, 34px); color: var(--mut); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.page-home .hero__row { margin-top: clamp(26px, 3.2vw, 44px); }
.hero__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-top: 22px; color: var(--dim); font-size: 15px; }
.hero__contact a { color: var(--ink); font-weight: 500; }
.hero__contact a:hover { color: var(--ac-hi); }

/* блоки йдуть один за одним — відступи менші, ніж між окремими сторінками */
.page-home .sec { padding-top: clamp(72px, 9vw, 132px); }
.page-home .sec__hd { margin-bottom: clamp(28px, 4vw, 52px); }
.page-home .sec__note { max-width: 44ch; }
.page-home .how { padding-top: clamp(72px, 9vw, 132px); }
.page-home .contact { padding-bottom: clamp(48px, 6vw, 88px); }
.page-home .free { padding-top: 0; padding-bottom: clamp(64px, 8vw, 120px); }
#consult .kons { margin-top: 0; }

/* картка групи: під абонементом — разове заняття */
.plan__one {
  display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  text-align: center; color: var(--ac-hi); font-weight: 500; font-size: 15px; transition: color .3s;
}
.plan__one:hover { color: #fff; }

/* рядок розкладу, до якого перейшли з картки групи */
.row.is-flash { animation: rowflash 2.2s var(--ease); }
@keyframes rowflash { 0%, 35% { background: rgba(164, 92, 255, .2); } 100% { background: transparent; } }

/* танцетерапія на головній: заголовок, підзаголовок, текст — як інші блоки, без великих слів збоку */
.page-home .therapy__txt { container-type: normal; max-width: 860px; }
.page-home .therapy__txt .h2 { font-size: inherit; font: 500 clamp(32px, 5.4vw, 76px)/1.02 var(--fd); }
.page-home .therapy__txt .sec__note { margin: 14px 0 22px; }
.page-home .therapy__lead { max-width: 34ch; }

/* телефон: без плаваючих кнопок унизу екрана */
@media (max-width: 900px) {
  .fab { display: none; }
}
@media (max-width: 600px) {
  .hero__lead { font-size: 16px; }
  .page-home .hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .page-home .hero__cta .btn { min-width: 0; }
}

/* картка групи коротша: фото нижче, менше відступів, ціна менша */
.plan { padding: clamp(20px, 2.2vw, 28px); }
.plan__ph { aspect-ratio: 2 / 1; margin-bottom: 18px; }
.plan__tag { margin-bottom: 14px; }
.plan__t { font-size: clamp(22px, 2vw, 28px); }
.plan__lvl { margin-top: 6px; }
.plan__list { gap: 8px; margin: 18px 0 22px; font-size: 15px; }
.plan__price { margin-bottom: 16px; }
.plan__price b { font-size: clamp(32px, 3vw, 42px); }
.plan__note { margin-top: 10px; }
.plan__one { margin-top: 10px; padding-top: 10px; }

/* ---------- реквізити й логотипи оплати ---------- */
.ft__req { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; line-height: 1.6; }
.ft__who a:hover { color: var(--ink); }
.paylogos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.paylogos img { display: block; height: 30px; width: auto; }
.pay .paylogos { justify-content: center; margin-top: 10px; }
.chk a { color: var(--ac-hi); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- документи ---------- */
.doc { max-width: 820px; padding-bottom: clamp(64px, 8vw, 120px); color: var(--mut); font-size: 17px; line-height: 1.65; }
.doc h2 { margin: 40px 0 12px; color: var(--ink); font: 500 clamp(20px, 2vw, 26px)/1.2 var(--fd); letter-spacing: -.015em; }
.doc p { margin: 10px 0; }
.doc ul { display: grid; gap: 8px; margin: 10px 0; padding-left: 20px; list-style: disc; }
.doc li::marker { color: var(--ac-hi); }
.doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--ac-hi); text-decoration: underline; text-underline-offset: 2px; }
.doc__upd { color: var(--dim); font-size: 14px; }
.doc__req { margin-top: 32px !important; padding: 18px 20px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg2); color: var(--ink); }
