/* Бас Покрас — сайт. Цвета из приложения; кармин — только акцент. Зелёный не использовать. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FBF7F1;
  --surface: #FFFDF9;
  --surface-2: #F5EEE4;
  --line: #EADFD1;
  --text: #2B2522;
  --text-2: #6B625B;
  --text-3: #9C928A;
  --accent: #A2231D;
  --accent-soft: #F6E3DF;
  --mark: #8A3229;
  --good: #7A4E2C;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); font-weight: 200; }
h2 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 200; }
h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--text-2); }
.small { font-size: .88rem; }
.kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: .7rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5rem; border-radius: 999px;
  background: var(--accent); color: #FFFDF9; border: 1px solid var(--accent);
  font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
  box-shadow: 0 6px 18px -10px rgba(162, 35, 29, .55);
}
.btn:hover { background: #8E1E19; }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--surface); border-color: var(--text-3); }
.btn--small { min-height: 40px; padding: 0 1.1rem; font-size: .95rem; }
.btn--wide { width: 100%; }
.chip {
  min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.chip:hover { border-color: var(--text-3); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.chip--done { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(251, 247, 241, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 400; letter-spacing: .02em; }
.top__brand img { width: 44px; height: auto; }

/* Первый экран */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 80px) var(--gutter) clamp(32px, 6vw, 72px);
  display: grid; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero__logo { display: grid; justify-items: center; gap: 14px; }
/* Логотип «прорисовывается»: сначала контуры линия за линией, слева направо, потом заливка. */
.logo { width: clamp(210px, 62vw, 440px); height: auto; overflow: visible; }
.logo__lines path {
  fill: none; stroke: var(--text); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.7s var(--ease) calc(.15s + var(--i) * .11s) forwards, lines-out .8s ease 2.9s forwards;
}
.logo__fill { fill: var(--text); opacity: 0; animation: fill-in .9s ease 2.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { opacity: 1; } }
@keyframes lines-out { to { opacity: 0; } }
.hero__text { text-align: center; display: grid; gap: 18px; justify-items: center; }
.hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-2); max-width: 32ch; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.1fr; min-height: min(78vh, 760px); }
  .hero__logo { order: 2; }
  .hero__text { text-align: left; justify-items: start; }
  .hero__actions { justify-content: flex-start; }
}

/* Секции */
section { scroll-margin-top: 70px; }
.section-head { display: grid; gap: 10px; margin-bottom: clamp(18px, 3vw, 32px); max-width: 640px; }
.paint, .dirs, .steps { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter); }

/* Игра «Живопись» */
.paint__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(43, 37, 34, .35); }
.paint__stage { position: relative; height: min(64svh, 620px); min-height: 340px; touch-action: none; cursor: crosshair; }
#paint-canvas { width: 100%; height: 100%; touch-action: none; }
.paint__hint {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  color: var(--text-3); pointer-events: none; transition: opacity .5s;
}
.paint__hint svg { animation: wiggle 2.4s ease-in-out infinite; }
.paint__hint.is-gone { opacity: 0; }
@keyframes wiggle { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(14px, -6px) rotate(8deg); } 60% { transform: translate(-12px, 6px) rotate(-6deg); } }
.paint__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); }
.tools { display: flex; width: 100%; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.tool {
  flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2);
  font: inherit; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.tool[aria-checked="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(43, 37, 34, .12); }
@media (min-width: 900px) { .tools { width: auto; } .tool { padding: 0 1.2rem; } }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); transition: transform .2s var(--ease), box-shadow .2s;
}
.swatch[aria-checked="true"] { transform: scale(1.12); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
.paint__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Направления */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: grid; gap: 8px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(43, 37, 34, .4); }
.card__icon { width: 40px; height: 40px; fill: none; stroke: var(--mark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.card p { color: var(--text-2); font-size: .96rem; }
.card .card__price { color: var(--text); font-size: .9rem; font-weight: 500; margin-top: 4px; }
.card__link { justify-self: start; margin-top: 6px; font-weight: 500; color: var(--accent); text-decoration: none; }
.card__link::after { content: " →"; }

/* Шаги */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps__list li { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.steps__list p { color: var(--text-2); }
.steps__n { font-size: 2.4rem; font-weight: 200; color: var(--mark); line-height: 1; }
.steps__cta { margin-top: clamp(24px, 4vw, 40px); }

/* Подвал */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.foot__col { display: grid; gap: 6px; align-content: start; }
.foot__links { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Предложение после игры */
.offer { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; }
.offer[hidden] { display: none; }
.offer__backdrop { position: absolute; inset: 0; background: rgba(43, 37, 34, .38); animation: fadein .3s ease; }
.offer__sheet {
  position: relative; width: min(100%, 560px); max-height: 92svh; overflow: auto;
  background: var(--surface); border-radius: 26px 26px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  display: grid; gap: 16px; animation: up .45s var(--ease);
}
@media (min-width: 640px) { .offer { align-items: center; } .offer__sheet { border-radius: 26px; padding: 22px; } }
.offer__thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.offer__body { display: grid; gap: 10px; }
.offer__body h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.offer__body > p:not(.kicker) { color: var(--text-2); }
.offer__body .offer__price { color: var(--text); font-weight: 500; padding: 12px 14px; background: var(--accent-soft); border-radius: 14px; }
.offer__more { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.offer__x { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .9); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo__lines { display: none; }
  .logo__fill { animation: none; opacity: 1; }
  .paint__hint svg, .offer__sheet, .offer__backdrop { animation: none; }
}


/* ---------- Страницы направлений ---------- */
.lp-hero { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 8vw, 96px) var(--gutter) clamp(12px, 3vw, 24px); display: grid; gap: 16px; }
.lp-hero h1 { font-size: clamp(2.4rem, 8vw, 5rem); max-width: 14ch; }
.lp-hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-2); font-weight: 300; max-width: 38ch; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.game, .info { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter); }
.info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.info__list li { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.info__list p { color: var(--text-2); }
.info__list .info__price { color: var(--text); font-weight: 500; font-size: .92rem; }
.info__price:empty { display: none; }
.cta-band {
  margin-top: clamp(24px, 4vw, 40px); padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
}
.cta-band__title { font-size: 1.15rem; }
.cta-band__price { color: var(--accent); font-weight: 600; }
.info__where { margin-top: 14px; }

/* Значок над предложением (аккорды, вердикт и т. п.) */
.offer__badge { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 22px 12px 6px; }
.offer__badge span {
  min-width: 56px; padding: 10px 14px; border-radius: 14px; text-align: center;
  background: var(--surface-2); font-size: 1.5rem; font-weight: 300; letter-spacing: -0.01em;
}
.offer__badge .big { font-size: 3.2rem; line-height: 1; background: none; padding: 0; }

/* ---------- Гитара ---------- */
.gt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(43, 37, 34, .35); }
.gt__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gt__chords { display: flex; gap: 6px; }
.gt__chord {
  min-width: 52px; min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 1.05rem; color: var(--text-2); cursor: pointer; transition: all .2s var(--ease);
}
.gt__chord[aria-current="true"] { background: var(--text); color: var(--surface); border-color: var(--text); transform: translateY(-1px); }
.gt__count { font-size: .9rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.gt__stage { position: relative; height: clamp(260px, 44svh, 380px); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.gt__stage svg { width: 100%; height: 100%; display: block; }
.gt__hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); pointer-events: none;
  background: rgba(43, 37, 34, .78); color: #FBF7F1; padding: 8px 14px; border-radius: 999px; font-size: .9rem;
  white-space: nowrap; transition: opacity .4s; animation: nudge 1.8s ease-in-out infinite;
}
.gt__hint.is-gone { opacity: 0; }
@keyframes nudge { 50% { transform: translate(-50%, 5px); } }
.gt__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .gt__hint { animation: none; } }

/* ---------- Вокал ---------- */
.vc { --lvl: 0; --p: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 40px) 16px 14px; display: grid; gap: 16px; justify-items: center; box-shadow: 0 30px 60px -40px rgba(43, 37, 34, .35); }
.vc__main { display: grid; gap: 14px; justify-items: center; text-align: center; }
.vc__btn {
  position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #FFFDF9; display: grid; place-items: center;
  box-shadow: 0 14px 30px -14px rgba(162, 35, 29, .7); transition: transform .2s var(--ease);
}
.vc__btn:active { transform: scale(.96); }
.vc__btn::before { /* кольцо громкости */
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(162, 35, 29, .35);
  transform: scale(calc(1 + var(--lvl) * .35)); opacity: calc(.25 + var(--lvl)); transition: transform .08s linear;
}
.vc__btn::after { /* кольцо времени */
  content: ""; position: absolute; inset: -18px; border-radius: 50%; opacity: 0;
  background: conic-gradient(var(--text) calc(var(--p) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 69%, #000 70%); mask: radial-gradient(circle, transparent 69%, #000 70%);
}
.vc.is-live .vc__btn::after { opacity: .85; }
.vc:not(.is-live) .vc__btn { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.vc__status { min-height: 1.6em; font-size: 1.05rem; max-width: 30ch; }
.vc__trace { width: 100%; height: 120px; border-radius: 14px; background: var(--bg); }
.vc__fallback { color: var(--text-2); text-align: center; max-width: 44ch; }
.vc__foot { display: flex; justify-content: center; }
.keys { position: relative; display: flex; width: 100%; max-width: 520px; height: 170px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.key {
  flex: 1; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #FFFDF9; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; font: inherit; font-size: .78rem; color: var(--text-3);
  transition: background .1s;
}
.key.is-down { background: var(--accent-soft); }
.key--black {
  position: absolute; top: 0; width: 9%; height: 60%; left: calc((var(--pos) + 1) * 12.5% - 4.5%); z-index: 1;
  background: var(--text); border-color: var(--text); border-radius: 0 0 8px 8px;
}
.key--black.is-down { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .vc:not(.is-live) .vc__btn { animation: none; } }

/* ---------- День рождения ---------- */
.bd { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 14px; display: grid; gap: 12px; justify-items: center; text-align: center; box-shadow: 0 30px 60px -40px rgba(43, 37, 34, .35); }
.bd__status { min-height: 1.5em; font-size: 1.05rem; }
.bd__cake { width: min(100%, 380px); height: auto; touch-action: none; user-select: none; -webkit-user-select: none; overflow: visible; }
.candle { cursor: pointer; }
.flame { transform-box: fill-box; transform-origin: 50% 85%; animation: flicker 1.1s ease-in-out infinite alternate; animation-delay: var(--d); transition: transform .25s, opacity .25s; }
@keyframes flicker { 0% { transform: scale(1, 1) skewX(0); } 40% { transform: scale(.94, 1.06) skewX(3deg); } 100% { transform: scale(1.03, .96) skewX(-3deg); } }
.candle.is-out .flame { animation: none; transform: scale(0); opacity: 0; }
.smoke circle { fill: #9C928A; opacity: 0; transform-box: fill-box; transform-origin: center; }
.candle.is-out .smoke circle { animation: smoke 1.2s ease-out forwards; }
.candle.is-out .smoke circle:nth-child(2) { animation-delay: .1s; }
.candle.is-out .smoke circle:nth-child(3) { animation-delay: .2s; }
@keyframes smoke { 0% { opacity: .5; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-34px) scale(2.2); } }
.bd__hurray {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.3); pointer-events: none;
  font-size: clamp(4rem, 18vw, 7rem); font-weight: 200; color: var(--accent); letter-spacing: -0.03em; opacity: 0;
}
.bd__hurray.is-on { animation: hurray 1.8s var(--ease) forwards; }
@keyframes hurray { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(2deg); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }
.bd__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#bd-blow.is-live { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.bd__note { max-width: 40ch; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
@media (prefers-reduced-motion: reduce) { .flame { animation: none; } }

/* ---------- 3Д: мост ---------- */
.br { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 10px 10px; display: grid; gap: 8px; justify-items: center; box-shadow: 0 30px 60px -40px rgba(43, 37, 34, .35); }
.br__status { font-size: 1.05rem; min-height: 1.5em; text-align: center; }
.br__svg { width: min(100%, 560px); height: auto; touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; }
.br-piece { cursor: grab; }
.br-piece.is-drag { cursor: grabbing; filter: drop-shadow(0 8px 10px rgba(43, 37, 34, .25)); }
.br-piece.is-placed { cursor: default; }
.br-piece:focus-visible { outline: none; }
.br-piece:focus-visible path:nth-child(2) { stroke: var(--accent); stroke-width: 2; }
.br__svg path.is-near { stroke: var(--accent); stroke-width: 2; fill: var(--accent-soft); }
.br__svg.is-done .br-piece path:nth-child(2) { animation: paper-glow 1s ease; }
@keyframes paper-glow { 50% { fill: #FFF6E6; } }
.br-car.is-go { animation: drive 2.4s cubic-bezier(.45, 0, .3, 1) forwards; }
@keyframes drive { from { transform: translate(-60px, 82px); } to { transform: translate(400px, 82px); } }
@media (prefers-reduced-motion: reduce) { .br-car.is-go { animation-duration: .01s; } }

/* ---------- Лепка ---------- */
.lp-hero--split { align-items: center; }
.lp-hero__text { display: grid; gap: 16px; }
.clay { width: min(78vw, 360px); height: auto; justify-self: center; }
@media (min-width: 900px) { .lp-hero--split { grid-template-columns: 1.2fr 1fr; } }
.cards--what { margin-top: 4px; }
.cards--what .card:hover { transform: none; box-shadow: none; }

/* ---------- Лепка: игра ---------- */
.sc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px 16px; display: grid; gap: 10px; justify-items: center; box-shadow: 0 30px 60px -40px rgba(43, 37, 34, .35); }
.sc__status { font-size: 1.05rem; min-height: 1.5em; text-align: center; }
.sc__row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sc__row .chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.sc__svg { width: min(100%, 420px); height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; border-radius: 18px; }
.sc__svg path { transform-box: fill-box; transform-origin: 50% 100%; }
.sc__svg .is-squish { animation: squish .28s var(--ease); }
@keyframes squish { 40% { transform: scale(1.04, .95); } }
.sc__glaze { margin-top: 4px; }
.sc-sweep { transform-box: view-box; }
.sc__svg.is-glazed .sc-sweep { animation: sweep 1.1s ease .1s; }
@keyframes sweep { from { transform: skewX(-20deg) translateX(0); } to { transform: skewX(-20deg) translateX(560px); } }
.sc-sparkles path { opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc__svg.is-glazed .sc-sparkles path { animation: sparkle .9s ease forwards; }
@keyframes sparkle { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(.6) rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .sc__svg .is-squish, .sc__svg.is-glazed .sc-sweep, .sc__svg.is-glazed .sc-sparkles path { animation: none; } }

/* ---------- Навигация ---------- */
.top { gap: 12px; }
.top__nav { display: none; gap: 4px; }
.top__nav a { padding: 8px 10px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: .95rem; transition: color .2s, background .2s; }
.top__nav a:hover { color: var(--text); background: var(--surface-2); }
.top__nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.top__right { display: flex; align-items: center; gap: 8px; }
.top__menu {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; cursor: pointer;
}
.top__burger, .top__burger::before, .top__burger::after { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.top__burger { position: relative; }
.top__burger::before, .top__burger::after { content: ""; position: absolute; left: 0; }
.top__burger::before { top: -5px; } .top__burger::after { top: 5px; }
.menu-open .top__burger { background: transparent; }
.menu-open .top__burger::before { transform: translateY(5px) rotate(45deg); }
.menu-open .top__burger::after { transform: translateY(-5px) rotate(-45deg); }
@media (min-width: 1040px) { .top__nav { display: flex; } .top__menu { display: none; } }
@media (max-width: 380px) { .top__menu span:last-child { display: none; } .top__brand span { display: none; } }

.menu { position: fixed; inset: 0; z-index: 19; background: rgba(43, 37, 34, .25); padding-top: 64px; animation: fadein .2s ease; }
.menu__inner {
  background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100svh - 64px); overflow: auto;
  padding: 8px var(--gutter) 20px; display: grid; animation: drop .3s var(--ease);
}
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
.menu__link { display: grid; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.menu__link span { font-size: 1.45rem; font-weight: 300; letter-spacing: -0.01em; }
.menu__link small { color: var(--text-3); font-size: .85rem; }
.menu__link[aria-current="page"] span { color: var(--accent); }
.menu__link span::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; vertical-align: middle; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s var(--ease); }
.menu__link[aria-current="page"] span::after, .menu__link:hover span::after, .menu__link:focus-visible span::after { opacity: 1; transform: none; }
.menu__contacts { padding-top: 16px; }
body.menu-open { overflow: hidden; }

.back { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-bottom: 4px; color: var(--text-2); text-decoration: none; font-size: .95rem; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.back:hover { color: var(--text); border-color: var(--text-3); }
.more { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) clamp(40px, 6vw, 72px); }
.more__title { font-size: 1.2rem; font-weight: 400; margin-bottom: 14px; }
.more__list { display: flex; flex-wrap: wrap; gap: 8px; }
.more__list .chip { display: inline-flex; align-items: center; text-decoration: none; }
.more__list [aria-current="page"] { display: none; }

/* ---------- Карминовый квадратик — фирменный акцент, как на визитке ---------- */
.foot { position: relative; }
.foot::after {
  content: ""; position: absolute; right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom)); width: 14px; height: 14px; background: var(--accent);
}

/* Вокал: студийный микрофон вместо кнопки */
.vc__mic { width: min(72vw, 300px); padding: 0; border: 0; background: none; cursor: pointer; transition: transform .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.vc__mic svg { width: 100%; height: auto; overflow: visible; }
.vc__mic:hover { transform: translateY(-3px); }
.vc__mic:active { transform: scale(.98); }
.vc__mic:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 24px; }
.vc__spot { opacity: 0; transition: opacity .6s ease; }
.vc.is-live .vc__spot { opacity: 1; }
.vc__waves path { opacity: 0; transition: opacity .08s linear; }
.vc.is-live .vc__waves path:nth-child(3n+1) { opacity: calc(var(--lvl) * 1.8); }
.vc.is-live .vc__waves path:nth-child(3n+2) { opacity: calc(var(--lvl) * 1.3 - .15); }
.vc.is-live .vc__waves path:nth-child(3n) { opacity: calc(var(--lvl) * 1.1 - .3); }
.vc:not(.is-live) .vc__mic { animation: mic-idle 3s ease-in-out infinite; }
@keyframes mic-idle { 50% { transform: translateY(-4px) rotate(-1.5deg); } }
.vc__bar { width: min(100%, 260px); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity .3s; }
.vc__bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--text); }
.vc.is-live .vc__bar { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vc:not(.is-live) .vc__mic { animation: none; } }

/* ---------- Фото и видео ---------- */
.photos { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gutter) 0; }
.photos__title { font-size: 1.2rem; font-weight: 400; margin-bottom: 14px; }
.photos__strip {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: thin;
}
.photos__strip img {
  flex: 0 0 auto; height: clamp(240px, 46vw, 360px); width: auto; max-width: 82vw; object-fit: cover;
  border-radius: 18px; scroll-snap-align: start; background: var(--surface-2);
}
.lp-hero--media { align-items: center; }
.lp-hero--media .lp-hero__text { display: grid; gap: 16px; }
.lp-video {
  justify-self: center; width: min(72vw, 330px); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden;
  background: var(--surface-2); box-shadow: 0 30px 60px -36px rgba(43, 37, 34, .5);
}
.lp-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .lp-hero--media { grid-template-columns: 1.2fr 1fr; } }

/* ---------- Экран результата (карточка для сторис) ---------- */
.result { position: fixed; inset: 0; z-index: 55; display: grid; align-items: end; justify-items: center; }
.result__backdrop { position: absolute; inset: 0; background: rgba(43, 37, 34, .45); animation: fadein .3s ease; }
.result__sheet {
  position: relative; width: min(100%, 560px); max-height: 94svh; overflow: auto; background: var(--surface);
  border-radius: 26px 26px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 14px; justify-items: center;
  animation: up .45s var(--ease);
}
@media (min-width: 640px) { .result { align-items: center; } .result__sheet { border-radius: 26px; padding: 22px; } }
.result__card { width: auto; max-width: 70%; max-height: 46svh; aspect-ratio: 9 / 16; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 20px 40px -26px rgba(43, 37, 34, .45); }
.result__body { display: grid; gap: 10px; text-align: center; width: 100%; }
.result__title { font-size: clamp(1.6rem, 6vw, 2.2rem); font-weight: 200; }
.result__text { color: var(--text-2); }
.result__btns { display: grid; gap: 8px; margin-top: 4px; }
.result__btns .btn { width: 100%; }
.result__hint { max-width: 44ch; justify-self: center; }
.result__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.result__links .chip { display: inline-flex; align-items: center; text-decoration: none; }
.result__close { justify-self: center; }
@media (prefers-reduced-motion: reduce) { .result__sheet, .result__backdrop { animation: none; } }

/* Лепка по шагам */
.sc__steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; counter-reset: s; }
.sc__steps li { counter-increment: s; font-size: .82rem; color: var(--text-3); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.sc__steps li::before { content: counter(s) " · "; }
.sc[data-step="knead"] [data-s="knead"], .sc[data-step="pick"] [data-s="pick"], .sc[data-step="form"] [data-s="form"],
.sc[data-step="decorate"] [data-s="decorate"], .sc[data-step="busy"] [data-s="form"] { color: var(--surface); background: var(--text); border-color: var(--text); }
.sc__bar { width: min(100%, 300px); height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.sc__bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width .15s linear; }
.sc[data-step="pick"] .sc__bar, .sc[data-step="decorate"] .sc__bar { visibility: hidden; }
.sc__panel { display: none; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sc[data-step="knead"] .sc__panel[data-for~="knead"], .sc[data-step="pick"] .sc__panel[data-for~="pick"],
.sc[data-step="decorate"] .sc__panel[data-for~="decorate"] { display: flex; }
.sc__pick .btn { min-width: 100px; }
.sc__panel .chip[aria-pressed="true"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.sc__restart { border: 0; background: none; color: var(--text-3); font: inherit; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Тест «Угадайте аккорд» ---------- */
.quiz { max-width: var(--max); margin: 0 auto; padding: clamp(8px, 2vw, 24px) var(--gutter) clamp(24px, 4vw, 48px); }
.quiz__intro { display: grid; gap: 10px; justify-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quiz__intro h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.quiz__last { font-weight: 500; }
.quiz__card { display: grid; gap: 12px; justify-items: center; padding: 18px 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 30px 60px -40px rgba(43, 37, 34, .35); }
.quiz__top { width: 100%; display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.quiz__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width .3s var(--ease); }
.quiz__chart { width: min(52vw, 200px); height: auto; }
.quiz__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 360px); }
.quiz__opt {
  min-height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: inherit; font-size: 1.4rem; font-weight: 300; cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
}
.quiz__opt:hover:not(:disabled) { border-color: var(--text-3); }
.quiz__opt:active:not(:disabled) { transform: scale(.97); }
.quiz__opt.is-right { background: var(--good); border-color: var(--good); color: #FFFDF9; }
.quiz__opt.is-wrong { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.quiz__opt:disabled { cursor: default; }
