/* ===========================================================================
   V9 — продуктовая история для холодного трафика.
   Стили дополняют существующую систему, не меняя оплату и базовые компоненты.
   ========================================================================== */

/* ---------- Hero: сразу объясняем категорию и работу продукта ---------- */
.hero-product {
  margin: 0 0 .8rem;
  padding: .42rem .78rem;
  border: 1px solid rgba(244, 166, 35, .45);
  border-radius: 999px;
  color: var(--c-amber);
  background: rgba(28, 24, 20, .48);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(.61rem, 1.3vw, .76rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero-promise {
  width: min(720px, 92vw);
  margin: .7rem auto 1.15rem;
  color: rgba(241, 232, 213, .94);
  font-size: clamp(.92rem, 1.8vw, 1.08rem);
  font-weight: 600;
  line-height: 1.52;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}

/* ---------- Выбор состояния + узнаваемый экран Telegram ---------- */
.picker .section__head {
  max-width: 820px;
  margin-inline: 0;
  text-align: left;
}
.picker__intro {
  max-width: 68ch;
  margin-inline: 0;
  color: rgba(241, 232, 213, .88);
}

.picker__chooser {
  margin: clamp(1.8rem, 4vw, 2.8rem) 0 clamp(1.6rem, 4vw, 2.4rem);
}
.picker__swipe-cue {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin: 0 0 .7rem;
  color: rgba(241, 232, 213, .62);
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.picker__swipe-cue span:last-child {
  color: var(--c-amber);
  animation: v9CarouselCue 1.6s ease-in-out infinite;
}
.picker__grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0;
  padding: 3px 2px 13px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 166, 35, .45) rgba(241, 232, 213, .08);
}
.picker__grid .portal-btn {
  flex: 0 0 146px;
  min-height: 104px;
  padding: .9rem .82rem .8rem;
  border-radius: 15px;
  scroll-snap-align: start;
}
.picker__grid .portal-btn:hover { transform: translateY(-2px); }
.picker__grid .portal-btn__glyph {
  margin-bottom: .45rem;
  font-size: 1.25rem;
}
.picker__grid .portal-btn__name {
  font-size: .64rem;
  line-height: 1.28;
}

.phone-demo {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 14px 10px 16px;
  border: 1px solid rgba(241, 232, 213, .22);
  border-radius: 46px;
  background:
    linear-gradient(145deg, rgba(241, 232, 213, .14), rgba(0, 0, 0, .18)),
    #0e0d0c;
  box-shadow:
    0 34px 80px -30px rgba(0, 0, 0, .85),
    0 0 0 4px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}
.phone-demo__speaker {
  width: 72px;
  height: 5px;
  margin: 0 auto 9px;
  border-radius: 999px;
  background: rgba(241, 232, 213, .28);
}
.phone-demo__screen {
  overflow: hidden;
  border: 1px solid rgba(241, 232, 213, .08);
  border-radius: 31px;
  background: var(--c-dark);
}
.phone-demo__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .48rem 1.15rem .38rem;
  color: rgba(241, 232, 213, .62);
  background: rgba(0, 0, 0, .4);
  font-family: "JetBrains Mono", monospace;
  font-size: .55rem;
  line-height: 1;
  letter-spacing: .03em;
}
.phone-demo__home {
  width: 88px;
  height: 4px;
  margin: 9px auto 7px;
  border-radius: 999px;
  background: rgba(241, 232, 213, .38);
}

.phone-demo .portal-stage {
  min-height: 0;
  border-radius: 0;
}
.phone-demo .chat-head { padding: .64rem .82rem; }
.phone-demo .chat-head__ava { width: 31px; height: 31px; }
.phone-demo .chat-head__meta b { font-size: .78rem; }
.phone-demo .chat-head__meta span,
.phone-demo .chat-head__portal { font-size: .52rem; }
.phone-demo .chat {
  min-height: 310px;
  max-height: 465px;
  gap: .28rem;
  padding: .78rem .72rem .55rem;
}
.phone-demo .msg {
  max-width: 88%;
  padding: .6em .82em;
  border-radius: 13px;
  font-size: .76rem;
  line-height: 1.42;
}
.phone-demo .msg--voice { padding-left: .18em; font-size: .96rem; }
.phone-demo .msg--img {
  width: min(210px, 56%);
  max-width: 56%;
  align-self: center;
}
.phone-demo .msg--img img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 12px;
}
.phone-demo .kb { gap: 5px; padding: .32rem .72rem .75rem; }
.phone-demo .kb__btn {
  padding: .66em .7em;
  border-radius: 9px;
  font-size: .75rem;
}
.phone-demo .audio-slot { padding: .72rem; }
.phone-demo .audio-play { width: 38px; height: 38px; }
.phone-demo .audio-slot__label { font-size: .7rem; }
.picker__note {
  max-width: 62ch;
  margin: 1.5rem auto 0;
  color: rgba(241, 232, 213, .65);
  text-align: center;
}

/* ---------- Общие карусели: следующая карточка всегда видна краем ---------- */
.inside-system__head { max-width: 78ch; }
.inside-system__head .lede { max-width: 64ch; }
.story-carousel {
  position: relative;
  z-index: 2;
  padding: 2.15rem 3rem 2.5rem;
}
.story-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 3px 2px 15px;
  scroll-behavior: smooth;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.story-carousel__track::-webkit-scrollbar { display: none; }
.story-carousel__arrow {
  position: absolute;
  top: 51%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--c-cream);
  background: var(--c-terracotta);
  box-shadow: 0 11px 28px -12px rgba(28, 24, 20, .72);
  transform: translateY(-50%);
  transition: transform .24s var(--ease), opacity .24s, background .24s;
}
.story-carousel__arrow:hover { background: var(--c-amber); transform: translateY(-50%) scale(1.06); }
.story-carousel__arrow:focus-visible { outline: 3px solid rgba(244, 166, 35, .5); outline-offset: 3px; }
.story-carousel__arrow:disabled,
.story-carousel__arrow.is-disabled { opacity: .26; cursor: default; pointer-events: none; }
.story-carousel__arrow--prev { left: 0; }
.story-carousel__arrow--next { right: 0; }
.story-carousel__status {
  position: absolute;
  right: 3rem;
  bottom: .15rem;
  margin: 0;
  color: rgba(28, 24, 20, .58);
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
  letter-spacing: .09em;
}
.story-carousel__status--light { color: rgba(241, 232, 213, .62); }
.carousel-cue {
  position: absolute;
  top: 0;
  right: 3rem;
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  color: rgba(28, 24, 20, .55);
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.carousel-cue--light { color: rgba(241, 232, 213, .6); }
.carousel-cue__arrow { color: var(--c-terracotta); animation: v9CarouselCue 1.45s ease-in-out infinite; }

.product-card {
  position: relative;
  flex: 0 0 clamp(290px, 40vw, 430px);
  min-height: 370px;
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(28, 24, 20, .14);
  border-radius: 18px;
  color: var(--c-dark);
  background-color: var(--c-cream);
  background-image: var(--paper-cream);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 38px -28px rgba(28, 24, 20, .6);
  scroll-snap-align: start;
}
.product-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 110px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .12;
}
.product-card__num {
  display: block;
  margin-bottom: 1.65rem;
  color: var(--c-terracotta);
  font-family: "JetBrains Mono", monospace;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-card h3 { max-width: 18ch; font-size: clamp(1.02rem, 2vw, 1.35rem); }
.product-card ul {
  display: grid;
  gap: .58rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.product-card li { display: flex; gap: .65rem; font-size: .93rem; line-height: 1.42; }
.product-card li::before { content: "→"; flex: 0 0 auto; color: var(--c-terracotta); font-weight: 800; }
.product-card--navy,
.product-card--terracotta,
.product-card--plum,
.product-card--olive { color: var(--c-cream); }
.product-card--navy { background-color: var(--c-navy); background-image: var(--paper-navy); }
.product-card--terracotta { background-color: var(--c-terracotta); background-image: var(--paper-terracotta); }
.product-card--plum { background-color: var(--c-plum); background-image: var(--paper-plum); }
.product-card--olive { background-color: var(--c-olive); background-image: var(--paper-kraft); background-blend-mode: multiply; }
.product-card--navy .product-card__num,
.product-card--terracotta .product-card__num,
.product-card--plum .product-card__num,
.product-card--olive .product-card__num,
.product-card--navy li::before,
.product-card--terracotta li::before,
.product-card--plum li::before,
.product-card--olive li::before { color: var(--c-amber); }

.inside-price {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(520px, 100%);
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(28, 24, 20, .28);
  border-bottom: 1px solid rgba(28, 24, 20, .28);
  text-align: center;
}
.inside-price__label,
.inside-price > span:last-child {
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .66;
}
.inside-price strong {
  margin: .1rem 0 .2rem;
  color: var(--c-terracotta);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

/* ---------- Отзывы: каждый доказывает отдельную работу продукта ---------- */
.reviews-section__lede { color: rgba(241, 232, 213, .82); }
.review-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(190px, .7fr);
  flex: 0 0 min(700px, 84vw);
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(241, 232, 213, .18);
  border-radius: 18px;
  color: var(--c-dark);
  background-color: var(--c-cream);
  background-image: var(--paper-cream);
  background-position: center;
  background-size: cover;
  box-shadow: 0 22px 50px -30px rgba(0, 0, 0, .75);
  scroll-snap-align: start;
}
.review-card__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3vw, 2rem);
}
.review-card__type {
  margin-bottom: 1.15rem;
  color: var(--c-terracotta);
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.review-card blockquote {
  margin: 0 0 1.35rem;
  font-family: "Neucha", cursive;
  font-size: clamp(1.28rem, 2.6vw, 1.75rem);
  line-height: 1.34;
}
.review-card__copy > p {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 24, 20, .14);
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .65;
}
.review-card__shot {
  position: relative;
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 14px;
  place-items: center;
  background: rgba(28, 24, 20, .95);
  cursor: zoom-in;
  outline: none;
}
.review-card__shot:focus-visible {
  box-shadow: inset 0 0 0 3px var(--c-amber);
}
.review-card__shot img {
  width: 100%;
  max-width: 230px;
  height: 300px;
  object-fit: contain;
  border-radius: 11px;
}
.review-card__zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: .42rem .6rem;
  border: 1px solid rgba(241, 232, 213, .2);
  border-radius: 999px;
  color: var(--c-cream);
  background: rgba(28, 24, 20, .78);
  font-family: "JetBrains Mono", monospace;
  font-size: .58rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.reviews-close {
  max-width: 56ch;
  margin: 1.5rem auto 0;
  color: rgba(241, 232, 213, .78);
  text-align: center;
}
.reviews-close b { color: var(--c-cream); }

/* ---------- Сравнение: подсказка свайпа только там, где она нужна ---------- */
.compare-swipe-hint {
  display: none;
  gap: .5rem;
  align-items: center;
  margin: 0 0 .8rem;
  color: rgba(241, 232, 213, .62);
  font-family: "JetBrains Mono", monospace;
  font-size: .65rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.compare-swipe-hint span:last-child { color: var(--c-amber); animation: v9CompareCue 1.6s ease-in-out infinite; }
.compare { scroll-behavior: smooth; overscroll-behavior-inline: contain; }
.compare td:first-child { width: 42%; }

/* ---------- Связки между доказательством, доверием и оффером ---------- */
.offer-work {
  width: min(820px, 100%);
  margin: clamp(2rem, 5vw, 3.2rem) auto;
  padding: 1.4rem clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(241, 232, 213, .32);
  border-bottom: 1px solid rgba(241, 232, 213, .32);
  color: var(--c-cream);
  font-family: "Neucha", cursive;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
}
.offer-work p { margin: 0; }

#timeline { border-top: 1px solid rgba(28, 24, 20, .28); }
#reviews { border-top: 1px solid rgba(241, 232, 213, .2); }
#compare { border-top: 1px solid rgba(241, 232, 213, .18); }
#author { border-top: 1px solid rgba(28, 24, 20, .2); }
#companion-section { border-top: 1px solid rgba(241, 232, 213, .18); }
#offer { border-top: 1px solid rgba(28, 24, 20, .32); }

@keyframes v9CarouselCue {
  0%, 100% { transform: translateX(0); opacity: .55; }
  50% { transform: translateX(6px); opacity: 1; }
}
@keyframes v9CompareCue {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(7px); }
}

@media (max-width: 860px) {
  .story-carousel { padding-inline: 0; }
  .story-carousel__arrow { display: none; }
  .story-carousel__status { right: 0; }
  .carousel-cue { right: 0; }
  .product-card { flex-basis: min(82vw, 360px); min-height: 350px; }
  .review-card {
    grid-template-columns: 1fr;
    flex-basis: min(86vw, 520px);
    min-height: 0;
  }
  .review-card__copy { min-height: 220px; }
  .review-card__shot { min-height: 220px; padding: 12px; }
  .review-card__shot img { max-width: 180px; height: 196px; }
  .compare-swipe-hint { display: inline-flex; }
  .compare {
    border-radius: 14px;
    scroll-snap-type: x proximity;
  }
  .compare table { scroll-snap-align: start; }
}

@media (max-width: 560px) {
  .hero-product { margin-bottom: .55rem; }
  .hero-promise { margin-top: .45rem; margin-bottom: .85rem; font-size: .81rem; line-height: 1.42; }
  .sheet { margin-top: .25rem; }

  .phone-demo { padding: 11px 7px 13px; border-radius: 36px; }
  .phone-demo__screen { border-radius: 25px; }
  .phone-demo__speaker { width: 58px; height: 4px; margin-bottom: 7px; }
  .picker__chooser { margin-top: 1.45rem; margin-bottom: 1.4rem; }
  .picker__grid { gap: 8px; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .picker__grid .portal-btn { flex-basis: 126px; min-height: 94px; padding: .78rem .72rem; }
  .picker__grid .portal-btn__glyph { font-size: 1.12rem; }
  .picker__grid .portal-btn__name { font-size: .58rem; }
  .phone-demo .chat { min-height: 290px; max-height: 440px; }
  .phone-demo .msg--img { width: min(176px, 58%); max-width: 58%; }
  .phone-demo .msg--img img { height: 112px; }
  .phone-demo .chat-head__portal { display: none; }
  .picker__note { font-size: .69rem; }

  .story-carousel { padding-top: 2rem; padding-bottom: 2.35rem; }
  .story-carousel__track { gap: 11px; }
  .product-card {
    flex-basis: min(84vw, 338px);
    min-height: 338px;
    padding: 1.35rem;
  }
  .product-card__num { margin-bottom: 1.3rem; }
  .product-card li { font-size: .86rem; }
  .inside-price { margin-top: .9rem; }

  .review-card { flex-basis: min(88vw, 390px); }
  .review-card__copy { min-height: 205px; padding: 1.25rem; }
  .review-card__shot { min-height: 198px; }
  .review-card__shot img { max-width: 160px; height: 176px; }
  .review-card__zoom { right: 12px; bottom: 12px; font-size: .52rem; }
  .review-card blockquote { font-size: 1.22rem; }
  .reviews-close { font-size: .88rem; }
  .offer-work { font-size: 1.42rem; }
}

@media (prefers-reduced-motion: reduce) {
  .story-carousel__track,
  .picker__grid,
  .compare { scroll-behavior: auto; }
  .carousel-cue__arrow,
  .picker__swipe-cue span:last-child,
  .compare-swipe-hint span:last-child { animation: none; }
}
