/* «Игра в дурака» — один экран сверху и лестница цен снизу.
 *
 * Сверху привычный глаз сайта, по бокам два джокера — одна и та же фигура,
 * отражённая, с разными ртом и бровями: грустный и весёлый. Из глаза падает
 * слеза. Ниже — цены без скидок, каждая в своём цвете, и в самом низу
 * спойлер: самая дорогая строка на странице стоит ноль. */

.fg-page { background: var(--bg); }

/* ---------- верхний экран ---------- */

.fg-hero { position: relative; padding: 54px 0 10px; text-align: center; }

.fg-stage {
  display: block; width: min(720px, 100%); margin: 0 auto;
  overflow: visible; margin-bottom: -14px;
}

/* глаз — те же анимации, что на главной, просто внутри общей сцены */
.fg-eye {
  color: #FFD5DE;
  filter: drop-shadow(0 0 5px rgba(255, 213, 222, 0.9))
          drop-shadow(0 0 18px rgba(228, 135, 154, 0.8))
          drop-shadow(0 0 52px rgba(168, 58, 85, 0.55));
  animation: neon-breathe 5s ease-in-out infinite, neon-flicker 11s linear infinite;
}
.fg-eye .eye-lid   { transform-origin: 360px 120px; animation: lid-blink 7s ease-in-out infinite; }
.fg-eye .eye-iris  { transform-origin: 360px 120px; animation: iris-pulse 5s ease-in-out infinite; }
.fg-eye .eye-star  { transform-origin: 360px 120px; animation: star-turn 40s linear infinite; }

/* джокеры: одна фигура, отражённая. Грустный светится холодным, весёлый тёплым. */
.fg-joker { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.fg-joker .jk-bell { fill: currentColor; stroke: none; }
.fg-joker .jk-eye  { fill: currentColor; stroke: none; }

.fg-joker-sad {
  color: #9FB4FF;
  filter: drop-shadow(0 0 3px rgba(159, 180, 255, 0.55)) drop-shadow(0 0 16px rgba(120, 140, 255, 0.35));
  animation: jk-sway-sad 9s ease-in-out infinite;
  transform-origin: 110px 195px;
}
.fg-joker-happy {
  color: #FFD98A;
  filter: drop-shadow(0 0 3px rgba(255, 217, 138, 0.55)) drop-shadow(0 0 16px rgba(255, 190, 90, 0.35));
  animation: jk-sway-happy 9s ease-in-out infinite;
  transform-origin: 610px 195px;
}
/* качаются в противофазе — как две половины одной карты */
@keyframes jk-sway-sad   { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(1.6deg); } }
@keyframes jk-sway-happy { 0%, 100% { transform: rotate(2.2deg); } 50% { transform: rotate(-1.6deg); } }

/* бубенцы позвякивают — каждый в своём ритме */
.jk-bell-a { animation: bell-ring 4.2s ease-in-out infinite; transform-origin: center; }
.jk-bell-b { animation: bell-ring 5.1s ease-in-out infinite 0.4s; transform-origin: center; }
.jk-bell-c { animation: bell-ring 4.7s ease-in-out infinite 0.9s; transform-origin: center; }
@keyframes bell-ring {
  0%, 72%, 100% { transform: translateY(0); }
  78% { transform: translateY(1.6px); }
  84% { transform: translateY(-0.8px); }
  90% { transform: translateY(0.5px); }
}

/* ---------- слеза ----------
   Набухает у нижнего века сразу после моргания, отрывается, падает,
   гаснет у самого низа и оставляет расходящийся круг. Цикл — те же 7 секунд,
   что и моргание, поэтому слеза всегда идёт следом за ним, а не поперёк. */
.fg-tear {
  color: #FFFFFF;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.95))
          drop-shadow(0 0 14px rgba(228, 135, 154, 0.8));
  animation: tear-fall 7s cubic-bezier(0.45, 0, 0.75, 0.45) infinite;
  opacity: 0;
}
.fg-tear .td-body  { fill: currentColor; }
.fg-tear .td-shine { fill: #FFFFFF; opacity: 0.75; }

/* Нижнее веко глаза проходит по y=190, поэтому капля набухает у 160,
   отрывается к 200 и падает до самого низа сцены. */
@keyframes tear-fall {
  0%,  2%  { transform: translate(360px, 182px) scale(0.15); opacity: 0; }
  9%       { transform: translate(360px, 190px) scale(0.7);  opacity: 0.85; }
  15%      { transform: translate(360px, 200px) scale(1);    opacity: 1; }
  46%      { transform: translate(360px, 254px) scale(1);    opacity: 1; }
  62%      { transform: translate(360px, 300px) scale(0.92); opacity: 0; }
  100%     { transform: translate(360px, 300px) scale(0.92); opacity: 0; }
}

.fg-ripple {
  fill: none; stroke: rgba(255, 213, 222, 0.85); stroke-width: 1.6;
  transform-origin: 360px 310px;
  animation: tear-land 7s ease-out infinite;
  opacity: 0;
}
@keyframes tear-land {
  0%, 56% { transform: scale(0.2); opacity: 0; }
  62%     { transform: scale(0.5); opacity: 0.8; }
  78%     { transform: scale(1.9); opacity: 0; }
  100%    { transform: scale(1.9); opacity: 0; }
}

/* ---------- заголовок ---------- */

.fg-kicker {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em;
  color: var(--text-faint); margin-bottom: 16px;
}
.fg-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 6.6vw, 74px); line-height: 0.98; letter-spacing: -0.04em;
  margin: 0 0 18px;
}
.fg-title em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--accent);
  text-shadow: 0 0 48px rgba(228, 135, 154, 0.55);
}
.fg-sub {
  max-width: 620px; margin: 0 auto; font-size: 17px; line-height: 1.62; color: var(--text-dim);
}

/* ---------- текст ---------- */

.fg-body { max-width: 640px; margin: 0 auto; padding: 44px 0 8px; }
.fg-body p { font-size: 17px; line-height: 1.72; color: var(--text-dim); margin: 0 0 20px; }
.fg-body p strong { color: var(--text); font-weight: 600; }
.fg-lead { font-size: 19px !important; color: var(--text) !important; }

/* ---------- предложение: консультация ---------- */

.fg-offer {
  margin: 30px 0 6px; padding: 30px 30px 28px;
  border: 1px solid rgba(255, 213, 222, 0.34); border-radius: 20px;
  background: linear-gradient(168deg, rgba(255, 213, 222, 0.09), rgba(255, 255, 255, 0.02) 62%);
}
.fg-offer-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.fg-offer-price {
  font-family: var(--font-head); font-weight: 800; font-size: 40px; letter-spacing: -0.03em;
  color: #FFD5DE; text-shadow: 0 0 30px rgba(255, 213, 222, 0.5);
}
.fg-slot {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  color: #FFD5DE; border: 1px solid rgba(255, 213, 222, 0.42);
  border-radius: 999px; padding: 6px 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.fg-slot i {
  width: 6px; height: 6px; border-radius: 50%; background: #FFD5DE;
  box-shadow: 0 0 10px #FFD5DE; animation: slot-pulse 2.2s ease-in-out infinite;
}
@keyframes slot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.fg-offer h2 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.025em;
  font-size: clamp(21px, 3vw, 27px); line-height: 1.22; margin: 0 0 12px;
}
.fg-offer p { font-size: 15.5px; line-height: 1.7; color: var(--text-dim); margin: 0 0 16px; }

/* ---------- лестница цен ---------- */

.fg-ladder { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.fg-rung {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline;
  padding: 22px 26px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel);
}
.fg-rung-price {
  font-family: var(--font-head); font-weight: 800; font-size: 30px; letter-spacing: -0.03em;
  line-height: 1;
}
.fg-rung h3 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em;
  font-size: 17px; margin: 0 0 6px; line-height: 1.25; color: var(--text);
}
.fg-rung p { font-size: 14.5px; line-height: 1.62; color: var(--text-faint); margin: 0; }

/* Просто лендинг — красное */
.fg-red {
  border-color: rgba(255, 92, 92, 0.32);
  background: linear-gradient(150deg, rgba(255, 92, 92, 0.08), var(--panel) 64%);
}
.fg-red .fg-rung-price { color: #FF6B6B; text-shadow: 0 0 26px rgba(255, 92, 92, 0.45); }

/* Поиск проблем по ИИ-выдаче — золотое */
.fg-gold {
  border-color: rgba(232, 195, 106, 0.34);
  background: linear-gradient(150deg, rgba(232, 195, 106, 0.09), var(--panel) 64%);
}
.fg-gold .fg-rung-price {
  color: #F0D48A; text-shadow: 0 0 26px rgba(232, 195, 106, 0.45);
}

/* Полный сайт — тёмное в цветах сайта, и теперь это верхняя ступень:
   позиция за $10,000 («объяснение», чёрно-белая ступень .fg-mono-tier)
   снята с продажи 3 сентября 2026, вместе со своими стилями. */
.fg-violet {
  border-color: rgba(228, 135, 154, 0.34);
  background: linear-gradient(150deg, rgba(168, 58, 85, 0.18), var(--surface) 66%);
}
.fg-violet .fg-rung-price { color: var(--accent); text-shadow: 0 0 24px rgba(228, 135, 154, 0.4); }
.fg-top { border-color: rgba(228, 135, 154, 0.5); }

/* ---------- спойлер ---------- */

.fg-spoiler { margin-top: 26px; }
.fg-spoiler summary {
  cursor: pointer; list-style: none; text-align: center;
  padding: 20px 22px; border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--text-dim);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.fg-spoiler summary::-webkit-details-marker { display: none; }
.fg-spoiler summary:hover { border-color: rgba(255, 255, 255, 0.6); color: #FFF; }
.fg-spoiler[open] summary { opacity: 0.42; border-style: solid; }

/* Белое, с переливами и перезвоном. Единственный светлый блок на всём тёмном
   сайте — потому что и цены у него нет. Он обязан ударить по глазам после
   четырёх тёмных ступеней: в этом весь смысл спойлера. */
.fg-free {
  position: relative; overflow: hidden;
  margin-top: 12px; padding: 38px 30px 32px; border-radius: 18px;
  background: #FFFFFF;
  color: #0B0C10;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9),
              0 18px 60px rgba(168, 58, 85, 0.34),
              0 0 90px rgba(255, 255, 255, 0.18);
  animation: free-in 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes free-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* перелив: перламутр, медленно ползущий по белому */
.fg-free::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg,
    rgba(228, 135, 154, 0.22) 0%, rgba(255, 255, 255, 0) 26%,
    rgba(232, 195, 106, 0.20) 46%, rgba(255, 255, 255, 0) 62%,
    rgba(120, 200, 255, 0.20) 82%, rgba(255, 255, 255, 0) 100%);
  background-size: 260% 100%;
  animation: free-pearl 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes free-pearl { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* блик: белая полоса поперёк, поверх перламутра */
.fg-free::after {
  content: ""; position: absolute; inset: -60% -30%;
  background: linear-gradient(105deg,
    transparent 40%, rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.95) 51%, rgba(255, 255, 255, 0.55) 54%, transparent 62%);
  transform: translateX(-95%);
  animation: free-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes free-sheen {
  0%, 14% { transform: translateX(-95%); }
  50%, 100% { transform: translateX(95%); }
}

.fg-free-price {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(52px, 9vw, 78px);
  letter-spacing: -0.045em; line-height: 1; color: #0B0C10;
}
.fg-free h3 {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.025em;
  font-size: 22px; margin: 14px 0 10px; color: #0B0C10;
}
.fg-free p {
  position: relative; z-index: 1;
  font-size: 15px; line-height: 1.68; color: #4A4E5A;
  margin: 0 auto; max-width: 440px;
}

/* перезвон: три бубенца, те же, что на колпаках джокеров */
.fg-chimes { position: relative; z-index: 1; display: flex; justify-content: center; gap: 20px; margin-top: 18px; }
.fg-chime { width: 22px; height: 27px; color: #0B0C10; transform-origin: 50% 10%; }
.fg-chime:nth-child(1) { animation: chime 2.9s ease-in-out infinite; }
.fg-chime:nth-child(2) { animation: chime 3.4s ease-in-out infinite 0.35s; }
.fg-chime:nth-child(3) { animation: chime 3.1s ease-in-out infinite 0.7s; }
@keyframes chime {
  0%, 58%, 100% { transform: rotate(0deg); }
  66% { transform: rotate(15deg); }
  76% { transform: rotate(-11deg); }
  85% { transform: rotate(6deg); }
  93% { transform: rotate(-2.5deg); }
}

.fg-free-cta { position: relative; z-index: 1; margin-top: 24px; }


/* ---------- печать ----------
   Разговор запечатан: на белом блоке сургучная печать с клеймом сайта —
   тот же глаз со звездой, что в шапке. Она не декорация ради декорации,
   а единственное на странице, что говорит «это обещание, а не оферта». */
/* печать «прикладывается»: приходит сверху, чуть проседает, встаёт */

@media (max-width: 720px) {
}
@media (prefers-reduced-motion: reduce) {
}

/* ---------- низ ---------- */

.fg-close { max-width: 640px; margin: 0 auto; padding: 34px 0 70px; }
.fg-close p { font-size: 17px; line-height: 1.72; color: var(--text-dim); margin: 0 0 18px; }
.fg-sign { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--text-faint); }

@media (max-width: 720px) {
  .fg-hero { padding-top: 30px; }
  .fg-rung { grid-template-columns: 1fr; gap: 8px; padding: 20px 20px; }
  .fg-offer { padding: 24px 20px; }
  .fg-free { padding: 28px 20px 24px; }
}

/* Кому анимация мешает — тому её и не будет. Слеза и перезвон здесь
   украшение, а не смысл: страница читается ровно так же без них. */
@media (prefers-reduced-motion: reduce) {
  .fg-eye, .fg-eye *, .fg-joker, .jk-bell-a, .jk-bell-b, .jk-bell-c,
  .fg-tear, .fg-ripple, .fg-free::after, .fg-chime, .fg-slot i, .fg-free {
    animation: none !important;
  }
  .fg-tear, .fg-ripple { opacity: 0; }
}

/* формы внутри белого блока — тёмные поля на белом читались бы как дыра */
.fg-free .lead-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.fg-free .lead-form input {
  background: rgba(11, 12, 16, 0.05); border-color: rgba(11, 12, 16, 0.22); color: #0B0C10;
}
.fg-free .lead-form input::placeholder { color: #8A8E9A; }
.fg-free .lead-form input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(168, 58, 85, 0.18);
}
/* Кнопка на белой карточке — бордовая, а не чёрная: белым по #A83A55 это
   6.17:1, то есть законно, и единственное цветное пятно на белом поле стоит
   ровно там, куда надо нажать. */
.fg-free .lf-send {
  color: #FFFFFF; background: var(--brand); box-shadow: 0 8px 24px rgba(168, 58, 85, 0.34);
}
.fg-free .lf-send:hover { background: #BC4360; }
.fg-free .lf-msg { color: #6A6E7A; }
.fg-free .lf-msg.ok { color: #0B7A45; }
.fg-free .lf-msg.err { color: #C0392B; }
.fg-free .lf-msg a { color: var(--brand); }
@media (max-width: 720px) { .fg-free .lead-form { grid-template-columns: minmax(0, 1fr); } }


/* Две двери в телеграм в конце страницы: тому, кто дочитал прайс до низа и
   всё ещё не хочет оставлять почту, больше идти некуда. */
.fg-doors { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; }
.fg-door {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 11px 18px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(228, 135, 154, 0.32); background: rgba(168, 58, 85, 0.08);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.fg-door:hover { border-color: var(--accent); background: rgba(168, 58, 85, 0.16); transform: translateY(-2px); }
.fg-door b { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--accent); font-weight: 400; }
.fg-door span { font-size: 14px; color: var(--text-dim); }
