:root {
  --ink: #3d2f35;
  --muted: #7d6570;
  --gold: #c98993;
  --gold-deep: #b76e79;
  --gold-hover: #9a5863;
  --paper: #fff8fb;
  --card: #ffffff;
  --line: rgba(232, 180, 188, 0.35);
  --wine: #9a5863;
  --accent: #b76e79;
  --shadow: 0 12px 40px rgba(183, 110, 121, 0.12);
  --radius-lg: 22px;
  --font-ui: "Nunito", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  color: var(--ink);
  font-family: var(--font-ui);
  background: var(--paper);
  padding-bottom: var(--safe-b);
  -webkit-font-smoothing: antialiased;
}
.paper-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 228, 236, 0.9), transparent),
    linear-gradient(165deg, #fff8fb 0%, #ffeef5 42%, #f5f0ff 100%);
  z-index: 0;
}
.studio, .listen { position: relative; z-index: 1; }

.unykate-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #6d4c55 0%, #b76e79 38%, #8b6914 72%, #6d4c55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  position: sticky;
  top: 0;
  /* Выше studio-lock (40): «Примеры» и «Инструкция» без пароля */
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.site-nav a.active {
  color: #fff;
  background: var(--accent);
}

.studio-lock {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(243, 230, 212, 0.55);
  backdrop-filter: blur(2px);
}
.studio-lock[hidden] { display: none; }
.studio-lock-card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 24px 50px rgba(61, 47, 53, 0.14);
  text-align: center;
}
.studio-lock-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 8px 0 8px;
}
.lock-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.lock-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  font-size: 18px;
  text-align: center;
  letter-spacing: 0.2em;
}
.lock-error { color: var(--wine); margin: 8px 0 0; }
.lock-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.lock-links a {
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 14px;
}
.studio.is-locked {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}
.cta-card { text-align: center; }
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.cta-row .btn { width: 100%; }

.studio {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: calc(28px + var(--safe-t)) 0 28px;
}
.studio-head { text-align: center; margin-bottom: 28px; }
.eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold-deep);
  margin: 0 0 10px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.lead {
  margin: 0 auto;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 16px;
}
.studio-grid { display: grid; gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 18px 18px;
  box-shadow: 0 16px 36px rgba(183, 110, 121, 0.08);
}
.card-quiet { padding-top: 16px; padding-bottom: 16px; }
.card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
}
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span, .check span, .lbl { font-size: 13px; color: var(--muted); }
.lbl, .h2-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.h2-with-tip {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.tip {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(183, 110, 121, 0.45);
  background: #ffffff;
  color: var(--gold-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  padding: 0;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: min(260px, 70vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 20;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.tip:hover::after, .tip:focus::after, .tip.is-open::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.session-line { display: none; }
.field-desc {
  margin: -2px 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.music-suggest-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.add-clips,
.btn-upload {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  min-height: 52px;
  cursor: pointer;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(183, 110, 121, 0.35);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}
.btn-upload:active { transform: scale(0.99); }
.btn-upload-sm {
  margin-top: 12px;
  min-height: 48px;
  font-size: 15px;
  background: #ffffff;
}
#clipsCard.over .btn-upload {
  box-shadow: inset 0 0 0 2px var(--gold-deep);
  background: #fff0f4;
}

.text-link {
  display: none;
}

.play-mini {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #c98993, #b76e79);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(183, 110, 121, 0.28);
  padding: 0;
}
.play-mini svg { width: 16px; height: 16px; display: block; }
.play-mini.playing {
  background: var(--ink);
  box-shadow: 0 8px 16px rgba(61, 47, 53, 0.18);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.switch {
  position: relative;
  flex: none;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(61, 47, 53, 0.14);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.switch.on {
  background: #587a5e;
}
.switch.on::after { transform: translateX(20px); }
.switch:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.settings-fields.is-locked {
  opacity: .48;
  pointer-events: none;
}
.settings-fields.is-locked .tip {
  pointer-events: auto;
  opacity: 1;
}
.settings-fields[disabled] {
  opacity: .48;
  pointer-events: none;
}

.chip:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.field input[type="range"] {
  padding: 10px 0;
  accent-color: var(--gold-deep);
  min-height: 32px;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.hint, .tiny { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 12px; }
.tiny { font-size: 13px; }
.drop-hint { margin: 8px 0 0; text-align: center; }

.cover-picker {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cover-preview {
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #c98993, #b76e79);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(183, 110, 121, 0.2);
  position: relative;
}
.cover-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-preview img[hidden] { display: none; }
.cover-actions { display: grid; gap: 6px; justify-items: start; }
.cover-limit { margin: 0; }
.cover-row { display: none; }
.cover-pick { display: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  min-height: 40px;
}
.chip.active {
  background: linear-gradient(180deg, #c98993, #b76e79);
  border-color: transparent;
  color: #ffffff;
}
.settings-lbl {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.settings-panel > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--gold-deep);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.settings-panel > summary::-webkit-details-marker { display: none; }
.settings-panel > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.settings-panel[open] > summary::before { transform: rotate(45deg); }
.settings-inner { margin-top: 12px; display: grid; gap: 10px; }
.slider-head { display: flex; justify-content: space-between; gap: 8px; }

.progress-screen {
  text-align: center;
  padding: 18px 8px 8px;
}
.progress-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: conic-gradient(#b76e79 var(--p, 0%), rgba(61, 47, 53, 0.1) 0);
  display: grid;
  place-items: center;
  transition: background .35s ease;
}
.progress-ring-inner {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--gold-deep);
}
.progress-stage {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0;
  min-height: 1.3em;
}
.progress-sub { margin-top: 6px; }

.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.clip-meta { min-width: 0; }
.clip-meta b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clip-meta small { color: var(--muted); font-size: 12px; }
.clip-tools { display: flex; gap: 2px; }
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}
.icon-btn:hover, .icon-btn:active { background: var(--paper); color: var(--ink); }

.grow { flex: 1; min-width: 0; }
.music-results {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}
.music-results[hidden] { display: none; }
.music-result {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  min-height: 64px;
}
.music-result:hover, .music-result:active { border-color: var(--gold); }
.music-result img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.music-result span { display: grid; gap: 2px; min-width: 0; }
.music-result strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-result small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-picked { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.music-picked[hidden] { display: none; }
.music-player { width: 100%; height: 36px; margin: 0; }
.music-player[hidden] { display: none; }
.music-now {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(183, 110, 121, 0.28);
  background: linear-gradient(135deg, #fff5f8, #f8f0ff);
}
.music-now[hidden] { display: none; }
.music-now-info {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.music-now .btn-sm {
  flex: none;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.check { display: flex; gap: 10px; align-items: start; font-size: 15px; min-height: 44px; }
.check input { margin-top: 5px; width: 18px; height: 18px; }

.actions-bar {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: grid;
  gap: 8px;
  justify-items: stretch;
  padding: 10px 0 calc(10px + var(--safe-b));
  background: linear-gradient(180deg, transparent, var(--paper) 28%);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 52px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn-gold {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(183, 110, 121, 0.28);
  width: 100%;
}
.btn-gold:hover { background: var(--gold-hover); }
.btn-gold:disabled { opacity: 0.55; cursor: wait; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.inline .btn-ghost { flex: none; min-height: 48px; padding: 12px 16px; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.result-actions .btn { width: 100%; }
.progress-wrap { margin-bottom: 8px; }
.progress {
  height: 8px;
  border-radius: 99px;
  background: rgba(61, 47, 53, 0.08);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c98993, #9a5863);
  transition: width 0.35s ease;
}
.done-title {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 4px 0 4px;
  text-align: center;
}
#doneMeta { text-align: center; }

.player {
  display: grid;
  justify-items: center;
  text-align: center;
  margin-top: 8px;
}
.player .book { margin: 8px 0 12px; }

.listen-body { min-height: 100vh; }
.listen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 40px 20px 64px;
  gap: 8px;
}
.listen h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 7vw, 56px);
}
.date { color: var(--muted); margin: 0 0 18px; }
.book {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.book-spine {
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 14px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #9a5863, #c98993 70%);
}
.book-cover {
  position: absolute;
  inset: 0 0 0 10px;
  border-radius: 3px 16px 16px 3px;
  background:
    linear-gradient(160deg, rgba(255,250,243,.18), transparent 40%),
    #5c3d36;
  background-size: cover;
  background-position: center;
  box-shadow:
    10px 14px 0 rgba(183, 110, 121, 0.2),
    0 28px 50px rgba(61, 47, 53, 0.22);
  overflow: hidden;
}
.book-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffe8ef;
  font-family: var(--font-display);
  font-size: 42px;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.book-fallback[hidden] { display: none; }
.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-42%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 243, 0.92);
  color: var(--ink);
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.book.playing .play-orb { opacity: 0.92; }
.listen-title { margin: 0 0 8px; font-weight: 500; }
.seek { width: min(300px, 78vw); }
.seek input { width: 100%; accent-color: var(--gold-deep); height: 28px; }
.time { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.listen-hint { margin-top: 8px; }
.status-error { position: relative; z-index: 1; text-align: center; color: var(--wine); padding: 40px; }
.tag {
  font-size: 11px;
  color: var(--gold-deep);
  background: rgba(196,165,116,.15);
  border-radius: 99px;
  padding: 2px 7px;
}

@media (max-width: 640px) {
  .row-2 { grid-template-columns: 1fr; }
  .cover-picker { align-items: flex-start; }
  .inline { flex-direction: column; }
  .inline .btn-ghost { width: 100%; }
  .result-actions { grid-template-columns: 1fr; }
  .drop-hint { display: none; }
  .clip-tools .icon-btn { width: 44px; height: 44px; }
}

@media (min-width: 720px) {
  .studio { padding-top: 48px; }
  .card { padding: 24px 24px 22px; }
  .btn-gold { width: auto; min-width: 280px; justify-self: center; }
  .actions-bar { justify-items: center; background: none; position: static; }
  .result-actions { max-width: 420px; margin-left: auto; margin-right: auto; }
}

.session-note { text-align: center; margin: 8px 0 0; }

.story { padding-bottom: 48px; }
.video-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #5c3d36;
  aspect-ratio: 9 / 16;
  width: min(360px, 100%);
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(61, 47, 53, 0.14);
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  color: #ffe8ef;
  padding: 24px;
  gap: 8px;
}
.video-placeholder[hidden] { display: none; }
.play-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,250,243,0.92);
  color: var(--ink);
  font-size: 20px;
  padding-left: 4px;
}
.video-placeholder p { margin: 0; font-size: 16px; max-width: 280px; }
.video-placeholder small { opacity: 0.7; font-size: 12px; }

.cta-row-one { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; }
.card-center { text-align: center; }
.card-center .video-frame { margin-left: auto; margin-right: auto; }

.example-list { display: grid; gap: 12px; }
.example-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.example-art {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  background: #5c3d36 center/cover no-repeat;
}
.example-art-empty {
  display: grid;
  place-items: center;
  color: #ffe8ef;
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
}
.example-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 2px;
}
.example-sub {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.example-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.example-player {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
}
.example-play {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(180deg, #c98993, #b76e79);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(183, 110, 121, 0.25);
}
.example-card.is-playing .example-play {
  background: var(--ink);
  box-shadow: 0 8px 16px rgba(61, 47, 53, 0.18);
}
.example-player-main { min-width: 0; }
.example-seek {
  width: 100%;
  accent-color: var(--gold-deep);
  height: 28px;
  margin: 0;
}
.example-times {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}

.music-suggest {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
.music-suggest-item {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-height: 58px;
}
.music-suggest-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}
.music-suggest-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.music-suggest-item.is-selected {
  border-color: var(--accent);
  background: #fff0f4;
  box-shadow: inset 0 0 0 1px rgba(183, 110, 121, 0.35);
}
.music-picked-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 10px;
}
.music-picked-row .music-picked { margin: 0; flex: 1; min-width: 0; }
.btn-sm {
  padding: 8px 12px;
  min-height: 40px;
  font-size: 13px;
  flex: none;
}

.warn-card {
  background: #fff5f7;
  box-shadow: inset 0 0 0 1.5px rgba(183, 110, 121, 0.22);
}
.warn-card p { margin: 0; font-size: 16px; line-height: 1.5; }
.guide-ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}
.guide-ol li::marker { color: var(--gold-deep); font-weight: 600; }

/* Инструкция */
.guide-shell { max-width: 640px; }
.guide-hero { text-align: center; margin-bottom: 22px; }
.guide-hero h1 { margin-bottom: 0; }
.guide-hero .lead { max-width: 34em; }

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 20px calc(28px + var(--safe-b));
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.site-footer .unykate-brand-text {
  font-size: 0.95rem;
  margin: 0 0 8px;
  display: inline-block;
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.footer-social img { display: block; }

.guide-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
}
.guide-map-item {
  flex: 0 1 100px;
  max-width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 12px 6px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(183, 110, 121, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-map-item:active { transform: scale(0.96); }
.guide-map-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe8ef, #f5dce4);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
}
.guide-map-icon svg { width: 20px; height: 20px; }
.guide-map-num {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wine);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--card);
}
.guide-map-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.priority-card {
  background: linear-gradient(135deg, #c98993, #9a5863);
  color: #ffffff;
  border-radius: 24px;
  padding: 22px 20px;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px -18px rgba(183, 110, 121, 0.45);
}
.priority-card .tag {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
}
.priority-card h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 8px 0 0;
  line-height: 1.25;
}
.priority-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.95;
}

.guide-step {
  display: block;
  margin-top: 16px;
  background: var(--card);
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 10px 28px rgba(183, 110, 121, 0.08);
  border: 1px solid var(--line);
  scroll-margin-top: 76px;
  overflow: hidden;
}
.guide-step > summary {
  margin: 0;
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  min-height: 56px;
  position: relative;
  padding-right: 44px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.guide-step > summary::-webkit-details-marker { display: none; }
.guide-step > summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}
.guide-step[open] > summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.guide-step > summary:hover {
  background: rgba(255, 240, 244, 0.55);
}
.guide-step .num {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: #ffe8ef;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}
.guide-step-body {
  padding: 0 18px 16px;
}
.guide-step-body .tip-note:first-child {
  margin-top: 0;
}
.guide-step ul {
  margin: 10px 0 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.guide-step li { margin-top: 6px; }
.guide-step li:first-child { margin-top: 0; }
.tip-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  background: #ffe8ef;
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.4;
}
.tip-note.tip-warn {
  background: #fce4e8;
  color: #6e3038;
  font-weight: 600;
}
.guide-video-block {
  margin: 0 0 20px;
}
.guide-video-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}
.guide-video-hint {
  text-align: center;
  margin: 0 0 14px;
}
.video-frame-guide {
  margin-top: 0;
}

.cta-band {
  margin-top: 26px;
  text-align: center;
  padding: 26px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #c98993, #b76e79);
  color: #ffffff;
  box-shadow: 0 18px 40px -18px rgba(183, 110, 121, 0.45);
  scroll-margin-top: 76px;
}
.cta-band h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.cta-band p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.92;
}
.cta-band-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 16px;
}
.btn-on-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  padding: 12px 22px;
  min-height: 48px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}
.btn-text-light {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .example-card { grid-template-columns: 1fr; }
  .example-art { width: 100%; height: 200px; }
  .music-suggest { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .guide-shell {
    max-width: 1120px;
    width: min(1120px, calc(100% - 48px));
  }
  .guide-page .guide-map {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }
  .guide-map-item {
    flex: 0 1 118px;
    max-width: 128px;
    padding: 14px 8px 12px;
  }
  .guide-layout {
    display: grid;
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .guide-side {
    /* обе колонки едут вместе со страницей — без sticky */
    position: static;
  }
  .guide-main {
    display: grid;
    gap: 0;
  }
  .guide-page .priority-card {
    margin-bottom: 0;
  }
  .guide-page .guide-video-block {
    margin-bottom: 18px;
  }
  .guide-page .video-frame-guide {
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .guide-step > summary {
    padding: 18px 22px;
    padding-right: 48px;
    font-size: 22px;
  }
  .guide-step-body { padding: 0 22px 18px; }
  .guide-step ul { font-size: 15.5px; }
}

