:root {
  --ink: #2b2233;
  --muted: #625670;
  --pink: #d9558a;
  --pink-soft: #f6c3d6;
  --cream: #fff9fb;
  --paper: #f5ecdb;
  --lilac: #cbbde0;
  --serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--lilac); }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--lilac);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- scroll stage ---------- */

.track { position: relative; height: 2000vh; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #c7b8dc;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(46, 28, 64, .22) 100%),
    linear-gradient(180deg, rgba(46, 28, 64, .14) 0%, transparent 16%);
}

/* плавный переход почвы в следующий блок в самом конце истории */
.stage__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  background: linear-gradient(to bottom, transparent, #efe6f3);
  opacity: 0;
  pointer-events: none;
}

/* ---------- labels on the scene ---------- */

.labels { position: absolute; inset: 0; pointer-events: none; }

.tag {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity .22s linear;
  width: max-content;
  line-height: 1.2;
}

/* чужие фразы — тёмные таблички на сорняках */
.tag--weed {
  padding: 7px 12px 8px;
  border-radius: 999px;
  background: rgba(40, 30, 42, .9);
  color: #f7ebf0;
  font: 700 13px/1.2 var(--sans);
  letter-spacing: -.005em;
  box-shadow: 0 10px 24px rgba(30, 16, 40, .28);
}
.tag--weed::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 2px;
}

/* корни — бумажные бирки «программа» */
.tag--root {
  max-width: 184px;
  padding: 9px 12px 10px;
  border-radius: 10px;
  background: var(--paper);
  color: #2f2419;
  box-shadow: 0 12px 26px rgba(20, 10, 4, .45), inset 0 0 0 1px rgba(120, 86, 50, .18);
  transition: box-shadow .3s;
}
.tag--root::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 1.5px;
  height: 14px;
  margin-left: -.75px;
  background: rgba(245, 236, 219, .8);
}
.tag--root::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #ff8db4;
  box-shadow: 0 0 0 3px rgba(255, 141, 180, .28), 0 0 14px rgba(255, 120, 170, .8);
}
.tag--root .k {
  display: block;
  margin-bottom: 3px;
  font: 800 9.5px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a4503a;
}
.tag--root .t {
  font: italic 500 15px/1.18 var(--serif);
  background-image: linear-gradient(#c23b5c, #c23b5c);
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: calc(var(--strike, 0) * 100%) 2px;
}
.tag--root.is-now {
  box-shadow: 0 16px 34px rgba(20, 10, 4, .5), 0 0 0 2px #ff8db4;
}

/* новые убеждения — розовые таблички на новых цветах */
.tag--truth {
  max-width: 190px;
  padding: 7px 12px 8px 26px;
  border-radius: 16px;
  background: #fffafc;
  color: #b8386a;
  font: 800 13px/1.2 var(--sans);
  box-shadow: 0 10px 24px rgba(160, 60, 110, .25), inset 0 0 0 1.5px #f6b2cb;
}
.tag--truth::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #f3c450 0 30%, #ee7fab 32% 100%);
}

/* ---------- top bar ---------- */

.top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 20px);
  left: clamp(16px, 3vw, 40px);
  right: clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--cream);
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(40, 20, 60, .35);
}
.brand i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ee8cb4;
  box-shadow: 0 0 0 4px rgba(238, 140, 180, .3);
}
.dots {
  display: flex;
  gap: 8px;
  list-style: none;
}
.dots li {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 249, 251, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 249, 251, .45);
  transition: background .35s, transform .35s, box-shadow .35s;
}
.dots li svg { width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.dots li.is-weed { background: rgba(40, 30, 42, .78); box-shadow: none; }
.dots li.is-weed .i-weed { opacity: 1; }
.dots li.is-flower { background: #fffafc; box-shadow: 0 4px 12px rgba(200, 70, 130, .3); transform: scale(1.08); }
.dots li.is-flower .i-flower { opacity: 1; }
.dots li svg { position: absolute; }
.dots li { position: relative; }

/* ---------- caption card ---------- */

.caption {
  position: absolute;
  left: clamp(20px, 3vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  width: min(420px, 33vw);
  padding: 30px 30px 28px;
  border-radius: 28px;
  background: rgba(255, 250, 252, .55);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 24px 60px rgba(46, 24, 70, .16), inset 0 0 0 1px rgba(255, 255, 255, .55);
  text-align: center;
}
.caption .cap-text { position: relative; }
.chips { justify-content: center; }

/* лоза по краю карточки */
.vine {
  position: absolute;
  left: -9px;
  top: -9px;
  overflow: visible;
  pointer-events: none;
}
.vine__stem {
  fill: none;
  stroke: #6f9b3d;
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: .85;
  transition: stroke .8s;
}
.vine__stem--b { stroke: #8fbd58; stroke-width: 1; opacity: .7; }
.caption.is-thorny .vine__stem { stroke: #6b5646; }
.caption.is-thorny .vine__stem--b { stroke: #8a7360; }
.vine__leaf, .vine__thorn {
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .35s;
}
.vine__thorn { transform: scale(0); opacity: 0; }
.is-thorn > .vine__leaf { transform: scale(0); opacity: 0; }
.is-thorn > .vine__thorn { transform: scale(1); opacity: 1; }
.caption .in { animation: capIn .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes capIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.kicker {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
}
h1, h2, .quote {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.04;
}
h1 { font-size: clamp(34px, 3.5vw, 54px); }
h2 { font-size: clamp(28px, 2.7vw, 42px); }
.quote {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 3vw, 46px);
}
.quote--small { font-size: clamp(24px, 2.3vw, 34px); }
.caption .label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.sub {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.52;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  list-style: none;
}
.chips li {
  padding: 6px 10px 7px;
  border-radius: 999px;
  background: #fff;
  color: #b8386a;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1.5px #f6b2cb;
}

/* ---------- scroll hint ---------- */

.hint {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 26px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(40, 20, 60, .4);
  transition: opacity .4s;
  pointer-events: none;
}
.hint i {
  position: relative;
  width: 2px;
  height: 38px;
  border-radius: 2px;
  background: rgba(255, 249, 251, .35);
  overflow: hidden;
}
.hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--cream);
  animation: drip 1.6s ease-in-out infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- outro ---------- */

.outro {
  position: relative;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 96px) clamp(90px, 14vh, 160px);
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(255, 214, 232, .9) 0%, transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(255, 255, 255, .6) 0%, transparent 60%),
    #efe6f3;
}
.outro__inner { max-width: 1040px; margin: 0 auto; }
.outro h2 { font-size: clamp(38px, 5.2vw, 72px); max-width: 12em; }
.outro__lead {
  margin-top: 20px;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.map {
  list-style: none;
  margin: 48px 0 44px;
  display: grid;
  gap: 10px;
}
.map > li {
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 8px 24px rgba(80, 40, 110, .06);
  transition: background .3s, box-shadow .3s;
}
.map > li.is-open {
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 0 0 1px rgba(217, 85, 138, .25), 0 16px 40px rgba(80, 40, 110, .12);
}
.map > li.is-pulse { animation: rootPulse .7s cubic-bezier(.2, .7, .2, 1); }
@keyframes rootPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(217, 85, 138, .45), 0 16px 40px rgba(80, 40, 110, .12); }
  30% { transform: scale(1.018); }
  100% { transform: scale(1); box-shadow: 0 0 0 18px rgba(217, 85, 138, 0), 0 16px 40px rgba(80, 40, 110, .12); }
}
.map__head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 18px;
  align-items: center;
  width: 100%;
  padding: 16px 56px 16px 20px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.map__head:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; border-radius: 18px; }
.map__plus {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: rgba(217, 85, 138, .12);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .3s;
}
.map__plus::before,
.map__plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 2px;
  background: var(--pink);
}
.map__plus::after { transform: rotate(90deg); }
.map > li.is-open .map__plus { transform: rotate(45deg); background: rgba(217, 85, 138, .2); }
.map__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1);
}
.map > li.is-open .map__body { grid-template-rows: 1fr; }
.map__in {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s, transform .45s cubic-bezier(.2, .7, .2, 1), padding .45s;
}
.map > li.is-open .map__in { opacity: 1; transform: none; padding: 4px 20px 22px; transition-delay: .08s; }
.map__in p { font-size: 15px; line-height: 1.55; color: #4a3d52; }
.map__said { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.map__said span {
  padding: 5px 10px 6px;
  border-radius: 10px;
  background: #3b2f45;
  color: #f4ecf7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.map small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9a8aa8;
}
.map .w { font-weight: 700; color: #4a3d52; text-decoration: line-through; text-decoration-color: rgba(194, 59, 92, .6); text-decoration-thickness: 1.5px; }
.map .r { font-family: var(--serif); font-style: italic; font-size: 17px; color: #6b5a50; text-decoration: line-through; text-decoration-color: rgba(194, 59, 92, .6); text-decoration-thickness: 1.5px; }
.map .t { font-weight: 800; color: #b8386a; }

.btn {
  display: inline-block;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font: 800 15px var(--sans);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(217, 85, 138, .35);
  transition: transform .2s, background .2s;
}
.btn:hover { background: #c7457a; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid #2b2233; outline-offset: 3px; }

/* ---------- narrow screens ---------- */

@media (max-width: 899px), (max-aspect-ratio: 21/20) {
  .caption {
    left: 14px;
    right: 14px;
    top: calc(env(safe-area-inset-top, 0px) + 58px);
    transform: none;
    width: auto;
    padding: 18px 20px 18px;
    border-radius: 22px;
  }
  h1 { font-size: clamp(28px, 7.4vw, 40px); }
  h2 { font-size: clamp(24px, 6.2vw, 34px); }
  .quote { font-size: clamp(26px, 7vw, 38px); }
  .quote--small { font-size: clamp(21px, 5.6vw, 28px); }
  .sub { margin-top: 8px; font-size: 14px; line-height: 1.45; }
  .kicker { margin-bottom: 8px; }
  .dots { gap: 5px; }
  .dots li { width: 19px; height: 19px; }
  .dots li svg { width: 12px; height: 12px; }
  .tag--weed { max-width: 112px; font-size: 10.5px; padding: 5px 9px 6px; border-radius: 12px; text-align: center; }
  .tag--root { max-width: 116px; padding: 6px 8px 7px; border-radius: 8px; }
  .tag--root .k { font-size: 7.5px; margin-bottom: 2px; }
  .tag--root .t { font-size: 11.5px; line-height: 1.12; }
  .chips { margin-top: 10px; gap: 5px; }
  .chips li { font-size: 11px; padding: 4px 8px 5px; }
  .tag--truth { font-size: 11px; padding: 5px 9px 6px 21px; }
  .tag--truth::before { left: 8px; width: 8px; height: 8px; margin-top: -4px; }
}

@media (max-width: 760px) {
  .map__head { grid-template-columns: 1fr; padding: 16px 56px 16px 18px; }
  .map__plus { top: 18px; margin-top: 0; }
  .map__in { grid-template-columns: 1fr; gap: 16px; padding: 0 18px; }
  .map > li.is-open .map__in { padding: 2px 18px 20px; }
}

@media (max-width: 899px) and (min-aspect-ratio: 21/20) {
  /* телефон горизонтально */
  .caption { left: 12px; right: auto; top: 50px; width: 34vw; padding: 14px 16px; }
  .sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .caption .in { animation: none; }
  .hint i::after { animation: none; top: 0; height: 100%; }
  .map > li.is-pulse { animation: none; }
  .map__body, .map__in, .map__plus { transition: none; }
}

.map__hint {
  margin-top: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
}
.map__hint + .map { margin-top: 14px; }

/* ---------- удар чужой фразы ---------- */

/* карточка вздрагивает, как от окрика */
.caption.is-hurt { animation: capHurt .62s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes capHurt {
  0% { translate: 0 0; rotate: 0deg; }
  10% { translate: -9px 2px; rotate: -.8deg; }
  22% { translate: 8px -2px; rotate: .7deg; }
  34% { translate: -6px 1px; rotate: -.5deg; }
  48% { translate: 4px 0; rotate: .3deg; }
  62% { translate: -2px 0; rotate: -.15deg; }
  78% { translate: 1px 0; rotate: 0deg; }
  100% { translate: 0 0; rotate: 0deg; }
}
.caption::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(214, 46, 86, .85), 0 0 46px rgba(196, 30, 70, .45);
  opacity: 0;
}
.caption.is-hurt::after { animation: capSting .9s ease-out both; }
@keyframes capSting {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}
/* сама фраза падает тяжело и на миг «двоится» */
.caption.is-hurt .quote { animation: quoteHurt .75s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes quoteHurt {
  0% { transform: scale(1.14); color: #9e1f45; text-shadow: -3px 0 rgba(214, 46, 86, .55), 3px 0 rgba(60, 20, 80, .45); }
  30% { transform: scale(.98); color: #9e1f45; text-shadow: -1.5px 0 rgba(214, 46, 86, .4), 1.5px 0 rgba(60, 20, 80, .3); }
  100% { transform: scale(1); color: inherit; text-shadow: none; }
}
.quote { transform-origin: 0 60%; }

/* сцену на миг сжимает: тёмно-красная волна от краёв и толчок */
.stage__pain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(75% 65% at 50% 55%, transparent 30%, rgba(110, 12, 42, .38) 72%, rgba(70, 6, 28, .7) 100%);
}
.stage.is-hurt .stage__pain { animation: painWave .95s ease-out both; }
@keyframes painWave {
  0% { opacity: 0; }
  10% { opacity: 1; }
  100% { opacity: 0; }
}
.stage.is-hurt > .layer { animation: sceneJolt .5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes sceneJolt {
  0% { translate: 0 0; scale: 1; }
  15% { translate: 5px 3px; scale: 1.03; }
  30% { translate: -5px -2px; scale: 1.025; }
  45% { translate: 3px 1px; scale: 1.015; }
  65% { translate: -2px 0; scale: 1.006; }
  100% { translate: 0 0; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .caption.is-hurt, .stage.is-hurt > .layer, .caption.is-hurt .quote { animation: none; }
  .stage.is-hurt .stage__pain { animation-duration: 1.4s; }
}

/* ---------- кнопка музыки ---------- */

.sound {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: auto;
  padding: 7px 12px 7px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 252, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  color: var(--cream);
  font: 800 10.5px var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: soundCall 2.6s ease-in-out infinite;
}
.sound svg { width: 16px; height: 16px; fill: currentColor; }
.sound .sound__note { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.sound .sound__off { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sound.is-on { animation: none; background: rgba(217, 85, 138, .55); }
.sound.is-on .sound__off { display: none; }
.sound.is-on svg { animation: soundBeat 1.6s ease-in-out infinite; }
.sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes soundCall {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 0 rgba(255, 214, 232, .5); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 0 0 7px rgba(255, 214, 232, 0); }
}
@keyframes soundBeat {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-8deg) translateY(-1px); }
}
@media (max-width: 379px) {
  .sound__label { display: none; }
  .sound { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound, .sound.is-on svg { animation: none; }
}
