/* ==========================================================================
   TOT SAMYI IT — landing page
   Mobile-first: базовые стили = телефон, дальше min-width.

   1. Токены      2. База        3. Раскладка
   4. Компоненты  5. Секции      6. Анимации
   ========================================================================== */

/* 1. Токены ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #0a0b09;
  --bg-raised: #0f110d;
  --surface: #151812;
  --surface-2: #1c2018;
  --line: rgba(230, 255, 200, 0.08);
  --line-strong: rgba(230, 255, 200, 0.15);
  --grid-line: rgba(230, 255, 200, 0.045);

  --text: #f3f5ef;
  --text-2: #a3a99c;
  --text-3: #6d7367;

  --accent: #c7f25a;
  --accent-hover: #d6f882;
  --accent-ink: #0b0d06;
  --accent-soft: rgba(199, 242, 90, 0.1);
  --accent-line: rgba(199, 242, 90, 0.34);
  --accent-glow: rgba(199, 242, 90, 0.35);

  --paper: #e4e2da;
  --paper-grid: rgba(34, 37, 46, 0.085);
  --paper-ink: #232633;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --container: 1180px;
  --gutter: 20px;
  --header-h: 64px;
  --section-y: 88px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 72px; --section-y: 120px; }
}

@media (min-width: 1200px) {
  :root { --section-y: 144px; }
}

/* 2. База ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Раскладка ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--band {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-head { gap: 20px; margin-bottom: 64px; }
}

/* 4. Компоненты ------------------------------------------------------------ */

/* Eyebrow — маленькая моноширинная подпись над заголовком */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.section-title {
  font-size: clamp(2rem, 1.25rem + 3.1vw, 3.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lead {
  max-width: 60ch;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  text-wrap: pretty;
}

/* Кнопки */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.btn .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(199, 242, 90, 0.5), 0 10px 30px -10px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px rgba(199, 242, 90, 0.7), 0 14px 40px -10px rgba(199, 242, 90, 0.55);
  transform: translateY(-1px);
}

.btn--primary .icon { stroke-width: 2; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(230, 255, 200, 0.28);
}

.btn--sm { --btn-h: 38px; padding-inline: 16px; font-size: 14px; }
.btn--lg { --btn-h: 54px; padding-inline: 26px; font-size: 16px; }
.btn--xl { --btn-h: 60px; padding-inline: 30px; font-size: 17px; }

/* Теги и чипы */
.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.tag--accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Статус-пилюля с пульсирующей точкой */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.status-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}

/* Окно — рамка для UI-макетов */
.window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 38%), var(--surface);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.window__dots { display: flex; gap: 6px; }

.window__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.window__title {
  flex: 1;
  overflow: hidden;
  color: var(--text-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}

.window__live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Бумага — лист тетради в клетку с рукописным текстом */
.paper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--paper-ink);
  font-family: var(--font-hand);
  font-weight: 500;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Карточка */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  transition: border-color 0.3s var(--ease);
}

.card:hover { border-color: var(--line-strong); }

.card__visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
}

.card__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card__text {
  color: var(--text-2);
  font-size: 15.5px;
}

.card__result {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
}

.card__result::before {
  content: "→";
  color: var(--accent);
}

.card .tags { margin-top: 4px; }

@media (min-width: 768px) {
  .card { padding: 28px; }
}

/* Telegram-чат (макет в карточке) */
.chat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  font-size: 13.5px;
  line-height: 1.45;
}

.chat__msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
}

.chat__msg--user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--surface-2);
}

.chat__msg--bot {
  justify-self: start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: var(--surface);
}

.chat__keys {
  display: flex;
  gap: 6px;
  justify-self: start;
}

.chat__keys span {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

.chat__keys .is-picked {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.chat__done {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat__done .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent);
  stroke-width: 2.2;
}

/* Голосовое → структура (макет в карточке) */
.voice {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.voice__msg {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  width: min(100%, 290px);
  padding: 10px 12px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  background: var(--surface-2);
}

.voice__play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.voice__play::before {
  content: "";
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--accent-ink);
}

.voice__wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
  height: 26px;
}

.voice__wave i {
  flex: 1;
  height: var(--h);
  min-height: 3px;
  border-radius: 2px;
  background: var(--text-3);
}

.voice__wave i:nth-child(-n + 9) { background: var(--accent); }

.voice__time {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.voice__arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.voice__arrow::before,
.voice__arrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-line);
}

.voice__out {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.voice__out li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.voice__out li:last-child { border-bottom: 0; }

.voice__out .k {
  padding-top: 2px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Скриншот-макет Telegram (в кейсах) */
.shot {
  width: min(100%, 340px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}

.shot__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.shot__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: #1b2112;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.shot__name { font-size: 14px; font-weight: 600; line-height: 1.2; }

.shot__sub {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

.shot__body {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.5;
}

.bubble {
  max-width: 90%;
  padding: 9px 12px;
  border-radius: 14px;
}

.bubble--out {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--surface-2);
}

.bubble--in {
  justify-self: start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: var(--surface);
}

.bubble--photo { padding: 5px; }

.bubble b { font-weight: 600; }

.bubble time {
  display: block;
  margin-top: 4px;
  padding-inline: 4px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
}

.bubble ul { display: grid; gap: 3px; margin-top: 4px; }

.bubble li { display: flex; gap: 8px; }

.bubble li::before {
  content: "•";
  color: var(--text-3);
}

.bubble__h {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bubble__ok { color: var(--accent); }

.mini-paper {
  padding: 8px 12px 10px;
  border-radius: 9px;
  font-size: 19px;
  line-height: 1.2;
  box-shadow: none;
}

/* Финансовый макет */
.fin {
  display: grid;
  gap: 14px;
  padding: 16px 14px;
  background: var(--bg);
  font-size: 13px;
}

.fin__label {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fin__bars { display: grid; gap: 10px; }

.fin__bar {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}

.fin__track {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.fin__track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 3px;
  background: var(--text-2);
}

.fin__bar:first-child .fin__track i { background: var(--accent); }

.fin__bar b {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
}

.fin__goal {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
}

.fin__goal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.fin__goal-row span:last-child {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.fin__goal .fin__track i { background: var(--accent); }

.fin__list { display: grid; }

.fin__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}

.fin__list li span:last-child {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

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

/* Шапка */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.header.is-scrolled,
.header.is-open {
  border-bottom-color: var(--line);
  background: rgba(10, 11, 9, 0.74);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__cursor { animation: blink 1.1s steps(1) infinite; }
.logo__text span { color: var(--text-3); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__cta { display: none; }

.burger {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.header.is-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.header.is-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  gap: 20px;
  padding: 8px var(--gutter) 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 9, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.header.is-open .nav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav__link {
  display: block;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav__cta { width: 100%; }

@media (min-width: 560px) {
  .header__cta { display: inline-flex; }
}

@media (min-width: 960px) {
  .nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav__list { display: flex; gap: 2px; }

  .nav__link {
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }

  .nav__link:hover,
  .nav__link.is-active {
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
  }

  .nav__cta,
  .burger { display: none; }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: calc(var(--section-y) * 0.6);
  overflow: hidden;
  overflow: clip;
  background: radial-gradient(640px 460px at 78% 22%, rgba(199, 242, 90, 0.09), transparent 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 65% 25%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 65% 25%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  align-items: center;
  gap: 56px;
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.hero__title {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__subtitle {
  margin-top: -6px;
  color: var(--accent);
  font-size: clamp(1.6rem, 1.05rem + 2.3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.caret {
  display: inline-block;
  width: 0.46em;
  height: 0.8em;
  margin-left: 0.1em;
  border-radius: 2px;
  background: currentColor;
  vertical-align: -0.04em;
  animation: blink 1.1s steps(1) infinite;
}

.hero__text {
  max-width: 34ch;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.hero__actions .btn { flex: 1 1 auto; }

@media (min-width: 560px) {
  .hero__actions { width: auto; }
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 80px); }

  .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* Hero-демо: тетрадь → бот → Poster */
.demo {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.demo__paper {
  z-index: 1;
  align-self: start;
  grid-row: 1;
  grid-column: 1 / span 8;
  padding: 18px 18px 26px 24px;
  transform: rotate(-3deg);
}

.demo__window {
  z-index: 2;
  grid-row: 1;
  grid-column: 2 / -1;
  margin-top: 194px;
}

.paper__title {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.paper__list {
  display: grid;
  gap: 2px;
  font-size: 20px;
  line-height: 1.25;
}

.paper__list li {
  padding-inline: 4px;
  border-radius: 3px;
  transition: background-color 0.35s var(--ease);
}

.paper__list li.is-read { background: rgba(199, 242, 90, 0.5); }

.paper__scan {
  position: absolute;
  top: 6%;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px 4px rgba(199, 242, 90, 0.55);
  opacity: 0;
  pointer-events: none;
}

.demo.is-scanning .paper__scan {
  opacity: 1;
  animation: scan 2.2s var(--ease) forwards;
}

@media (min-width: 768px) {
  .demo__paper { grid-column: 1 / span 7; padding: 22px 22px 30px 28px; }
  .demo__window { grid-column: 3 / -1; margin-top: 232px; }
  .paper__title { margin-bottom: 10px; font-size: 26px; }
  .paper__list { font-size: 24px; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 14px 14px 4px;
}

.steps__item {
  position: relative;
  padding-top: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  transition: color 0.3s var(--ease);
}

.steps__item::before,
.steps__item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.steps__item::after {
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.steps__item.is-done { color: var(--text); }
.steps__item.is-done::after { transform: scaleX(1); }

.rows {
  padding: 8px 14px 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.rows__head,
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 62px;
  align-items: center;
  gap: 10px;
}

.rows__head {
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rows__head span:nth-child(n + 2) { text-align: right; }

.row {
  position: relative;
  height: 36px;
  border-bottom: 1px solid var(--line);
}

.row:last-child { border-bottom: 0; }

.row > span { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }

.row::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 58%;
  height: 8px;
  margin-top: -4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.row:not(.is-done)::after { opacity: 1; }
.row:not(.is-done) > span { opacity: 0; transform: translateY(4px); }

.row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__qty {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.row__ok {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
  height: 22px;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
}

.row__ok .icon { width: 12px; height: 12px; stroke-width: 2.4; }

.row.is-done:not(.is-ok) .row__ok { opacity: 0; transform: scale(0.8); }

.window__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 14px 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 13.5px;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.window__foot-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.foot-check {
  display: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
  stroke-width: 2.2;
}

.demo.is-complete .window__foot {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--text);
}

.demo.is-complete .spinner { display: none; }
.demo.is-complete .foot-check { display: block; }

/* Услуги (bento) */
.bento {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__web { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }

  .bento__tg,
  .bento__ai { grid-column: span 3; }

  .bento__auto,
  .bento__api,
  .bento__web { grid-column: span 2; }
}

/* До / После */
.flow {
  --node: 48px;
  display: grid;
  gap: 16px;
}

.lane {
  padding: 24px 12px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.lane--auto {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px rgba(199, 242, 90, 0.05), 0 30px 80px -40px rgba(199, 242, 90, 0.3);
}

.lane__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 28px;
  padding-inline: 8px;
}

.lane__label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lane--auto .lane__label { color: var(--accent); }

.lane__note {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.lane__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lane__track::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 1px);
  right: 12.5%;
  left: 12.5%;
  height: 2px;
}

.lane--manual .lane__track::before {
  background-image: linear-gradient(90deg, var(--text-3) 50%, transparent 50%);
  background-size: 8px 2px;
  opacity: 0.7;
}

.lane--auto .lane__track::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(199, 242, 90, 0.5);
}

.lane--auto .lane__track::after {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2 - 4px);
  left: 12.5%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px var(--accent);
  animation: travel 2.6s linear infinite;
  pointer-events: none;
}

.node {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding-inline: 4px;
  text-align: center;
}

.node__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-2);
}

.lane--auto .node__icon {
  border-color: rgba(199, 242, 90, 0.42);
  background: #13170d;
  color: var(--accent);
  box-shadow: 0 0 24px -6px rgba(199, 242, 90, 0.45);
}

.node__human {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
}

.node__human .icon { width: 11px; height: 11px; stroke-width: 2; }

.node__name {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.lane--manual .node__name { color: var(--text-2); }

.node__desc {
  display: none;
  max-width: 19ch;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .flow { --node: 64px; }
  .lane { padding: 32px 28px 36px; }
  .lane__head { margin-bottom: 36px; }
  .node__icon { border-radius: 18px; }
  .node__icon > .icon { width: 24px; height: 24px; }
  .node__name { font-size: 16px; }
  .node__desc { display: block; }
}

/* Кейсы */
.cases {
  display: grid;
  gap: 20px;
}

.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
}

.case__media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 330px;
  overflow: hidden;
  padding: 48px 20px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(199, 242, 90, 0.06), transparent 70%),
    var(--bg);
}

/* Для настоящего скриншота: <figure class="case__media case__media--image"><img ...></figure> */
.case__media--image { padding: 0; }
.case__media--image img { width: 100%; height: 100%; object-fit: cover; }

.case__label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 11, 9, 0.7);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.case__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.case__title {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.case__facts { display: grid; gap: 14px; }

.case__facts > div {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.case__facts dt {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case__facts > div:last-child dt { color: var(--accent); }

.case__facts dd {
  color: var(--text-2);
  font-size: 15.5px;
}

@media (min-width: 768px) {
  .case__body { padding: 32px; }
  .case__media { height: 380px; }
}

@media (min-width: 900px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .case--featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .case--featured .case__media {
    height: auto;
    min-height: 480px;
    padding-top: 64px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .case--featured .case__body { justify-content: center; padding: 44px; }
}

/* Процесс */
.process { display: grid; }

.process__step {
  --i: 0;
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  padding-bottom: 36px;
}

.process__step:last-child { padding-bottom: 0; }

.process__step::before,
.process__step::after {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 8px;
  left: 24px;
  width: 1px;
  background: var(--line-strong);
}

.process__step::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 160ms + 200ms);
}

.process__step:last-child::before,
.process__step:last-child::after { display: none; }

.process.is-in .process__step::after { transform: scaleY(1); }

.process__num {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--i) * 160ms);
}

.process.is-in .process__num {
  border-color: var(--accent-line);
  color: var(--accent);
  box-shadow: 0 0 20px -6px var(--accent-glow);
}

.process__title {
  padding-top: 10px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.process__text {
  color: var(--text-2);
  font-size: 15.5px;
}

@media (min-width: 1000px) {
  .process {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 28px;
  }

  .process__step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    padding-bottom: 0;
  }

  .process__num { grid-row: auto; }

  .process__step::before,
  .process__step::after {
    top: 24px;
    right: -16px;
    bottom: auto;
    left: 60px;
    width: auto;
    height: 1px;
  }

  .process__step::after { transform: scaleX(0); transform-origin: left; }
  .process.is-in .process__step::after { transform: scaleX(1); }
  .process__title { padding-top: 6px; }
}

/* Обо мне */
.about {
  display: grid;
  align-items: center;
  gap: 40px;
}

.about__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.about__copy p:not(.eyebrow) {
  max-width: 56ch;
  color: var(--text-2);
  font-size: 17px;
}

.about__copy .about__lead {
  color: var(--text);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  line-height: 1.5;
}

.profile {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%), var(--bg-raised);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.profile__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* Для фото: <span class="profile__avatar"><img src="assets/img/dmitry.jpg" alt="Дмитрий"></span> */
.profile__avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: #1b2112;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
}

.profile__avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile__name { font-size: 20px; font-weight: 700; line-height: 1.25; }

.profile__role {
  color: var(--text-2);
  font-size: 14px;
}

.profile__online {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.profile__online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px var(--accent-glow);
}

.profile__facts > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.profile__facts dt {
  padding-top: 3px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile__facts dd { font-weight: 600; }

.profile .btn { width: 100%; margin-top: 20px; }

@media (min-width: 960px) {
  .about {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 80px;
  }

  .profile { order: -1; padding: 28px; }
}

/* Финальный CTA */
.section--cta { padding-top: 0; }

.cta {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 20px;
  overflow: hidden;
  padding: 56px 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 75% at 50% 0%, rgba(199, 242, 90, 0.16), transparent 72%);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
}

.cta__title {
  max-width: 17ch;
  font-size: clamp(2rem, 1.15rem + 3.7vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.cta__text {
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.cta .btn { margin-top: 12px; }

@media (min-width: 768px) {
  .cta { padding: 104px 48px; }
}

/* Подвал */
.footer {
  padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer__copy {
  color: var(--text-3);
  font-size: 14px;
}

.footer__links { display: flex; gap: 20px; }

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover { color: var(--text); }
.footer__links .icon { width: 16px; height: 16px; }

/* 6. Анимации -------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .hero__copy > * { animation: rise 0.8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.05s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.1s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.15s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.2s; }
  .demo { animation: rise 1s 0.2s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(199, 242, 90, 0.55); }
  80%, 100% { box-shadow: 0 0 0 8px rgba(199, 242, 90, 0); }
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

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

@keyframes scan {
  from { top: 6%; }
  to { top: 94%; }
}

@keyframes travel {
  from { left: 12.5%; }
  to { left: 87.5%; }
}
