/* =========================================================
   BetBurger — Home Page (Designer)
   Макет: Figma «BB: Homepage (Claude)», фрейм 1440 px
   ========================================================= */

/* ---------- Fonts ----------
   Geologica — ближайший к Poppins шрифт с поддержкой кириллицы
   (геометрический гротеск, ширина латиницы и кириллицы ≈ как в макете).
   Подмножество: латиница, кириллица, знаки €, ₽, №, →, ≈, −. */
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/geologica-400.woff2) format('woff2'); }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/geologica-500.woff2) format('woff2'); }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/geologica-600.woff2) format('woff2'); }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/geologica-700.woff2) format('woff2'); }
/* Poppins (латиница) — только в шапке и подвале, как в макете */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --green: #4ec2a5;
  --green-dark: #437464; /* было #589883; затемнено 10.11 для контраста 5:1 */
  --green-tint: rgba(117, 190, 166, .15);
  --blue-tint: rgba(117, 146, 190, .15);
  --red: #ef4059;
  --red-hover: #e02d47;
  --dark-green: #2a3d4b;
  --brand-dark: #223e4c;
  --dark-gray: #616c75; /* было #7a8691; затемнено 10.11 для контраста 5:1 */
  --gray-2: #bcc5c9;
  --gray-light: #dde2e8;
  --gray-light-3: #eef2f7;
  --bg-light: #f4f9fb;
  --link: #42a5ff;
  --white: #fff;
  --shadow-smooth:
    0 51px 104px rgba(42, 61, 75, .06),
    0 18.616px 37.962px rgba(42, 61, 75, .04),
    0 9.038px 18.43px rgba(42, 61, 75, .03),
    0 4.43px 9.035px rgba(42, 61, 75, .03),
    0 1.752px 3.572px rgba(42, 61, 75, .02);
  --font: 'Geologica', 'Segoe UI', Arial, sans-serif;
  --font-latin: 'Poppins', 'Geologica', 'Segoe UI', Arial, sans-serif;
}
/* Английская версия (основная, /) — шрифт макета Poppins; русская (/ru/) — Geologica (кириллица) */
html[lang="en"] { --font: 'Poppins', 'Segoe UI', Arial, sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 1240px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--dark-green);
  font-family: var(--font);
  font-size: 14px;
  line-height: 24px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
b, strong { font-weight: inherit; }
em, i { font-style: normal; }
hr { margin: 0; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { position: relative; width: 1170px; margin: 0 auto; }
.wrap--wide { width: 1171px; margin-left: calc(50% - 586px); margin-right: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Typography ---------- */
.eyebrow {
  font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .6px;
  text-transform: uppercase; color: var(--green-dark);
}
.h2 {
  font-weight: 700; font-size: 32px; line-height: 42px; letter-spacing: .32px;
  text-transform: uppercase; color: var(--dark-green);
}
.h3 { font-weight: 600; font-size: 24px; line-height: 31px; letter-spacing: .24px; color: var(--dark-green); }
.text { font-weight: 400; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-gray); }

/* ---------- Buttons & small UI ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border-radius: 4px;
  font-weight: 600; font-size: 14px; line-height: 24px; letter-spacing: .14px;
  white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s;
}
.btn--red { padding: 12px 32px; background: var(--red); color: var(--bg-light); }
.btn--red:hover { background: var(--red-hover); }
.btn--green { padding: 12px 32px; background: var(--green); color: var(--bg-light); }
.btn--green:hover { background: var(--green-dark); }
.btn--outline { padding: 10px 30px; border: 2px solid var(--green); color: var(--brand-dark); }
.btn--outline:hover { background-color: var(--green); color: var(--white); }
.btn img { transition: transform .2s; }
.btn:hover img { transform: translateX(3px); }

.link-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  font-weight: 600; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-green);
  white-space: nowrap;
}
.link-btn img { transition: transform .2s; }
.link-btn:hover img { transform: translateX(4px); }

.tabs {
  display: inline-flex; gap: 8px; padding: 4px;
  border: 1px solid var(--gray-light); border-radius: 8px;
}
.tabs__btn {
  height: 32px; padding: 6px 14px; border: 2px solid var(--white); border-radius: 4px;
  background: var(--white); color: var(--dark-green);
  font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .12px; white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.tabs__btn:hover { border-color: var(--green); }
.tabs__btn.is-active { background: var(--green); border-color: var(--green); color: var(--white); cursor: default; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px;
  font-weight: 500; font-size: 10px; line-height: 24px; letter-spacing: .1px;
  text-transform: uppercase; color: var(--green-dark); white-space: nowrap;
}
.chip-label {
  display: inline-flex; align-items: center; padding: 4px 12px;
  background: rgba(255, 255, 255, .5); border: 1px solid var(--gray-light-3); border-radius: 8px;
  font-weight: 500; font-size: 10px; line-height: 24px; letter-spacing: .1px;
  text-transform: uppercase; color: var(--green-dark); white-space: nowrap;
}
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px;
  font-weight: 500; font-size: 10px; line-height: 16px; letter-spacing: .1px; color: var(--green-dark); white-space: nowrap;
}
.icon-box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 8px; background: var(--green-tint);
}
.icon-box--32 { width: 32px; height: 32px; }
.num-box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 8px; background: var(--green-tint);
  font-weight: 600; font-size: 12px; line-height: 24px; letter-spacing: .12px; color: var(--dark-green);
}
.num-box--blue { background: var(--blue-tint); }
.num-box--grey { background: #eaeff5; }
.num-box--14 { font-size: 14px; letter-spacing: .14px; }

.bullets { display: flex; flex-direction: column; gap: 8px; padding-left: 16px; }
.bullets li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-gray); white-space: nowrap;
}
.bullets li::before {
  content: ''; flex: none; width: 8px; height: 8px;
  background: url(../img/icons/bullet.svg) no-repeat center / 8px 8px;
}

.card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px;
  box-shadow: var(--shadow-smooth);
}

/* browser mock */
.browser {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 16px;
  box-shadow: var(--shadow-smooth);
}
.browser__bar {
  position: absolute; left: -1px; top: -1px; width: 570px; height: 48px; overflow: hidden;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 16px 16px 0 0;
}
.browser__dots { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }
.browser__url {
  position: absolute; top: 13px; font-size: 10px; line-height: 20px; letter-spacing: .1px;
  color: var(--dark-gray); white-space: nowrap;
}
.browser__url--hero { left: calc(50% - 57px); }
.browser__url--help { left: calc(50% - 90px); }
.browser__plus {
  position: absolute; left: 533px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: 1px solid var(--gray-light); border-radius: 4px;
}
.browser__plus::before, .browser__plus::after {
  content: ''; position: absolute; left: 4px; top: 8px; width: 10px; height: 2px;
  border-radius: 1px; background: var(--gray-light);
}
.browser__plus::after { transform: rotate(90deg); }

/* ---------- Section helpers ---------- */
.section { margin-top: 100px; }
.section--grey { background: var(--bg-light); padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-head__titles { display: flex; flex-direction: column; gap: 8px; width: 451px; }
.section-head__aside { font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-gray); white-space: nowrap; }

/* Шапка и подвал — см. bb-header-footer.css (копия betburger.com) */

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--bg-light); }
.hero__inner { height: 714px; display: flow-root; }

.hero__deco { position: absolute; left: 608px; top: 0; width: 630px; height: 640px; pointer-events: none; }
.hero__ring { position: absolute; left: 0; top: 10px; width: 630px; height: 630px; border: 1px solid var(--gray-light); border-radius: 50%; }
.hero__ring-dashed { position: absolute; left: 32px; top: 42px; }
.hero__dot { position: absolute; }
.hero__dot--green { left: 303px; top: 0; }
.hero__dot--side { left: 579px; top: 245px; }

.hero__badge { position: absolute; left: 0; top: 62px; }
.hero__title {
  position: absolute; left: 0; top: 112px; width: 542px;
  font-weight: 700; font-size: 40px; line-height: 52px; letter-spacing: .4px;
  text-transform: uppercase; color: var(--brand-dark);
}
.hero__title .accent { color: var(--green); }
.hero__lead {
  /* в потоке: кнопки сдвигаются вниз, если текст длиннее */
  position: relative; margin-top: 292px; width: 570px;
  font-size: 16px; line-height: 32px; letter-spacing: .16px; color: var(--dark-gray);
}
.hero__cta { position: relative; margin-top: 40px; width: 464px; display: flex; flex-direction: column; gap: 12px; }
.hero__cta-row { display: flex; align-items: center; gap: 32px; }
.hero__note { font-size: 12px; line-height: 24px; letter-spacing: .12px; color: var(--brand-dark); }

.watch {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-green); white-space: nowrap;
}
.watch__icon {
  display: flex; align-items: center; padding: 8px;
  border: 1px solid var(--gray-light); border-radius: 9999px; transition: border-color .2s, background-color .2s;
}
.watch:hover .watch__icon { border-color: var(--green); background: var(--white); }


.hero__browser { position: absolute; left: 600px; top: 62px; width: 570px; height: 494px; }
.hero__shot { position: absolute; left: -1px; top: 57px; width: 570px; height: 436px; overflow: hidden; background: var(--gray-2); }
.hero__shot img { width: 570px; height: auto; }
.hero__shot-user {
  position: absolute; left: 539px; top: 3px; width: 24px; height: 9px; padding: 2px 0 0 1px; overflow: hidden;
  background: #222; color: var(--white); font-size: 5px; line-height: 5px; letter-spacing: .05px; white-space: nowrap;
}
.hero__tabs { position: absolute; left: 7px; top: 7px; }

.float-card {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px; box-shadow: var(--shadow-smooth);
}
.hero__float { position: absolute; left: 551px; top: 462px; z-index: 2; }
.float-card__text { display: flex; flex-direction: column; }
.float-card__text strong { font-weight: 600; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-green); white-space: nowrap; }
.float-card__text span { width: 261px; font-weight: 500; font-size: 12px; line-height: 16px; letter-spacing: .12px; color: var(--dark-gray); }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  z-index: 3; margin-top: -72px; height: 144px; padding: 32px 75px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: 8px; box-shadow: var(--shadow-smooth);
}
.stats__item { display: flex; flex-direction: column; }
.stats__item b { font-weight: 600; font-size: 40px; line-height: 52px; letter-spacing: .4px; text-transform: uppercase; color: var(--dark-green); white-space: nowrap; }
.stats__item i { color: var(--green); }
.stats__item span { font-weight: 500; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-gray); white-space: nowrap; }
.stats__item--live { gap: 4px; }
.stats__item--live b { font-weight: 700; font-size: 24px; line-height: 24px; letter-spacing: .24px; }
.stats__divider { width: 1px; height: 80px; background: var(--gray-light-3); }

/* =========================================================
   SUREBETS / VALUEBETS
   ========================================================= */
.compare { height: 519px; }
.compare__tabs { position: absolute; left: 31px; top: 31px; z-index: 2; }
.compare__content { position: absolute; left: 31px; top: 97px; width: 517px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.compare__panel {
  position: absolute; right: -1px; top: -1px; bottom: -1px; width: 585px;
  background: var(--bg-light); border-radius: 0 8px 8px 0; overflow: hidden;
}
.compare__label { position: absolute; left: 32px; top: 36px; }
.compare__calc { position: absolute; left: 32px; top: 98px; width: 521px; display: flex; flex-direction: column; gap: 24px; }
.compare__divider { position: absolute; left: 32px; top: 309px; width: 521px; height: 1px; background: var(--gray-light); }
.compare__summary { position: absolute; left: 32px; top: 415px; width: 521px; display: flex; flex-direction: column; gap: 12px; }
.compare__result { font-weight: 600; font-size: 18px; line-height: 24px; letter-spacing: .18px; color: var(--dark-green); }
.compare__result em { color: var(--green); }
.compare__result--medium { font-weight: 500; }
.compare__result--medium em, .compare__result--medium b { font-weight: 600; }
.compare__foot { font-size: 10px; line-height: 16px; letter-spacing: .1px; color: var(--dark-gray); }

.rows { display: flex; flex-direction: column; gap: 16px; }
.row {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px;
}
.row__main { display: flex; align-items: center; gap: 10px; }
.row__text { display: flex; flex-direction: column; }
.row__text b { font-weight: 600; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-green); white-space: nowrap; }
.row__text span { font-size: 12px; line-height: 16px; letter-spacing: .12px; color: var(--dark-gray); }
.row__value { font-weight: 600; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-green); white-space: nowrap; }

.totals { position: absolute; left: 32px; top: 334px; width: 521px; display: flex; align-items: center; gap: 32px; }
.totals__box {
  flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px;
}
.totals__box span { font-weight: 500; font-size: 10px; line-height: 16px; letter-spacing: .1px; color: var(--dark-green); }
.totals__box--grey span { color: var(--dark-gray); }
.totals__box b { font-weight: 600; font-size: 24px; line-height: 31px; letter-spacing: .24px; color: var(--dark-green); white-space: nowrap; }
.totals__box b.is-green { color: var(--green); }
.totals__box b.is-red { color: var(--red); }
.row__value.is-green { color: var(--green); }
.compare__kpis { position: absolute; left: 32px; top: 334px; width: 521px; display: flex; gap: 16px; }
.compare__kpis .row { flex: 1 1 auto; min-width: 0; }
.row__text b em { font-style: normal; color: var(--green); }
.compare__summary--roi { top: 408px; }
.totals__sep { display: flex; align-items: center; justify-content: center; width: 24px; height: 31px; font-weight: 600; font-size: 24px; line-height: 31px; letter-spacing: .24px; }
.totals__or { font-weight: 500; font-size: 16px; line-height: 21px; letter-spacing: .16px; }

/* =========================================================
   3 STEPS
   ========================================================= */
.steps__inner { display: flex; align-items: flex-start; justify-content: space-between; }
.steps__left { width: 521px; display: flex; flex-direction: column; gap: 40px; }
.steps__list { display: flex; flex-direction: column; gap: 24px; }
.step {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 24px 8px 12px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px;
  transition: border-color .2s;
}
.step { cursor: pointer; outline: none; }
.step.is-active { border-color: var(--green); }
.step:focus-visible { box-shadow: 0 0 0 3px rgba(78, 194, 165, .25); }
.step__main { display: flex; align-items: center; gap: 10px; }
.steps__shot { position: relative; width: 570px; height: 370px; overflow: hidden; border-radius: 8px; flex: none; }
.steps__img { position: absolute; left: 0; top: 0; width: 570px; height: auto; }
/* Подсветка зоны скриншота: затемнение вокруг + красная рамка (как в макете).
   Положение задаётся через --hl-left / --hl-width из designer.js */
.steps__highlight {
  --ease: cubic-bezier(.7, 0, .2, 1);
  position: absolute; top: 0; left: var(--hl-left, 0px); width: var(--hl-width, 49px); height: 370px;
  border: 2px solid var(--red); border-radius: 8px;
  box-shadow: 0 0 0 600px rgba(0, 0, 0, .5);
  transition: left .7s var(--ease), width .7s var(--ease);
  pointer-events: none;
}
.steps__highlight::after {
  content: ''; position: absolute; inset: -2px; border: 2px solid var(--red); border-radius: inherit;
  animation: hl-halo 2s ease-out infinite;
}
@keyframes hl-halo {
  0% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .steps__highlight { transition: none; }
  .steps__highlight::after { animation: none; display: none; }
}

/* =========================================================
   VIDEO
   ========================================================= */
.video { height: 376px; }
.video__media { position: absolute; left: -1px; top: -1px; width: 670px; height: 376px; overflow: hidden; background: #07091a; }
.video__media.is-playing { background: #000; }
.video__poster { position: absolute; left: 50%; top: 0; transform: translateX(calc(-50% + .5px)); width: 669px; height: 376px; object-fit: cover; }
.video__player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video__media.is-playing .video__poster, .video__media.is-playing .video__play { display: none; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; border-radius: 9999px; background: rgba(255, 255, 255, .2);
  transition: background-color .2s, transform .2s;
}
.video__play:hover { background: rgba(255, 255, 255, .3); transform: translate(-50%, -50%) scale(1.05); }
.video__tabs { position: absolute; left: 727px; top: 31px; z-index: 2; }
.video__content {
  position: absolute; left: 727px; top: 221px; transform: translateY(-50%); width: 357px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.video__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* =========================================================
   PLANS
   ========================================================= */
.plans__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
/* карточки в ряду одной высоты, кнопка прижата к низу */
.plan > .btn { margin-top: auto; }
.plan {
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding: 31px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}
/* Выделенная карточка (Live в макете): рамка 4px Green 50%. При наведении выделение переходит на карточку под курсором */
.plan.is-featured, .plans__grid:hover .plan:hover { padding: 28px; border: 4px solid rgba(78, 194, 165, .5); }
.plans__grid:hover .plan.is-featured:not(:hover) { padding: 31px; border: 1px solid var(--gray-light-3); }
/* Telegram: та же сетка, что у API — блок с текстом занимает свободную высоту и центрируется, как в соседней карточке */
.plan__media-row { flex: 1 0 auto; }
.plan__top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.plan__body { display: flex; flex-direction: column; gap: 8px; }
.plan__title { font-weight: 600; font-size: 24px; line-height: 36px; letter-spacing: .24px; color: var(--dark-green); white-space: nowrap; }
.plan__media-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.plan__media-row .plan__body { flex: 1 0 0; min-width: 1px; }
.plan__code {
  position: relative; flex: none; width: 132px; height: 132px; overflow: hidden;
  background: #832121; border: 4px solid var(--white); border-radius: 12px; box-shadow: var(--shadow-smooth);
}
.plan__code img { position: absolute; left: -3.5px; top: -4px; width: 271px; height: 173px; object-fit: cover; }
.plan__plane { flex: none; }

.flow { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.flow__line { display: flex; align-items: center; justify-content: space-between; }
.flow__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9999px; background: var(--bg-light); }
.flow__bar { width: 141px; height: 2px; border-radius: 4px; background: var(--gray-light-3); }
.flow__labels { display: flex; justify-content: space-between; font-size: 12px; line-height: 20px; letter-spacing: .12px; color: var(--dark-green); }

.live-graph { position: relative; width: 100%; height: 68px; }
.live-graph img { position: absolute; left: -.5px; top: 13px; }
.live-graph__dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-light-3); }
.live-graph__dot--start { left: -.5px; top: 51px; }
.live-graph__dot--end { left: 496.5px; top: 31px; }

/* =========================================================
   EVENTS / ODDS HISTORY
   ========================================================= */
.events { height: 473px; }
.events__panel {
  position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 585px; height: 473px; background: var(--bg-light); border-radius: 0 8px 8px 0;
}
.events__img {
  position: absolute; left: -36px; top: 50%; transform: translateY(-50%);
  width: 589px; height: 257px; object-fit: cover; border: 1px solid var(--gray-light-3); border-radius: 8px; box-shadow: var(--shadow-smooth);
}
.events__img--history { height: 241px; }
.events__content { position: absolute; left: 31px; top: 31px; width: 517px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.events__body { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 100%; }
.events__body .text strong { font-weight: 400; color: var(--dark-green); }
.events__body .text { max-width: 480px; }
.events__main { display: flex; flex-direction: column; gap: 32px; width: 100%; }
/* Переключатель сверху, кнопки снизу, заголовок с текстом — посередине (EN и RU) */
.events__content { bottom: 31px; justify-content: space-between; }
.events__body { display: contents; }
.events__actions { display: flex; align-items: center; gap: 32px; }


/* =========================================================
   REVIEWS
   ========================================================= */
.reviews__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 64px; }
.reviews__title-row { display: flex; align-items: center; justify-content: space-between; }
.reviews__title-row .h2 { white-space: nowrap; }
.stars { display: flex; gap: 8px; }
.reviews__list { display: flex; align-items: stretch; gap: 32px; }
.review {
  flex: 1 0 0; min-width: 1px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 20px;
  background: var(--white); border: 1px solid var(--gray-light-3); border-radius: 8px; overflow: hidden;
}
.review blockquote { font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-green); }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author img { width: 40px; height: 40px; border-radius: 9999px; object-fit: cover; background: #fbf9f9; }
.review__author > span { display: flex; flex-direction: column; width: 106px; line-height: 16px; }
.review__author b { font-weight: 500; font-size: 12px; letter-spacing: .12px; color: var(--dark-green); }
.review__author b + span { font-size: 10px; letter-spacing: .1px; color: var(--dark-gray); }

/* =========================================================
   HELP CENTER
   ========================================================= */
.learn { margin-top: 104px; }
.learn__inner { display: flex; align-items: flex-start; gap: 130px; }
.learn__browser { flex: none; width: 570px; padding: 32px 0; display: flex; flex-direction: column; align-items: center; }
.learn__content { width: 100%; padding: 0 32px; display: flex; flex-direction: column; gap: 12px; }
.learn__title-row { display: flex; align-items: flex-start; gap: 20px; }
.learn__title { font-weight: 600; font-size: 24px; line-height: 32px; letter-spacing: .24px; color: var(--dark-green); white-space: nowrap; }
.free-badge {
  padding: 4px 12px; border-radius: 8px; background: var(--red);
  font-weight: 700; font-size: 10px; line-height: 24px; letter-spacing: .1px; text-transform: uppercase; color: var(--white); white-space: nowrap;
}
.lessons { width: 499px; }
.lessons li + li { border-top: 1px solid var(--gray-light-3); }
.lessons a { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.lessons__text {
  display: flex; align-items: center; gap: 12px; width: 330px;
  font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--dark-green); white-space: nowrap; transition: color .2s;
}
.lessons__text b { font-weight: 600; color: var(--red); }
.lessons a:hover .lessons__text { color: var(--green); }
.lessons li:last-child a { padding-bottom: 20px; }
.learn__aside { width: 470px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final__box {
  position: relative; overflow: hidden; height: 462px; padding: 64px 162px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  background: var(--dark-green); border-radius: 8px;
}
/* Свечения: эквивалент круга 309px с blur 500 из макета, но градиентом (без дорогого filter) */
.final__glow { position: absolute; width: 1309px; height: 1309px; border-radius: 50%; pointer-events: none; }
.final__glow--red { left: -710px; top: -671px; background: radial-gradient(circle closest-side, rgba(239, 64, 89, .23) 0%, rgba(239, 64, 89, .175) 25%, rgba(239, 64, 89, .08) 50%, rgba(239, 64, 89, .02) 75%, rgba(239, 64, 89, 0) 100%); }
.final__glow--green { left: 536px; top: -174px; background: radial-gradient(circle closest-side, rgba(78, 194, 165, .23) 0%, rgba(78, 194, 165, .175) 25%, rgba(78, 194, 165, .08) 50%, rgba(78, 194, 165, .02) 75%, rgba(78, 194, 165, 0) 100%); }
.final__chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid #7a8691; border-radius: 8px;
  font-weight: 500; font-size: 14px; line-height: 24px; letter-spacing: .14px; color: var(--gray-2); white-space: nowrap;
}
.final__text { position: relative; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.final__title { font-weight: 700; font-size: 40px; line-height: 52px; letter-spacing: .4px; text-align: center; color: var(--white); }
.final__title span { color: var(--red); }
html[lang="en"] .final__box { padding-left: 81px; padding-right: 81px; }
.final__text p, .final__cta p { font-weight: 500; letter-spacing: .14px; color: var(--gray-2); }
.final__text p { font-size: 14px; line-height: 24px; }
.final__cta { position: relative; width: 283px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final__cta p { align-self: stretch; font-size: 12px; line-height: 24px; letter-spacing: .12px; white-space: nowrap; }

/* =========================================================
   MOTION & INTERACTION
   Всё движение включается только при prefers-reduced-motion: no-preference.
   Появление блоков работает при классе .js на <html> (ставится в <head>).
   Итоговое состояние после анимаций = макет.
   ========================================================= */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* base for injected elements (без анимаций тоже должны стоять на месте) */
.live-graph__svg { position: absolute; left: -.5px; top: 13px; overflow: visible; }
.final__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.js .final__particles { display: block; }


/* tabs: sliding pill (JS добавляет .has-pill и .tabs__pill) */
.tabs { position: relative; }
.tabs__btn { position: relative; z-index: 1; }
.tabs__pill { position: absolute; z-index: 0; left: 0; top: 4px; width: 0; height: 32px; border-radius: 4px; background: var(--green); pointer-events: none; }
.tabs.pill-ready .tabs__pill { transition: left .55s var(--ease-spring), width .55s var(--ease-spring); }
.tabs.has-pill .tabs__btn { background: transparent; border-color: transparent; }
.tabs.has-pill .tabs__btn:hover:not(.is-active) { border-color: var(--green); }
.tabs.has-pill .tabs__btn.is-active { background: transparent; border-color: transparent; }

.plan, .review { position: relative; }

/* links & buttons */
.link-btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--green); scale: 0 1; transform-origin: 100% 50%; transition: scale .4s var(--ease-out);
}
.link-btn:hover::after { scale: 1 1; transform-origin: 0 50%; }
.link-btn { position: relative; }
.link-btn::after { bottom: 2px; right: 32px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .stars img { transition: scale .3s var(--ease-spring); }
  .stars:hover img:hover { scale: 1.3; }

  /* --- hero --- */
  .hero__badge img { animation: beat 2s ease-in-out infinite; }
  .watch__icon { position: relative; transition: border-color .2s, background-color .2s, scale .3s var(--ease-spring); }
  .watch__icon::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--green); opacity: 0; }
  .watch:hover .watch__icon { scale: 1.12; }
  .watch:hover .watch__icon::after { animation: ripple 1.4s ease-out infinite; }

  /* --- buttons --- */
  .btn--red, .btn--green { position: relative; overflow: hidden; isolation: isolate; transition: background-color .2s, box-shadow .3s; }
  .btn--red::after, .btn--green::after {
    content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
  }
  .btn--red:hover { box-shadow: 0 12px 28px -10px rgba(239, 64, 89, .75); }
  .btn--green:hover { box-shadow: 0 12px 28px -10px rgba(78, 194, 165, .75); }
  .btn--red:hover::after, .btn--green:hover::after { animation: shine .9s var(--ease-out); }
  .hero__cta .btn--green::after, .final__cta .btn--red::after { animation: shine 1.1s var(--ease-out) 2.5s; }
  .btn--outline {
    background-image: linear-gradient(var(--green), var(--green)); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%;
    transition: background-size .45s var(--ease-out), color .3s, box-shadow .3s;
  }
  .btn--outline:hover { background-color: transparent; background-size: 100% 100%; color: var(--white); box-shadow: 0 12px 24px -12px rgba(78, 194, 165, .9); }
  .btn--outline:hover img { filter: brightness(10); }
  .link-btn img, .btn img { transition: transform .35s var(--ease-spring); }
  .link-btn:hover img { transform: translateX(6px); }


  /* --- tab switching --- */
  .compare__pane.is-switching .compare__content > *,
  .compare__pane.is-switching .compare__panel > *,
  .video__content.is-switching > * { animation: pane-in .6s var(--ease-out) both; }
  .is-switching > * > :nth-child(2), .video__content.is-switching > :nth-child(2) { animation-delay: .06s; }
  .is-switching > * > :nth-child(3), .video__content.is-switching > :nth-child(3) { animation-delay: .12s; }
  .is-switching > * > :nth-child(4) { animation-delay: .18s; }
  .is-switching > * > :nth-child(5) { animation-delay: .24s; }
  .video__poster.is-switching { animation: fade-in .6s var(--ease-out) both; }
  .row, .totals__box { transition: translate .3s var(--ease-out), box-shadow .3s, border-color .3s; }
  .row:hover, .totals__box:hover { translate: 0 -2px; border-color: rgba(78, 194, 165, .5); box-shadow: 0 10px 20px -14px rgba(42, 61, 75, .4); }

  /* --- steps --- */
  .step { position: relative; overflow: hidden; transition: border-color .3s, translate .35s var(--ease-out), box-shadow .3s; }
  .step::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--green), #8fe3cc); transform-origin: 0 50%; scale: 0 1; }
  .steps__list.is-autoplay .step.is-active::after { animation: step-progress 4.5s linear forwards; }
  .step:hover { translate: 6px 0; box-shadow: 0 12px 26px -16px rgba(42, 61, 75, .35); }
  .step.is-active .num-box { animation: num-pop .55s var(--ease-spring); }
  .step img { transition: transform .35s var(--ease-spring); }
  .step:hover img { transform: translateX(4px); }

  /* --- video --- */
  .video__play::before, .video__play::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .45);
    animation: ripple 2.6s ease-out infinite; pointer-events: none;
  }
  .video__play::after { animation-delay: 1.3s; }

  /* --- plans --- */
  .plan { transition: border-color .2s, box-shadow .4s; }
  .plan:hover { box-shadow: var(--shadow-smooth); }
  .icon-box { transition: rotate .5s var(--ease-spring), scale .5s var(--ease-spring); }
  .plan:hover .icon-box { rotate: -8deg; scale: 1.1; }
  .plan__code { transition: rotate .6s var(--ease-spring), scale .6s var(--ease-spring); }
  .plan:hover .plan__code { rotate: -4deg; scale: 1.08; }
  .plan__plane { animation: float 5s ease-in-out infinite; transition: translate .6s var(--ease-out); }
  .plan:hover .plan__plane { translate: 10px -8px; }
  .tag img { animation: beat 2.2s ease-in-out infinite; }

  /* --- events --- */
  .events__img { transition: scale .8s var(--ease-out), box-shadow .8s; }
  .events:hover .events__img { scale: 1.03; }

  /* --- reviews --- */
  .review { transition: box-shadow .4s, border-color .3s; will-change: transform; }
  .review:hover { box-shadow: var(--shadow-smooth); border-color: rgba(78, 194, 165, .4); }
  .review > img:first-child { transition: rotate .5s var(--ease-spring), scale .5s var(--ease-spring); }
  .review:hover > img:first-child { rotate: -12deg; scale: 1.3; }
  .review__author img { transition: box-shadow .3s; }
  .review:hover .review__author img { box-shadow: 0 0 0 3px rgba(78, 194, 165, .35); }

  /* --- help center --- */
  .lessons__text, .lessons img { transition: translate .35s var(--ease-out), color .2s; }
  .lessons a:hover .lessons__text { translate: 6px 0; }
  .lessons a:hover img { translate: 4px 0; }

  /* --- final CTA --- */
  .final__glow--red { animation: drift-a 16s ease-in-out infinite alternate; }
  .final__glow--green { animation: drift-b 18s ease-in-out infinite alternate; }
  .final__title .shimmer {
    background: linear-gradient(90deg, #ef4059 0%, #ff8f78 25%, #ef4059 50%, #ff8f78 75%, #ef4059 100%) 0 0 / 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 6s linear infinite;
  }
  .final__chip::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: conic-gradient(from var(--angle), transparent 0 65%, var(--green) 82%, #fff 88%, transparent 92%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: spin-angle 4s linear infinite;
  }
  .final__chip img { animation: beat 2.4s ease-in-out infinite; }

}

@keyframes spin { to { rotate: 360deg; } }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes beat { 0%, 100% { scale: 1; } 50% { scale: 1.25; } }
@keyframes ripple { from { scale: 1; opacity: .8; } to { scale: 1.75; opacity: 0; } }
@keyframes shine { from { left: -60%; } to { left: 130%; } }
@keyframes pane-in { from { opacity: 0; translate: 0 14px; filter: blur(4px); } }
@keyframes step-progress { to { scale: 1 1; } }
@keyframes num-pop { 0% { scale: 1; } 40% { scale: 1.25; } 100% { scale: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes drift-a { to { translate: 260px 160px; } }
@keyframes drift-b { to { translate: -300px -180px; } }

/* =========================================================
   MOBILE (до 1023 px) — по фрейму «Homepage mobile» (393 px)
   Колонка контента: 20 px поля, не шире 600 px.
   Шапка и подвал — адаптив с betburger.com (bb-header-footer.css).
   ========================================================= */
@media (max-width: 1023px) {
  body { min-width: 0; }
  .wrap, .wrap--wide { width: auto; max-width: 600px; margin-left: auto; margin-right: auto; padding: 0 20px; }
  .nowrap { white-space: normal; }
  .text br, .section-head__aside br, .hero__lead br, .review blockquote br,
  .events__body .text br, .h3 br { display: none; }

  /* типографика */
  .h2 { font-size: 24px; line-height: 32px; letter-spacing: .24px; }

  /* секции */
  .section { margin-top: 48px; }
  .section--grey { padding: 32px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .section-head__titles { width: auto; }
  .section-head__aside { width: auto !important; white-space: normal; }

  .card.compare, .card.video, .card.events {
    height: auto; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .tabs { display: flex; width: 100%; }
  .tabs__btn { flex: 1 1 0; }

  /* ---------- browser mock ---------- */
  .browser__bar { width: calc(100% + 2px); }
  .browser__url--hero, .browser__url--help { left: 50%; transform: translateX(-50%); }
  .browser__plus { left: auto; right: 15px; }

  /* ---------- hero ---------- */
  .hero__inner { height: auto; display: flex; flex-direction: column; padding-top: 16px; padding-bottom: 167px; }
  .hero__deco { display: none; }
  .hero__badge, .hero__title, .hero__lead, .hero__cta, .hero__browser, .hero__float { position: relative; left: auto; top: auto; width: auto; }
  .hero__badge { display: flex; letter-spacing: 0; }
  .hero__title { margin-top: 12px; font-size: 28px; line-height: 36px; letter-spacing: .28px; }
  .hero__lead { margin-top: 32px; }
  .hero__cta { margin-top: 32px; }
  .hero__cta-row { gap: 16px 12px; flex-wrap: wrap; }
  .hero__cta .btn--green { padding: 12px 16px; }
  .watch { font-size: 12px; letter-spacing: .12px; }
  .hero__browser { margin-top: 32px; height: 301px; }
  .hero__shot { width: calc(100% + 2px); height: 244px; }
  .hero__shot img { width: 100%; }
  .hero__shot-user { display: none; }
  .hero__tabs { left: 15px; right: 15px; top: 7px; width: auto; }
  .hero__float { z-index: 2; margin: -24px 12px 0; }
  .float-card__text strong { white-space: normal; }
  .float-card__text span { width: auto; }

  /* ---------- stats ---------- */
  .stats.wrap {
    width: calc(100% - 40px); max-width: 560px; height: auto; margin: -115px auto 0; padding: 32px 24px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; align-items: start;
  }
  .stats__divider { display: none; }
  .stats__item b { font-size: 32px; line-height: 52px; letter-spacing: .32px; }
  .stats__item span { white-space: normal; }
  .stats__item--live { gap: 4px; }
  .stats__item--live b { font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: .2px; }

  /* ---------- Surebets / Valuebets ---------- */
  .compare-section { padding-top: 32px; }
  .compare { display: flex; flex-direction: column; }
  .compare__tabs { position: static; order: -1; }
  .compare__pane { display: flex; flex-direction: column; }
  .compare__content { position: static; width: auto; order: 1; margin-top: 32px; padding-bottom: 32px; gap: 24px; }
  .compare__content .h3 { font-size: 20px; line-height: 26px; letter-spacing: .2px; }
  .compare__content .link-btn { align-self: center; }
  .bullets li { white-space: normal; }
  .compare__panel {
    position: static; order: 2; width: auto; border-radius: 0;
    margin: 0 calc(50% - 50vw); padding: 32px calc(50vw - 50%);
    display: flex; flex-direction: column; align-items: stretch;
  }
  .compare__label { position: static; display: flex; white-space: normal; }
  .compare__calc, .compare__divider, .compare__summary, .totals, .compare__kpis { position: static; width: auto; }
  .compare__calc { margin-top: 32px; }
  .compare__calc .h3 { font-size: 24px; line-height: 31px; letter-spacing: .24px; }
  .compare__divider { margin-top: 32px; flex: none; }
  .totals, .compare__kpis { margin-top: 32px; }
  .compare__kpis { flex-direction: column; }
  .totals { gap: 8px; }
  .totals__box { flex: 1 1 auto; }
  .totals__box span { white-space: nowrap; }
  .totals__box b { font-size: 20px; line-height: 26px; letter-spacing: .2px; }
  .totals__sep, .totals__or { flex: none; }
  .compare__summary { margin-top: 32px; }
  .compare__summary--roi { margin-top: 16px; }
  .row__text b { white-space: normal; }

  /* ---------- 3 шага ---------- */
  .steps { margin-top: 0; }
  .steps__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .steps__left { width: auto; gap: 32px; }
  .step { padding: 8px 24px 8px 12px; }
  .step .row__text b { line-height: 20px; }
  .steps__shot { width: 100%; height: 230px; }
  .steps__img { width: 100%; }
  .steps__highlight { height: 100%; }

  /* ---------- видео ---------- */
  .video-section { padding-top: 32px; padding-bottom: 32px; }
  .video { display: flex; flex-direction: column; }
  .video__tabs { position: static; order: 1; }
  .video__content { position: static; transform: none; width: auto; order: 2; margin-top: 32px; gap: 24px; }
  .video__content .link-btn { align-self: center; margin-top: 8px; }
  .video__media { position: relative; left: auto; top: auto; order: 3; width: 100%; height: 262px; margin-top: 32px; border-radius: 8px; }
  .video__poster { left: 0; top: 50%; transform: translateY(-50%); width: 100%; height: auto; aspect-ratio: 669 / 376; }
  .video__play { width: 64px; height: 64px; }
  .video__play img { width: 32px; height: 32px; }

  /* ---------- тарифы ---------- */
  .plans__grid { grid-template-columns: minmax(0, 1fr); }
  .plan, .plans__grid:hover .plan.is-featured:not(:hover) { padding: 23px; gap: 24px; }
  .plan.is-featured, .plans__grid:hover .plan:hover { padding: 20px; }
  .plan .btn { align-self: stretch; }
  .plan .bullets { padding-left: 0; }
  .nbsp-d { display: none; }
  .plan__title { white-space: normal; }
  .flow__bar { width: 40px; }
  .live-graph__svg { width: 100%; height: 43px; }
  .live-graph__dot--end { left: auto; right: 0; }
  .plan__media-row { flex-direction: column-reverse; align-items: stretch; gap: 24px; }
  .plan__code { width: 100%; height: 173px; }
  .plan__code img { left: 0; top: 0; width: 100%; height: 184px; object-position: left top; }
  .plan__plane { align-self: center; }

  /* ---------- Events ---------- */
  .events { display: flex; flex-direction: column; }
  .events__content { position: static; width: auto; order: 1; padding: 32px 0; gap: 32px; }
  .events__content .chip-label { display: flex; white-space: normal; }
  .events__body { gap: 32px; }
  .events__main { gap: 8px; }
  .events__body .text { max-width: none; }
  .events__body .h3 { font-weight: 700; font-size: 24px; line-height: 32px; letter-spacing: .24px; }
  .events__actions { flex-direction: column; align-items: center; align-self: stretch; gap: 24px; }
  .events__actions .btn { align-self: stretch; }
  .events__panel { position: relative; right: auto; top: auto; transform: none; order: 2; width: auto; height: auto; border-radius: 0;
    margin: 0 calc(50% - 50vw); padding: 32px calc(50vw - 50%) 22px; }
  .events__img { position: static; transform: none; width: 100%; height: auto; aspect-ratio: 589 / 257; }
  .events__img--history { aspect-ratio: 1387 / 567; }

  /* ---------- отзывы ---------- */
  .reviews__head { margin-bottom: 32px; }
  .reviews__title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .reviews__title-row .h2 { white-space: normal; }
  .reviews__list { flex-direction: column; align-items: stretch; gap: 20px; }
  .review { flex: none; }

  /* ---------- справочный центр ---------- */
  .learn { margin-top: 48px; }
  .learn__inner { flex-direction: column; align-items: stretch; gap: 69px; }
  .learn__browser { width: 100%; padding: 25px 0; }
  .learn__content { padding: 0 24px; }
  .learn__title-row { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .learn__title { font-size: 20px; line-height: 32px; letter-spacing: .2px; white-space: normal; }
  .free-badge { padding: 2px 8px; }
  .lessons { width: 100%; }
  .lessons__text { width: auto; white-space: normal; }
  .learn__aside { width: auto; gap: 24px; }
  .learn__aside .btn { align-self: stretch; margin-top: 8px; }

  /* ---------- финальный CTA ---------- */
  .final__box, html[lang="en"] .final__box { height: auto; padding: 24px; gap: 32px; }
  .final__chip { align-self: stretch; justify-content: center; white-space: normal; font-size: 12px; letter-spacing: .12px; }
  .final__title { font-size: 24px; line-height: 31.2px; letter-spacing: .24px; }
  .final__text p { text-align: center; }
  .final__cta { width: 100%; }
  .final__cta .btn { align-self: stretch; }
  .final__cta p { text-align: center; white-space: normal; }
  .final__glow--red { left: -684px; top: -637px; }
  .final__glow--green { display: none; }

}
@media (max-width: 389px) {
  .hero__badge { white-space: normal; line-height: 16px; padding-top: 4px; padding-bottom: 4px; }
}

/* =========================================================
   PLANS: анимация линий в карточках Prematch и Live при наведении
   Prematch — шаги «Поиск → Расчёт → Ставка» по очереди заполняются зелёным;
   Live — по графику бежит зелёный отрезок, точки подсвечиваются.
   Цвета только из токенов: --green, --green-tint, --gray-light-3, --bg-light.
   ========================================================= */
.live-graph__run { opacity: 0; stroke-dasharray: 20 200; stroke-dashoffset: 20; }
.flow__bar { position: relative; overflow: hidden; }
.flow__bar::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--green); transform: scaleX(0); transform-origin: 0 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .flow__icon { transition: background-color .3s, box-shadow .3s; }
  .live-graph__dot { transition: background-color .3s, box-shadow .3s; }

  /* Prematch: цикл 3 с */
  .plan:hover .flow__line > :nth-child(1), .plan:focus-within .flow__line > :nth-child(1) { animation: flow-icon-1 3s linear infinite; }
  .plan:hover .flow__line > :nth-child(2)::after, .plan:focus-within .flow__line > :nth-child(2)::after { animation: flow-bar-1 3s linear infinite; }
  .plan:hover .flow__line > :nth-child(3), .plan:focus-within .flow__line > :nth-child(3) { animation: flow-icon-2 3s linear infinite; }
  .plan:hover .flow__line > :nth-child(4)::after, .plan:focus-within .flow__line > :nth-child(4)::after { animation: flow-bar-2 3s linear infinite; }
  .plan:hover .flow__line > :nth-child(5), .plan:focus-within .flow__line > :nth-child(5) { animation: flow-icon-3 3s linear infinite; }

  /* Live: бегущий отрезок по графику, цикл 2,4 с */
  .plan:hover .live-graph__run, .plan:focus-within .live-graph__run { opacity: 1; animation: live-run 2.4s linear infinite; }
  .plan:hover .live-graph__dot--start, .plan:focus-within .live-graph__dot--start { background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
  .plan:hover .live-graph__dot--end, .plan:focus-within .live-graph__dot--end { animation: live-dot-end 2.4s linear infinite; }
}
@keyframes flow-icon-1 {
  0% { background: var(--bg-light); box-shadow: none; }
  5%, 85% { background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
  100% { background: var(--bg-light); box-shadow: none; }
}
@keyframes flow-icon-2 {
  0%, 35% { background: var(--bg-light); box-shadow: none; }
  40%, 85% { background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
  100% { background: var(--bg-light); box-shadow: none; }
}
@keyframes flow-icon-3 {
  0%, 70% { background: var(--bg-light); box-shadow: none; }
  75%, 85% { background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--green); }
  100% { background: var(--bg-light); box-shadow: none; }
}
@keyframes flow-bar-1 {
  0%, 8% { transform: scaleX(0); opacity: 1; }
  35%, 85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes flow-bar-2 {
  0%, 43% { transform: scaleX(0); opacity: 1; }
  70%, 85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes live-run {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: -100; }
}
@keyframes live-dot-end {
  0%, 78% { background: var(--gray-light-3); box-shadow: none; }
  84%, 96% { background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
  100% { background: var(--gray-light-3); box-shadow: none; }
}
