:root {
  --bg: #07060b;
  --ink: #f3f0fa;
  --mute: #a19bb3;
  --line: rgba(243, 240, 250, .55);
  --line-soft: rgba(243, 240, 250, .16);
  --accent: #9b6bff;
  --accent-deep: #6c2bd9;
  --display: 'Dela Gothic One', 'Geologica', sans-serif;
  --text: 'Geologica', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;
  --r: 14px;
  --wrap: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.label {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute);
}

/* плейхед: полоса прогресса страницы, как курсор на монтажной дорожке */
.playhead { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30; background: var(--line-soft); }
.playhead i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 20;
  width: min(820px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 20px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(7, 6, 11, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
}
.nav__logo { font-weight: 600; white-space: nowrap; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { padding: 8px 0; transition: color .2s; }
.nav__links a:hover { color: var(--accent); }
.nav__tc { font: 400 12px var(--mono); color: var(--accent); font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 28px;
  border: 1px solid var(--line); border-radius: 12px;
  font-weight: 400; font-size: 15px;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn--fill { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--fill:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--sm { min-height: 36px; padding: 0 22px; font-size: 14px; }
.btn--xl { min-height: 60px; padding: 0 44px; font-size: 18px; box-shadow: 0 0 60px -10px var(--accent-deep); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(60% 50% at 50% 38%, rgba(108, 43, 217, .22), transparent 70%);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > *:not(.hero__stars) { position: relative; }
.hero__label { margin-bottom: 24px; }
.hero__title { line-height: .9; }
.js .hero__outline { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero__name { animation: rise .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.hero__outline, .hero__name { display: block; font-family: var(--display); font-weight: 400; }
.hero__outline {
  font-size: clamp(44px, 11.5vw, 150px);
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.hero__name {
  font-size: clamp(30px, 7vw, 92px);
  letter-spacing: -.03em;
  margin-top: -.42em;
  text-shadow: 0 0 40px rgba(155, 107, 255, .55);
}
.hero__lead { max-width: 46ch; margin: 32px auto 0; padding: 0 20px; color: var(--mute); font-size: 17px; text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; padding: 0 20px; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 32px auto 0; padding: 0 20px; }
.social {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px;
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: rgba(243, 240, 250, .04);
  text-align: left;
  transition: border-color .2s, background .2s, transform .15s;
}
.socials--mini { margin-top: 24px; gap: 10px; }
.socials--mini .social { min-height: 44px; width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.social svg { flex: none; color: var(--accent); transition: color .2s; }
.social span { font: 400 11px/1.3 var(--mono); color: var(--mute); }
.social b { display: block; font: 600 15px/1.25 var(--text); color: var(--ink); }
.social:hover { border-color: var(--accent); background: rgba(155, 107, 255, .12); transform: translateY(-2px); }
.social:hover svg { color: var(--ink); }
.social:active { transform: scale(.97); }

/* сцена: веер телефонов с живыми фрагментами */
.stage { position: relative; height: 470px; margin: 56px auto 0; max-width: 1200px; perspective: 1500px; transform-style: preserve-3d; }
.stage__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .3s ease-out; }
.phone {
  position: relative; display: block; overflow: hidden;
  border: 2px solid var(--line); border-radius: 30px;
  background: #0d0b14;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 6px rgba(243, 240, 250, .04);
}
.phone img, .phone video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone video { opacity: 0; transition: opacity .3s; }
.phone.is-live video { opacity: 1; }
.phone__notch { position: absolute; top: 10px; left: 50%; width: 64px; height: 16px; margin-left: -32px; border-radius: 10px; background: #000; z-index: 2; }
.stage .phone {
  position: absolute; left: 50%; top: 0; width: 240px; height: 426px; margin-left: -120px;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s, filter .7s, border-color .4s;
  will-change: transform;
}
.stage .phone.is-active { border-color: var(--accent); box-shadow: 0 30px 80px -20px rgba(108, 43, 217, .8), 0 0 0 6px rgba(155, 107, 255, .12); }
.stage__dots { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.stage__dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--line-soft); transition: background .3s, width .3s; }
.stage__dots i.is-on { width: 44px; background: var(--accent); }

/* бегущая строка */
.band { margin: 24px 0 0; padding: 14px 0; overflow: hidden; background: var(--accent-deep); transform: rotate(-1.5deg) scale(1.03); }
.band__track { display: flex; width: max-content; animation: band 26s linear infinite; }
.band span { font: 400 clamp(18px, 2.4vw, 30px)/1 var(--display); letter-spacing: .02em; white-space: nowrap; color: var(--ink); }
@keyframes band { to { transform: translateX(-50%); } }

/* свой курсор над роликами */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  transform: translate(var(--x, -200px), var(--y, -200px)) scale(0); transition: transform .25s cubic-bezier(.2, .7, .2, 1);
  mix-blend-mode: normal;
}
.cursor.is-on { transform: translate(var(--x), var(--y)) scale(1); }

/* ---------- секции ---------- */
.section { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; padding: 96px 0 0; text-align: center; }
.section > .label { margin-bottom: 16px; }
.section > .label::before { content: attr(data-tc-text) ' — '; color: var(--accent); }
.h2 { font: 400 clamp(28px, 4.6vw, 52px)/1.08 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.h3 { font: 600 20px/1.2 var(--text); }
.section__lead { max-width: 56ch; margin: 16px auto 0; color: var(--mute); text-wrap: balance; }

/* ---------- обо мне ---------- */
.about {
  display: grid; grid-template-columns: 230px 1fr 200px; gap: 24px;
  margin-top: 40px; padding: 24px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: left;
}
.about__me { text-align: center; padding-right: 24px; border-right: 1px solid var(--line); }
.about__ava {
  width: 96px; height: 96px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  font: 400 40px var(--display);
  background: radial-gradient(circle at 30% 25%, var(--accent), var(--accent-deep) 55%, #1a0f38);
}
.about__name { font-weight: 600; font-size: 18px; }
.about__role { font-size: 13px; color: var(--mute); }
.about__note { margin-top: 16px; font-size: 14px; line-height: 1.45; }
.about__text { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.about__text p:not(.about__big), .ba__text p:not(.about__big) { color: var(--mute); max-width: 52ch; }
.about__big { font-weight: 400; font-size: 19px; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.about__btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.about__join {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px 16px;
  border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); font-size: 16px;
  transition: border-color .2s, background .2s;
}
.about__join:hover { border-color: var(--accent); background: rgba(155, 107, 255, .1); }
.about__join:hover .btn { background: var(--ink); color: var(--bg); }

.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 24px; }
.list ul { margin-top: 12px; padding: 16px 24px; border: 1px solid var(--line); border-radius: var(--r); text-align: left; font-size: 14px; }
.list li { position: relative; padding-left: 16px; }
.list li::before { content: ''; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- карточки роликов ---------- */
.card {
  position: relative; display: block; width: 100%;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #111; text-align: left;
  transition: border-color .2s, transform .25s;
}
.card--v { aspect-ratio: 9 / 16; }
.card--h { aspect-ratio: 16 / 9; }
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .25s; }
.card.is-live video { opacity: 1; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card__play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(7, 6, 11, .82);
  transition: transform .2s, background .2s, opacity .2s;
}
.card__play::after { content: ''; position: absolute; left: 23px; top: 18px; border: 10px solid transparent; border-left: 15px solid var(--ink); border-right: 0; }
.card:hover .card__play { transform: scale(1.12); background: var(--accent-deep); }
.card.is-live .card__play { opacity: 0; }
.phone.is-live .card__play { opacity: 0; }
.card__cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px;
  background: linear-gradient(transparent, rgba(7, 6, 11, .92));
  font-size: 14px; line-height: 1.3;
}
.card__cap b { display: block; font-weight: 600; }
.card__cap span { font: 400 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.section--wide { width: min(1160px, calc(100% - 40px)); }
.show { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; margin-top: 48px; text-align: left; }
.show__list { counter-reset: w; border-top: 1px solid var(--line-soft); }
.row {
  display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px;
  width: 100%; padding: 20px 8px; text-align: left;
  border-bottom: 1px solid var(--line-soft);
  transition: padding .35s cubic-bezier(.2, .7, .2, 1), background .3s;
}
.row__n { font: 400 12px var(--mono); color: var(--mute); transition: color .3s; }
.row__title { display: block; font: 400 clamp(22px, 3.3vw, 40px)/1.05 var(--display); letter-spacing: -.02em; color: var(--mute); transition: color .3s; }
.row__tag { display: block; margin-top: 8px; font: 400 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.row__go { width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 50%; position: relative; transition: background .3s, border-color .3s, transform .3s; }
.row__go::after { content: ''; position: absolute; left: 17px; top: 13px; border: 8px solid transparent; border-left: 12px solid var(--ink); border-right: 0; }
.row__thumb { display: none; }
.row.is-active { padding-left: 24px; background: linear-gradient(90deg, rgba(155, 107, 255, .14), transparent 70%); }
.row.is-active .row__title { color: var(--ink); }
.row.is-active .row__n { color: var(--accent); }
.row.is-active .row__go { background: var(--accent-deep); border-color: var(--accent-deep); transform: scale(1.1); }
.show__side { position: sticky; top: 104px; }
.phone--big { width: 300px; height: 533px; cursor: none; }
.show__cap { margin-top: 16px; text-align: center; }
.show__cap b { display: block; font-weight: 600; font-size: 16px; }
.show__cap span { font: 400 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.ba { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 24px; align-items: center; margin-top: 40px; }
.ba__text { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; text-align: left; padding-left: 16px; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; text-align: left; }
.steps li { padding: 24px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.steps__n { display: block; margin-bottom: 24px; font: 400 12px var(--mono); color: var(--accent); }
.steps b { font-weight: 600; font-size: 16px; }
.steps p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--mute); }

/* ---------- курс ---------- */
.course { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; text-align: left; }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border: 1px solid var(--line-soft); border-radius: var(--r); }
.plan--full { border-color: var(--accent); background: rgba(155, 107, 255, .07); }
.plan__price { font: 400 clamp(28px, 3.6vw, 40px)/1.1 var(--display); letter-spacing: -.02em; }
.plan__price span { font: 400 14px var(--mono); letter-spacing: 0; color: var(--accent); white-space: nowrap; }
.plan__lead { font-size: 17px; line-height: 1.4; text-wrap: balance; }
.plan ul { flex: 1; font-size: 14px; color: var(--mute); }
.plan li { position: relative; padding-left: 16px; }
.plan li + li { margin-top: 6px; }
.plan li::before { content: ''; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.plan__note { font-size: 13px; line-height: 1.45; color: var(--mute); }
.course__need { margin-top: 24px; font: 400 12px var(--mono); color: var(--mute); }

/* ---------- финал ---------- */
.final { padding-bottom: 96px; }
.final__title { font: 400 clamp(24px, 3.6vw, 40px)/1.15 var(--display); letter-spacing: -.02em; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.final__sub { max-width: 34ch; margin: 24px auto 0; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.35; color: var(--accent); text-wrap: balance; }

.footer { padding: 40px 20px; border-top: 1px solid var(--line-soft); text-align: center; }
.footer__copy { margin-top: 8px; font-size: 12px; color: var(--mute); }

/* ---------- плеер ---------- */
.player { margin: auto; padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.player::backdrop { background: rgba(7, 6, 11, .9); backdrop-filter: blur(6px); }
.player video { max-width: 92vw; max-height: 86vh; border: 1px solid var(--line); border-radius: var(--r); background: #000; }
.player__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); font-size: 24px; line-height: 1; }
.player__close:hover { background: var(--ink); color: var(--bg); }

/* появление — только при живом JS */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__me { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .about__text { align-items: center; text-align: center; }
  .about__btns { justify-content: center; }
  .about__join { flex-direction: row; justify-content: space-between; padding: 16px 20px; }
  .about__join svg { width: 24px; height: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .course { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ba__text { grid-column: 1 / -1; align-items: center; text-align: center; padding: 8px 0 0; }
  .show { grid-template-columns: 1fr; gap: 0; }
  .show__side { display: none; }
  .row { padding: 14px 4px; }
  .row.is-active { padding-left: 4px; background: none; }
  .row__n, .row__go { display: none; }
  .row { grid-template-columns: 64px 1fr; }
  .row__thumb { display: block; width: 64px; height: 96px; border-radius: 10px; border: 1px solid var(--line-soft); object-fit: cover; }
  .row__title { color: var(--ink); }
}
@media (max-width: 640px) {
  .nav { padding: 8px 14px; }
  .nav__links { gap: 12px; font-size: 13px; }
  .nav__links a:nth-child(3), .nav__tc { display: none; }
  .hero { padding-top: 124px; }
  .stage { height: 360px; margin-top: 40px; }
  .stage .phone { width: 180px; height: 320px; margin-left: -90px; border-radius: 24px; }
  .section { padding-top: 72px; }
  .lists { grid-template-columns: 1fr; gap: 24px; }
  .grid--v { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .plan { padding: 24px 20px; }
  .socials { flex-direction: column; align-items: stretch; max-width: 340px; }
  .socials--mini { flex-direction: row; justify-content: center; max-width: none; }
  .card__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .card__play::after { left: 19px; top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__track { animation: none; }
  .stage .phone { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero__outline, .js .hero__name { animation: none; }
  .cursor { display: none; }
  .card, .btn, .social { transition: none; }
}
