/* Прематч-сервис — лендинг, результаты, условия, политика. Одна таблица
   стилей на все четыре страницы. Шрифты системные: страница не грузит
   ничего со сторонних сайтов, и политика данных может сказать это прямо.

   Без украшений по умолчанию (скиллы Impeccable и Taste): нет подписей
   капсом над заголовками, моноширинных цифр «для техничности», рамок в
   1 px, линий между секциями, стекла и теней на том, что лежит. Поверхности
   разделяет шаг тона; движение — по правилам Эмиля Ковальски: сильный
   ease-out, до 300 мс на отклике, transform и opacity. */

:root {
  --bg: #f5f3ee;
  --bg-2: #ece8df;
  --surface: #ffffff;
  --ink: #15181d;
  --ink-2: #3b424c;
  --muted: #5c626c;
  --line: #e1ddd3;
  --line-2: #cfc9bc;
  --accent: #0b7350;
  --accent-2: #0a6446;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1ea;
  --pos: #0b7350;
  --neg: #b23a2f;
  --note-bg: #fbf2d9;

  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --container: 1120px;
  --pad: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 144px);
  --nav-h: 60px;
  --fs-small: 14px;
  --fs-lead: 20px;
  --fs-display: clamp(32px, 6.6vw, 88px);
  --fs-h2: clamp(28px, 3.9vw, 50px);
  /* Встроенные кривые CSS слабы: сильный ease-out для входа и отклика. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --bg-2: #14181c;
    --surface: #181c21;
    --ink: #eef0f2;
    --ink-2: #c4c9d0;
    --muted: #8b939e;
    --line: #262c33;
    --line-2: #343b44;
    --accent: #3fcf90;
    --accent-2: #5ddca2;
    --accent-ink: #052016;
    --accent-soft: #15302a;
    --pos: #3fcf90;
    --neg: #ff7f72;
    --note-bg: #2a2516;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  /* То, что рисует браузер, — тоже из палитры: полосы, флажки, курсор. */
  scrollbar-color: var(--line-2) var(--bg);
  accent-color: var(--accent);
  caret-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

body {
  margin: 0;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}

/* Цифры — тем же шрифтом, что текст, но табличные: столбцы ровные без
   моноширинного «костюма». */
.num {
  font-variant-numeric: tabular-nums;
}

.pos {
  color: var(--pos);
}

.neg {
  color: var(--neg);
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a.sr-only:focus {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Два размера делают работу: очень крупный и текстовый. Заголовок — не
   больше двух строк на любой ширине; 32 px на телефоне это и держат. */
h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  font-size: var(--fs-lead);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  max-width: 66ch;
}

.lead {
  font-size: var(--fs-lead);
  max-width: 34em;
}

/* ---------- Кнопки ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 0;
  transition:
    background-color 160ms ease,
    transform 160ms var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-ghost {
  background: var(--surface);
}

.btn-ghost:hover {
  background: var(--line);
}

/* Меньше по ширине, но не по высоте: 44 px — нижняя граница пальца. */
.btn-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: var(--fs-small);
}

@media (prefers-reduced-motion: no-preference) {
  .btn:active {
    transform: scale(0.97);
  }
}

/* ---------- Шапка ----------------------------------------------------- */

/* Простая полоса: имя, несколько ссылок, одно действие. Без стекла. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.top .container {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-weight: 800;
  font-size: var(--fs-lead);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.top nav {
  display: flex;
  gap: 22px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.top nav a {
  text-decoration: none;
}

.top nav a:hover {
  color: var(--ink);
}

.top .cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.signin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}

.signin:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .top nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo span {
    display: none;
  }
  .top .cta .btn {
    padding: 0 14px;
  }
}

/* ---------- Секции ---------------------------------------------------- */

section {
  padding-block: var(--section);
}

/* Секции разделяет шаг тона, а не линия. */
#how,
#fit,
#price {
  background: var(--bg-2);
}

.head.flush {
  margin: 0;
}

.head {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
  max-width: 46em;
}

/* ---------- Первый экран ---------------------------------------------- */

.hero {
  padding-top: clamp(40px, 6vw, 88px);
}

.hero .container {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
}

.hero h1 {
  max-width: 12em;
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .fine {
  margin-top: 16px;
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 34em;
}

@media (max-width: 860px) {
  .hero-body {
    grid-template-columns: 1fr;
  }
}

/* ---------- Карточка сигнала ------------------------------------------ */

.ticket {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: clamp(20px, 2.4vw, 32px);
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.ticket-match {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.ticket-league {
  font-size: 14px;
  color: var(--muted);
  margin-top: 2px;
}

/* Три числа сигнала — открыто, без плиток внутри плитки. */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.ticket-grid .k {
  font-size: 13px;
  color: var(--muted);
}

.ticket-grid .v {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.ticket-grid .hl .v {
  color: var(--accent);
}

.ticket-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--ink-2);
}

.ticket-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .ticket {
    padding: 18px;
  }
  .ticket-grid {
    gap: 10px;
  }
  .ticket-grid .v {
    font-size: 24px;
  }
}

.ticket.empty {
  display: grid;
  place-items: center;
  min-height: 300px;
  text-align: center;
  color: var(--muted);
}

/* Единственный задуманный момент первого экрана: настоящий сигнал
   приходит с сервера и раскладывается сверху вниз. Страница до него уже
   видна — анимируется только пришедшее. */
@media (prefers-reduced-motion: no-preference) {
  .ticket:not(.empty) > * {
    animation: rise 520ms var(--ease-out) both;
  }
  .ticket:not(.empty) > :nth-child(2) {
    animation-delay: 50ms;
  }
  .ticket:not(.empty) > :nth-child(3) {
    animation-delay: 100ms;
  }
  .ticket:not(.empty) > :nth-child(4) {
    animation-delay: 150ms;
  }
  .ticket:not(.empty) > :nth-child(n + 5) {
    animation-delay: 200ms;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- Как это работает ------------------------------------------ */

/* Три числа одного сигнала в ряд: порядок показывает место, а не номера
   в кружках. Число — главное, крупно. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 12px;
  align-content: start;
}

.steps .big {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}



.after {
  margin-top: clamp(36px, 4vw, 56px);
  background: var(--surface);
  border-radius: var(--r-l);
  padding: 22px 26px;
  display: grid;
  gap: 6px;
  max-width: 52em;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Результаты ------------------------------------------------ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 18px 20px;
}

.stat .k {
  font-size: var(--fs-small);
  color: var(--muted);
}

.stat .v {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.15;
}

.stat .h {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note {
  background: var(--note-bg);
  border-radius: var(--r-m);
  padding: 20px 22px;
  display: grid;
  gap: 6px;
}

.note strong {
  color: var(--ink);
}

.chart {
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 18px 20px 12px;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.chart svg {
  width: 100%;
  height: 180px;
  margin-top: 10px;
  overflow: visible;
}

.chart .bar-pos {
  fill: var(--pos);
}

.chart .bar-neg {
  fill: var(--neg);
}

.chart .bar-n {
  fill: var(--line-2);
}

.chart .axis {
  stroke: var(--line-2);
}

.chart text {
  fill: var(--muted);
  font-size: 11px;
}

.more {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ---------- Кому подходит --------------------------------------------- */

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: clamp(22px, 2.6vw, 32px);
}

.card h3 {
  margin-bottom: 16px;
}

h3.gap {
  margin-top: 28px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.list li {
  position: relative;
  padding-left: 28px;
}

.list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.list.warn li::before {
  background: none;
  border: 2px solid var(--neg);
}

/* «Не делает» — короткая черта, а не символ «×» вместо значка. */
.list.no li::before {
  top: 0.78em;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--muted);
}

.list strong {
  color: var(--ink);
}

@media (max-width: 860px) {
  .two {
    grid-template-columns: 1fr;
  }
}

/* ---------- Тариф ----------------------------------------------------- */

.price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.price-main {
  background: var(--accent-soft);
  border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 16px;
  align-content: start;
}

.price-sum {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-sum small {
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .price {
    grid-template-columns: 1fr;
  }
}

/* ---------- Вопросы --------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 52em;
}

.faq details {
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 0 24px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Значок нарисован, а не набран «+»: шеврон поворачивается за 200 мс. */
.faq summary::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
}

.faq details > div {
  padding-bottom: 22px;
  display: grid;
  gap: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > div {
    animation: rise 260ms var(--ease-out);
  }
}

/* ---------- Финальный экран ------------------------------------------- */

/* Закрытие — поле акцентного цвета целиком; единственное место по центру. */
.final {
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
}

.final .container {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.final .lead {
  color: inherit;
}

.final .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.final .btn-primary {
  background: var(--accent-ink);
  color: var(--accent);
}

.final .btn-primary:hover {
  background: color-mix(in srgb, var(--accent-ink) 88%, var(--accent));
}

.final .btn-ghost {
  background: color-mix(in srgb, var(--accent-ink) 14%, transparent);
  color: inherit;
}

.final .btn-ghost:hover {
  background: color-mix(in srgb, var(--accent-ink) 24%, transparent);
}

.final :focus-visible {
  outline-color: var(--accent-ink);
}

/* ---------- Подвал ---------------------------------------------------- */

footer {
  background: var(--bg-2);
  padding-block: clamp(36px, 5vw, 64px) 44px;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

footer .container {
  display: grid;
  gap: 16px;
}

/* Имя возвращается во всю ширину — подвал как закрытие, а не карта сайта. */
.footer-name {
  font-size: clamp(44px, 10.5vw, 150px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: clamp(8px, 2vw, 24px);
}

.disclaim {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.age {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  font-size: var(--fs-small);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

footer nav a:hover {
  text-decoration: underline;
}

/* ---------- Страница результатов -------------------------------------- */

.page {
  padding-block: clamp(40px, 6vw, 72px) var(--section);
}

.page > .container {
  display: grid;
  gap: 28px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.table-wrap {
  background: var(--surface);
  border-radius: var(--r-m);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  background: var(--bg-2);
}

td.r,
th.r {
  text-align: right;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td .sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.res {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-2);
  color: var(--ink-2);
}

.res.win {
  background: var(--accent-soft);
  color: var(--pos);
}

.res.loss {
  color: var(--neg);
}

/* Телефон: строка таблицы становится карточкой, подпись столбца — перед
   значением. Горизонтальная прокрутка таблицы в 13 столбцов на 390 px
   читалась бы как обрыв страницы. */
@media (max-width: 760px) {
  .cards thead {
    display: none;
  }
  .cards,
  .cards tbody,
  .cards tr,
  .cards td {
    display: block;
  }
  .cards tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
  }
  .cards td {
    border: 0;
    padding: 0;
    text-align: left;
  }
  .cards td.r {
    text-align: left;
  }
  .cards td.wide {
    grid-column: 1 / -1;
  }
  /* Время и итог — одной строкой сверху: «когда» и «чем кончилось». */
  .cards td:first-child {
    grid-column: span 2;
  }
  .cards td:last-child {
    grid-column: 3;
    grid-row: 1;
  }
  .cards td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
}

/* ---------- Правовые тексты ------------------------------------------- */

.legal {
  max-width: 46em;
  display: grid;
  gap: 18px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 18px;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

/* ---------- Фрагменты интерфейса ------------------------------------- */

/* Сообщения бота, строка кабинета, последние строки результатов — куски
   настоящего интерфейса на настоящих данных (data-ui). Внутри них действуют
   правила самого интерфейса: его мелкие подписи, рамки таблиц, плашки
   состояния. Снаружи страница держит свои. */

/* Текст и Telegram — рядом, кабинет — во всю ширину под ними: таблице в
   восемь столбцов нужна ширина, как в самом кабинете. */
.seen {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 64px);
}

.seen-grid {
  display: contents;
}

.seen-text {
  align-self: center;
  display: grid;
  gap: 14px;
}

[data-ui].cab {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .seen {
    grid-template-columns: 1fr;
  }
}

figure[data-ui] {
  margin: 0;
}

/* Telegram: шапка чата и два входящих сообщения. */
[data-ui].tg {
  background: var(--bg);
  border-radius: var(--r-l);
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
}

[data-ui] .tg-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
}

[data-ui] .tg-bar span:last-child {
  display: grid;
  line-height: 1.25;
}

[data-ui] .tg-bar small {
  color: var(--muted);
  font-size: 13px;
}

[data-ui] .tg-ava {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
}

[data-ui] .tg-ava svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-ui] .tg-chat {
  display: grid;
  gap: 8px;
  padding: 16px;
}

[data-ui] .tg-msg {
  justify-self: start;
  max-width: 100%;
  background: var(--surface);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px 8px;
}

[data-ui] .tg-msg p {
  white-space: pre-wrap;
  max-width: none;
}

[data-ui] .tg-msg time {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

[data-ui] .tg-link {
  color: var(--accent);
}

/* Кабинет: заголовок экрана, подсказка, строка сигнала и кнопки отметки. */
[data-ui].cab {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: 16px 0 8px;
  font-size: 12px;
  line-height: 1.45;
}

[data-ui] .cab-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 16px;
  font-size: 15px;
}

[data-ui] .cab-title span,
[data-ui] .cab-muted,
[data-ui] .cab-table th,
[data-ui] .cab-table td span {
  color: var(--muted);
}

[data-ui] .cab-hint {
  padding: 6px 16px 12px;
  color: var(--muted);
  max-width: none;
}

[data-ui] .cab-table {
  width: 100%;
  border-collapse: collapse;
}

[data-ui] .cab-table th {
  font-weight: 400;
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
  background: none;
  border-bottom: 1px solid var(--line);
}

[data-ui] .cab-table td {
  padding: 10px 10px 0;
  border: 0;
  vertical-align: top;
}

[data-ui] .cab-table td span {
  display: block;
}

[data-ui] .cab-table em,
[data-ui] .cab-card em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}

[data-ui] .cab-table i {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
}

[data-ui] .cab-table .cab-act td {
  padding: 6px 10px 12px;
  border-bottom: 1px solid var(--line);
}

[data-ui] .r {
  text-align: right;
}

[data-ui] .acc {
  color: var(--accent);
  font-size: 14px;
}

[data-ui] .good {
  color: var(--pos);
}

[data-ui] .cab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

[data-ui] .cab-btn,
[data-ui] .cab-badge,
[data-ui] .cab-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  white-space: nowrap;
}

[data-ui] .cab-btn.good,
[data-ui] .cab-badge,
[data-ui] .cab-chip.good {
  border-color: color-mix(in srgb, var(--pos) 40%, transparent);
  background: color-mix(in srgb, var(--pos) 10%, transparent);
  color: var(--pos);
}

[data-ui] .cab-card {
  display: none;
  gap: 8px;
  padding: 12px 16px 8px;
  font-size: 13px;
}

[data-ui] .cab-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

[data-ui] .cab-card-top em {
  font-size: 15px;
}

[data-ui] .cab-card-top b {
  font-size: 20px;
  font-weight: 400;
}

[data-ui] .cab-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

/* На телефоне кабинет показывает карточку, а не таблицу, — фрагмент тоже. */
@media (max-width: 760px) {
  [data-ui] .cab-table {
    display: none;
  }
  [data-ui] .cab-card {
    display: grid;
  }
}

/* Последние строки публичной страницы результатов. */
[data-ui].latest {
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 14px 0 4px;
  font-size: 14px;
}

[data-ui] .latest-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 0 16px 10px;
}

[data-ui] .latest-title span {
  color: var(--muted);
}

[data-ui].latest th {
  background: none;
}

[data-ui].latest tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Появление по прокрутке ------------------------------------ */

/* Части секции входят по очереди, через 70 мс, а не одним блоком. Уменьшенное
   движение — без смещения: содержимое сразу на месте. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 560ms var(--ease-out),
      transform 560ms var(--ease-out);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  .js .steps > .reveal:nth-child(2),
  .js .seen-grid > .reveal:nth-child(2),
  .js .two > .reveal:nth-child(2),
  .js .price > .reveal:nth-child(2),
  .js .faq > .reveal:nth-child(3) {
    transition-delay: 70ms;
  }
  .js .steps > .reveal:nth-child(3),
  .js .faq > .reveal:nth-child(4) {
    transition-delay: 140ms;
  }
}
