/* Melody Market Академія — дизайн-система.
   Бумага и чернила, кобальт и жёлтый маркер, мотив раскадровки. Ничего общего с Ральфом. */

:root {
  --paper: #F3EEE4;
  --paper-2: #EAE2D3;
  --card: #FBF8F2;
  --ink: #15120E;
  --ink-2: #3A342C;
  --muted: #776D60;
  --line: rgba(21, 18, 14, .12);
  --line-2: rgba(21, 18, 14, .22);
  --cobalt: #2D3CFF;
  --cobalt-2: #1E28C9;
  --cobalt-soft: #DDE0FF;
  --sun: #FFD43B;
  --sun-2: #F5C400;
  --ok: #1F8A5B;
  --bad: #C8372D;
  --r: 22px;
  --r-s: 14px;
  --shadow: 0 1px 0 rgba(21,18,14,.04), 0 18px 40px -22px rgba(21,18,14,.35);
  --f-display: "Geologica", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Cormorant Garamond", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--f-body); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* зерно бумаги */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  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%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── типографика ─────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.kicker b { font-weight: 500; color: var(--cobalt); }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .5; }
.h-display {
  font: 800 clamp(44px, 8.4vw, 128px)/.9 var(--f-display); letter-spacing: -.05em; margin: 0;
}
.h-section {
  font: 750 clamp(34px, 5vw, 68px)/.98 var(--f-display); letter-spacing: -.04em; margin: 14px 0 0;
  max-width: 17ch; text-wrap: balance;
}
.accent {
  font: italic 600 1.08em/1 var(--f-accent); letter-spacing: -.02em; color: var(--cobalt);
  position: relative; white-space: nowrap; padding: 0 .06em;
}
.accent::after { /* маркер */
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .06em; height: .26em; z-index: -1;
  background: var(--sun); border-radius: .2em; transform: skew(-12deg) rotate(-1.2deg);
  transform-origin: left; animation: marker 1s .55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes marker { from { transform: skew(-12deg) rotate(-1.2deg) scaleX(0); } }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }

/* ── кнопки ──────────────────────────────────────────────── */
.btn {
  --bg: var(--cobalt); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 650 17px/1 var(--f-display); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 0 0 0 var(--ink); transition: transform .18s ease, box-shadow .18s ease, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 0 var(--ink); }
.btn .arr { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn .price-pill {
  background: rgba(255,255,255,.18); border-radius: 999px; padding: 7px 11px; font: 600 14px/1 var(--f-mono);
}
.btn-big { min-height: 66px; padding: 0 34px; font-size: 19px; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 4px 4px 0 0 var(--ink); }
.btn-sun { --bg: var(--sun); --fg: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover { box-shadow: 4px 4px 0 0 var(--cobalt); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-block { width: 100%; }
.link { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ── шапка ───────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s;
}
.top.scrolled { background: rgba(243, 238, 228, .86); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo .lw { display: flex; flex-direction: column; line-height: 1; }
.logo .l1 { font: 750 17px/1 var(--f-display); letter-spacing: -.03em; }
.logo .l2 { font: italic 600 16px/1 var(--f-accent); color: var(--cobalt); margin-top: 2px; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font: 500 15px/1 var(--f-body); color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--cobalt); transition: right .25s; }
.nav a:hover::after { right: 0; }
.langs { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 3px; }
.langs a { font: 600 12px/1 var(--f-mono); text-decoration: none; padding: 8px 10px; border-radius: 999px; color: var(--muted); letter-spacing: .06em; }
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.top .login { font: 600 15px/1 var(--f-body); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s; }
.top .login:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.top .login svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) {
  .top .wrap { gap: 10px; height: 62px; }
  .top .login span { display: none; }
  .top .login { padding: 10px; }
  .logo .l1 { font-size: 15px; } .logo svg { width: 32px; height: 32px; }
}

/* ── лендинг: первый экран ───────────────────────────────── */
.hero { position: relative; padding: clamp(28px, 6vw, 64px) 0 clamp(40px, 7vw, 90px); overflow: hidden; }
.hero::before { /* сетка раскадровки */
  content: ""; position: absolute; inset: -1px 0 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; text-align: center; }
.hero .kicker { justify-content: center; flex-wrap: wrap; row-gap: 6px; text-align: center; line-height: 1.4; }
@media (max-width: 520px) { .hero .kicker { font-size: 11px; letter-spacing: .08em; } .hero .kicker .dot { display: none; } }
.hero .kicker::before { display: none; }
.hero .kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(45,60,255,.08); } }
.hero h1 { margin: 18px auto 0; font-size: clamp(44px, 7.4vw, 104px); }
.hero h1 .l2 { display: block; font-size: .5em; letter-spacing: -.04em; margin-top: .14em; color: var(--ink-2); }

.hero-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 3.5vw, 56px); align-items: center; margin-top: clamp(26px, 3.5vw, 44px); text-align: left; }
.hero-side { display: grid; gap: 26px; justify-items: start; }
.hero-side .lead { margin: 0; font-size: 18px; }
.hero-side .trust { justify-content: flex-start; flex-direction: column; gap: 12px; margin: 0; }
.hero-right { display: grid; gap: 18px; justify-items: end; text-align: right; }
.mini-pair { display: flex; align-items: center; gap: 10px; color: var(--cobalt); }
.mini-pair figure { margin: 0; width: 118px; background: var(--card); padding: 6px 6px 9px; border-radius: 14px; box-shadow: var(--shadow); }
.mini-pair figure:first-child { transform: rotate(-5deg); } .mini-pair figure:last-child { transform: rotate(4deg); width: 140px; }
.mini-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 9px; }
.mini-pair figcaption { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; text-align: center; color: var(--ink-2); }
.mini-pair svg { width: 46px; flex: none; }
.mini-note { margin: 0; max-width: 32ch; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.stage { position: relative; display: grid; place-items: center; padding: 10px 40px; }
.phone {
  position: relative; z-index: 3; width: clamp(260px, 22vw, 310px); aspect-ratio: 9 / 16; border-radius: 42px;
  background: var(--ink); padding: 10px; box-shadow: 0 50px 80px -40px rgba(21,18,14,.6), 0 0 0 1px rgba(0,0,0,.2);
  transform: rotate(-1.2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.phone:hover { transform: rotate(0); }
.phone .poster { height: 100%; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #000; }
.phone video, .phone .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .notch { position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 20px; background: #000; z-index: 2; }
.phone.playing .notch { display: none; }
.play {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(21,18,14,0) 40%, rgba(21,18,14,.55));
}
/* кнопка прижата к низу над подписью: на заставках лицо героя в верхней половине (у мамы — до 50%), кнопка не должна его закрывать */
.play { align-items: end; }
.play .disc { position: relative; width: 116px; height: 116px; display: grid; place-items: center; margin-bottom: 62px; }
.play .disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(21,18,14,.5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.play .ring { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.play .ring text { font: 600 10.5px var(--f-mono); letter-spacing: .24em; fill: #fff; text-transform: uppercase; }
.play .btnc { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--sun); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.play:hover .btnc { transform: scale(1.08); }
.play .btnc svg { width: 28px; height: 28px; margin-left: 4px; }
.play .len { position: absolute; left: 0; right: 0; bottom: 22px; color: #fff; font: 500 13px/1.3 var(--f-body); padding: 0 18px; opacity: .92; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone.playing .play { display: none; }
.sound-hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; background: rgba(255,255,255,.92);
  color: var(--ink); font: 600 13px/1 var(--f-body); padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer; display: none; white-space: nowrap; }
.phone.muted .sound-hint { display: inline-flex; gap: 8px; align-items: center; }

.float { position: absolute; z-index: 2; width: 150px; background: var(--card); padding: 8px 8px 12px; border-radius: 14px;
  box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite; will-change: transform; }
.float img, .float video { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--paper-2); }
.float figcaption { display: flex; justify-content: space-between; margin-top: 9px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.float figcaption b { color: var(--ink); font-weight: 600; }
/* карточки выглядывают из-за телефона */
.f1 { left: -58px; top: 9%; --rot: -9deg; }
.f2 { left: -40px; bottom: 6%; --rot: 6deg; animation-delay: -2s; width: 130px; }
.f3 { right: -60px; top: 3%; --rot: 8deg; animation-delay: -4s; }
.f4 { right: -44px; bottom: 10%; --rot: -6deg; animation-delay: -1s; width: 130px; }
.f5, .f6 { display: none; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--rot)); } 50% { transform: translateY(-12px) rotate(calc(var(--rot) * .7)); } }
.tag { position: absolute; z-index: 4; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--paper);
  padding: 8px 12px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); }
.tag.t-sun { background: var(--sun); color: var(--ink); }
.tag.t-co { background: var(--cobalt); color: #fff; }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr auto; }
  .hero-right { display: none; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; margin-top: 20px; }
  .hero-side { display: contents; }
  .hero-side .lead { order: 1; font-size: 16.5px; }
  .stage { order: 2; padding: 6px 0; }
  .hero-side .btn { order: 3; justify-self: center; width: 100%; max-width: 420px; }
  .hero-side .trust { order: 4; flex-direction: row; justify-content: center; gap: 8px 18px; font-size: 13px; }
  .f2, .f4 { display: none; }
  .f1 { left: -12px; top: 12%; width: 27vw; } .f3 { right: -12px; top: 30%; width: 27vw; }
  .phone { width: min(64vw, 300px); }
}

.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; font: 500 14px/1.3 var(--f-body); color: var(--ink-2); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--cobalt); flex: none; }

/* ── лента-плёнка ───────────────────────────────────────── */
.reel { background: var(--ink); color: var(--paper); padding: 22px 0; position: relative; overflow: hidden; }
.reel::before, .reel::after { /* перфорация */
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(243,238,228,.9) 14px 26px, transparent 26px 40px);
  mask: linear-gradient(#000, #000); opacity: .9;
}
.reel::before { top: 5px; } .reel::after { bottom: 5px; }
.reel::before, .reel::after { height: 8px; border-radius: 2px; }
.reel .label { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); display: none; }
.reel-track { display: flex; gap: 12px; width: max-content; animation: reel 60s linear infinite; padding: 12px 0; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel-track figure { margin: 0; width: clamp(150px, 18vw, 220px); aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #221e19; flex: none; }
.reel-track figure.w { aspect-ratio: 16 / 9; width: clamp(260px, 32vw, 390px); align-self: center; }
.reel-track video, .reel-track img { width: 100%; height: 100%; object-fit: cover; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ── секции ─────────────────────────────────────────────── */
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 32px; }
.sec-head .lead { margin: 0; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; } }
.sec.dark { background: var(--ink); color: var(--paper); }
.sec.dark .kicker { color: rgba(243,238,228,.7); }
.sec.dark .lead { color: rgba(243,238,228,.78); }
.sec.dark .accent { color: var(--sun); }
.sec.dark .accent::after { background: var(--cobalt); opacity: .9; }

/* что получите: сетка карточек */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; position: relative; overflow: hidden; }
.card h3 { font: 700 23px/1.1 var(--f-display); letter-spacing: -.025em; margin: 16px 0 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card .no { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--muted); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--cobalt-soft); color: var(--cobalt); display: grid; place-items: center; }
.card .ic svg { width: 24px; height: 24px; }
/* большая карточка: картинка сверху (лицо целиком), текст под ней — ничего не перекрывает лицо */
.bento .c-img { grid-column: span 5; grid-row: span 2; padding: 0; display: flex; flex-direction: column; }
.bento .c-img .pic { position: relative; flex: 1 1 auto; min-height: 400px; overflow: hidden; background: var(--paper-2); }
.bento .c-img .pic .main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.bento .c-img .inset { position: absolute; left: 16px; bottom: 16px; margin: 0; width: 26%; max-width: 118px; background: var(--card); padding: 5px 5px 7px; border-radius: 12px; box-shadow: var(--shadow); transform: rotate(-4deg); }
.bento .c-img .inset img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.bento .c-img .inset figcaption { font: 600 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-top: 6px; color: var(--ink-2); }
.bento .c-img .hero-tag { right: 16px; bottom: 16px; }
.bento .c-img .in { padding: 22px 26px 26px; }
.bento .c-img .in h3 { margin-top: 14px; }
.bento .c2, .bento .c3 { grid-column: span 7; }
.bento .c4, .bento .c5, .bento .c6 { grid-column: span 4; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento .card, .bento .c-img { grid-column: auto !important; grid-row: auto; } .bento .c-img .pic { flex: none; aspect-ratio: 1 / 1; min-height: 0; } }

/* фото -> герой */
.demo { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.pair { position: relative; height: clamp(420px, 48vw, 600px); }
.pair .ph, .pair .hr { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); padding: 9px; }
.pair img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.pair .ph { width: 44%; aspect-ratio: 3 / 4; left: 0; top: 8%; transform: rotate(-4deg); z-index: 2; }
.pair .hr { width: 66%; aspect-ratio: 3 / 4.2; right: 0; top: 0; transform: rotate(2deg); }
.pair .tag { top: auto; }
.pair .tag.a { left: 18px; bottom: 18px; } .pair .tag.b { right: 18px; bottom: 18px; }
.pair .arrow { position: absolute; left: 34%; top: 56%; width: 120px; z-index: 3; color: var(--cobalt); transform: rotate(-12deg); }
.pillars { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: p; }
.pillars li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; background: var(--card); border-radius: 18px; padding: 10px 18px 10px 10px; box-shadow: inset 0 0 0 1px var(--line); }
.pillars img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.pillars b { display: block; font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 5px; }
.pillars span { font: 500 16.5px/1.35 var(--f-body); }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } .pair { height: 96vw; max-height: 560px; } }

/* программа — раскадровка */
.board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: fr; }
.frame { background: var(--card); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.frame:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 24px 40px -26px rgba(21,18,14,.5); }
.frame .shot { position: relative; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.frame .shot img { width: 100%; height: 100%; object-fit: cover; opacity: .95; transition: transform .6s; }
.frame:hover .shot img { transform: scale(1.04); }
.frame .tc { position: absolute; left: 10px; top: 10px; background: rgba(21,18,14,.8); color: #fff; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; padding: 6px 8px; border-radius: 6px; }
.frame .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.frame .n { font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }
.frame h3 { font: 700 19px/1.15 var(--f-display); letter-spacing: -.02em; margin: 0; }
.frame ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.frame li { padding-left: 16px; position: relative; }
.frame li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--sun-2); }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .board { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 12px; scrollbar-width: none; }
  .board::-webkit-scrollbar { display: none; }
  .frame { flex: 0 0 82%; scroll-snap-align: center; }
}
.board-hint { display: none; font: 500 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .1em; margin-top: 14px; text-transform: uppercase; }
@media (max-width: 640px) { .board-hint { display: block; } }

/* как проходит */
.steps { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid rgba(243,238,228,.16); }
.steps li:last-child { border-bottom: 1px solid rgba(243,238,228,.16); }
.steps .sn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--f-mono); background: rgba(243,238,228,.08); color: var(--sun); box-shadow: inset 0 0 0 1px rgba(243,238,228,.2); }
.steps h3 { margin: 4px 0 6px; font: 700 21px/1.15 var(--f-display); letter-spacing: -.02em; }
.steps p { margin: 0; color: rgba(243,238,228,.74); font-size: 16px; }
.mock { background: var(--paper); color: var(--ink); border-radius: 26px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); transform: rotate(1.5deg); }
.mock .bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock .vid { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); }
.mock .vid img { width: 100%; height: 100%; object-fit: cover; }
.mock .vid .pl { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.mock .vid .pl svg { width: 22px; height: 22px; margin-left: 3px; }
.mock .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 6px 6px; }
.mock .row b { font: 700 17px/1.2 var(--f-display); letter-spacing: -.02em; }
.mock .row small { font: 500 12px/1 var(--f-mono); color: var(--muted); }
.mock .prog { height: 8px; background: var(--paper-2); border-radius: 99px; margin: 8px 6px 4px; overflow: hidden; }
.mock .prog i { display: block; width: 40%; height: 100%; background: var(--cobalt); border-radius: 99px; }
.mock .chip { background: var(--cobalt); color: #fff; font: 600 13px/1 var(--f-display); padding: 10px 14px; border-radius: 999px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .mock { transform: none; } }

/* для кого */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.path .pic { aspect-ratio: 4 / 3; overflow: hidden; }
.path .pic img, .path .pic video { width: 100%; height: 100%; object-fit: cover; }
.path .in { padding: 22px 24px 26px; }
.path h3 { font: 700 23px/1.1 var(--f-display); letter-spacing: -.025em; margin: 0 0 10px; }
.path p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }
.niches { margin-top: clamp(40px, 6vw, 72px); }
.niches h3 { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.niche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.niche { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 11; }
.niche img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.niche:hover img { transform: scale(1.05); }
.niche span { position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--f-body); padding: 9px 12px; border-radius: 999px; }
@media (max-width: 760px) {
  .niche-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
  /* на телефоне подпись под картинкой: поверх маленькой плитки она не помещается */
  .niche { aspect-ratio: auto; overflow: visible; margin: 0; }
  .niche img { height: auto; aspect-ratio: 4 / 3; border-radius: 14px; }
  .niche span { position: static; display: block; background: none; padding: 8px 2px 0; font-size: 14px; line-height: 1.25; }
}

/* цифры студии */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: end; }
.nums { display: grid; gap: 0; }
.num { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: baseline; padding: 22px 0; border-top: 1.5px solid var(--ink); }
.num:last-child { border-bottom: 1.5px solid var(--ink); }
.num b { font: 800 clamp(56px, 7vw, 96px)/.85 var(--f-display); letter-spacing: -.05em; color: var(--cobalt); min-width: 2.3ch; }
.num span { font: 500 18px/1.3 var(--f-body); color: var(--ink-2); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* гарантия и цена */
.offer { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; align-items: stretch; }
.guar { background: var(--sun); border-radius: var(--r); padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.guar h2 { font: 800 clamp(32px, 4vw, 52px)/.98 var(--f-display); letter-spacing: -.04em; margin: 16px 0 18px; max-width: 12ch; }
.guar p { font-size: 17.5px; line-height: 1.55; margin: 0; max-width: 46ch; }
.guar .seal { position: absolute; right: -30px; bottom: -30px; width: 190px; height: 190px; opacity: .9; animation: spin 30s linear infinite; }
.guar .kicker { color: var(--ink); }
/* на узком экране печать ложилась на текст гарантии: уменьшаем и оставляем ей место под текстом */
@media (max-width: 860px) {
  .guar { padding-bottom: 118px; }
  .guar .seal { width: 136px; height: 136px; right: -20px; bottom: -20px; }
}
.ticket { background: var(--card); border-radius: var(--r); padding: clamp(26px, 4vw, 40px); position: relative; box-shadow: inset 0 0 0 1.5px var(--ink);
  -webkit-mask: radial-gradient(circle 16px at 0 62%, transparent 15px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 62%, transparent 15px, #000 16px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 16px at 0 62%, transparent 15px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 62%, transparent 15px, #000 16px) right / 51% 100% no-repeat; }
.ticket .old { font: 500 18px/1 var(--f-mono); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.ticket .now { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 4px; }
.ticket .now b { font: 800 clamp(64px, 8vw, 104px)/.85 var(--f-display); letter-spacing: -.055em; }
.ticket .now span { font: 700 26px/1 var(--f-display); }
.ticket .once { color: var(--ink-2); font-size: 15px; }
.ticket .test { display: inline-block; margin-left: 8px; background: var(--cobalt-soft); color: var(--cobalt-2); font: 600 11px/1 var(--f-mono); letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; text-transform: uppercase; vertical-align: middle; }
.ticket ul { list-style: none; padding: 20px 0 0; margin: 20px 0 24px; border-top: 1.5px dashed var(--line-2); display: grid; gap: 11px; }
.ticket li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticket li svg { width: 20px; height: 20px; flex: none; color: var(--cobalt); margin-top: 2px; }
.ticket .secure { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.ticket .secure svg { width: 15px; height: 15px; flex: none; }
.ticket .note { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; line-height: 1.5; }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }

/* вопросы */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 70px); }
.qa { border-top: 1.5px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 0; font: 650 19px/1.3 var(--f-display); letter-spacing: -.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; transition: background .2s, transform .3s; }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px -6px; background: currentColor; transition: transform .3s; }
.qa summary .pm::after { transform: rotate(90deg); }
.qa details[open] summary .pm { background: var(--ink); color: var(--paper); }
.qa details[open] summary .pm::after { transform: rotate(0); }
.qa .a { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .qa .a { padding-right: 0; } }

/* следующий курс */
.next { position: relative; overflow: hidden; }
.next .grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.next .collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-3deg); }
.next .collage figure { margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; }
.next .collage figure:nth-child(2) { transform: translateY(28px); }
.next .collage figure:nth-child(5) { transform: translateY(28px); }
.next .collage img, .next .collage video { width: 100%; height: 100%; object-fit: cover; }
.next .pill { display: inline-flex; gap: 8px; align-items: center; background: rgba(243,238,228,.1); color: var(--sun); padding: 8px 12px; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(243,238,228,.2); }
@media (max-width: 860px) { .next .grid { grid-template-columns: 1fr; } }

/* финал */
.final { text-align: center; padding: clamp(80px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.final h2 { font: 800 clamp(40px, 7vw, 104px)/.92 var(--f-display); letter-spacing: -.05em; margin: 0 auto; max-width: 14ch; }
.final .lead { margin: 22px auto 34px; }

/* подвал */
.foot { border-top: 1px solid var(--line-2); padding: 34px 0 110px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 861px) { .foot { padding-bottom: 34px; } }

/* липкая кнопка на телефоне */
.sticky { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: none; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 8px 8px 20px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6);
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); padding-bottom: calc(8px + env(safe-area-inset-bottom) * .3); }
.sticky.on { transform: translateY(0); }
.sticky .p { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.sticky .p s { font: 500 12px/1 var(--f-mono); opacity: .6; }
.sticky .p b { font: 750 20px/1.1 var(--f-display); letter-spacing: -.02em; }
.sticky .btn { min-height: 50px; padding: 0 20px; font-size: 16px; }
@media (max-width: 860px) { .sticky { display: flex; } }

/* курс пісень: своя тема — тёплый коралл вместо кобальта, чтобы курсы не сливались */
.t-songs { --cobalt: #E0452B; --cobalt-2: #B5321A; --cobalt-soft: #FFE0D6; }
.t-songs .hero .kicker .dot { box-shadow: 0 0 0 4px var(--cobalt-soft); }
.board.b7 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .board.b7 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .board.b7 { display: flex; } }
.offer.one { grid-template-columns: minmax(0, 620px); justify-content: center; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }
.load { animation: load .9s cubic-bezier(.2,.8,.2,1) both; }
.load.d1 { animation-delay: .08s; } .load.d2 { animation-delay: .16s; } .load.d3 { animation-delay: .26s; } .load.d4 { animation-delay: .36s; }
@keyframes load { from { opacity: 0; transform: translateY(22px); } }

/* ── окно покупки ────────────────────────────────────────── */
dialog.buy { border: 0; padding: 0; background: transparent; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: visible; color: var(--ink); }
dialog.buy::backdrop { background: rgba(21,18,14,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.buy[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.buy .box { background: var(--paper); border-radius: 28px; padding: clamp(22px, 4vw, 34px); position: relative; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); max-height: calc(100dvh - 24px); overflow: auto; }
.buy .x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); cursor: pointer; display: grid; place-items: center; }
.buy .x svg { width: 18px; height: 18px; }
.buy h2 { font: 800 30px/1 var(--f-display); letter-spacing: -.035em; margin: 6px 0 18px; }
.stepper { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-2); }
.stepper li.on { color: var(--ink); } .stepper li.on::before { background: var(--cobalt); }
.mini { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 16px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; }
.mini img { width: 58px; height: 72px; object-fit: cover; border-radius: 10px; }
.mini .t { flex: 1; min-width: 0; }
.mini .t small { font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini .t b { display: block; font: 700 18px/1.15 var(--f-display); letter-spacing: -.02em; margin-top: 4px; }
.mini .pr { text-align: right; } .mini .pr s { display: block; font: 500 12px/1 var(--f-mono); color: var(--muted); } .mini .pr b { font: 800 26px/1 var(--f-display); letter-spacing: -.03em; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font: 600 14px/1 var(--f-body); }
.input { width: 100%; min-height: 58px; border-radius: 16px; border: 0; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); padding: 0 18px; font: 500 18px/1 var(--f-body); color: var(--ink); transition: box-shadow .2s; }
.input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--cobalt), 0 0 0 5px var(--cobalt-soft); }
.input.code { letter-spacing: .5em; font: 600 26px/1 var(--f-mono); text-align: center; padding-left: .5em; }
.hint { font-size: 13.5px; color: var(--muted); margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; margin: 6px 0 18px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--card); margin: 0; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.check input:checked { background: var(--cobalt); box-shadow: none; }
.check input:checked::after { content: ""; width: 11px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.err { color: var(--bad); font-size: 14.5px; margin: 0 0 12px; min-height: 0; }
.err:empty { display: none; }
.guar-line { font-size: 13px; color: var(--ink-2); background: #FFF6CF; border-radius: 12px; padding: 12px 14px; margin: 16px 0 0; line-height: 1.5; }
.spinner { width: 46px; height: 46px; margin: 12px auto 18px; border-radius: 50%; border: 4px solid var(--cobalt-soft); border-top-color: var(--cobalt); animation: spin 1s linear infinite; }
.center { text-align: center; }

/* ── отдельные страницы: вход, оплата ────────────────────── */
.solo { min-height: calc(100dvh - 72px); display: grid; place-items: center; padding: 30px var(--pad) 60px; position: relative; }
.solo .panel { width: min(100%, 480px); background: var(--card); border-radius: 30px; padding: clamp(26px, 5vw, 42px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); position: relative; z-index: 2; }
.solo h1 { font: 800 clamp(30px, 5vw, 40px)/1 var(--f-display); letter-spacing: -.04em; margin: 12px 0 14px; }
.solo .deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.solo .deco img { position: absolute; width: clamp(140px, 18vw, 230px); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; background: var(--card); }
.solo .deco .d1 { left: 5%; top: 14%; transform: rotate(-8deg); } .solo .deco .d2 { right: 6%; bottom: 12%; transform: rotate(6deg); }
@media (max-width: 860px) { .solo .deco { display: none; } }
.big-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; }
.big-ic.ok { background: #D7F2E4; color: var(--ok); } .big-ic.bad { background: #FBE0DC; color: var(--bad); }
.big-ic svg { width: 40px; height: 40px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

.solo .alt { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 14.5px; color: var(--muted); }
.row-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.linkbtn { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--cobalt); font: 500 14.5px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn[disabled] { opacity: .5; }

/* ── кабинет ─────────────────────────────────────────────── */
.app { min-height: calc(100dvh - 72px - 90px); padding: clamp(18px, 3vw, 34px) 0 clamp(60px, 8vw, 100px); }
.app-top .wrap { gap: 16px; }
.who-am-i { display: flex; align-items: center; gap: 12px; }
.who-am-i .em { font: 500 13.5px/1 var(--f-mono); color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-top .login { background: none; border: 0; cursor: pointer; }
@media (max-width: 700px) { .who-am-i .em { display: none; } }
.app-loading { display: grid; place-items: center; gap: 4px; min-height: 50vh; color: var(--muted); text-align: center; }
.app h1 { font: 800 clamp(34px, 5vw, 58px)/.98 var(--f-display); letter-spacing: -.045em; margin: 10px 0 0; text-wrap: balance; }
.small { font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 14.5px/1 var(--f-body); color: var(--ink-2); padding: 8px 0; }
.back svg { width: 18px; height: 18px; } .back:hover { color: var(--cobalt); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pbar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 16px 0 8px; box-shadow: inset 0 0 0 1px var(--line); }
.pbar i { display: block; height: 100%; border-radius: 99px; background: var(--cobalt); transition: width .6s cubic-bezier(.2,.8,.2,1); min-width: 8px; }
.pbar.big { height: 12px; max-width: 460px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-mono); letter-spacing: .04em; padding: 7px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.ok { background: #D7F2E4; color: var(--ok); }

.dash-head { margin-bottom: clamp(22px, 3vw, 34px); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; background: #FFF6CF; border-radius: 20px; padding: 18px 22px; margin-bottom: 22px; box-shadow: inset 0 0 0 1px rgba(245,196,0,.5); }
.banner p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.cc-list { display: grid; gap: 18px; }
.cc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--card); border-radius: 26px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.cc-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cc-img:hover img { transform: scale(1.03); }
.cc-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .25s; }
.cc-img:hover .cc-play { transform: scale(1.08); }
.cc-play svg { width: 26px; height: 26px; margin-left: 4px; }
.cc-tag { position: absolute; left: 14px; top: 14px; background: rgba(21,18,14,.82); color: #fff; font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 8px; }
.cc-body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.cc-body h2 { font: 800 clamp(28px, 3.2vw, 40px)/1 var(--f-display); letter-spacing: -.04em; margin: 12px 0 4px; }
.cc-body .acts { margin-top: 18px; }
@media (max-width: 820px) { .cc { grid-template-columns: 1fr; } }

.upsell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--ink); color: var(--paper); border-radius: 26px; padding: clamp(20px, 3.5vw, 40px); margin-top: 22px; overflow: hidden; }
.u-art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; transform: rotate(-3deg); }
.u-art img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.u-art img:nth-child(2n) { transform: translateY(18px); }
.u-body .pill { display: inline-flex; gap: 8px; align-items: center; background: rgba(243,238,228,.1); color: var(--sun); padding: 8px 12px; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.u-body .pill svg { width: 15px; height: 15px; }
.u-body h2 { font: 800 clamp(30px, 4vw, 48px)/1 var(--f-display); letter-spacing: -.04em; margin: 16px 0 12px; }
.u-body p { color: rgba(243,238,228,.78); margin: 0 0 18px; max-width: 52ch; }
.u-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.u-price s { font: 500 16px/1 var(--f-mono); opacity: .55; }
.u-price b { font: 800 34px/1 var(--f-display); letter-spacing: -.03em; }
.upsell .link { color: var(--sun); }
@media (max-width: 760px) { .upsell { grid-template-columns: 1fr; } .u-art { grid-template-columns: repeat(4, 1fr); } .u-art img:nth-child(2n) { transform: translateY(10px); } }

.card-soft { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.help h3 { font: 700 20px/1.2 var(--f-display); letter-spacing: -.02em; margin: 12px 0 4px; }
.help p { margin: 0 0 14px; font-size: 14.5px; }
.h-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); }
.h-ic svg { width: 22px; height: 22px; }
.input.area { min-height: 96px; padding: 14px 16px; font-size: 16px; line-height: 1.5; resize: vertical; margin-bottom: 12px; }
.ok-line { display: flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 600; margin: 6px 0 0; }
.ok-line svg { width: 20px; height: 20px; }
.dash-foot { margin-top: 22px; max-width: 620px; }

.course-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin: 10px 0 clamp(24px, 4vw, 40px); }
.course-head > div { flex: 1 1 420px; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 1000px) { .course-grid { grid-template-columns: 1fr; } }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.les { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 18px; align-items: center; text-decoration: none; background: var(--card); border-radius: 20px; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.les:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.les .th { position: relative; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: var(--ink); }
.les .th img { width: 100%; height: 100%; object-fit: cover; }
.les .dur { position: absolute; right: 7px; bottom: 7px; background: rgba(21,18,14,.82); color: #fff; font: 500 11px/1 var(--f-mono); padding: 5px 7px; border-radius: 6px; }
.les .tx { display: grid; gap: 5px; min-width: 0; }
.les small { font: 500 11.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.les b { font: 700 20px/1.2 var(--f-display); letter-spacing: -.02em; }
.les .sum { font-size: 14px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.les .st { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-right: 8px; }
.les .go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .2s; }
.les:hover .go { background: var(--ink); color: var(--paper); box-shadow: none; }
.les .go svg { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .les { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 8px; }
  .les .st { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; padding: 0 2px 4px; }
  .les .st .go { display: none; } .les .st:not(:has(.chip)) { display: none; }
  .les b { font-size: 16.5px; } .les .sum { display: none; }
}
.side { display: grid; gap: 12px; position: sticky; top: 90px; }
.side-h { font: 500 12.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
@media (max-width: 1000px) { .side { position: static; } }
.mat { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; background: var(--card); border-radius: 18px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
a.mat:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.m-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cobalt-soft); color: var(--cobalt); display: grid; place-items: center; }
.m-ic svg { width: 22px; height: 22px; }
.m-tx { display: grid; gap: 3px; min-width: 0; }
.m-tx b { font: 700 16px/1.2 var(--f-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.m-tx small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.m-go svg { width: 19px; height: 19px; color: var(--ink-2); }
.mat-d { display: block; padding: 0; }
.mat-d summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; }
.mat-d summary::-webkit-details-marker { display: none; }
.mat-d .pm { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); position: relative; }
.mat-d .pm::before, .mat-d .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.8px; margin: -.9px -5px; background: currentColor; transition: transform .3s; }
.mat-d .pm::after { transform: rotate(90deg); } .mat-d[open] .pm::after { transform: rotate(0); }
.mat-d .notes-body { padding: 0 18px 18px; font-size: 15px; max-height: 420px; overflow: auto; }

/* урок */
.les-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.les-top .kicker::before { display: none; }
.les-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(20px, 3vw, 34px); align-items: start; }
@media (max-width: 1000px) { .les-grid { grid-template-columns: 1fr; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(21,18,14,.55); }
.player video { width: 100%; height: 100%; background: #000; }
.perr { position: absolute; inset: auto 12px 12px; margin: 0; background: rgba(200,55,45,.95); color: #fff; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
@media (max-width: 640px) { .lesson { --pad: 12px; } .player { border-radius: 16px; } }
.lesson h1 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 20px; }
.vnote { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.vnote svg { width: 16px; height: 16px; }
.les-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 22px 0 28px; }
.les-nav .btn { min-height: 52px; padding: 0 22px; font-size: 16px; }
.markw { justify-self: center; display: inline-flex; gap: 8px; align-items: center; background: none; border: 0; cursor: pointer; font: 600 14.5px/1.2 var(--f-body); color: var(--ink-2); padding: 10px 12px; border-radius: 999px; }
.markw svg { width: 18px; height: 18px; color: var(--muted); }
.markw:hover { background: var(--paper-2); }
.markw[disabled] { color: var(--ok); cursor: default; background: none; } .markw[disabled] svg { color: var(--ok); }
@media (max-width: 640px) {
  .les-nav { grid-template-columns: 1fr 1fr; }
  .les-nav .markw { grid-column: 1 / -1; grid-row: 1; }
  .les-nav .btn { width: 100%; padding: 0 14px; }
  .les-nav > span:empty { display: none; }
  .les-nav > span:empty + .markw + .btn { grid-column: 1 / -1; }
}
.tabs { display: flex; gap: 6px; background: var(--paper-2); padding: 5px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; scroll-margin-top: 90px; }
.tabs button { border: 0; background: none; cursor: pointer; font: 600 15px/1 var(--f-display); padding: 12px 18px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs em { font: 500 12px/1 var(--f-mono); font-style: normal; opacity: .7; margin-left: 4px; }
.tabp { padding: 24px 0 0; }
.sumlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sumlist li { position: relative; padding: 14px 16px 14px 46px; background: var(--card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.45; }
.sumlist li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 10px; height: 10px; border-radius: 3px; background: var(--sun-2); }
.notes-body { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.notes-body h2, .notes-body h3 { font: 700 21px/1.25 var(--f-display); letter-spacing: -.02em; color: var(--ink); margin: 26px 0 10px; }
.notes-body h2:first-child, .notes-body h3:first-child { margin-top: 0; }
.notes-body ul, .notes-body ol { padding-left: 22px; } .notes-body li { margin: 5px 0; }
.notes-body strong { color: var(--ink); }
.notes-body table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.notes-body td, .notes-body th { border-bottom: 1px solid var(--line-2); padding: 8px 6px; text-align: left; vertical-align: top; }
.notes-body blockquote { margin: 14px 0; padding: 12px 16px; background: #FFF6CF; border-radius: 12px; }

.quiz > .muted { margin: 0 0 16px; }
.qcard { background: var(--card); border-radius: 22px; padding: clamp(18px, 3vw, 28px); box-shadow: inset 0 0 0 1px var(--line); }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qhead small { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dots { display: flex; gap: 6px; } .dots i { width: 22px; height: 5px; border-radius: 4px; background: var(--line-2); } .dots i.on { background: var(--ink); } .dots i.cur { background: var(--cobalt); }
.qcard h3 { font: 700 clamp(20px, 2.4vw, 24px)/1.25 var(--f-display); letter-spacing: -.02em; margin: 14px 0 18px; }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; border: 0; cursor: pointer; background: var(--paper); border-radius: 16px; padding: 12px 14px; font: 500 16px/1.4 var(--f-body); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .15s, background .15s; }
.opt:hover:not([disabled]) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.opt .ok-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); font: 600 14px/1 var(--f-mono); }
.opt[disabled] { cursor: default; }
.opt.right { background: #E3F5EC; box-shadow: inset 0 0 0 2px var(--ok); } .opt.right .ok-mark { background: var(--ok); color: #fff; }
.opt.wrong { background: #FCE8E5; box-shadow: inset 0 0 0 2px var(--bad); } .opt.wrong .ok-mark { background: var(--bad); color: #fff; }
.explain { margin: 16px 0; padding: 14px 16px; border-radius: 14px; font-size: 15.5px; line-height: 1.5; }
.explain.is-right { background: #E3F5EC; } .explain.is-wrong { background: #FFF6CF; }
.qres { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--card); border-radius: 22px; padding: clamp(20px, 3vw, 30px); box-shadow: inset 0 0 0 1px var(--line); }
.qres .score { width: 120px; height: 120px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; align-content: center; grid-auto-flow: column; gap: 4px; }
.qres.perfect .score { background: var(--sun); }
.qres .score b { font: 800 52px/1 var(--f-display); letter-spacing: -.04em; } .qres .score span { font: 600 18px/1 var(--f-mono); color: var(--ink-2); }
.qres h3 { font: 700 22px/1.2 var(--f-display); margin: 0 0 6px; } .qres p { margin: 0 0 16px; color: var(--ink-2); }
@media (max-width: 560px) { .qres { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qres .acts { justify-content: center; } }

.playlist { display: grid; gap: 12px; position: sticky; top: 90px; }
@media (max-width: 1000px) { .playlist { position: static; } }
.pl-head { background: var(--card); border-radius: 18px; padding: 16px 16px 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pl-head small { font-size: 13px; } .pl-head > small:first-child { font: 600 15px/1.2 var(--f-display); display: block; }
.pl-head .pbar { margin: 12px 0 8px; }
.playlist ol { list-style: none; margin: 0; padding: 6px; background: var(--card); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.playlist ol a { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-decoration: none; padding: 10px; border-radius: 12px; font-size: 14.5px; line-height: 1.3; }
.playlist ol a:hover { background: var(--paper); }
.playlist ol a.cur { background: var(--ink); color: var(--paper); }
.playlist ol small { font: 500 11.5px/1 var(--f-mono); color: var(--muted); }
.playlist ol a.cur small { color: rgba(243,238,228,.6); }
.pn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--f-mono); background: var(--paper-2); color: var(--ink-2); }
.pn svg { width: 15px; height: 15px; }
.is-done .pn { background: #D7F2E4; color: var(--ok); }
.cur .pn { background: var(--sun); color: var(--ink); }

/* курс пройден */
.fin-card { position: relative; text-align: center; background: var(--card); border-radius: 30px; padding: clamp(28px, 5vw, 60px) clamp(20px, 4vw, 48px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.fin-card h1 { margin: 12px auto 14px; }
.fin-card .lead { margin: 0 auto 26px; }
.fin-card .kicker::before { display: none; }
.fin-card .acts { justify-content: center; }
.fin-art { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.fin-art img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.fin-art img:nth-child(1) { transform: rotate(-7deg) translateY(8px); } .fin-art img:nth-child(3) { transform: rotate(7deg) translateY(8px); }
.fin-mats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 18px; }

/* ── юридические страницы ────────────────────────────────── */
.doc { max-width: 780px; margin: 0 auto; padding: 40px var(--pad) 100px; }
.doc h1 { font: 800 clamp(34px, 5vw, 52px)/1 var(--f-display); letter-spacing: -.04em; }
.doc h2 { font: 700 22px/1.2 var(--f-display); margin: 34px 0 10px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.65; }
.doc .draft { background: #FFF6CF; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }

/* ── отзывы (01.10: образец, виден только по ?demo=reviews) ─────────────── */
.reviews[hidden] { display: none !important; }
.reviews { padding-top: 0; }
.kicker .kstar { width: 16px; height: 16px; color: var(--sun); }
.rev-sample { margin: 0; justify-self: start; font: 600 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); background: var(--sun); padding: 7px 11px; border-radius: 999px; }
.revs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rev { margin: 0; display: flex; flex-direction: column; gap: 16px; background: var(--card); border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--line); padding: 26px 26px 22px; position: relative; overflow: hidden; }
.rev::before { content: "\201C"; position: absolute; right: 18px; top: -18px; font: 700 120px/1 var(--f-accent);
  color: var(--cobalt); opacity: .09; pointer-events: none; }
.rev .stars { display: flex; gap: 3px; color: var(--sun); }
.rev .stars svg { width: 20px; height: 20px; }
.rev blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink); flex: 1; }
.rev .res { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1.2 var(--f-body);
  color: var(--cobalt-2); background: var(--cobalt-soft); padding: 7px 11px 7px 9px; border-radius: 999px; }
.rev .res svg { width: 14px; height: 14px; flex: none; }
.rev figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.rev figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4.5px var(--sun); }
.rev figcaption span { display: grid; line-height: 1.25; }
.rev figcaption b { font: 700 16px/1.2 var(--f-display); letter-spacing: -.01em; }
.rev figcaption small { font-size: 13.5px; color: var(--muted); }
/* первая карточка — крупная, тёмная, цитата акцентным шрифтом */
.rev.feat { grid-column: span 2; background: var(--ink); color: var(--paper); box-shadow: none; padding: 34px 34px 26px; }
.rev.feat::before { color: var(--sun); opacity: .16; font-size: 170px; top: -26px; }
.rev.feat blockquote { color: var(--paper); font: 500 clamp(24px, 2.4vw, 32px)/1.25 var(--f-accent); font-style: italic; letter-spacing: -.005em; }
.rev.feat .stars svg { width: 24px; height: 24px; }
.rev.feat .res { background: rgba(255, 212, 59, .14); color: var(--sun); }
.rev.feat figcaption { border-top-color: rgba(243, 238, 228, .2); }
.rev.feat figcaption img { box-shadow: 0 0 0 3px var(--ink), 0 0 0 4.5px var(--sun); }
.rev.feat figcaption small { color: rgba(243, 238, 228, .65); }
.t-songs .rev::before { color: var(--cobalt); }
@media (max-width: 960px) { .revs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* телефон: карточки листаются пальцем */
@media (max-width: 640px) {
  .revs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1);
    padding: 4px var(--pad) 14px; scrollbar-width: none; }
  .revs::-webkit-scrollbar { display: none; }
  .rev, .rev.feat { flex: 0 0 84%; scroll-snap-align: center; padding: 24px 22px 20px; }
  .rev.feat blockquote { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
