/* Шаблон 18 по образцу rm555.org. Цвета только через переменные схемы (schemes/*.css); полупрозрачные рамки,
   отливы и свечения считаются через color-mix. Вёрстка от телефона (360 px), шире — min-width 640, 900 и 1000. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(880px, 100% - 32px); }
.ic { width: 20px; height: 20px; flex: none; }

/* Плашка образца: тёмный блок с тонкой рамкой акцента. */
.card, .step, .counter, .link-card, .faq__item, .table-wrap {
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: color-mix(in srgb, var(--surface) 85%, var(--bg));
}

/* Шапка: логотип слева, меню в строку от 1000 px, справа Login, Telegram и бургер. */
.nav__check { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.header { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, var(--bar), var(--bar-2)); color: var(--on-bar); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.bar { min-height: 68px; display: flex; align-items: center; gap: 12px; }
.header__logo { display: flex; align-items: center; min-width: 0; margin-right: auto; color: var(--on-bar); text-decoration: none; font-weight: 800; font-size: 22px; }
.header__logo-img { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.header__end { display: flex; align-items: center; gap: 10px; }
.header__contact { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--telegram); color: var(--on-telegram); }
.tg-icon { width: 20px; height: 20px; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); color: var(--on-bar); cursor: pointer; }
.nav__toggle .ic { width: 24px; height: 24px; }
.nav__close { display: none; }
.nav__check:checked ~ .header .nav__open { display: none; }
.nav__check:checked ~ .header .nav__close { display: block; }
.nav__check:focus-visible ~ .header .nav__toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 16px 16px; background: var(--bar); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); max-height: calc(100vh - 70px); overflow-y: auto; }
.nav__check:checked ~ .header .nav { display: grid; gap: 4px; }
.nav__link { display: flex; align-items: center; min-height: 46px; padding: 0 14px; border-radius: 10px; color: var(--on-bar); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav__link:hover { color: var(--link); }
.nav__link.is-active { color: var(--link); }
@media (max-width: 380px) { .header__logo-img { max-width: 120px; } }
@media (min-width: 1000px) {
  .nav, .nav__check:checked ~ .header .nav { position: static; display: flex; flex: 1; justify-content: center; gap: 0; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .nav__link { min-height: 40px; padding: 0 12px; font-size: 15px; }
  .nav__link.is-active { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .nav__toggle { display: none; }
}

/* Кнопки: главная — градиент, свечение по контуру и бегущий блик; контурная — Download APK и Login внизу. */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px; font-weight: 800; text-decoration: none; text-align: center; line-height: 1.2; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn--go { background: linear-gradient(135deg, var(--go), var(--go-2)); color: var(--on-go); animation: glow 2.6s ease-in-out infinite; }
.btn--go::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--shine) 55%, transparent), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
.btn--line { background: transparent; color: var(--text); border: 2px solid var(--accent); }
.btn--line:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.btn__icon { width: 18px; height: 18px; }
@keyframes glow {
  0%, 100% { box-shadow: 0 6px 18px color-mix(in srgb, var(--go) 25%, transparent); }
  50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--go) 30%, transparent), 0 8px 30px color-mix(in srgb, var(--go-2) 55%, transparent); }
}
@keyframes shine {
  0%, 55% { left: -60%; }
  100% { left: 130%; }
}
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 20px 0 8px; }
.split .buttons { justify-content: flex-start; }

/* Первый экран: тёплое свечение акцента; от 900 px текст слева, картинка справа. */
.hero { padding: 28px 0 40px; background: radial-gradient(ellipse 70% 80% at 80% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--surface) 55%, var(--bg)), var(--bg)); }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__body { min-width: 0; }
.hero__frame { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 24px 60px color-mix(in srgb, var(--shade) 35%, transparent), 0 0 40px color-mix(in srgb, var(--accent) 14%, transparent); }
.hero__img { width: 100%; height: auto; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs a { color: var(--link); text-decoration: none; }
.hero__title { margin: 0 0 16px; font-size: 32px; line-height: 1.2; font-weight: 800; }
.hero__lead { margin: 0 0 12px; color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-size: 17px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 640px) { .hero__title { font-size: 40px; } }
@media (min-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
  .hero__grid--plain { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
  .hero__title { font-size: 48px; }
}

/* Три счётчика под кнопками: значение крупно цветом акцента, подпись под ним. */
.counters { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.counter { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 8px; border-radius: 14px; text-align: center; }
.counter__value { font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--link); overflow-wrap: anywhere; }
.counter__label { font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (min-width: 640px) { .counter__value { font-size: 26px; } }

/* Оглавление: полоса пилюль с номерами, переносится по строкам. */
.toc { padding: 20px 0; border-block: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.toc__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.toc__link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.toc__link:hover { border-color: var(--accent); }
.toc__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--go), var(--go-2)); color: var(--on-go); font-size: 12px; font-weight: 800; flex: none; }

/* Разделы: h2 и абзацы по центру, списки и таблицы слева внутри колонки, h3 капсом цветом акцента.
   Раздел с картинкой — текст слева (без центровки), картинка справа. */
.sec { padding: 48px 0; }
.sec + .sec { border-top: 1px solid color-mix(in srgb, var(--accent) 10%, transparent); }
.sec__body { max-width: 980px; margin: 0 auto; text-align: center; }
.sec__body .list, .sec__body .table-wrap, .sec__body .faq__list { text-align: left; }
.sec__title { margin: 0 0 20px; font-size: 26px; line-height: 1.25; font-weight: 800; text-align: center; }
.sec__title::after { content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--go), var(--go-2)); }
.split .sec__title { text-align: left; }
.split .sec__title::after { margin-left: 0; }
.sec__sub { margin: 24px 0 8px; font-size: 18px; line-height: 1.3; color: var(--link); text-transform: uppercase; letter-spacing: 0.03em; }
.sec p { margin: 0 0 14px; color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.split { display: grid; gap: 28px; align-items: start; }
.split__text { min-width: 0; }
.media { min-width: 0; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); box-shadow: 0 18px 44px color-mix(in srgb, var(--shade) 30%, transparent); }
.media__img { width: 100%; height: auto; }
@media (min-width: 900px) {
  .sec { padding: 72px 0; }
  .sec__title { font-size: 34px; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
  .split .media { position: sticky; top: 96px; }
}

/* Списки: галочки акцента. */
.list { list-style: none; max-width: 820px; margin: 0 auto 16px; padding: 0; display: grid; gap: 10px; }
.split .list { margin-left: 0; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list__icon { width: 22px; height: 22px; margin-top: 2px; padding: 4px; border-radius: 50%; background: linear-gradient(135deg, var(--go), var(--go-2)); color: var(--on-go); }

/* Шаги: карточки «Step N» в ряд (на телефоне столбиком), под ними главная кнопка. */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; }
.step { padding: 22px 18px; border-radius: 16px; }
.step__label { display: inline-block; margin-bottom: 10px; padding: 4px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--go), var(--go-2)); color: var(--on-go); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.sec .step__text { margin: 0; font-size: 15px; }
.buttons--center { justify-content: center; }
.split .buttons--center { justify-content: flex-start; }

/* Карточки h3: сетка по четыре в ряд, три карточки — ряд из трёх; заголовки капсом, текст по центру. */
.cards { display: grid; gap: 16px; margin: 8px 0 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: center; }
.card { padding: 24px 18px; border-radius: 16px; transition: transform 0.2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__title { margin: 0 0 10px; font-size: 16px; line-height: 1.3; color: var(--link); text-transform: uppercase; letter-spacing: 0.04em; }
.sec .card__text { margin: 0; font-size: 15px; }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Таблицы: шапка цветом акцента, строки через одну; на телефоне прокрутка внутри блока. */
.table-wrap { max-width: 980px; margin: 8px auto 18px; border-radius: 14px; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 13px 16px; text-align: left; vertical-align: top; }
.table thead { background: linear-gradient(90deg, var(--go), var(--go-2)); }
.table th { color: var(--on-go); font-size: 14px; white-space: nowrap; }
.table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--text) 5%, transparent); }
.table tbody tr + tr { border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.table td:first-child { font-weight: 700; }
@media (max-width: 639px) { .table { min-width: 520px; } }

/* Картинка в тексте. */
.picture { display: block; margin: 8px 0 18px; border-radius: 16px; overflow: hidden; }

/* «Другие страницы»: карточки страниц с иконкой, названием и описанием. */
.sec .links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: left; }
.link-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border-radius: 16px; color: var(--text); text-decoration: none; transition: transform 0.2s; }
.link-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.link-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: linear-gradient(135deg, var(--go), var(--go-2)); color: var(--on-go); }
.link-card__title { font-size: 17px; }
.link-card__text { color: var(--muted); font-size: 14px; line-height: 1.45; }
.link-card__arrow { position: absolute; top: 22px; right: 18px; color: var(--link); }

/* FAQ: плашки с «+», раскрываются; открытый — «−». */
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: 12px; }
.faq__item summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { flex: 1; }
.faq__plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--link); transition: transform 0.2s; }
.faq__plus::after { transform: rotate(90deg); }
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.faq__item[open] .faq__plus::after { transform: rotate(0deg); }
.faq__answer { padding: 0 18px 4px; }
.sec .faq__answer p { margin: 0 0 14px; }

/* Футер по центру: логотип, слоган капсом, абзац, строка страниц, возраст, дисклеймер, Telegram, копирайт;
   снизу запас под закреплённые кнопки на телефоне. */
.footer { padding: 48px 0 110px; background: linear-gradient(90deg, var(--bar), var(--bar-2)); color: var(--on-bar); border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; max-width: 860px; }
.footer__logo { display: inline-block; color: var(--on-bar); font-weight: 800; font-size: 22px; text-decoration: none; }
.footer__logo-img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.footer__slogan { margin: 16px 0 0; font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.footer__text { margin: 12px 0 0; font-size: 14px; color: color-mix(in srgb, var(--on-bar) 78%, var(--bar)); }
.footer__links { list-style: none; margin: 20px 0 4px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; }
.footer__links a { color: color-mix(in srgb, var(--on-bar) 85%, var(--bar)); text-decoration: none; }
.footer__links a:hover { color: var(--on-bar); text-decoration: underline; }
.footer__tg { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--on-bar); font-size: 14px; }
.footer__tg .tg-icon { color: var(--telegram); }
.age { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 50%; border: 2px solid var(--accent); font-size: 12px; font-weight: 800; vertical-align: middle; color: var(--on-bar); }
.footer__copy { margin: 24px 0 0; padding-top: 18px; width: 100%; border-top: 1px solid color-mix(in srgb, var(--on-bar) 15%, transparent); font-size: 13px; }
@media (min-width: 900px) { .footer { padding-bottom: 48px; } }

/* Уже 900 px внизу закреплены Join Now и Login, всегда видны. */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bar) 94%, transparent); border-top: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.bottom .btn { min-height: 46px; padding: 0 10px; }
.bottom .btn--line { color: var(--on-bar); }
@media (min-width: 900px) { .bottom { display: none; } }

/* Кнопка «наверх»: круглая, над закреплёнными кнопками. */
.to-top { position: fixed; right: 16px; bottom: 84px; z-index: 30; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--go), var(--go-2)); color: var(--on-go); box-shadow: 0 6px 18px color-mix(in srgb, var(--shade) 35%, transparent); }
@media (min-width: 900px) { .to-top { bottom: 24px; } }

/* Кому движение мешает — без свечения, блика и подъёма карточек. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--go { animation: none; }
  .btn--go::after { display: none; }
  .card, .link-card, .faq__plus::before, .faq__plus::after { transition: none; }
}
