/* Шаблон 7 (GY222). Цвета и шрифты — только из переменных схемы (schemes/*.css).
   Стиль образца: колонка 540px по центру на всех ширинах, прямые углы, рамки в один пиксель,
   заголовки узким шрифтом капителью, чипы и закреплённые внизу кнопки — пилюлями. */
*, *::before, *::after { box-sizing: border-box; }
/* Шапка (56px) и прилипшая под ней лента разделов (около 100px): переход по якорю отступает от них. */
html { scroll-behavior: smooth; scroll-padding-top: 170px; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: 56px; color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.7; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0; text-transform: uppercase; letter-spacing: -0.01em; color: var(--accent); }
p { margin: 0 0 1em; }
strong { font-weight: 800; }
/* Колонка образца: 540px, поля 14px. Главная часть страницы — колонка со своим фоном. */
.col { width: min(540px, 100%); margin-inline: auto; background: var(--bg-2); }

/* Кнопки: сплошная жёлтая и контурная, прямые углы, капитель. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 20px; border: 1px solid transparent; font-weight: 800; font-size: 1rem; line-height: 1.2; text-transform: uppercase; text-align: center; text-decoration: none; transition: filter 0.2s ease, background-color 0.2s ease; }
.btn:hover { text-decoration: none; }
.btn--solid { background: var(--go); color: var(--on-go); }
.btn--solid:hover { color: var(--on-go); filter: brightness(1.08); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line); }
.btn--line:hover { color: var(--text); background: var(--card); }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

/* Чип: пилюля в рамке — плашки первого экрана и пункты ленты разделов. */
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 0.875rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }

/* Шапка на всю ширину, содержимое в колонке: логотип и бургер. Фон почти сплошной с размытием. */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 56px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.header__bar { display: flex; align-items: center; gap: 0.5rem; width: min(540px, 100%); height: 100%; margin-inline: auto; padding-inline: 14px; }
.header__logo { display: inline-flex; align-items: center; min-width: 0; margin-right: auto; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.header__logo:hover { text-decoration: none; }
.header__logo-img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.tg-icon { width: 1.25em; height: 1.25em; flex: none; }
.header__contact { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--telegram); color: var(--on-telegram); font-size: 1.05rem; }
.header__contact:hover { color: var(--on-telegram); filter: brightness(1.1); }
.header__burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* Меню справа: скрытый чекбокс открывает панель и затемнение под ней. Чекбокс закреплён вверху
   экрана: иначе браузер при клике по бургеру прокручивает страницу к нему. */
.drawer__check { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
.drawer__shade { position: fixed; inset: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 70%, transparent); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; width: min(360px, 88vw); overflow-y: auto; background: var(--bg-2); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s ease; }
.drawer__check:checked ~ .drawer__shade { opacity: 1; visibility: visible; }
.drawer__check:checked ~ .drawer { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer__brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.drawer__logo-img { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); color: var(--text); }
.drawer__row:hover { text-decoration: none; background: var(--card); }
.drawer__num { color: var(--text-2); font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.drawer__label { flex: 1; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; }
.drawer__row.is-active .drawer__label { color: var(--accent); }
.drawer__row .ic { color: var(--accent); }
.drawer__about { margin: 0; padding: 16px; color: var(--text-2); font-size: 0.9rem; }

/* Первый экран: картинка во всю колонку, под ней пилюля, h1 бледно-жёлтым, абзацы, кнопки, плашки. */
.hero { padding: 40px 14px; }
.hero__media { display: block; margin-bottom: 20px; }
.hero__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Логотип вместо картинки hero: карточка с жёлтым свечением. */
.hero__media--logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; }
.hero__logo { width: auto; height: auto; max-width: 72%; max-height: 60%; object-fit: contain; }
.hero__badge { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--badge); color: var(--on-badge); font-size: 0.75rem; font-weight: 800; line-height: 1.5; text-transform: uppercase; }
.hero__title { margin-bottom: 14px; font-size: 1.75rem; line-height: 1.15; color: var(--title); }
.hero__lead { color: var(--text-2); }
.hero__buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 20px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }

/* Лента разделов: прилипает под шапкой; чипы в одну строку с прокруткой вбок. */
.toc { position: sticky; top: 56px; z-index: 10; padding: 12px 14px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.toc__title { margin: 0 0 8px; color: var(--text-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.toc__list { display: flex; gap: 8px; margin: 0; padding: 0 0 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.toc__list::-webkit-scrollbar { display: none; }
.chip--link { min-height: 44px; color: var(--text); }
.chip--link:hover { text-decoration: none; border-color: var(--accent); }
.toc__buttons { padding: 0 14px 20px; }

/* Секции через линию: картинка сверху, строка «страница / номер», жёлтый h2, текст. */
.sec { padding: 48px 14px; border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.toc + .sec, .toc__buttons + .sec { border-top: 0; }
.kicker { margin: 0 0 6px; color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; line-height: 1.4; text-transform: uppercase; }
.sec__title { margin-bottom: 14px; font-size: 1.5rem; }
.sec__sub { margin: 24px 0 10px; font-size: 1.15rem; }
.sec p a, .box a, .table td a { font-weight: 700; }
.figure { display: block; margin-bottom: 20px; }
.figure__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Картинка в тексте секции: в своих пропорциях. */
.picture { display: block; margin: 20px 0; }
.picture__img { width: 100%; }
.footnote { padding-left: 12px; border-left: 2px solid var(--accent); color: var(--text-2); }

/* Списки и карточки — рамки друг под другом, как у образца. Короткие пункты — жёлтыми заголовками. */
.boxes { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.box { padding: 12px 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--text); }
.boxes--short .box, .box__title { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; color: var(--accent); }
.box__title { margin-bottom: 8px; }
.box__text { margin: 0; }
.boxes--short .box strong { font-weight: 700; }

/* Таблица в рамке: шапка жёлтым узким шрифтом на фоне рамок, строки через линию. */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th { padding: 10px 12px; text-align: left; vertical-align: bottom; background: var(--card); font-family: var(--font-heading); font-size: 1rem; font-weight: 700; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.table td { padding: 10px 12px; text-align: left; vertical-align: top; border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }

/* Другие страницы: строки в рамках — номер, подпись жёлтым, описание, стрелка. */
.rows { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.row:hover { text-decoration: none; border-color: var(--accent); }
.row__num { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.row__body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.row__label { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; color: var(--accent); }
.row__desc { color: var(--text-2); font-size: 0.875rem; line-height: 1.5; }
.row .ic { color: var(--text); }

/* FAQ: строки с линией снизу и плюсом справа; открытый плюс поворачивается в крестик. */
.faq__list { margin-top: 8px; }
.faq__item { border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 16px 0; cursor: pointer; font-size: 0.9rem; font-weight: 700; line-height: 1.6; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { display: inline-flex; flex: none; color: var(--text-2); font-size: 1.1rem; transition: transform 0.2s ease; }
.faq__item[open] .faq__plus { transform: rotate(45deg); color: var(--accent); }
.faq__answer p { color: var(--text-2); }

/* Полоса призыва: бренд мелкой строкой, слоган жёлтым капителью, две кнопки. */
.join { padding: 40px 14px 48px; border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.join__kicker { margin: 0 0 6px; color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.join__title { margin: 0 0 20px; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--accent); }
.join__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

/* Футер на всю ширину фоном рамок, содержимое в колонке: строки ссылок с подписью. */
/* Нижний отступ с запасом под закреплённые кнопки: фон футера уходит под них. */
.footer { background: var(--card); border-top: 1px solid var(--line); color: var(--text-2); }
.footer__inner { width: min(540px, 100%); margin-inline: auto; padding: 34px 14px calc(24px + 84px); }
.footer__logo { display: inline-flex; margin-bottom: 12px; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.footer__logo:hover { text-decoration: none; }
.footer__logo-img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.footer__about { color: var(--text); }
.footer__age { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }
.pill { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 1px 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 0.75rem; font-weight: 800; }
.footer__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 14px; font-size: 0.875rem; }
.footer__label { color: var(--text); font-size: 1rem; }
.footer__row a { color: var(--text-2); }
.footer__row a:hover { color: var(--accent); text-decoration: none; }
/* Строка ссылок выровнена по базовой линии текста: иконка стоит внутри текста, а не отдельным элементом. */
.footer__row a.footer__tg { color: var(--telegram); }
.footer__tg .tg-icon { margin-right: 0.4rem; vertical-align: -0.28em; }
.footer__note { flex-basis: 100%; }
.footer__copy { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8125rem; }

/* Закреплённые внизу на всех ширинах: две пилюли по центру колонки и кружок «наверх» справа. */
.dock { position: fixed; left: 0; right: 0; bottom: 12px; z-index: 15; pointer-events: none; }
.dock__inner { position: relative; display: flex; justify-content: center; gap: 12px; width: min(540px, 100%); margin-inline: auto; padding-inline: 14px; }
.dock__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; min-height: 52px; padding: 0 18px; border: 2px solid var(--accent); border-radius: 10px; font-weight: 800; font-size: 1rem; line-height: 1.2; text-align: center; pointer-events: auto; }
.dock__btn:hover { text-decoration: none; filter: brightness(1.1); }
.dock__btn--hot { background: var(--hot); color: var(--on-hot); }
.dock__btn--hot:hover { color: var(--on-hot); }
.dock__btn--live { background: var(--live); color: var(--on-live); }
.dock__btn--live:hover { color: var(--on-live); }
.dock__top { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--go); color: var(--on-go); font-size: 1.1rem; pointer-events: auto; }
.dock__top:hover { color: var(--on-go); filter: brightness(1.08); }

/* Узкий телефон: кружок «наверх» встаёт в ряд за пилюлями, пилюли при нехватке места сжимаются. */
@media (max-width: 420px) {
  .dock__inner { gap: 8px; }
  .dock__btn { flex: 0 1 140px; min-width: 0; padding: 0 10px; }
  .dock__top { position: static; flex: none; transform: none; align-self: center; }
}

/* Уже 360 px иконка не встаёт рядом с широким логотипом (бывают 5:1), а он не ниже 48 px: ссылка остаётся в футере. */
@media (max-width: 359px) {
  .header__contact { display: none; }
}

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