/* ==========================================================================
   SP4 Couples · мягкий лендинг «Вопрос на двоих» (клиент №1)
   Настроение: тёплый вечерний свет — персик → роза → слива → ночь.
   Мотив: два света (тёплый янтарь и сирень — двое в паре), которые то расходятся, то встречаются.
   Телефон первым: 390×844 и 360×740. Без сердечек, без стоковых фото.
   ========================================================================== */

:root {
  color-scheme: light;

  --ink:        #3A1E2C;
  --ink-2:      #5A3446;
  --ink-soft:   rgba(58, 30, 44, .7);
  --ink-mute:   rgba(58, 30, 44, .52);
  --cream:      #FFF4EC;
  --cream-soft: rgba(255, 244, 236, .74);
  --cream-mute: rgba(255, 244, 236, .52);
  --plum-ink:   #2B1531;

  --amber: #FFB27E;   /* свет одного */
  --lilac: #BFA3F2;   /* свет другого */
  --rose:  #EE8E9C;
  --honey: #F6C77A;

  --paper:      rgba(255, 250, 246, .74);
  --glass:      rgba(255, 250, 246, .42);
  --glass-line: rgba(255, 255, 255, .66);

  --shadow-card:
    0 1px 0 rgba(255, 255, 255, .85) inset,
    0 -1px 0 rgba(160, 90, 110, .08) inset,
    0 50px 90px -46px rgba(96, 36, 70, .62),
    0 16px 34px -22px rgba(96, 36, 70, .4);
  --shadow-soft: 0 24px 50px -30px rgba(96, 36, 70, .5);

  --serif: 'Cormorant Garamond', 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease:      cubic-bezier(.22, .8, .24, 1);
  --ease-flip: cubic-bezier(.3, .7, .15, 1);
  --ease-in:   cubic-bezier(.55, 0, .8, .2);

  --gutter: 18px;
  --maxw: 1040px;
  --section-gap: clamp(76px, 12vw, 132px);
  --h2: clamp(2.35rem, 1.6rem + 3.2vw, 3.8rem);
  --card-h: clamp(410px, 55svh, 530px);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .24 0 0 0 0 .1 0 0 0 0 .16 0 0 0 .16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .92 0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* --------------------------------------------------------------------- *
   Сброс и основа
   --------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  min-width: 320px;
  background: #F6C9B2;
  color: var(--ink);
  font: 400 1.03rem / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(255, 178, 126, .45); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: 8px; z-index: 100; translate: -50% -160%;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); text-decoration: none;
  transition: translate .2s ease;
}
.skip-link:focus { translate: -50% 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: 720px; }

.section { position: relative; padding-block: var(--section-gap); }
.tone-dark { color: var(--cream); }
/* без JS небо не темнеет: тёмным блокам — свой вечер */
.no-js .tone-dark { background: #33193B; } /* один тон на все тёмные блоки: без швов между ними */
.no-js .privacy { background: linear-gradient(180deg, #6A3A66 0%, #33193B 60%); }
.no-js .site-footer { background: #1E1022; }

.h2 { font: 500 var(--h2) / 1.02 var(--serif); letter-spacing: -.015em; }
.h2 em, .final__title em { font-weight: 500; }
.eyebrow {
  margin: 0 0 14px;
  font: 500 .76rem / 1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tone-dark .eyebrow { color: var(--cream-mute); }

/* иконки из спрайта — контурные */
.btn svg, .share__opt svg, .c-shared__lock, .link-btn svg {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* --------------------------------------------------------------------- *
   Небо: четыре слоя, JS смешивает их по прокрутке
   --------------------------------------------------------------------- */

.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; overflow: clip; pointer-events: none; }
.sky__l { position: absolute; inset: 0; opacity: 0; }
.sky__l--0 {
  opacity: 1;
  background:
    radial-gradient(110% 55% at 85% -5%, rgba(255, 238, 220, .95) 0%, rgba(255, 238, 220, 0) 62%),
    linear-gradient(178deg, #FCE2CF 0%, #F9CBB3 34%, #F2AEA7 70%, #E498A4 100%);
}
.sky__l--1 {
  background:
    radial-gradient(100% 50% at 15% 0%, rgba(255, 216, 192, .75) 0%, rgba(255, 216, 192, 0) 60%),
    linear-gradient(180deg, #F3C2B3 0%, #E6A1A8 44%, #C4849F 100%);
}
.sky__l--2 {
  background:
    radial-gradient(90% 50% at 70% 104%, rgba(242, 150, 120, .5) 0%, rgba(242, 150, 120, 0) 70%),
    linear-gradient(180deg, #9C6089 0%, #714070 48%, #4A2852 100%);
}
.sky__l--3 {
  background:
    var(--grain-light),
    radial-gradient(80% 45% at 50% 108%, rgba(196, 110, 140, .38) 0%, rgba(196, 110, 140, 0) 70%),
    linear-gradient(180deg, #3D2146 0%, #2B1734 56%, #1C0F22 100%);
}
.sky__light {
  position: absolute;
  width: 110vmax;
  height: 110vmax;
  border-radius: 50%;
  will-change: transform;
}
.sky__light--a {
  top: -48vmax; left: -52vmax;
  background: radial-gradient(circle, rgba(255, 183, 128, .62) 0%, rgba(255, 183, 128, .2) 34%, rgba(255, 183, 128, 0) 62%);
  animation: drift-a 28s ease-in-out infinite alternate;
}
.sky__light--b {
  bottom: -56vmax; right: -58vmax;
  background: radial-gradient(circle, rgba(196, 162, 246, .55) 0%, rgba(196, 162, 246, .18) 34%, rgba(196, 162, 246, 0) 62%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.sky__grain { position: absolute; inset: 0; background-image: var(--grain); opacity: .85; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(14vmax, 10vmax, 0); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-16vmax, -12vmax, 0); } }

/* --------------------------------------------------------------------- *
   Кнопки
   --------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-ink: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 500 1rem / 1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .15s ease, background-color .25s ease, box-shadow .3s ease, border-color .25s ease, opacity .25s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: default; }
.tone-dark .btn { --btn-bg: var(--cream); --btn-ink: var(--plum-ink); }
.btn--ink { --btn-bg: var(--ink); --btn-ink: var(--cream); box-shadow: 0 16px 30px -16px rgba(58, 30, 44, .7); }
.btn--ink:hover { --btn-bg: #4B2839; }
.btn--cream { --btn-bg: var(--cream); --btn-ink: var(--plum-ink); box-shadow: 0 18px 50px -20px rgba(255, 190, 150, .6); }
.btn--glass {
  --btn-bg: rgba(255, 255, 255, .42);
  --btn-ink: var(--ink);
  border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .6); }
.btn--line { --btn-bg: transparent; --btn-ink: currentColor; border-color: rgba(255, 244, 236, .34); }
.tone-dark .btn--line { --btn-bg: transparent; --btn-ink: var(--cream); }
.tone-dark .btn--line:hover { border-color: var(--cream); }
.btn--big { min-height: 62px; padding-inline: 34px; font-size: 1.08rem; }
.btn--quiet {
  --btn-bg: transparent;
  --btn-ink: var(--cream-soft);
  min-height: 44px;
  padding: 8px 16px;
  font-size: .9rem;
  border-color: rgba(255, 244, 236, .22);
}
.tone-dark .btn--quiet { --btn-bg: transparent; --btn-ink: var(--cream-soft); }
.btn--quiet.is-done { color: #BFE6CF; border-color: currentColor; }
.btn--wide { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 2px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: 500 .95rem / 1.25 var(--sans);
  text-decoration: underline;
  text-decoration-color: rgba(58, 30, 44, .3);
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }

/* --------------------------------------------------------------------- *
   Шапка
   --------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
  border-bottom: 1px solid transparent;
}
.top.is-stuck {
  background: rgba(255, 238, 228, .5);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: rgba(255, 255, 255, .45);
}
.top.is-dark { color: var(--cream); }
.top.is-dark.is-stuck { background: rgba(38, 20, 44, .55); border-bottom-color: rgba(255, 255, 255, .08); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.mark { display: inline-flex; align-items: baseline; gap: 7px; padding-block: 11px; text-decoration: none; color: inherit; }
.mark__sp4 { font: 600 .9rem / 1 var(--sans); letter-spacing: .14em; }
.mark__c { font: italic 600 1.45rem / 1 var(--serif); letter-spacing: .005em; }
.top__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: 500 .82rem / 1.1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.top.is-dark .top__cta { background: var(--cream); color: var(--plum-ink); }
.top.show-cta .top__cta { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .35s ease, visibility 0s; }
.no-js .top__cta { display: none; }

/* --------------------------------------------------------------------- *
   1. Игра
   --------------------------------------------------------------------- */

.game { padding: 6px 0 28px; overflow-x: hidden; overflow-x: clip; }
.game__wrap { max-width: 480px; display: flex; flex-direction: column; min-height: calc(100svh - 64px); }
.game__head { display: grid; justify-items: center; gap: 12px; padding: 8px 0 18px; text-align: center; }
.game__title { margin-bottom: -2px; font: italic 500 2.05rem / 1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.game__meta {
  font: 500 .76rem / 1.3 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-mute);
}
@media (max-width: 379px) { .game__meta { letter-spacing: .1em; font-size: .7rem; } }
.dots { display: flex; gap: 8px; }
.dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(58, 30, 44, .18);
  transition: width .5s var(--ease), background-color .5s ease;
}
.dots i.is-done { background: rgba(58, 30, 44, .5); }
.dots i.is-on { width: 24px; border-radius: 4px; background: var(--ink); }

.stage { position: relative; margin-block: auto; }
.deck { position: relative; padding-bottom: 34px; animation: breathe 7.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.deck__ghost {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 34px;
  border-radius: 34px;
  background: linear-gradient(170deg, rgba(255, 250, 246, .5), rgba(255, 236, 228, .28));
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 30px 60px -40px rgba(96, 36, 70, .55);
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease), opacity .7s ease;
}
/* видна только полоска, что выглядывает из-под карточки (карточка полупрозрачная) */
.deck__ghost--1 { transform: translateY(13px) scale(.95); opacity: .85; clip-path: inset(calc(100% - 20px) -40px -60px -40px); }
.deck__ghost--2 { transform: translateY(24px) scale(.9); opacity: .6; clip-path: inset(calc(100% - 33px) -40px -60px -40px); }
.deck__ghost--3 { transform: translateY(34px) scale(.85); opacity: .38; clip-path: inset(calc(100% - 47px) -40px -60px -40px); }
.deck[data-left='2'] .deck__ghost--3,
.deck[data-left='1'] .deck__ghost--3,
.deck[data-left='1'] .deck__ghost--2,
.deck[data-left='0'] .deck__ghost { opacity: 0; transform: translateY(0) scale(.97); }

.card {
  --g1: #FFB27E;
  --g2: #EE8E9C;
  position: relative;
  z-index: 2;
  perspective: 1800px;
  transition: transform .6s var(--ease), opacity .6s ease;
  touch-action: pan-y;
}
.card[data-q='1'] { --g1: #F4A3A8; --g2: #C4A3F0; }
.card[data-q='2'] { --g1: #BFA3F2; --g2: #9DB6F0; }
.card[data-q='3'] { --g1: #F6C77A; --g2: #FF9E86; }
.card.is-leaving { transform: translateX(-118%) rotate(-8deg); opacity: 0; transition: transform .5s var(--ease-in), opacity .45s ease; }
.card.is-leaving.to-right { transform: translateX(118%) rotate(8deg); }
.deck.is-gone { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s ease, transform .5s var(--ease); animation: none; }
.card.is-entering { transform: translateY(13px) scale(.95); opacity: .6; }
.card.is-drag { transition: none; }
.card.no-tr, .card.no-tr * { transition: none !important; }

.card__inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-flip);
}
.card.is-flipped .card__inner { transform: rotateY(180deg); }

/* стеклянная карточка: стороны вопроса и финальный экран игры */
.card__face, .end {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--card-h);
  padding: 30px 22px 22px;
  border-radius: 34px;
  overflow: hidden; overflow: clip;
  background:
    linear-gradient(165deg, rgba(255, 252, 249, .86) 0%, rgba(255, 244, 238, .66) 48%, rgba(255, 236, 230, .58) 100%);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-card);
}
.card__face {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: rotateY(0deg);
}
.card__back { transform: rotateY(180deg); }
.no-js .card__face { min-height: 0; }

/* блик, как на фольге подарочной открытки: медленно проходит по лицевой стороне */
.card__front::after, .end::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -20% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .38) 49%, rgba(255, 246, 236, .16) 53%, transparent 60%);
  transform: translateX(-70%);
  animation: sheen 9s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes sheen { 0% { transform: translateX(-70%); } 22%, 100% { transform: translateX(70%); } }
.card__face > *, .end > * { position: relative; z-index: 1; }

/* мягкое свечение внутри карточки: у каждого вопроса свой тон */
.card__glow {
  position: absolute !important;
  z-index: 0 !important;
  top: -38%;
  right: -30%;
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--g1) 0%, color-mix(in srgb, var(--g1) 55%, transparent) 30%, transparent 66%);
  opacity: .95;
  animation: glow-breathe 9s ease-in-out infinite;
  pointer-events: none;
}
.card__glow::after {
  content: '';
  position: absolute;
  left: -70%;
  top: 120%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--g2) 0%, color-mix(in srgb, var(--g2) 45%, transparent) 32%, transparent 66%);
  opacity: .8;
}
.card__glow--back { top: auto; bottom: -45%; right: auto; left: -35%; }
@keyframes glow-breathe { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.08) translate(-3%, 3%); } }

.card__scene {
  font: 500 clamp(2rem, 1.55rem + 2.1vw, 2.55rem) / 1.08 var(--serif);
  letter-spacing: -.012em;
  color: var(--ink);
}
.card__scene em { display: block; margin-top: .22em; font-style: italic; color: var(--ink-2); }
.card__prompt {
  margin-top: auto;
  padding-top: 26px;
  font: 500 .98rem / 1.3 var(--sans);
  color: var(--ink-soft);
}
.card__opts { display: grid; gap: 10px; margin-top: 14px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 12px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 10px 24px -18px rgba(96, 36, 70, .6), 0 1px 0 rgba(255, 255, 255, .9) inset;
  color: var(--ink);
  font: 500 1.12rem / 1.2 var(--sans);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .18s ease, background-color .35s ease, color .35s ease, opacity .45s ease, box-shadow .35s ease;
}
.opt:hover { background: rgba(255, 255, 255, .74); }
.opt:active { transform: scale(.985); }
.opt__dot {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(58, 30, 44, .35);
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.opt[aria-pressed='true'] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: 0 18px 34px -18px rgba(58, 30, 44, .8);
}
.opt[aria-pressed='true'] .opt__dot { border-color: var(--g1); background: var(--g1); box-shadow: 0 0 16px var(--g1); }
.card.is-chosen .opt:not([aria-pressed='true']) { opacity: .35; }

/* обратная сторона: тёплое переосмысление */
.card__echo {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .85);
  font: 500 .86rem / 1.2 var(--sans);
  color: var(--ink-soft);
}
.card__echo::before {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--g1);
  box-shadow: 0 0 10px var(--g1);
}
.card__echo b { color: var(--ink); font-weight: 600; }
/* тёплый ответ стоит посередине свободного места, а не прилипает к верху */
.card__warm {
  margin-block: auto;
  padding-block: 22px 8px;
  font: 500 clamp(1.62rem, 1.32rem + 1.3vw, 1.95rem) / 1.17 var(--serif);
  letter-spacing: -.005em;
  color: var(--ink);
}
.card__warm:focus, .end__title:focus { outline: none; } /* фокус переносим для скринридера, рамка не нужна */
.card__warm .w { display: inline-block; }
.card.is-flipped .card__warm .w { animation: word-in .8s var(--ease) both; animation-delay: calc(.4s + var(--i) * 30ms); }
@keyframes word-in { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.card__warm .w--soft { font-style: italic; color: var(--ink-2); }
.card__warm .warm__a, .card__warm .warm__b { display: block; }
.card__warm .warm__b { margin-top: .5em; }
.card__nav { padding-top: 22px; display: flex; align-items: center; gap: 16px; }
.card__nav .btn { min-width: 150px; white-space: nowrap; }
.card__swipe { font: 500 .82rem / 1.2 var(--sans); color: var(--ink-mute); }
@media (hover: hover) and (pointer: fine) { .card__swipe { display: none; } }

.game__down {
  align-self: center;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-soft);
  font: 500 .86rem / 1.2 var(--sans);
  text-decoration: none;
}
.game__down svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.game.is-done .game__down { display: none; }

/* --------------------------------------------------------------------- *
   Финальный экран игры: встаёт на место колоды
   --------------------------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* встаёт на место колоды и растёт вниз: раскрытое «Отправить вопросы» не сдвигает карточку вверх */
.game.is-done .stage { margin-top: clamp(20px, 7svh, 64px); margin-bottom: auto; }
.end { --g1: #FFB27E; --g2: #BFA3F2; margin-bottom: 34px; scroll-margin-top: 70px; animation: rise 1s var(--ease) both; }
.end__sub { margin-top: 18px; font: 500 .98rem / 1.4 var(--sans); color: var(--ink-soft); text-wrap: balance; }
.end__actions { margin-top: auto; padding-top: 26px; display: grid; gap: 10px; }
.end__actions > .btn, .share--end .share__main { width: 100%; }
.share--end { justify-items: stretch; gap: 10px; }
.share--end .share__opts { justify-content: center; }
.end__again { justify-self: center; margin-top: 2px; }
.end__sub, .end__actions { animation: rise .9s var(--ease) both; }
.end__sub { animation-delay: .25s; }
.end__actions { animation-delay: .45s; }

/* --------------------------------------------------------------------- *
   Появление блоков
   --------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }

/* --------------------------------------------------------------------- *
   2. Один вечер вдвоём
   --------------------------------------------------------------------- */

.evening .h2, .evening .eyebrow { text-align: center; }
.evening__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; position: relative; }
.evening__step {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  border-radius: 30px;
  background: linear-gradient(165deg, rgba(255, 252, 249, .62), rgba(255, 240, 234, .36));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: var(--shadow-soft);
}
.evening__t { font: 500 1.5rem / 1.12 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
@media (min-width: 900px) {
  .evening .wrap--mid { max-width: 1000px; }
  .evening__list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .evening__step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 22px 30px; }
}

.ill { position: relative; width: 112px; height: 96px; border-radius: 24px; overflow: hidden; overflow: clip; background: rgba(255, 255, 255, .35); }
.ill--apart { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ill__ring {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(58, 30, 44, .16);
  background: rgba(255, 255, 255, .45);
}
.ill__orb { width: 26px; height: 26px; border-radius: 50%; animation: pulse 4.5s ease-in-out infinite; }
.ill__orb--a { background: radial-gradient(circle, #FFF3E8 0%, var(--amber) 45%, rgba(255, 178, 126, 0) 72%); box-shadow: 0 0 22px 2px rgba(255, 170, 120, .55); }
.ill__orb--b { background: radial-gradient(circle, #F6F0FF 0%, var(--lilac) 45%, rgba(191, 163, 242, 0) 72%); box-shadow: 0 0 22px 2px rgba(180, 150, 240, .55); animation-delay: -2.2s; }
@keyframes pulse { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.06); } }

.ill__disc { position: absolute; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; opacity: .9; }
.ill__disc--b { opacity: .8; }
.ill__disc--a { left: 18px; background: radial-gradient(circle, #FFE9D8 0%, var(--amber) 55%, rgba(255, 178, 126, .2) 100%); animation: disc-a 6s ease-in-out infinite; }
.ill__disc--b { right: 18px; background: radial-gradient(circle, #F3EDFF 0%, var(--lilac) 55%, rgba(191, 163, 242, .2) 100%); animation: disc-b 6s ease-in-out infinite; }
.ill__spark {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 4px rgba(255, 255, 255, .9);
  animation: spark 6s ease-in-out infinite;
}
@keyframes disc-a { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(9px); } }
@keyframes disc-b { 0%, 100% { transform: translateX(4px); } 50% { transform: translateX(-9px); } }
@keyframes spark { 0%, 30%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } 70% { opacity: .2; } }

.ill--week { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ill--week i { width: 8px; height: 8px; border-radius: 50%; background: rgba(58, 30, 44, .2); }
.ill--week i:nth-child(1), .ill--week i:nth-child(7) { translate: 0 -10px; }
.ill--week i:nth-child(2), .ill--week i:nth-child(6) { translate: 0 -3px; }
.ill--week i:nth-child(3), .ill--week i:nth-child(5) { translate: 0 2px; }
.ill--week i.is-today {
  width: 18px; height: 18px; translate: 0 4px;
  background: radial-gradient(circle at 38% 36%, #FFF4E6, var(--honey) 50%, #F29A7E);
  box-shadow: 0 0 20px 4px rgba(255, 190, 120, .75);
  animation: pulse 3.6s ease-in-out infinite;
}

/* --------------------------------------------------------------------- *
   3. Пример одной пары
   --------------------------------------------------------------------- */

.pair .eyebrow { text-align: center; }
.pair__line { text-align: center; font: 500 clamp(2.15rem, 1.55rem + 2.8vw, 3.4rem) / 1.06 var(--serif); letter-spacing: -.012em; }
.pair__who { display: block; }
.pair__who--b { margin-top: .12em; }
.pair__who--b em { font-style: italic; color: var(--ink-2); }

.action {
  position: relative;
  margin-top: 40px;
  padding: 26px 20px 22px;
  border-radius: 34px;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(255, 196, 160, .45), transparent 70%),
    linear-gradient(170deg, rgba(255, 252, 249, .86), rgba(255, 244, 238, .7));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-card);
}
.action__top { display: grid; gap: 20px; }
@media (min-width: 620px) { .action__top { grid-template-columns: 1fr auto; align-items: center; } }
.action__kicker { margin-bottom: 8px; font: 600 .74rem / 1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #A04C62; }
.action__title { font: 500 clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem) / 1 var(--serif); letter-spacing: -.015em; }

.timer { display: flex; align-items: center; gap: 16px; }
.timer__dial { position: relative; width: 96px; height: 96px; flex: none; }
.timer__dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.timer__track { fill: none; stroke: rgba(58, 30, 44, .1); stroke-width: 7; }
.timer__bar {
  fill: none;
  stroke: url(#tm-g);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .3s linear;
  filter: drop-shadow(0 0 5px rgba(242, 154, 126, .5));
}
.timer__time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 1.18rem / 1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.timer.is-running .timer__time { color: #A04C62; }
.timer__btns { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.timer__go { padding-inline: 22px; }
.timer__go::before {
  content: '';
  width: 0; height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}
.timer__small { min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.action__demo { margin-top: 14px; font: 400 .84rem / 1.4 var(--sans); color: var(--ink-mute); }

.steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: st; display: grid; gap: 8px; }
.steps__item {
  counter-increment: st;
  margin: 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: start;
  gap: 4px 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .5);
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.steps__item.is-current { border-color: rgba(160, 76, 98, .5); background: rgba(255, 255, 255, .85); box-shadow: 0 12px 26px -18px rgba(160, 76, 98, .7); }
.steps__box {
  appearance: none;
  -webkit-appearance: none;
  width: 44px; height: 44px;
  margin: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(58, 30, 44, .2);
  background: rgba(255, 255, 255, .8);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.steps__box::before { content: counter(st); font: 600 1rem / 1 var(--sans); color: var(--ink-mute); }
.steps__box:checked { background: linear-gradient(135deg, #F29A7E, #9C5A8E); border-color: transparent; transform: scale(1.04); }
.steps__box:checked::before {
  content: '';
  width: 16px; height: 9px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  rotate: -45deg;
  translate: 0 -2px;
}
.steps__box:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.steps__det summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 1.3rem / 1.12 var(--serif);
}
.steps__det summary::-webkit-details-marker { display: none; }
.steps__det summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.6px solid var(--ink-mute);
  border-bottom: 1.6px solid var(--ink-mute);
  rotate: 45deg;
  margin: -4px 4px 0 auto;
  transition: rotate .3s var(--ease);
  flex: none;
}
.steps__det[open] summary::after { rotate: 225deg; margin-top: 4px; }
.steps__det p { margin: 0 0 8px; color: var(--ink-2); font-size: .96rem; line-height: 1.45; }
.steps__det[open] p { animation: rise .45s var(--ease) both; }
.steps__item:has(.steps__box:checked) summary { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: rgba(156, 90, 142, .45); text-decoration-thickness: 1.5px; }

.action__done {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.action__done .burst { display: inline-flex; gap: 4px; }
.action__done .burst i { width: 8px; height: 8px; border-radius: 50%; animation: burst .9s cubic-bezier(.34, 1.4, .5, 1) both; }
.action__done .burst i:nth-child(1) { background: var(--amber); }
.action__done .burst i:nth-child(2) { background: var(--rose); animation-delay: .08s; }
.action__done .burst i:nth-child(3) { background: var(--lilac); animation-delay: .16s; }
.action__done .burst i:nth-child(4) { background: var(--honey); animation-delay: .24s; }
@keyframes burst { 0% { transform: scale(0) translateY(10px); } 60% { transform: scale(1.5) translateY(-6px); } 100% { transform: none; } }
.action__note { margin-top: 16px; font: italic 500 1.1rem / 1.3 var(--serif); color: var(--ink-soft); }

/* --------------------------------------------------------------------- *
   4. Приватность: два согласия
   --------------------------------------------------------------------- */

.privacy .h2 { text-align: center; }
.consent {
  margin-top: 34px;
  padding: 22px 16px 16px;
  border-radius: 34px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 80px -50px rgba(10, 0, 20, .8);
}
.consent__stage { position: relative; height: 150px; display: flex; align-items: center; justify-content: space-between; padding-inline: 4px; }
.c-orb {
  position: relative;
  z-index: 1;
  width: 96px; height: 96px; margin-inline: -8px; border-radius: 50%;
  opacity: .3;
  transform: scale(.82);
  transition: opacity .8s ease, transform 1.1s var(--ease), box-shadow .8s ease;
}
.c-orb--a { background: radial-gradient(circle, #FFF3E8 0%, rgba(255, 178, 126, .95) 24%, rgba(255, 178, 126, .4) 46%, rgba(255, 178, 126, 0) 70%); }
.c-orb--b { background: radial-gradient(circle, #F6F0FF 0%, rgba(191, 163, 242, .95) 24%, rgba(191, 163, 242, .4) 46%, rgba(191, 163, 242, 0) 70%); }
.consent.is-a .c-orb--a, .consent.is-b .c-orb--b { opacity: 1; transform: scale(1); }

.consent.is-open .c-orb--a { transform: translateX(14px) scale(1.04); }
.consent.is-open .c-orb--b { transform: translateX(-14px) scale(1.04); }
.c-shared {
  position: relative;
  width: 104px; height: 124px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px dashed rgba(255, 255, 255, .3);
  transition: background-color .8s ease, border-color .8s ease, box-shadow .8s ease;
}
.c-shared__lock { width: 30px; height: 30px; color: var(--cream-soft); transition: opacity .5s ease, transform .6s var(--ease); }
.c-shared__lines { position: absolute; inset: 22px 16px; display: grid; align-content: center; gap: 10px; opacity: 0; transition: opacity .8s ease .2s; }
.c-shared__lines i { height: 6px; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.c-shared__lines i:nth-child(1) { background: linear-gradient(90deg, var(--amber), var(--lilac)); transition-delay: .3s; }
.c-shared__lines i:nth-child(2) { width: 72%; background: linear-gradient(90deg, var(--lilac), var(--rose)); transition-delay: .45s; }
.c-shared__lines i:nth-child(3) { width: 48%; background: linear-gradient(90deg, var(--honey), var(--amber)); transition-delay: .6s; }
.consent.is-open .c-shared { background: rgba(255, 244, 236, .16); border-style: solid; border-color: rgba(255, 244, 236, .5); box-shadow: 0 0 60px -10px rgba(255, 200, 170, .5); }
.consent.is-open .c-shared__lock { opacity: 0; transform: translateY(-10px) scale(.8); }
.consent.is-open .c-shared__lines { opacity: 1; }
.consent.is-open .c-shared__lines i { transform: none; }

.consent__ctrl { margin-top: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.sw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: var(--cream);
  font: 500 .95rem / 1 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sw__track { position: relative; width: 40px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, .18); transition: background-color .35s ease; }
.sw__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream); transition: transform .35s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.sw[aria-pressed='true'] .sw__knob { transform: translateX(16px); }
.sw--a[aria-pressed='true'] .sw__track { background: var(--amber); }
.sw--b[aria-pressed='true'] .sw__track { background: var(--lilac); }
.consent__status { text-align: center; font: italic 500 1.12rem / 1.1 var(--serif); color: var(--cream-soft); }
.consent__status .st-open { display: none; color: var(--cream); }
.consent.is-open .consent__status .st-open { display: inline; }
.consent.is-open .consent__status .st-closed { display: none; }
.privacy__foot { margin-top: 22px; text-align: center; color: var(--cream-soft); font-size: .98rem; }
.privacy__foot a { display: inline-block; padding: 10px 4px; margin: -10px 0; color: var(--cream); font-weight: 500; }

/* --------------------------------------------------------------------- *
   5. Закрытая бета
   --------------------------------------------------------------------- */

.beta__copy { text-align: center; }
.beta__sub { margin: 16px auto 0; max-width: 28ch; font-size: 1.08rem; color: var(--cream-soft); }

.poll { margin-top: 34px; min-width: 0; }
.poll__q { margin-bottom: 12px; text-align: center; font: 500 .76rem / 1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cream-mute); }
.poll__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.poll__opt {
  position: relative;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 14px;
  min-height: 104px;
  padding: 15px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(165deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  color: var(--cream);
  font: 500 1.02rem / 1.2 var(--sans);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color .25s, background-color .25s, box-shadow .3s, opacity .3s, transform .15s;
}
.poll__opt:active { transform: scale(.98); }
.poll__opt::after {
  content: '';
  position: absolute;
  top: 13px; right: 13px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background-position: center;
  background-repeat: no-repeat;
  transition: background-color .25s, border-color .25s;
}
.poll__opt[aria-pressed='true'] {
  border-color: var(--cream);
  background: rgba(255, 244, 236, .16);
  box-shadow: 0 0 0 1px var(--cream), 0 20px 50px -24px rgba(255, 190, 150, .75);
}
.poll__opt[aria-pressed='true']::after {
  border-color: var(--cream);
  background-color: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%232B1531' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.poll.has-vote .poll__opt:not([aria-pressed='true']) { opacity: .55; }
.poll__ico { width: 26px; height: 26px; overflow: visible; }
/* два света — двое в паре: вместе, второй пока пунктиром, один */
.poll__ico:not(.poll__ico--eye) { filter: drop-shadow(0 0 5px rgba(255, 190, 150, .45)); }
.poll__ico .a { fill: var(--amber); }
.poll__ico .b { fill: var(--lilac); fill-opacity: .85; }
.poll__ico .b.is-dash { fill: none; stroke: var(--lilac); stroke-width: 1.5; stroke-dasharray: 2.6 2.2; }
.poll__ico--eye { fill: none; stroke: var(--cream-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.no-js .poll__q, .no-js .poll__grid { display: none; }

.poll__res { margin-top: 20px; text-align: center; font: 500 1.6rem / 1.15 var(--serif); }
.poll__res p { margin: 0; }
.poll__res:not([hidden]) { animation: rise .6s var(--ease) both; }
.poll__res--share .share { margin-top: 16px; justify-items: center; font-family: var(--sans); }
.poll__form { margin-top: 20px; scroll-margin-top: 160px; }

.form-shell {
  position: relative;
  padding: 24px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(255, 190, 150, .12), transparent 70%),
    radial-gradient(80% 50% at 100% 100%, rgba(191, 163, 242, .12), transparent 70%),
    rgba(34, 16, 38, .7);
  box-shadow: 0 50px 110px -60px rgba(255, 180, 150, .45);
  color: var(--cream);
}
@media (min-width: 560px) { .form-shell { padding: 34px; } }
.form-shell .card__title { font: 500 1.9rem / 1.05 var(--serif); margin: 0 0 8px; }
.form-shell .muted { color: var(--cream-mute); }
.form-shell .small { font-size: .88rem; }
.field { margin-bottom: 18px; min-width: 0; }
.field__label { display: block; font-weight: 500; margin-bottom: 7px; }
legend.field__label { padding: 0; }
/* вопрос о партнёре отвечает голос шкалы (poll.js отмечает радиокнопку); без JS он виден.
   [data-voted] ставит poll.js: если он не загрузился, вопрос остаётся — иначе форму не отправить */
.js [data-poll][data-voted] .field--partner { display: none; }
.field__hint { display: block; font-size: .86rem; color: var(--cream-mute); margin-top: 6px; }
.field__error { display: block; font-size: .88rem; color: #FFB3B8; margin-top: 6px; }
.input, .select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: 400 1rem / 1.2 var(--sans);
  color: var(--cream);
  background: rgba(16, 6, 20, .5);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  transition: border-color .16s, box-shadow .16s;
}
.input { text-overflow: ellipsis; }
.input::placeholder { color: rgba(255, 244, 236, .38); }
@media (max-width: 419px) { .input::placeholder { font-size: .875rem; } }
.input:focus, .select:focus { outline: none; border-color: var(--cream); box-shadow: 0 0 0 3px rgba(255, 244, 236, .14); }
.field--invalid .input, .field--invalid .select { border-color: #FFB3B8; }
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.select option { background: #2B1531; color: var(--cream); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: grid; place-items: center;
  min-height: 48px; padding: 10px 6px;
  text-align: center; line-height: 1.2;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(16, 6, 20, .4);
  transition: border-color .15s, background-color .15s;
}
.choice input:checked + span { border-color: var(--cream); background: rgba(255, 244, 236, .14); font-weight: 500; }
.choice input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.rule { height: 1px; background: rgba(255, 255, 255, .14); border: 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; min-height: 44px; margin-bottom: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); }
.check__text { font-size: .88rem; color: var(--cream-mute); }
.check__text b { display: block; color: var(--cream); font-size: 1rem; font-weight: 500; margin-bottom: 2px; }
.check__text a { color: var(--cream-soft); display: inline-block; padding-block: 12px; margin-block: -12px; }
.form-alert { padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; background: rgba(255, 163, 163, .1); border: 1px solid rgba(255, 163, 163, .35); font-size: .9rem; }
.form-alert a { color: var(--cream); font-weight: 500; white-space: nowrap; }
.form-shell [data-form-submit] { margin-top: 8px; }
.form-success { display: grid; gap: 14px; }
/* после отправки заголовок формы не повторяет «Заявка получена» */
.form-shell:has(> [data-form-success]:not([hidden])) > :is([data-form-heading], [data-form-sub]) { display: none; }
.form-success:focus { outline: none; }
.form-success__mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 190, 150, .16); color: var(--amber); font-size: 1.4rem;
  box-shadow: 0 0 30px -6px rgba(255, 190, 150, .6);
}
.form-success p { margin: 0; }
.partner-text { padding: 16px 18px; border-radius: 16px; background: rgba(16, 6, 20, .45); border: 1px solid rgba(255, 255, 255, .12); color: var(--cream-soft); font-size: .9rem; }
.form-success .btn--quiet { justify-self: start; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* «Поделиться»: системное меню, а без него — три кнопки */
.share { display: grid; justify-items: start; gap: 12px; }
.share__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.js .share__opts { display: none; }
.js .share.is-open .share__opts { display: flex; animation: rise .45s var(--ease) both; }
.no-js .share__main, .no-js .share__copy { display: none; }
.share__opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(58, 30, 44, .16);
  background: rgba(255, 255, 255, .6);
  color: var(--ink);
  font: 500 .9rem / 1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.share__opt svg { width: 18px; height: 18px; }
.tone-dark .share__opt { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: var(--cream); }
.tone-dark .share__opt:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.share__opt.is-done { color: #2F6B4D; border-color: currentColor; }
.tone-dark .share__opt.is-done { color: #BFE6CF; }
.share--success { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); gap: 10px; }

/* --------------------------------------------------------------------- *
   6. Финал
   --------------------------------------------------------------------- */

.final { overflow: hidden; overflow: clip; text-align: center; padding-bottom: calc(var(--section-gap) + 30px); }
/* overflow-anchor: none — иначе браузер цепляет прокрутку за «горизонт» внизу блока,
   и при раскрытии кнопок «Поделиться» страница прыгает вверх */
.final__horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 300px; pointer-events: none; overflow-anchor: none; -webkit-mask: linear-gradient(to bottom, #000 45%, transparent 96%); mask: linear-gradient(to bottom, #000 45%, transparent 96%); }
.final__sun {
  position: absolute; bottom: 0; width: 420px; height: 420px; border-radius: 50%;
  mix-blend-mode: screen;
  opacity: .8;
  transition: transform 2.6s var(--ease);
}
.final__sun--a { left: 50%; margin-left: -420px; background: radial-gradient(circle, rgba(255, 178, 126, .8) 0%, rgba(255, 178, 126, .28) 32%, rgba(255, 178, 126, 0) 64%); transform: translate(-60px, 230px); }
.final__sun--b { left: 50%; background: radial-gradient(circle, rgba(191, 163, 242, .75) 0%, rgba(191, 163, 242, .26) 32%, rgba(191, 163, 242, 0) 64%); transform: translate(60px, 230px); }
.final.is-in .final__sun--a { transform: translate(130px, 190px); }
.final.is-in .final__sun--b { transform: translate(-130px, 190px); }
/* 11vw: «Пройдите отдельно.» держится одной строкой от 320px, без висячего слова */
.final__title { position: relative; font: 500 clamp(2.2rem, 11vw, 4.8rem) / 1 var(--serif); letter-spacing: -.02em; }
.final__title span, .final__title em { display: block; }
.final__title em { font-style: italic; color: #FFD9C0; }
.final__actions { position: relative; margin-top: 34px; display: grid; justify-items: center; gap: 12px; }
.share--final { justify-items: center; }
.share--final .share__opts { justify-content: center; }
.final__beta { min-height: 50px; }

/* --------------------------------------------------------------------- *
   7. Вопросы и подвал
   --------------------------------------------------------------------- */

.faq-section { padding-top: calc(var(--section-gap) * .6); }
.faq { margin-top: 26px; display: grid; gap: 8px; }
.faq__item { border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 14px 18px;
  font: 500 1.3rem / 1.15 var(--serif);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '';
  flex: none;
  width: 22px; height: 22px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  opacity: .7;
  transition: transform .35s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 18px 18px; color: var(--cream-soft); font-size: .98rem; }
.faq__a a { color: var(--cream); }
.faq__item[open] .faq__a { animation: rise .4s var(--ease) both; }

.site-footer { padding: 44px 0 36px; font-size: .88rem; color: var(--cream-mute); }
.site-footer a { color: var(--cream-soft); }
.site-footer p { margin: 0 0 8px; }
.site-footer .mark { color: var(--cream); margin-bottom: 12px; }
.site-footer p > a { display: inline-block; padding: 12px 10px; margin: -12px -10px; }
.site-footer__cols { display: grid; gap: 26px; }
@media (min-width: 720px) { .site-footer__cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-mute); }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin: 0; }
.site-footer__links a { display: inline-block; padding: 12px 0; }
.site-footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* --------------------------------------------------------------------- *
   Планшет и десктоп: та же мобильная композиция, просторнее
   --------------------------------------------------------------------- */

@media (min-width: 720px) {
  .card__face, .end { padding: 40px 36px 30px; }
}

/* низкие экраны: 360×640, 375×667 */
@media (max-height: 700px) {
  :root { --card-h: 420px; }
  .game__head { padding-bottom: 12px; gap: 10px; }
  .game__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .card__face, .end { padding-top: 24px; }
}

/* --------------------------------------------------------------------- *
   Без движения
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { filter: none; transform: none; }
}

/* Голос «Сначала — только я»: партнёра звать не предлагаем. */
body:has([data-poll][data-voted="solo"]) .form-success__partner { display: none; }
/* Голос «Пока просто смотрю»: «Поделиться» уже есть в ответе шкалы, в финале её не дублируем. */
body:has([data-poll][data-voted="browsing"]) #final [data-share-box] { display: none; }
