/* Главная SEO-сайта, вариант 3 «Лента». Подключается только в home.html поверх seo.css,
   поэтому токены и правила ниже не задевают /gifts, /stars, /premium. */
@font-face { font-family: Manrope; font-weight: 400 800; font-display: swap; src: url(/static/webapp/fonts/manrope-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-weight: 400 800; font-display: swap; src: url(/static/webapp/fonts/manrope-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --bg: #f2f3f7; --surface: #fff; --surface-2: #e7e9ef; --text: #0b0e14; --text-muted: #565d6b;
  --accent: #106cb8; --fill: #1677c7; --fill-pressed: #13619f; --pay-bg: #1677c7;
  --gutter: clamp(16px, 4vw, 56px); --page-max-width: 1312px;
  --ease: cubic-bezier(.16, 1, .3, 1); --num: Manrope, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  /* Полоса выплат на чёрном — на шаг темнее (--dc-blue-700), чтобы не резала глаз */
  :root { --bg: #0b0b0e; --surface: #17171c; --surface-2: #232329; --text: #f4f5f7; --text-muted: #b4b9c3; --accent: #3aa6f5; --pay-bg: #13619f; }
}
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
::selection { background: var(--fill); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.container { padding: 0 var(--gutter); }
.site-header { background: var(--bg); }
.logo { font-size: 19px; }
.btn, .cta-row .btn { border-radius: 14px; transition: background-color .15s, transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-primary, .hero .btn-primary { background: var(--fill); color: #fff; }
.btn-primary:hover, .hero .btn-primary:hover { background: var(--fill-pressed); }
.btn-secondary, .hero .btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover, .hero .btn-secondary:hover { background: var(--surface); }

main.container { padding-top: 0; padding-bottom: 96px; }
.site-footer { background: var(--bg); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main > section:not(.hero) > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 28%; }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  }
}

/* Первый экран */
.hero { padding: 72px 0 0; background: none; border-radius: 0; color: var(--text); text-align: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1; letter-spacing: -.04em; font-weight: 800; max-width: 15em; margin: 0 auto 20px; }
.hero .lead { font-size: 20px; max-width: 34em; margin: 0 auto; color: var(--text-muted); }
.hero .cta-row { justify-content: center; margin-top: 28px; }
.hero .cta-alt { margin-top: 16px; }
.hero .cta-alt a { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 16px; }
.hero .cta-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Лента: обе строки обрезаны по краям экрана, вторая сдвинута на полплитки */
.belts { --tile: clamp(140px, 15.4vw, 236px); --gap: 10px; margin: 64px calc(50% - 50vw) 0; display: grid; gap: var(--gap); overflow: hidden; }
.belt-in { display: flex; gap: var(--gap); width: max-content; }
.b1 .belt-in { margin-left: calc(var(--tile) * -.3); }
.b2 .belt-in { margin-left: calc((var(--tile) + var(--gap)) * -.8); }
.belt img { width: var(--tile); height: var(--tile); border-radius: 20px; background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .b1 .belt-in { animation: belt-l 70s linear infinite; }
  .b2 .belt-in { animation: belt-r 70s linear infinite; }
  .belts:hover .belt-in { animation-play-state: paused; }
  @keyframes belt-l { to { transform: translateX(-33.333%); } }
  @keyframes belt-r { from { transform: translateX(-33.333%); } to { transform: none; } }
}

/* Плитки разделов: картинка сверху, текст на сплошном фоне */
.tiles { margin-top: 96px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.ptile { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--surface); color: var(--text); transition: background-color .15s; }
.ptile:hover { text-decoration: none; background: var(--surface-2); }
.ptile > img { width: 100%; height: 340px; object-fit: cover; box-sizing: border-box; background: var(--surface-2); }
.ptile.stars > img { background: #1677c7; object-fit: contain; padding: 48px 22%; }
.ptile.prem > img { background: #2b2350; object-fit: contain; padding: 48px 22%; }
.ptile div { padding: 20px 24px 24px; }
.ptile h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.ptile p { margin: 0; font-size: 16px; color: var(--text-muted); }

/* Шаги */
.steps { margin-top: 120px; display: grid; grid-template-columns: 7fr 5fr; column-gap: 48px; align-items: center; }
.steps h2 { grid-column: 1 / -1; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 24px; }
.steps ol { display: block; }
.steps li { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; padding: 18px 0; background: none; border-radius: 0; align-items: center; }
.steps li::before { width: auto; height: auto; background: none; border-radius: 0; color: var(--accent); font-family: var(--num); font-size: 72px; line-height: 1; font-weight: 700; letter-spacing: -.04em; display: block; text-align: left; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--text-muted); font-size: 17px; }
.step-pic { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 24px; }

/* Частые вопросы: плоские карточки, 2 колонки на широком экране */
/* Отзывы — реальные, из модерации; плоские карточки как у вопросов */
.reviews { margin-top: 120px; }
.reviews h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 24px; }
.rv-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rv { margin: 0; background: var(--surface); border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rv blockquote { margin: 0; }
.rv p { margin: 0; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.rv figcaption { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--text-muted); overflow-wrap: anywhere; }
.qa { margin-top: 120px; }
.qa h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 24px; }
.qa dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qa dl > div { background: var(--surface); border-radius: 20px; padding: 22px 24px; }
.qa dt { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.qa dd { margin: 0; font-size: 16px; color: var(--text-muted); }

/* Выплата: полоса во всю ширину; колонок 1–3, ширина колонки одна и та же при любом числе */
.payout { margin: 120px calc(50% - 50vw) -96px; padding: 96px max(var(--gutter), calc(50vw - 600px)); background: var(--pay-bg); color: #fff; }
.payout h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; color: #fff; }
.payout .pay-note { margin: 0 0 48px; font-size: 18px; color: rgba(255,255,255,.85); }
.payout ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.payout li { padding: 0; background: none; border-radius: 0; color: #fff; display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.payout li b { font-family: var(--num); font-size: clamp(56px, 7vw, 104px); line-height: 1; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.payout li b small { font-size: .42em; font-weight: 600; letter-spacing: -.01em; margin-left: .18em; }
.payout li span { font-size: 18px; }
.payout li .pay-hint { margin-top: -6px; font-size: 15px; color: rgba(255,255,255,.8); }

/* Шапка: кнопка всегда в одну строку; меню прячем до 900px, иначе на планшете кнопки уезжают на вторую строку */
.header-cta .btn { white-space: nowrap; }
@media (max-width: 900px) { .site-nav { display: none; } .header-inner { flex-wrap: nowrap; } .header-cta { margin-left: auto; } }
@media (max-width: 640px) { .header-cta .btn { padding: 9px 14px; font-size: 15px; } }

/* Cookie-баннер в цвет темы (раньше был инвертирован: тёмный на светлом, светлый на тёмном) */
.cookie-banner { background: var(--surface); color: var(--text); box-shadow: 0 12px 32px rgba(11,14,20,.16); }
.cookie-banner .btn-primary, .cookie-banner .btn-primary:hover { background: var(--fill); color: #fff; }
.cookie-banner .btn-secondary { background: var(--surface-2); color: var(--text); }
@media (prefers-color-scheme: dark) { .cookie-banner { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 32px rgba(0,0,0,.5); } }

/* Бургер: только там, где меню в шапке скрыто (≤900px); без JS — на <details> */
.nav-menu { display: none; position: relative; flex: none; }
.nav-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 12px; color: var(--text); cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover, .nav-menu[open] summary { background: var(--surface-2); }
.nav-menu nav { position: absolute; right: -8px; top: calc(100% + 8px); z-index: 20; min-width: 200px; padding: 8px; display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; box-shadow: 0 12px 32px rgba(11,14,20,.16); }
.nav-menu nav a { padding: 12px 14px; border-radius: 10px; color: var(--text); font-size: 17px; font-weight: 600; }
.nav-menu nav a:hover { background: var(--surface-2); text-decoration: none; }
@media (prefers-color-scheme: dark) { .nav-menu nav { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 32px rgba(0,0,0,.5); } }
@media (max-width: 900px) { .nav-menu { display: block; } .header-inner { gap: 12px; } }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .belts { margin-top: 48px; }
  .tiles { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .ptile:first-child { grid-column: 1 / -1; }
  .ptile:first-child > img { height: 64vw; }
  .ptile > img { height: 150px; }
  .ptile.stars > img, .ptile.prem > img { padding: 24px 22%; }
  .ptile div { padding: 14px 16px 18px; }
  .ptile h2 { font-size: 19px; }
  .ptile p { font-size: 15px; }
  .steps { grid-template-columns: 1fr; margin-top: 72px; row-gap: 8px; }
  .steps h2 { margin-bottom: 8px; }
  .steps li { grid-template-columns: 52px 1fr; column-gap: 14px; padding: 14px 0; }
  .steps li::before { font-size: 56px; }
  .steps h3 { font-size: 21px; }
  .steps p { font-size: 16px; }
  .step-pic { margin-top: 12px; }
  .reviews { margin-top: 72px; }
  .rv-list { grid-template-columns: 1fr; }
  .rv:nth-child(n+4) { display: none; } /* на телефоне хватит трёх, иначе длинная прокрутка */
  .rv { padding: 18px 18px 20px; gap: 10px; }
  .rv p { font-size: 16px; }
  .qa { margin-top: 72px; }
  .qa dl { grid-template-columns: 1fr; }
  .qa dl > div { padding: 18px 18px 20px; }
  .qa dt { font-size: 17px; }
  .payout { margin-top: 72px; padding-top: 56px; padding-bottom: 64px; }
  .payout .pay-note { margin-bottom: 28px; }
  .payout ul { grid-template-columns: 1fr; gap: 20px; }
  .payout li { gap: 4px; }
  .payout li .pay-hint { margin-top: -2px; }
  .payout li b { font-size: 64px; }
}
@media (max-width: 640px) {
  /* Шапка в одну строку: вторая кнопка и так есть на первом экране */
  .header-inner { flex-wrap: nowrap; min-height: 60px; gap: 12px; }
  .header-cta { margin-left: auto; flex-wrap: nowrap; }
  .header-cta .btn-secondary { display: none; }
  .site-nav { display: none; }
  /* Заголовок — в две строки на 360–430px (замер: 3 строки начиная с ~7.3vw); h2 — на шаг меньше h1 */
  .hero h1 { font-size: clamp(24px, 7vw, 30px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 14px; }
  .steps h2, .reviews h2, .qa h2, .payout h2 { font-size: 26px; }
  .hero .lead { font-size: 18px; }
  .hero .cta-row { flex-wrap: nowrap; }
  .hero .cta-row .btn { flex: 1; text-align: center; padding-inline: 12px; white-space: nowrap; font-size: 16px; }
}
