/* Лендинг cheki.kz.
 * Цвета, радиусы, тени и шрифт — из src/styles/tokens.css (файл приложения, не править).
 * Здесь только раскладка лендинга: сетка, кегли и отступы из раздела 3 ТЗ.
 *
 * Зонирование по правилу дизайн-системы: деньги и сделка в тёмной зоне
 * (первый экран, отчёты, форма), длинное чтение — на светлой простыне.
 * На каждой границе тёмного и светлого — карточка-врезка. */

:root {
  /* Шрифт сайта — Onest (решение от 2026-09-07). Inter остаётся только
     у слова «Cheki» в логотипе: так задан фирменный локап в brand/. */
  --font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --l-max: 1140px;
  --l-gutter: 20px;
  --l-section: 64px;
  --l-head-gap: 32px;
  --l-card-gap: 16px;
  --l-header: 64px;
  /* Шаг линовки в колонке «Сейчас» = line-height основного текста. */
  --l-rule: 28px;
  /* Насколько скриншот отчётов выходит из тёмной полосы. */
  --l-cut: 96px;
  /* Где в блоке формы светлая земля переходит в тёмную. */
  --l-cta-cut: 48px;
  /* Тёмное стекло шапки и мобильной панели: белое стекло поверх ink даёт молочную полосу. */
  --l-glass-dark: rgba(13, 22, 21, 0.8);
  --l-shadow-hover: 0 8px 24px rgba(13, 22, 21, 0.07);
}

@media (min-width: 768px) {
  :root {
    --l-gutter: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --l-section: 112px;
    --l-head-gap: 48px;
    --l-card-gap: 24px;
    --l-header: 72px;
    --l-rule: 30px;
    --l-cut: 160px;
    --l-cta-cut: 120px;
  }
}

/* --- База ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--l-header) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 28px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

body.has-stickybar {
  padding-bottom: 88px;
}

@media (min-width: 1024px) {
  body {
    font-size: 18px;
    line-height: 30px;
  }
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  h1 {
    font-size: 56px;
    line-height: 64px;
  }

  h2 {
    font-size: 40px;
    line-height: 48px;
  }

  h3 {
    font-size: 20px;
    line-height: 28px;
  }
}

.small {
  font-size: 15px;
  line-height: 24px;
}

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

a {
  color: var(--interactive-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--interactive-primary);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--interactive-glow);
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: calc(var(--l-max) + 2 * var(--l-gutter));
  margin: 0 auto;
  padding: 0 var(--l-gutter);
}

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

/* Ссылка «к содержимому»: не видна, пока её не поймает клавиатура.
   Без неё до текста страницы восемь табов — логотип, четыре пункта меню
   и две кнопки шапки, и так на каждой странице.
   z-index выше шапки (20), иначе она перекроет ссылку. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--interactive-glow);
  color: var(--ink);
  font: 600 15px/1.2 var(--font-family);
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: 600 17px/1.2 var(--font-family);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.16s ease-out,
    border-color 0.16s ease-out,
    filter 0.16s ease-out,
    transform 0.08s ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px var(--interactive-primary),
    var(--focus-ring);
}

.btn--primary {
  background: var(--interactive-primary);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--interactive-deep);
  color: var(--on-brand);
}

.btn--secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-regular);
}

.btn--secondary:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.btn--compact {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  background: var(--text-tertiary);
  border-color: transparent;
  color: var(--on-brand);
  cursor: default;
  transform: none;
}

/* Токены прямо говорят: #538083 на ink тонет. На тёмном — glow. */
.on-dark .btn--primary {
  background: var(--interactive-glow);
  color: var(--ink);
}

.on-dark .btn--primary:hover {
  background: var(--interactive-glow);
  color: var(--ink);
  filter: brightness(1.08);
}

.on-dark .btn--secondary {
  background: var(--on-dark-fill);
  color: var(--on-dark);
  border-color: var(--on-dark-line);
}

.on-dark .btn--secondary:hover {
  background: var(--on-dark-fill);
  color: var(--on-dark);
  filter: brightness(1.25);
}

.on-dark .btn:focus-visible {
  box-shadow:
    0 0 0 1px var(--interactive-glow),
    var(--focus-ring-dark);
}

.btn__spinner {
  display: none;
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn.is-loading .btn__spinner {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .btn--block {
    width: 100%;
  }
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--l-header);
  background: var(--l-glass-dark);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease-out;
}

.header.is-scrolled {
  border-bottom-color: var(--on-dark-line);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--on-dark);
  font-family: 'Inter', var(--font-family);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo:hover {
  color: var(--on-dark);
}

.logo svg {
  width: 24px;
  height: 28px;
}

.nav {
  display: none;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--on-dark-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--on-dark);
}

.header__actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.header__login {
  display: none;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .header__actions {
    margin-left: 0;
  }

  .header__login {
    display: inline-flex;
  }
}

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

.hero {
  background: var(--ink);
  color: var(--on-dark);
  /* +40px снизу: полоса доверия наполовину заходит в тёмную зону. */
  padding: var(--l-section) 0 calc(var(--l-section) + 40px);
}

.hero .wrap {
  display: grid;
  gap: 40px;
}

/* Перенос заголовка после «тех,» только на десктопе, чтобы вторая строка была цельной. */
.hero__br {
  display: none;
}

@media (min-width: 1024px) {
  .hero__br {
    display: inline;
  }
}

/* Второй «финансовый учёт» как маркер: подложка glow, текст ink. */
.hero__accent {
  padding: 0 0.16em;
  border-radius: 0.2em;
  background: var(--interactive-glow);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  margin-top: 20px;
  color: var(--on-dark-2);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  margin-top: 20px;
  color: var(--on-dark-2);
  max-width: 34em;
}

.hero__visual {
  /* На мобильном телефон показан на 70% и растворяется в тёмной зоне. */
  max-height: 430px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

@media (min-width: 1024px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: center;
  }

  /* Заголовок первого экрана в две строки: 48/56 вместо 56/64 из ТЗ, решение Айдына. */
  .hero h1 {
    font-size: 48px;
    line-height: 58px;
  }

  .hero__lead {
    margin-top: 24px;
  }

  .hero__actions {
    margin-top: 36px;
  }

  .hero__visual {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Телефон: ободок из ink-3 с ниткой on-dark-line — край устройства под лампой.
   Тёмная шапка скриншота сливается с фоном секции, остаётся светлая простыня и сумма. */
.phone {
  width: 300px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 48px;
  background: var(--ink-3);
  box-shadow:
    inset 0 0 0 1px var(--on-dark-line),
    var(--shadow-2);
}

.phone__screen {
  aspect-ratio: 280 / 600;
  overflow: hidden;
  border-radius: 38px;
  background: var(--bg-page);
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* --- Полоса доверия: первая врезка ------------------------------------ */

.trust {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.trust__card {
  padding: 24px 0 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: var(--shadow-2);
  text-align: center;
}

.trust__title {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
}

/* Бесконечная лента логотипов. Единственное самодвижение на странице,
   по просьбе заказчика. Останавливается при наведении и при reduced-motion. */
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 56px;
  min-width: 100%;
  padding: 0 28px;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__track a {
  display: block;
  padding: 6px 0;
  opacity: 0.7;
  filter: grayscale(1);
  transition:
    opacity 0.16s ease-out,
    filter 0.16s ease-out;
}

.marquee__track a:hover,
.marquee__track a:focus-visible {
  opacity: 1;
  filter: none;
}

.marquee__track img {
  height: 36px;
  width: auto;
  max-width: none;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 40px;
    animation: none;
  }

  .marquee__track[aria-hidden='true'] {
    display: none;
  }
}

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

.section {
  padding: var(--l-section) 0;
}

/* Соседние секции на одной земле делят один отступ, иначе 112+112 пустоты. */
.section + .section,
.reports + .section {
  padding-top: 0;
}

.section__head {
  margin-bottom: var(--l-head-gap);
}

.section__head--center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head p {
  margin-top: 16px;
  color: var(--text-secondary);
}

.card {
  padding: 24px;
  border: 1px solid var(--border-regular);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  transition: box-shadow 0.16s ease-out;
}

.card:hover {
  box-shadow: var(--l-shadow-hover);
}

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

.card p {
  color: var(--text-secondary);
}

.grid-4 {
  display: grid;
  gap: var(--l-card-gap);
}

@media (min-width: 768px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Иконки в языке логотипа: штрих 1.8, скруглённые стыки. */
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  background: var(--interactive-bg);
  color: var(--interactive-primary);
}

.icon svg {
  width: 26px;
  height: 26px;
}

.callout {
  margin-top: var(--l-head-gap);
  padding: 20px 24px;
  border-left: 3px solid var(--interactive-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--interactive-bg);
}

/* --- Сейчас / С cheki: таблица пар, тетрадь против выписки ------------ */

.compare {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border-regular);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
}

.compare__row {
  display: contents;
}

.compare__head,
.compare__now,
.compare__cheki {
  margin: 0;
  padding: 16px 20px;
}

.compare__head {
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
}

.compare__head--now {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.compare__head--cheki {
  background: var(--interactive-bg);
  color: var(--interactive-deep);
}

/* Левая клетка: линованная бумага, текст сидит на линии. */
.compare__now {
  position: relative;
  padding-left: 48px;
  /* Линовка только под текстом (content-box), заливка на всю клетку. */
  background:
    repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent calc(var(--l-rule) - 1px),
        var(--border-regular) calc(var(--l-rule) - 1px),
        var(--border-regular) var(--l-rule)
      )
      content-box content-box,
    var(--bg-surface);
  color: var(--text-secondary);
}

.compare__now::before {
  content: '';
  position: absolute;
  left: 20px;
  top: calc(16px + var(--l-rule) / 2 - 1px);
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--text-tertiary);
}

/* Правая клетка: выписка, галочка из логотипа. */
.compare__cheki {
  position: relative;
  padding-left: 52px;
  color: var(--text-primary);
}

.compare__cheki::before {
  content: '';
  position: absolute;
  left: 20px;
  top: calc(16px + var(--l-rule) / 2 - 10px);
  width: 20px;
  height: 20px;
  background: var(--interactive-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8' fill='none' stroke='%23000' stroke-width='2.3' 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 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Подпись колонки внутри каждой клетки. На десктопе её не видно: там роль
   играют заголовки .compare__head. Но заголовки — соседи клеток, а не
   заголовки колонок, поэтому вслух пары читались бы как десять абзацев
   подряд без указания, где «сейчас», а где «с cheki». Эта подпись даёт
   привязку и живёт настоящим текстом, а не content в псевдоэлементе:
   псевдоэлементы скринридеры озвучивают ненадёжно. */
.compare__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Мобильный: заголовки колонок скрыты, каждая пара подписана сама. */
@media (max-width: 1023px) {
  .compare {
    grid-template-columns: 1fr;
  }

  .compare__head {
    display: none;
  }

  .compare__now,
  .compare__cheki {
    padding-top: 40px;
  }

  /* Здесь та же подпись становится видимой: заголовков колонок нет. */
  .compare__label {
    position: absolute;
    left: 20px;
    top: 12px;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .compare__now .compare__label {
    color: var(--text-tertiary);
  }

  .compare__cheki .compare__label {
    color: var(--interactive-deep);
  }

  .compare__now::before {
    top: calc(40px + var(--l-rule) / 2 - 1px);
  }

  .compare__cheki::before {
    top: calc(40px + var(--l-rule) / 2 - 10px);
  }

  .compare__row + .compare__row .compare__now {
    border-top: 1px solid var(--border-regular);
  }
}

@media (min-width: 1024px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }

  .compare__head,
  .compare__now,
  .compare__cheki {
    padding: 20px 28px;
  }

  .compare__now {
    padding-left: 60px;
  }

  .compare__now::before {
    left: 28px;
    top: calc(20px + var(--l-rule) / 2 - 1px);
  }

  .compare__cheki {
    padding-left: 64px;
    border-left: 2px solid var(--interactive-primary);
  }

  .compare__head--cheki {
    border-left: 2px solid var(--interactive-primary);
  }

  .compare__cheki::before {
    left: 28px;
    top: calc(20px + var(--l-rule) / 2 - 10px);
  }

  .compare__row .compare__now,
  .compare__row .compare__cheki {
    border-top: 1px solid var(--border-regular);
  }
}

/* --- Три шага --------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--l-card-gap);
}

.step__num {
  margin-bottom: 12px;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--interactive-primary);
}

.step p {
  margin-top: 8px;
  color: var(--text-secondary);
}

.shot {
  aspect-ratio: 4 / 5;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border-regular);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.steps__note {
  margin-top: var(--l-head-gap);
  color: var(--text-secondary);
  text-align: center;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* --- Песочница: слева экран кассира, справа отчёт владельца ----------- */

.try__grid {
  display: grid;
  gap: 32px;
  justify-items: center;
}

.try__phone {
  width: 320px;
  max-width: 100%;
}

/* Высота экрана фиксирована: список прокручивается внутри, кнопки не уезжают,
   страница не дёргается при добавлении записей. */
.try__screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  height: 640px;
}

.try__bar {
  padding: 28px 20px 20px;
  background: var(--ink);
  color: var(--on-dark);
}

.try__bar-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.try__bar-sub,
.try__report-sub {
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--on-dark-3);
}

.try__bar-label,
.try__report-label {
  margin-top: 20px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--on-dark-2);
}

.try__bar-amount {
  margin-top: 4px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.try__list {
  flex: 1;
  margin: -12px 12px 0;
  padding: 4px 0;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: var(--shadow-1);
  overflow-y: auto;
  min-height: 0;
  scroll-behavior: smooth;
}

.try__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  line-height: 20px;
  animation: try-in 0.2s ease-out;
}

.try__row:first-child {
  border-top: 0;
}

.try__row-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text-primary);
}

.try__row-name small {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}

.try__row-amount {
  flex-shrink: 0;
  font-weight: 600;
}

.try__row--income .try__row-amount {
  color: var(--status-ok-text);
}

.try__row--expense .try__row-amount {
  color: var(--text-primary);
}

@keyframes try-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.try__empty {
  margin: 8px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}

.try__actions {
  display: grid;
  gap: 8px;
  padding: 16px 12px 16px;
}

.try__actions .btn {
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
}

.try__count {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(13, 22, 21, 0.1);
  font-size: 12px;
  font-weight: 600;
}

.btn--secondary .try__count {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.try__reset {
  margin-top: 2px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: 500 14px/20px var(--font-family);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.try__reset:hover {
  color: var(--text-primary);
}

.try__report {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-primary);
  box-shadow: var(--shadow-2);
}

.try__report-head {
  padding: 28px 28px 24px;
  background: var(--ink);
  color: var(--on-dark);
}

.try__report-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.try__report-profit {
  margin-top: 4px;
  font-size: 40px;
  line-height: 46px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.16s ease-out;
}

.try__report-profit.is-loss,
.try__pnl dd.is-loss {
  color: var(--status-danger-glow);
}

.try__pnl dd.is-loss {
  color: var(--status-danger-text);
}

.try__report-body {
  padding: 8px 28px 24px;
}

.try__pnl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px;
  line-height: 22px;
}

.try__pnl dt {
  color: var(--text-secondary);
}

.try__pnl dd {
  font-weight: 600;
  color: var(--text-primary);
}

.try__pnl dd.is-changed {
  animation: try-flash 0.5s ease-out;
}

@keyframes try-flash {
  from {
    background: var(--interactive-bg);
  }
}

.try__cats {
  margin-top: 20px;
}

.try__cats-title {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.try__cats ul {
  min-height: 176px;
}

.try__cats li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 8px 0;
  font-size: 14px;
  line-height: 20px;
}

.try__cat-name {
  color: var(--text-secondary);
}

.try__cat-amount {
  font-weight: 500;
  color: var(--text-primary);
}

.try__cat-bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 3px;
  background: var(--border-soft);
  overflow: hidden;
}

.try__cat-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--interactive-primary);
  transition: width 0.25s ease-out;
}

.try__cats-empty {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 20px;
}

.try__note {
  margin-top: 20px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

/* Подсказка-призрак: курсор подъезжает к кнопке и нажимает её, пока человек сам
   не навёл мышь или не коснулся блока. На тач-устройствах вместо стрелки кружок. */
.try__phone {
  position: relative;
}

.try__ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 28px;
  height: 28px;
  opacity: 0;
  pointer-events: none;
  transform: translate(var(--gx, 200px), var(--gy, 400px));
  transition:
    transform 0.9s cubic-bezier(0.3, 0, 0.2, 1),
    opacity 0.3s ease-out;
}

.try__ghost.is-visible {
  opacity: 1;
}

.try__ghost svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(13, 22, 21, 0.35));
}

.try__ghost--touch {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(13, 22, 21, 0.35);
  box-shadow: 0 2px 8px rgba(13, 22, 21, 0.3);
}

.try__ghost.is-press {
  transition: transform 0.12s ease-out, opacity 0.3s ease-out;
  transform: translate(var(--gx, 200px), var(--gy, 400px)) scale(0.85);
}

.btn.is-ghost-press {
  transform: scale(0.97);
}

.btn.is-hinted {
  animation: try-hint 1.4s ease-out 2;
}

@keyframes try-hint {
  0% {
    box-shadow: 0 0 0 0 rgba(83, 128, 131, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(83, 128, 131, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(83, 128, 131, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .try__ghost {
    display: none;
  }

  .btn.is-hinted {
    animation: none;
  }
}

@media (min-width: 1024px) {
  .try__grid {
    grid-template-columns: 320px minmax(0, 480px);
    justify-content: center;
    align-items: start;
    gap: 64px;
  }
}

/* --- Отчёты: тёмная полоса и врезка скриншота ------------------------- */

.reports__band {
  padding: var(--l-section) 0 0;
  background: var(--ink);
  color: var(--on-dark);
}

.reports__shot {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  margin-top: var(--l-head-gap);
  margin-bottom: calc(-1 * var(--l-cut));
  overflow: hidden;
  /* Нитка по краю: на тёмном шапка скриншота сливается с полосой, край карточки должен читаться. */
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-xl);
  background: var(--bg-primary);
  box-shadow: var(--shadow-2);
}

.reports__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* На мобильном показываем левый верх: главная сумма и график. */
  object-position: left top;
}

.reports__body {
  padding: calc(var(--l-cut) + var(--l-head-gap)) 0 var(--l-section);
}

.checks {
  display: grid;
  gap: 16px 32px;
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--interactive-bg);
  -webkit-mask: none;
}

.checks li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background: var(--interactive-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%23000' stroke-width='2.3' 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 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.checks li b {
  font-weight: 600;
}

@media (min-width: 768px) {
  .checks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .reports__shot {
    aspect-ratio: 1140 / 640;
  }

  .checks {
    gap: 20px 48px;
  }

  .checks li::before,
  .checks li::after {
    top: 5px;
  }
}

/* --- Кому подходит: колесо ниш, как барабан выбора даты в iPhone --------
   Секция высокая, внутри sticky-экран: пока страница едет, колесо крутится.
   Высоту и 3D-раскладку включает JS классом is-ready; без него обычный список. */

.wheel-section {
  --wheel-step: 48px;
  --wheel-font: 26px;
  --wheel-pin: 800px;
  padding: var(--l-section) 0;
}

.wheel-section__sticky .wrap {
  text-align: center;
}

.wheel__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 auto;
  max-width: 20em;
}

.wheel__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', var(--font-family);
  letter-spacing: -0.03em;
}

.wheel__brand svg {
  width: 0.95em;
  height: 1.1em;
}

.wheel__arrow {
  color: var(--interactive-primary);
}

.wheel {
  position: relative;
  margin: 24px auto 0;
  max-width: 640px;
}

.wheel__list {
  display: grid;
  gap: 8px;
  font-size: var(--wheel-font);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.notes--wheel {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Состояние с JS: цилиндр, видно пять значений. */
/* Экран залипает под шапкой, а распорка ::after даёт длину прокрутки для колеса.
   Именно распорка, не padding: sticky ходит только внутри контентной области родителя. */
.wheel-section.is-ready {
  padding: 0;
}

.wheel-section.is-ready::after {
  content: '';
  display: block;
  height: var(--wheel-pin);
}

.wheel-section.is-ready .wheel-section__sticky {
  position: sticky;
  top: var(--l-header);
  padding: 48px 0 40px;
  background: var(--bg-page);
}

.wheel-section.is-ready .wheel {
  height: calc(var(--wheel-step) * 5);
  perspective: 900px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

/* Полоса выбора по центру, как у системного барабана. */
.wheel-section.is-ready .wheel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: calc(var(--wheel-step) + 8px);
  transform: translateY(-50%);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-regular);
}

.wheel-section.is-ready .wheel__list {
  display: block;
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
}

.wheel-section.is-ready .wheel__list li {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: calc(var(--wheel-step) / -2);
  height: var(--wheel-step);
  line-height: var(--wheel-step);
  color: var(--text-tertiary);
  white-space: nowrap;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: color 0.15s ease-out;
}

.wheel-section.is-ready .wheel__list li.is-active {
  color: var(--text-primary);
}

.wheel-section.is-ready .notes--wheel {
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .wheel-section {
    --wheel-step: 72px;
    --wheel-font: 40px;
    --wheel-pin: 1200px;
  }

  .wheel {
    margin-top: 40px;
  }

  .wheel-section.is-ready .notes--wheel {
    margin-top: 48px;
  }

  .wheel-section.is-ready .wheel-section__sticky {
    padding: 72px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wheel-section.is-ready .wheel__list li {
    transition: none;
  }
}

.notes {
  display: grid;
  gap: 12px;
  margin-top: var(--l-head-gap);
}

.notes li {
  position: relative;
  padding-left: 24px;
  color: var(--text-secondary);
}

.notes li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--interactive-primary);
}

.notes b {
  color: var(--text-primary);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .notes {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* --- Кейсы ------------------------------------------------------------ */

.cases {
  display: grid;
  gap: var(--l-card-gap);
}

.case {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.case__type {
  margin-top: 2px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.case dl {
  display: grid;
  gap: 12px;
}

.case dt {
  font-weight: 600;
  color: var(--text-primary);
}

.case dd {
  color: var(--text-secondary);
}

.case blockquote {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-regular);
}

.case blockquote > p:first-child {
  margin-top: 20px;
  color: var(--text-primary);
}

.case cite {
  display: block;
  margin-top: 12px;
  color: var(--text-secondary);
  font-style: normal;
  font-size: 15px;
  line-height: 24px;
}

.case cite b {
  color: var(--text-primary);
  font-weight: 600;
}

/* Черновик кейса: текст в квадратных скобках ждёт материалов. Не публиковать пустым. */
.case--draft dd,
.case--draft blockquote > p:first-child {
  color: var(--text-tertiary);
}

/* Две карточки занимают ряд целиком, шесть встанут в три колонки. */
@media (min-width: 768px) {
  .cases {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

/* --- Вопросы: только текст и линии, пауза перед формой ---------------- */

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq details {
  border-top: 1px solid var(--border-regular);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border-regular);
}

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

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

.faq summary h3 {
  font-size: 18px;
  line-height: 26px;
}

.faq summary:hover h3 {
  color: var(--interactive-deep);
}

.faq__chev {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--text-secondary);
  transition: transform 0.16s ease-out;
}

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

.faq details > p {
  max-width: 40em;
  padding: 0 40px 24px 0;
  color: var(--text-secondary);
}

/* --- Форма: светлое переходит в тёмное, карточка на границе ----------- */

.cta {
  padding: 0 0 var(--l-section);
  background: linear-gradient(
    to bottom,
    var(--bg-page) var(--l-cta-cut),
    var(--ink) var(--l-cta-cut)
  );
  color: var(--on-dark);
}

.cta .wrap {
  display: grid;
  gap: 32px;
}

.cta__text {
  padding-top: calc(var(--l-cta-cut) + 32px);
}

.cta__text p {
  margin-top: 20px;
  max-width: 30em;
  color: var(--on-dark-2);
}

.form-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-2);
}

@media (min-width: 1024px) {
  .cta .wrap {
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 64px;
    align-items: start;
  }

  .cta__text {
    padding-top: calc(var(--l-cta-cut) + 48px);
  }

  .form-card {
    padding: 32px;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-regular);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 17px/24px var(--font-family);
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out;
}

.field textarea {
  min-height: 104px;
  padding: 13px 16px;
  resize: vertical;
}

.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235c6a68' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--interactive-primary);
  box-shadow: var(--focus-ring);
}

.field__error {
  display: none;
  color: var(--status-danger-text);
  font-size: 15px;
  line-height: 24px;
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--status-danger-text);
}

.field.is-invalid .field__error {
  display: block;
}

.form__alert {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  font-size: 15px;
  line-height: 24px;
}

.form__alert.is-visible {
  display: block;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 24px;
}

.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--interactive-primary);
}

/* Согласие проверяется наравне с полями, но подсветить у него нечего:
   у галочки нет рамки, как у input'а. Поэтому об ошибке говорят обводка
   самой галочки и подпись под ней — иначе нажатие на кнопку выглядит
   так, будто на странице ничего не произошло. */
.consent-field {
  margin-bottom: 20px;
}

.consent-field .consent {
  margin-bottom: 0;
}

.consent-field.is-invalid .consent input {
  outline: 2px solid var(--status-danger-text);
  outline-offset: 2px;
}

.consent-field.is-invalid .field__error {
  display: block;
  margin-top: 8px;
  padding-left: 30px;
}

/* Поле-ловушка для ботов: вне экрана, вне порядка табуляции. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn {
  width: 100%;
}

/* --- Подвал: заявить о себе во всю ширину -------------------------------- */

.footer {
  padding: var(--l-section) 0 24px;
  border-top: 1px solid var(--on-dark-line);
  background: var(--ink);
  color: var(--on-dark-2);
  overflow: hidden;
}

.footer .wrap {
  container-type: inline-size;
}

.footer__top {
  display: grid;
  gap: 32px;
}

.footer__tagline {
  margin-top: 16px;
  max-width: 22em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
}

.footer__nav a,
.footer__links a {
  color: var(--on-dark-2);
  text-decoration: none;
}

.footer__nav a:hover,
.footer__links a:hover {
  color: var(--on-dark);
}

.footer__ask {
  color: var(--on-dark);
}

.footer__contact {
  display: block;
  margin-top: 6px;
  color: var(--interactive-glow);
  text-decoration: none;
}

.footer__contact:hover {
  color: var(--on-dark);
}

/* Слово в ширину контейнера: Inter Bold, как в фирменном наборе.
   37cqw подобрано под ширину «Cheki» с трекингом −3%. */
.footer__word {
  margin: 56px 0 24px -0.04em;
  font-family: 'Inter', var(--font-family);
  font-size: 36vw;
  font-size: 36.4cqw;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  white-space: nowrap;
  user-select: none;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
  color: var(--on-dark-3);
  font-size: 15px;
  line-height: 24px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 48px;
  }

  .footer__right {
    text-align: right;
  }

  .footer__word {
    margin-top: 72px;
  }
}

/* --- Закреплённая панель на мобильном --------------------------------- */

.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 12px;
  padding: 12px var(--l-gutter) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--on-dark-line);
  background: var(--l-glass-dark);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: translateY(100%);
  transition: transform 0.2s ease-out;
}

.stickybar.is-visible {
  transform: none;
}

.stickybar .btn--primary {
  flex: 1;
}

.stickybar__wa {
  width: 54px;
  padding: 0;
}

.stickybar__wa svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 1024px) {
  .stickybar {
    display: none;
  }
}

/* --- Служебные страницы ----------------------------------------------- */

.page {
  min-height: calc(100vh - var(--l-header));
  padding: var(--l-section) 0;
}

.page--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.page__inner {
  max-width: 640px;
}

.page__inner > p {
  margin-top: 20px;
}

.page--dark .page__inner > p {
  color: var(--on-dark-2);
}

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

.prose {
  max-width: 40em;
}

.prose h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 30px;
}

.prose p,
.prose ul {
  margin-top: 16px;
  color: var(--text-secondary);
}

.prose li {
  position: relative;
  padding-left: 20px;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--interactive-primary);
}
