/* Шаблон 8 (HY222). Цвета и шрифты — только из переменных схемы (schemes/*.css).
   Стиль образца: светлые секции через одну белая и голубая, бирюзовые градиенты, скругления 14px,
   кнопки-пилюли, шрифт Inter, тёмный футер и закреплённые внизу «Register» и «Login». */
*, *::before, *::after { box-sizing: border-box; }
/* Шапка прилипает к верху (около 72px): переход по якорю отступает от неё. */
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + 1rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.tg-icon { width: 1.15em; height: 1.15em; flex: none; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; margin: 0; color: var(--text); }
p { margin: 0 0 1em; }
/* Контейнер образца: 1140 с полями 12. */
.container { width: min(1140px, 100%); margin-inline: auto; padding-inline: 12px; }

/* Кнопки-пилюли: белая на градиенте, контурная белая, бирюзовая на светлом, белая пилюля шапки. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 2rem; border: 2px solid transparent; border-radius: 50px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; transition: filter 0.2s ease, background-color 0.2s ease, transform 0.2s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--solid { background: var(--btn); color: var(--on-btn); box-shadow: 0 6px 18px color-mix(in srgb, var(--grad-1) 30%, transparent); }
.btn--solid:hover { color: var(--on-btn); }
.btn--line { background: transparent; color: var(--on-grad); border-color: color-mix(in srgb, var(--on-grad) 75%, transparent); }
.btn--line:hover { color: var(--on-grad); background: color-mix(in srgb, var(--on-grad) 12%, transparent); }
.btn--ghost { background: transparent; color: var(--on-grad); border-color: color-mix(in srgb, var(--on-grad) 75%, transparent); }
.btn--ghost:hover { color: var(--on-grad); background: color-mix(in srgb, var(--on-grad) 12%, transparent); }
.btn--go { background: var(--go); color: var(--on-go); }
.btn--go:hover { color: var(--on-go); filter: brightness(1.08); }
.btn--pill { padding: 0.45rem 1.1rem; background: var(--btn); color: var(--on-btn); font-size: 0.95rem; }
.btn--pill:hover { color: var(--on-btn); }
/* Кнопки блока на светлой секции: контурное приложение — бирюзовой рамкой. */
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: 2rem; }
.sec .btn--line, .toc .btn--line { color: var(--link); border-color: var(--link); }
.sec .btn--line:hover, .toc .btn--line:hover { color: var(--link); background: var(--tint); }

/* Шапка градиентом, прилипает: логотип, меню в строку, белые пилюли. */
.header { position: sticky; top: 0; z-index: 20; background: linear-gradient(90deg, var(--grad-1) 0%, var(--grad-2) 100%); box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 25%, transparent); }
.header__bar { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.header__logo { display: inline-flex; align-items: center; flex: none; margin-right: auto; color: var(--on-grad); font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; text-decoration: none; }
.header__logo-img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
/* Чекбокс бургера закреплён вверху экрана: иначе браузер при клике прокручивает страницу к нему. */
.nav__check { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 40px; border: 1px solid color-mix(in srgb, var(--on-grad) 50%, transparent); border-radius: 8px; color: var(--on-grad); font-size: 1.5rem; cursor: pointer; }
.nav__menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.25rem; }
.nav__link { padding: 0.45rem 0.75rem; border-radius: 6px; color: var(--on-grad); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.nav__link:hover, .nav__link.is-active { background: color-mix(in srgb, var(--on-grad) 18%, transparent); }
.nav__pills { display: inline-flex; gap: 0.4rem; margin-left: 0.4rem; }

/* Крошки внутренних страниц белой полосой. */
.crumbs { background: var(--bg); border-bottom: 1px solid var(--line); }
.crumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-block: 0; padding-top: 0.6rem; padding-bottom: 0.6rem; list-style: none; font-size: 0.92rem; color: var(--text-2); }
.crumbs a { text-decoration: none; }
.crumbs__current { color: var(--text-2); }

/* Первый экран на градиенте с двумя светлыми кругами, как у образца. */
.hero { position: relative; overflow: hidden; padding: 72px 0 60px; background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 50%, var(--grad-3) 100%); color: var(--on-grad); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--on-grad) 8%, transparent); pointer-events: none; }
.hero::before { width: 380px; height: 380px; top: -60px; right: -80px; }
.hero::after { width: 260px; height: 260px; bottom: -110px; left: -70px; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.hero__grid--single { grid-template-columns: minmax(0, 1fr); }
.hero__grid--single .hero__text { max-width: 720px; }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0.35rem 1rem; border: 1px solid color-mix(in srgb, var(--on-grad) 40%, transparent); border-radius: 50px; background: color-mix(in srgb, var(--on-grad) 15%, transparent); color: var(--on-grad); font-size: 0.82rem; font-weight: 600; }
.hero__title { margin-bottom: 1.1rem; color: var(--on-grad); font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; }
.hero__lead { color: color-mix(in srgb, var(--on-grad) 94%, transparent); font-size: 1.08rem; font-weight: 300; line-height: 1.65; }
.hero__lead a { color: var(--on-grad); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.hero__media { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px color-mix(in srgb, var(--deep-2) 35%, transparent); }
.hero__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* Логотип вместо картинки hero: светлая карточка на градиенте. */
.hero__media--logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; box-shadow: none; }
.hero__logo { width: auto; height: auto; max-width: 70%; max-height: 55%; object-fit: contain; }

/* Белая полоса с плашками-цифрами. */
.stats { background: var(--bg); border-bottom: 1px solid var(--line); }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-block: 0; padding-top: 1.4rem; padding-bottom: 1.4rem; list-style: none; text-align: center; }
.stats__item { display: flex; flex-direction: column; gap: 0.15rem; }
.stats__value { color: var(--link); font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.stats__label { color: var(--text-2); font-size: 0.85rem; font-weight: 500; }

/* Большая картинка полосой: скругление и мягкая тень на голубом фоне. */
.shot { padding: 1.5rem 0; background: var(--bg-3); }
.shot__link { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 18%, transparent); }
.shot__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Оглавление: заголовок по центру и чипы-пилюли. */
.toc { padding: 2.5rem 0; background: var(--bg-2); border-bottom: 1px solid var(--line); text-align: center; }
.toc__title { margin: 0 0 1rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--text); }
.toc__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 0.5rem 1.1rem; border: 1px solid var(--line); border-radius: 50px; background: var(--card); color: var(--link); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--accent); background: var(--tint); }

/* Секции: через одну белая и голубая, шапка по центру. */
.sec { padding: 64px 0; background: var(--bg); }
.sec--alt { background: var(--bg-2); }
.sec__head { margin: 0 auto 2.25rem; max-width: 760px; text-align: center; }
.sec .kicker { margin: 0 0 0.5rem; color: var(--link); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.sec__title { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; }
.sec__lead { margin: 0.8rem 0 0; color: var(--text-2); }
/* Текст секции колонкой до 860px по центру; сетки карточек, шагов и таблица — во всю ширину. */
.sec p, .dots, .footnote, .sec__sub, .picture { max-width: 860px; margin-left: auto; margin-right: auto; }
.sec p { color: var(--text-2); line-height: 1.85; }
.sec p a, .dots a, .table td a { font-weight: 600; }
.sec__sub { margin-top: 2rem; margin-bottom: 0.8rem; font-size: 1.2rem; font-weight: 700; }
.picture { display: block; margin-top: 1.5rem; margin-bottom: 1.5rem; border-radius: 14px; overflow: hidden; }
.picture__img { width: 100%; }

/* Маркированный список — простые точки, как у образца. */
.dots { margin-top: 1rem; margin-bottom: 1.5rem; padding-left: 1.4rem; color: var(--text-2); line-height: 2; }
.dots li::marker { color: var(--accent); }

/* Сноска — выноской: бирюзовая черта слева, голубой отлив. */
.footnote { padding: 1.1rem 1.4rem; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: linear-gradient(135deg, var(--tint), color-mix(in srgb, var(--tint) 70%, var(--accent))); }
.sec .footnote { color: var(--text); }

/* Нумерованный список: карточки шагов с номером в кружке на градиенте. */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: step; }
.steps__item { padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text-2); counter-increment: step; }
.steps__item::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 0.9rem; border-radius: 50%; background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); color: var(--on-grad); font-weight: 800; font-size: 1.05rem; }

/* Таблица: шапка градиентом со скруглением, строки отдельными карточками. Градиент — на thead, а не на
   ячейках: на ячейках он начинался бы заново в каждом столбце. */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-size: 0.95rem; }
.table thead { background: linear-gradient(90deg, var(--grad-1), var(--grad-2) 55%, var(--grad-3)); }
.table th { padding: 0.85rem 1.1rem; text-align: left; color: var(--on-grad); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.table th:first-child { border-radius: 12px 0 0 12px; }
.table th:last-child { border-radius: 0 12px 12px 0; }
.table td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; background: var(--card); color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table td:first-child { border-left: 1px solid var(--line); border-radius: 12px 0 0 12px; font-weight: 600; }
.table td:last-child { border-right: 1px solid var(--line); border-radius: 0 12px 12px 0; }

/* Карточки с иконкой на бирюзовой плашке. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.card { padding: 1.6rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--tint), var(--bg-2)); }
.tile { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 1rem; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 1.35rem; }
.tile--soft { background: var(--tint); color: var(--link); }
.card__title { margin-bottom: 0.4rem; font-size: 1.08rem; font-weight: 700; }
.sec .card__text { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }

/* Другие страницы: карточки-ссылки по центру. */
.links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.link-card { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.75rem 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-align: center; text-decoration: none; box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 10%, transparent); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 18%, transparent); }
.link-card .tile { margin-bottom: 0.6rem; }
.link-card__label { color: var(--text); font-size: 1.05rem; font-weight: 700; }
.link-card__desc { color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }

/* FAQ гармошкой в колонке 830px. */
.faq__list { max-width: 830px; margin: 0 auto; }
.faq__item { margin: 0 0 0.7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.sec--alt .faq__item { background: var(--card); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chevron { display: inline-flex; flex: none; color: var(--text); transition: transform 0.2s ease; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 1.3rem 0.4rem; }

/* Призыв карточкой на градиенте. */
.join { padding: 60px 0; background: var(--bg-2); }
.join__card { padding: 3rem 1.5rem; border-radius: 16px; background: linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 50%, var(--grad-3) 100%); color: var(--on-grad); text-align: center; box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 20%, transparent); }
.join__title { max-width: 760px; margin: 0 auto 1.4rem; color: var(--on-grad); font-family: var(--font-heading); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; line-height: 1.25; }
.join__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.join__note { margin: 1.4rem 0 0; color: color-mix(in srgb, var(--on-grad) 85%, transparent); font-size: 0.85rem; }

/* Тёмный футер градиентом: колонки, заголовки бирюзовым капителью, копирайт внизу. */
/* Нижний отступ с запасом под закреплённые кнопки: фон футера уходит под них. */
.footer { padding: 52px 0 calc(1.2rem + 76px); background: linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 100%); color: var(--on-deep); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.2rem; }
.footer__top--two { grid-template-columns: 1.5fr 1fr; }
.footer__logo { display: inline-flex; margin-bottom: 1rem; color: var(--on-deep); font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; text-decoration: none; }
.footer__logo-img { height: 46px; width: auto; max-width: 180px; object-fit: contain; }
.footer__title { margin: 0 0 1rem; color: var(--deep-accent); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__text { color: var(--on-deep); font-size: 0.92rem; line-height: 1.7; }
.footer__contact { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--on-deep); text-decoration: none; }
.footer__contact .tg-icon { color: var(--deep-accent); }
.footer__links { margin: 0; padding: 0; list-style: none; }
.footer__links li { margin: 0 0 0.55rem; }
.footer__links a { color: var(--on-deep); text-decoration: none; }
.footer__links a:hover, .footer__contact:hover { color: var(--deep-accent); }
.footer__age { display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.9rem 1rem; border: 1px solid color-mix(in srgb, var(--on-deep) 20%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--on-deep) 6%, transparent); font-size: 0.88rem; }
.pill { display: inline-flex; flex: none; padding: 0.15rem 0.55rem; border: 1px solid var(--deep-accent); border-radius: 50px; color: var(--deep-accent); font-size: 0.78rem; font-weight: 700; }
.footer__copy { margin: 0; padding-top: 1.2rem; border-top: 1px solid color-mix(in srgb, var(--on-deep) 15%, transparent); text-align: center; font-size: 0.85rem; }

/* Закреплённые внизу на всех ширинах: две кнопки по центру. */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 15; display: flex; gap: 12px; transform: translateX(-50%); }
.dock__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; min-height: 50px; padding: 0 1.2rem; border-radius: 4px; font-weight: 700; font-size: 0.95rem; text-decoration: none; box-shadow: 0 4px 14px color-mix(in srgb, var(--text) 25%, transparent); }
.dock__btn:hover { filter: brightness(1.06); }
.dock__btn--hot { background: var(--hot); color: var(--on-hot); }
.dock__btn--live { background: var(--live); color: var(--on-live); }

/* Средний экран: меню бургером, раскрывается столбиком под шапкой. */
@media (max-width: 1200px) {
  .header__bar { flex-wrap: wrap; min-height: 0; padding-top: 13px; padding-bottom: 13px; }
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin-top: 0.6rem; }
  .nav__check:checked ~ .nav__menu { display: flex; }
  .nav__pills { margin: 0.5rem 0 0; }
}

/* Узкий экран: колонки друг под другом, плашки по две. */
@media (max-width: 768px) {
  .header__bar { column-gap: 0.5rem; }
  .hero { padding: 48px 0 44px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__buttons > .btn { width: 100%; }
  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding: 48px 0; }
  .footer__top, .footer__top--two { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* Движение только по действию пользователя; кому оно мешает — отключаем целиком. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
