/* FormaAI · D «Стекло»: тёмный liquid glass, розово-фиолетовый акцент только на главном. */

:root {
  --bg: #08070C;
  --bg-1: #0C0B11;
  --text: #F5F4F8;
  --text-2: #E7E5EC;
  --muted: #A6A3B0;
  --dim: #7F7C8A;
  --pink: #EE6CC4;
  --violet: #8E7DFF;
  --green: #5BE3A0;
  --amber: #FFC44D;
  --red: #FF6B8A;
  --cyan: #9FE9FF;
  --grad: linear-gradient(135deg, var(--pink), var(--violet));
  --brand: linear-gradient(90deg, #FF7AC8, #B88CFF 55%, #7FE3FF);
  --line: rgba(255, 255, 255, .07);
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  --glass-border: rgba(255, 255, 255, .09);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  background:
    radial-gradient(900px 700px at 85% -10%, rgba(255, 79, 184, .13), transparent 60%),
    radial-gradient(800px 800px at -10% 30%, rgba(124, 77, 255, .15), transparent 60%),
    radial-gradient(700px 600px at 60% 70%, rgba(120, 140, 255, .06), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 60%, #060509 100%);
  background-attachment: fixed;
}
a { color: #E7A6D6; }
a:hover { color: #FFC2E6; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.muted { color: var(--muted); }
.brand { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- Материалы ---------- */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  backdrop-filter: blur(32px) saturate(140%);
}
.glass2 { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.glass--hot {
  background: linear-gradient(160deg, rgba(255, 79, 184, .10), rgba(155, 92, 255, .06) 50%, rgba(255, 255, 255, .02));
  border-color: rgba(255, 170, 225, .16);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #1A1622; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Кнопки и чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 600 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
  transition: transform .1s ease-out, filter .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn--p { background: var(--grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px rgba(255, 79, 184, .2); }
.btn--p:hover { color: #fff; filter: brightness(1.08); }
.btn--g { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.btn--g:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.btn--block { width: 100%; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.tag-example { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; color: var(--amber); background: rgba(255, 196, 77, .12); box-shadow: inset 0 0 0 1px rgba(255, 196, 77, .3); }
.coin { width: 20px; height: 20px; border-radius: 50%; background: var(--amber); color: #3A2400; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Эмблема: цвета клуба по диагонали, блик сверху, тень снизу */
.crest {
  position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 225deg, var(--c1, #666) 0 50%, var(--c2, #999) 0);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16), 0 3px 8px rgba(0, 0, 0, .5), inset 0 -2px 4px rgba(0, 0, 0, .35);
}
.crest::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 38%, transparent 55%),
              radial-gradient(circle at 50% 115%, rgba(0, 0, 0, .5), transparent 60%);
}

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 10; padding-top: 18px; }
.header__bar { border-radius: 999px; padding: 8px 8px 8px 20px; }
.logo { text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(255, 255, 255, .1); }
.header__side { display: flex; gap: 8px; align-items: center; }
.balance { background: linear-gradient(135deg, rgba(255, 196, 77, .25), rgba(255, 140, 60, .15)); box-shadow: inset 0 0 0 1px rgba(255, 196, 77, .4); color: var(--text); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--grad); }
.cabinet { padding: 0 14px 0 5px; height: 40px; color: var(--text); }
/* bot — мини-приложение, site — браузер с входом по почте, browser — гость */
[data-mode="browser"] .only-bot, [data-mode="bot"] .only-browser, [data-mode="site"] .only-browser { display: none !important; }
.field { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 16px; box-sizing: border-box; }
.field:focus { outline: 2px solid var(--pink); outline-offset: 1px; }
.field-label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form-msg { min-height: 20px; font-size: 14px; color: var(--muted); }
.form-msg.is-error { color: var(--red); }
.form-msg.is-ok { color: var(--green); }

/* ---------- Фото за стеклом ---------- */
.photo {
  position: absolute; left: 0; right: 0; top: 0; height: 1150px; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent); mask-image: linear-gradient(180deg, #000 35%, transparent);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; opacity: .42; filter: saturate(.55) brightness(.8); }

/* ---------- Первый экран ---------- */
.hero { padding-top: 64px; display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero__copy { flex: 1 1 480px; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero__badge { align-self: flex-start; height: 32px; font-size: 13px; }
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.h1 { font-weight: 800; font-size: clamp(42px, 5.4vw, 76px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.5; max-width: 500px; color: var(--muted); }

.bet-form { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; max-width: 600px; }
.bet-field { position: relative; flex: 1 1 240px; display: flex; min-width: 0; }
.bet-field input {
  width: 100%; height: 52px; padding: 0 18px; border: 0; background: transparent; color: var(--text);
  font: 500 16px -apple-system, BlinkMacSystemFont, Inter, sans-serif; outline: none;
}
.bet-field input::placeholder { color: transparent; }
.typing {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 18px; pointer-events: none;
  font: 500 16px -apple-system, BlinkMacSystemFont, Inter, sans-serif; color: var(--text); opacity: .6; white-space: nowrap; overflow: hidden;
}
.typing i { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; background: var(--pink); animation: blink 1s steps(1) infinite; }
.bet-field input:focus ~ .typing, .bet-field input:not(:placeholder-shown) ~ .typing { opacity: 0; }
.bet-form .btn { height: 52px; animation: attn 2.2s ease-in-out infinite; }
.bet-form:focus-within { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 3px rgba(238, 108, 196, .25); }

/* Панель ближайших матчей */
.matches { flex: 1 1 440px; max-width: 520px; border-radius: 32px; padding: 16px; display: flex; flex-direction: column; }
.matches__note { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 14px; border-radius: 18px; background: rgba(255, 196, 77, .08); box-shadow: inset 0 0 0 1px rgba(255, 196, 77, .22); font-size: 13px; color: #F1E3C4; }
.matches__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.matches__list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.day { border-radius: 22px; padding: 8px 12px; }
.day__head { padding: 6px 2px 8px; }
.match {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  width: 100%; padding: 9px 2px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: 14px;
}
.match__teams { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.match__league { display: block; font-size: 11px; font-weight: 600; margin-top: 2px; }
.match__go { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .15s; }
.match:hover .match__go, .match:focus-visible .match__go { background: var(--grad); box-shadow: none; color: #fff; }
.matches__all { margin-top: auto; padding: 14px 8px 4px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; }
.skeleton { height: 44px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }

/* ---------- Секции ---------- */
.section { padding-top: 120px; }
.h2 { font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -.03em; }
.sub { margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 620px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.step { border-radius: 28px; padding: 24px; }
.step__n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-weight: 800; }
.step:first-child .step__n { background: var(--grad); }
.step b { display: block; font-size: 19px; margin-top: 16px; letter-spacing: -.01em; }
.step p { margin-top: 6px; line-height: 1.55; color: var(--muted); }

.daily { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.daily__copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.daily__copy .btn { align-self: flex-start; margin-top: 8px; }
.daily__card { flex: 1 1 460px; border-radius: 30px; padding: 10px; }
.daily__main { padding: 16px 18px; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 79, 184, .11), rgba(155, 92, 255, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.daily__alt { padding: 14px 18px; }
.daily__alt + .daily__alt, .daily__foot { border-top: 1px solid rgba(255, 255, 255, .08); }
.daily__foot { padding: 10px 18px 12px; font-size: 12px; color: var(--muted); }

/* Витрина карточки: ноутбук + телефон */
.showcase { position: relative; height: 640px; margin-top: 40px; }
.mac { position: absolute; left: 0; top: 0; width: min(900px, 76%); }
.mac__screen {
  height: 540px; border-radius: 22px 22px 0 0; border: 10px solid #1A191F; border-bottom: 0; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  background: #0B0A10;
}
.mac__base { height: 18px; margin: 0 -50px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #3A3942, #1C1B21); box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.phone {
  position: absolute; right: 40px; top: 60px; width: 270px; height: 560px; padding: 12px; border-radius: 44px; background: #1A191F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #0B0A10; }
.phone__screen::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 10px; width: 84px; height: 24px; margin-left: -42px; border-radius: 999px; background: #000; }
/* Внутри устройств живая карточка разбора в уменьшенном виде */
.device-frame { border: 0; display: block; transform-origin: 0 0; pointer-events: none; background: transparent; }
.mac .device-frame { width: 1440px; height: 864px; transform: scale(.611); }
.phone .device-frame { width: 390px; height: 800px; transform: scale(.631); margin-top: 30px; }

/* Подписка */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 28px;
  text-align: left; cursor: pointer; transition: transform .15s var(--ease);
}
.plan:hover { transform: translateY(-2px); }
.plan__radio { position: absolute; top: 22px; right: 22px; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.plan__price { font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.plan__off { font-size: 13px; color: var(--green); font-weight: 700; }
.plan__top { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.plan[aria-checked="true"] {
  border: 2px solid transparent;
  background: linear-gradient(160deg, rgba(40, 22, 48, .92), rgba(22, 18, 40, .92)) padding-box,
              linear-gradient(135deg, #FF7AC8, #8E7DFF 60%, #7FE3FF) border-box;
  box-shadow: 0 0 0 6px rgba(238, 108, 196, .1), 0 24px 60px rgba(238, 108, 196, .18);
}
.plan[aria-checked="true"] .plan__radio { box-shadow: none; background: radial-gradient(circle, #fff 0 4px, transparent 5px), var(--grad); }
.plans__cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

.faq { border-radius: 22px; padding: 20px 22px; margin-bottom: 10px; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); line-height: 1.6; margin-top: 10px; }

.footer { padding: 70px 24px 36px; font-size: 14px; color: var(--muted); }
.footer__note { max-width: 640px; margin-bottom: 14px; line-height: 1.5; }
.footer__row { flex-wrap: wrap; gap: 8px 24px; }
.footer__links { display: flex; gap: 18px; align-items: center; }
.footer__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--text); }
.age { color: var(--text); background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px 9px; margin-right: 10px; font-weight: 700; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Движение ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes attn { 0%, 100% { box-shadow: 0 0 0 0 rgba(238, 108, 196, .55); } 60% { box-shadow: 0 0 0 9px rgba(238, 108, 196, 0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes draw { from { stroke-dashoffset: 100; } }
.rise { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Телефон ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header { padding-top: 12px; }
  .header__bar { padding: 6px 6px 6px 16px; }
  .header .wrap { padding: 0 12px; }
  .nav, .header__cta-text { display: none; }
  .photo { height: 760px; }
  .photo img { object-position: 55% 22%; }
  .hero { padding-top: 44px; gap: 28px; }
  .h1 { font-size: 44px; line-height: 1.02; }
  .lead { font-size: 16px; }
  .bet-form { flex-direction: column; border-radius: 28px; }
  .bet-field { flex: none; }
  .bet-form .btn { width: 100%; }
  .hero__note { text-align: center; }
  .matches { margin: 0 -4px; padding: 14px 12px; border-radius: 30px; }
  .match { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .section { padding-top: 72px; }
  .h2 { font-size: 30px; }
  .sub { font-size: 15px; }
  .step { display: flex; gap: 14px; padding: 18px; border-radius: 24px; }
  .step b { margin-top: 0; font-size: 17px; }
  .step p { font-size: 14px; margin-top: 4px; }
  .daily { gap: 18px; }
  .daily__copy .btn { align-self: stretch; }
  .showcase { height: auto; display: flex; justify-content: center; }
  .mac { display: none; }
  .phone { position: relative; right: auto; top: auto; }
  .plans { grid-template-columns: 1fr; gap: 8px; }
  .plan { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 14px 16px 14px 48px; border-radius: 22px; }
  .plan__radio { left: 16px; right: auto; top: 50%; margin-top: -11px; }
  .plan__name { flex: 1 1 60%; }
  .plan__price { font-size: 22px; order: 2; }
  .plan__per { flex-basis: 100%; order: 3; font-size: 12px; }
  .plans__cta .btn { width: 100%; }
  .faq summary { font-size: 16px; }
  .footer { padding: 40px 16px 32px; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* Промокод менеджера: заметный блок в шторках покупки и в регистрации */
.promo-box { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; margin-top: 12px; padding: 14px;
  border-radius: 20px; background: linear-gradient(135deg, rgba(255, 196, 77, .13), rgba(255, 79, 184, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 196, 77, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.promo-box__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 196, 77, .16); }
.promo-box__body { display: grid; gap: 2px; min-width: 0; grid-column: 2 / -1; }
.promo-box__body b { font-size: 15px; color: var(--text); }
.promo-box__body small { font-size: 12px; line-height: 1.35; color: var(--text-2); }
.promo-box__field { grid-column: 1 / 3; min-width: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.promo-box__field::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.promo-box__btn { grid-column: 3; }
.promo-box__msg { grid-column: 1 / -1; min-height: 0; }
.promo-box__msg:empty { display: none; }
.promo-box--reg .promo-box__field { grid-column: 1 / -1; }
.promo-box--on { grid-template-columns: 40px minmax(0, 1fr); }
.promo-box--on .promo-box__body { grid-column: 2; }
.promo-box--on .promo-box__body b { color: var(--green); }

/* Промокод в шторках покупки (старый вид) */
.promo { margin-top: 6px; }
.promo summary { list-style: none; display: inline-block; }
.promo summary::-webkit-details-marker { display: none; }
.promo__form { display: flex; gap: 8px; margin-top: 4px; }
.promo__form .field { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.promo__form .btn { flex: none; }
.promo .form-msg { margin-top: 6px; }
.promo-on { color: var(--green); }
