/* RE:PLAY landing, built from Anja's mock ("RE_PLAY_ Танцы по хитам 2000-х.png", 9.11.2026) */
:root {
  --bg: #0f0f10;
  --ink: #ffffff;
  --ink-2: #e4e3e6;
  --ink-3: #a9a7ad;
  --line: #3a393c;
  --pink: #f59bbd;        /* logo, buttons */
  --pink-ink: #f7a6c6;    /* pink headline */
  --pink-deep: #d84a7e;   /* heart on the pink card */
  --card-a: #f9b4ca;
  --card-b: #f297b8;
  --dark: #141414;
  --map: #3b3e40;
  --radius: 22px;
  --pad: clamp(16px, 4vw, 40px);
  --f-logo: "Montserrat", "Arial Black", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 19px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, p, figure, ul { margin: 0; }

.page { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad) 28px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font: italic 900 clamp(52px, 8.4vw, 92px)/.9 var(--f-logo);
  letter-spacing: -.035em;
  color: var(--pink);
  text-decoration: none;
  padding-right: .06em; /* room for the italic overhang */
}
.tagline {
  font: 500 14px/1.4 var(--f-mono);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: right;
}

/* ---------- rows ---------- */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.row.hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); padding-top: clamp(28px, 4vw, 34px); }
.copy > * + * { margin-top: 16px; }
.copy > .kicker + h2 { margin-top: 12px; }

h1 {
  font: 800 clamp(34px, 4.4vw, 50px)/1.1 var(--f-body);
  letter-spacing: -.02em;
}
h2 {
  font: 800 clamp(30px, 3.7vw, 42px)/1.12 var(--f-body);
  letter-spacing: -.015em;
  text-wrap: balance;
}
h2.pink { color: var(--pink-ink); }
.lead, .copy p { color: var(--ink-2); max-width: 30em; }
.lead { font-size: clamp(19px, 1.8vw, 22px); }
.copy p.strong { color: var(--ink); font-weight: 800; margin-top: 22px; }
.kicker {
  font: 500 15px/1.3 var(--f-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.underlined { position: relative; white-space: nowrap; }
.underlined svg {
  position: absolute; left: -2%; bottom: -13px; width: 104%; height: 13px;
  fill: none; stroke: var(--pink); stroke-width: 2.6; stroke-linecap: round;
  overflow: visible;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px;
  border-radius: 999px;
  font: 800 18px/1 var(--f-body);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn .ic { width: 28px; height: 28px; flex: none; }
.btn .ic-sm { width: 18px; height: 18px; margin-left: 6px; }
.btn-pink { background: var(--pink); color: #121212; box-shadow: 0 10px 34px -12px rgba(245,155,189,.75); }
.btn-pink:hover { box-shadow: 0 16px 40px -12px rgba(245,155,189,.95); }
.btn-dark { background: var(--dark); color: #fff; padding: 18px 40px; }
.btn-dark:hover { box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }

.cta-line { display: flex; align-items: center; gap: 20px; margin-top: 30px !important; }
.doodle { color: var(--pink); fill: none; }
.heart-1 { width: 50px; height: 58px; transform: rotate(-14deg) translateY(-34px); transform-origin: 50% 60%; }

@media (prefers-reduced-motion: no-preference) {
  .heart-1 { animation: beat 1.2s ease-in-out infinite; }
  .heart-2 { animation: beat2 1.2s ease-in-out infinite; }
}
@keyframes beat {
  0%, 60%, 100% { transform: rotate(-14deg) translateY(-34px) scale(1); }
  15% { transform: rotate(-14deg) translateY(-34px) scale(1.12); }
  30% { transform: rotate(-14deg) translateY(-34px) scale(1.02); }
  45% { transform: rotate(-14deg) translateY(-34px) scale(1.08); }
}
@keyframes beat2 {
  0%, 60%, 100% { transform: rotate(10deg) scale(1); }
  15% { transform: rotate(10deg) scale(1.1); }
  30% { transform: rotate(10deg) scale(1.02); }
  45% { transform: rotate(10deg) scale(1.06); }
}

/* ---------- media cards ---------- */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1b1a1d;
  aspect-ratio: 5 / 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
  isolation: isolate;
}
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }

.play {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(0,0,0,.32);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .3s ease, transform .2s ease;
}
.play .ic { width: 32px; height: 32px; margin-left: 5px; }
.play:hover { transform: scale(1.06); }

/* hero: YouTube "TV" */
.tv { aspect-ratio: 3 / 2; background: #000; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -34px rgba(245,155,189,.55); }
.tv .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .6s ease; }
.tv .poster:not([src]) { visibility: hidden; }
.yt-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* players: the one on screen (.on) covers the next one warming up underneath */
.deck { position: absolute; inset: 0; }
.deck.on { z-index: 1; }
.yt-wrap iframe {
  position: absolute; left: 50%; top: 50%; border: 0;
  width: var(--pw, 120%); height: var(--ph, 100%);
  transform: translate(-50%, -50%);
}
.tv.native .yt-wrap { pointer-events: auto; z-index: 6; }
.tv.native .poster, .tv.native .play { display: none; }
.tv[data-state="playing"] .poster { opacity: 0; }
.tv[data-state="loading"] .poster { transition: none; } /* cover the next player at once, it still shows YouTube's overlay */
.tv[data-state="playing"] .play,
.tv[data-state="loading"] .play { opacity: 0; pointer-events: none; }
/* waiting for the next clip: the poster shows and the track's segment breathes */
.tv[data-state="loading"] .segs span.on { animation: seg-wait 1.1s ease-in-out infinite; }
@keyframes seg-wait { 50% { background: rgba(255,255,255,.6); } }

.static {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background:
    linear-gradient(rgba(245,155,189,.18), rgba(245,155,189,.18)),
    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='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    #222;
  transition: opacity .25s ease;
}
.tv.switching .static { opacity: 1; animation: snow .18s steps(4) infinite; }
@keyframes snow {
  0% { background-position: 0 0, 0 0; }
  25% { background-position: 0 0, -40px 30px; }
  50% { background-position: 0 0, 50px -60px; }
  75% { background-position: 0 0, -70px -20px; }
}

.sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  padding: 9px 14px;
  border: 0; border-radius: 999px;
  background: rgba(15,15,16,.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, background-color .2s ease;
}
.sound:hover { background: rgba(15,15,16,.85); }
.sound .sound-on { display: none; }
.sound[aria-pressed="true"] .sound-off { display: none; }
.sound[aria-pressed="true"] .sound-on { display: inline; }
.tv[data-state="playing"] .sound,
.tv[data-state="loading"] .sound { opacity: 1; pointer-events: auto; }

/* top bar: progress segments (one per track) + what is playing */
.tv-top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 5;
  padding: 12px 16px 26px;
  background: linear-gradient(rgba(10,10,12,.72), rgba(10,10,12,.38) 60%, transparent);
  pointer-events: none;
}
.segs { display: flex; gap: 5px; }
.segs span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.segs i { display: block; height: 100%; width: 0; background: var(--pink); border-radius: inherit; }
.segs span.on i { transition: width .2s linear; }
.tv.single .segs { display: none; }
.now { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; min-width: 0; }
.now-label {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--pink);
}
.now-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.now-title {
  font: 800 17px/1.25 var(--f-body); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  transition: opacity .22s ease, transform .22s ease;
}
.tv.title-out .now-title { opacity: 0; transform: translateY(-4px); }

/* side arrows: quiet until hovered, but always there */
.nav {
  position: absolute; top: 50%; z-index: 5;
  width: 40px; height: 40px; margin-top: -20px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(15,15,16,.38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; opacity: .62;
  transition: opacity .2s ease, background-color .2s ease, transform .2s ease;
}
.nav .ic { width: 20px; height: 20px; }
.nav.prev { left: 10px; }
.nav.prev .ic { transform: scaleX(-1); }
.nav.next { right: 10px; }
.tv:hover .nav { opacity: .9; }
.nav:hover { opacity: 1 !important; background: rgba(15,15,16,.7); }
.nav.next:hover { transform: translateX(2px); }
.nav.prev:hover { transform: translateX(-2px); }
.tv.single .nav, .tv[data-state="fallback"] .nav { display: none; }

/* 02: our lesson video */
.lesson { aspect-ratio: 3 / 2; background: #2a1520; }
.lesson.playing .play { opacity: 0; pointer-events: none; }
.rec {
  position: absolute; left: 16px; top: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 13px/1 var(--f-mono); letter-spacing: .12em; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
/* the original clip inside our video (picture-in-picture) */
.pip {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 37%; aspect-ratio: 4 / 3;
  border-radius: 12px; overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px var(--pink), 0 10px 26px -6px rgba(0,0,0,.6);
  pointer-events: none;
}
.pip[hidden] { display: none; }
.pip-frame { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .5s ease; }
.pip.live .pip-frame { opacity: 1; }
.pip-frame iframe {
  position: absolute; left: 50%; top: 50%; width: 640px; height: 360px; border: 0;
  transform: translate(-50%, -50%) scale(var(--ps, .3));
}
.pip-label {
  position: absolute; left: 7px; top: 7px;
  padding: 4px 7px 3px; border-radius: 6px;
  background: var(--pink); color: #121212;
  font: 700 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.pip-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 8px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  font: 500 11px/1.25 var(--f-body); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pip-title b { display: block; font-weight: 800; }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: #ff3b4e; box-shadow: 0 0 8px #ff3b4e; }
@media (prefers-reduced-motion: no-preference) { .rec i { animation: blink 1.2s steps(2, jump-none) infinite; } }
@keyframes blink { 50% { opacity: .15; } }

.features {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 30px !important;
}
.features li {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 2px 10px;
  text-align: center;
  font: 500 16px/1.3 var(--f-body);
  color: var(--ink-2);
}
.features li + li { border-left: 1px solid var(--line); }
.fi { width: 36px; height: 36px; fill: none; stroke: var(--pink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 03: map */
.map {
  aspect-ratio: 3 / 1;
  background: radial-gradient(120% 140% at 40% 30%, #46494b, var(--map) 55%, #2f3133);
  border-radius: 18px;
}
.streets { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin-group {
  position: absolute; left: 44%; top: 50%; transform: translateY(-58%);
  display: flex; align-items: center; gap: 12px;
}
.pin { width: 38px; height: 50px; fill: var(--pink); filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
@media (prefers-reduced-motion: no-preference) { .row.in .pin { animation: drop .7s cubic-bezier(.3,1.6,.5,1) .2s both; } }
@keyframes drop { from { transform: translateY(-26px); opacity: 0; } to { transform: none; opacity: 1; } }
.pill {
  display: flex; flex-direction: column;
  padding: 10px 22px 11px;
  border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 18px;
  background: rgba(36,37,39,.82);
  line-height: 1.25;
}
.pill b { font: 800 18px/1.25 var(--f-body); }
.pill span { font: 500 14px/1.3 var(--f-body); color: var(--ink-2); }

/* ---------- final CTA ---------- */
.final {
  position: relative; overflow: hidden;
  margin-top: clamp(26px, 3vw, 34px);
  padding: clamp(40px, 5vw, 54px) clamp(22px, 4vw, 48px) clamp(38px, 4.4vw, 50px);
  border-radius: 26px;
  background: linear-gradient(100deg, var(--card-a), var(--card-b));
  color: #121212;
  text-align: center;
}
.final-copy { position: relative; z-index: 2; }
.final h2 { font-size: clamp(30px, 4.2vw, 46px); }
.final p { margin: 10px auto 28px; font: 600 clamp(17px, 1.8vw, 20px)/1.4 var(--f-body); max-width: 32em; }
.disco {
  position: absolute; z-index: 1;
  left: -46px; top: 50%; width: clamp(150px, 21vw, 236px); height: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 10px 22px rgba(120,30,70,.25));
}
.heart-2 { position: absolute; right: clamp(22px, 7vw, 86px); top: 50%; margin-top: -40px; width: 64px; height: 76px; color: var(--pink-deep); transform: rotate(10deg); z-index: 1; }

.foot {
  display: flex; justify-content: center; gap: 18px;
  padding: 26px 0 6px;
  font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.foot a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- reveal on scroll (only when JS runs) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .row:not(.hero), .js .final { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .row.in, .js .final.in { opacity: 1; transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0 18px; }
  .tagline { text-align: left; font-size: 11.5px; letter-spacing: .22em; }
  .row, .row.hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero .media { order: 2; }
  .cta-line { margin-top: 24px !important; }
  .heart-1 { width: 42px; height: 48px; }
  .features li { font-size: 14.5px; padding: 2px 6px; }
  .fi { width: 32px; height: 32px; }
  .map { aspect-ratio: 2 / 1; }
  .pin-group { left: 30%; }
  .final { padding-top: 150px; }
  .disco { top: -42px; left: 50%; width: 170px; transform: translateX(-50%); }
  .heart-2 { top: 24px; margin-top: 0; right: 20px; width: 46px; height: 54px; }
}
@media (max-width: 420px) {
  .btn { padding: 16px 22px; font-size: 17px; gap: 10px; }
  .btn .ic { width: 24px; height: 24px; }
  .btn-dark { padding: 17px 28px; }
  .heart-1 { display: none; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .play .ic { width: 26px; height: 26px; }
  .tv-top { padding: 10px 12px 22px; }
  .now { margin-top: 8px; }
  .now-label { font-size: 10px; }
  .now-title { font-size: 15px; }
  .nav { width: 34px; height: 34px; margin-top: -17px; }
  .nav.prev { left: 6px; } .nav.next { right: 6px; }
  .sound { right: 10px; bottom: 10px; padding: 8px 11px; font-size: 11px; }
  .pip { width: 40%; right: 8px; top: 8px; border-radius: 10px; }
  .pip-label { font-size: 9px; padding: 3px 5px 2px; left: 5px; top: 5px; }
  .pip-title { font-size: 10px; padding: 12px 6px 5px; }
  .rec { font-size: 11px; left: 12px; top: 12px; }
}
