/* Лендинг Korra. Токены интерфейса: dashboard-themes.json, neumorphism.css,
   skills/korra-proposals/references/style.md (сверено 21.09.2026). */

@font-face {
  font-family: "Onest";
  src: url("/assets/onest.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e8e8e8;
  --surface: #e0e0e0;
  --shadow: #bebebe;
  --highlight: #ffffff;
  --ink: #1f1f1f;
  --ink-soft: #3c3c3c;
  --muted: #5c5c5c;
  --accent: #9ede01;
  --line: #cdcdcd;

  --on-dark: #f2f2f2;
  --on-dark-muted: #c2c2c2;
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --on-dark-fill: rgba(255, 255, 255, 0.07);

  /* Объём Korra смягчён: длинная мягкая тень вместо короткой резкой
     и приглушённый белый валик — иначе кромки шумят на длинной странице. */
  --depth: 12px 14px 30px rgba(174, 174, 174, 0.45),
           -10px -10px 26px rgba(255, 255, 255, 0.7);
  --control: 4px 5px 12px rgba(176, 176, 176, 0.4),
             -4px -4px 10px rgba(255, 255, 255, 0.65);
  --inset: inset 3px 3px 8px rgba(172, 172, 172, 0.45),
           inset -3px -3px 8px rgba(255, 255, 255, 0.6);
  /* Спокойный уровень для неинтерактивных мелочей: без глубины. */
  --quiet-fill: rgba(255, 255, 255, 0.38);
  --quiet-line: #d6d6d6;

  --radius-control: 16px;
  --radius-card: 24px;
  --radius-panel: 28px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

/* Статичный свет сцены: два очень мягких белых пятна поверх серого холста.
   Гаснут в белый с нулевой альфой, иначе на спаде проступает серая кайма
   (приём из макета входа). Никакого движения и слежения за курсором. */
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(70% 64% at 12% 0%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(58% 60% at 92% 78%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 72%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Заголовки спокойного веса: Onest 500–550 вместо жирного 600. */
h1 {
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h3 {
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

/* Секции получают фокус при переходе по якорю — это нужно для клавиатуры,
   но обводить весь блок не надо: рамка вокруг экрана читается как ошибка.
   Интерактивные элементы и панели вкладок фокус по-прежнему показывают. */
section[tabindex="-1"]:focus,
figure[tabindex="-1"]:focus {
  outline: none;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 0 0 12px 12px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ── Шапка ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(232, 232, 232, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #d8d8d8;
}

.header-row {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: none;
}

.brand img {
  width: 108px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.18s ease;
}

.header-nav .button {
  white-space: nowrap;
}

.header-link:hover {
  color: var(--ink);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button-small {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 14px;
}

.button-accent {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(94, 132, 0, 0.16);
}

.button-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(94, 132, 0, 0.2);
}

.button-accent:active {
  transform: translateY(0);
  box-shadow: inset 2px 2px 6px rgba(31, 31, 31, 0.22),
              inset -2px -2px 6px rgba(255, 255, 255, 0.4);
}

.button-surface {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--control);
}

.button-surface:hover {
  box-shadow: var(--depth);
}

.button-surface:active {
  box-shadow: var(--inset);
}

.button-ghost {
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

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

/* Первый экран открытый: текст живёт прямо на светлом холсте, справа —
   единственная объёмная поверхность с примером. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 40px 0 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 4px 20px 4px 4px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow-pill {
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(31px, 3.4vw, 48px);
}

.hero-lead {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Примеры сценариев ───────────────────────────────────────────────── */

.demo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--depth);
}

/* Без работающего скрипта переключатель не показываем: остаётся первый пример. */
.tabs {
  display: none;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--inset);
}

.demo.is-enhanced .tabs {
  display: flex;
}

.tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: box-shadow 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.tab:hover {
  color: var(--ink);
}

.tab:focus-visible {
  outline-offset: 2px;
}

.tab[aria-selected="true"] {
  background: var(--surface);
  box-shadow: var(--control);
  color: var(--ink);
}

/* Панели лежат в одной ячейке: высота блока не скачет при переключении,
   а скрытые панели недоступны ни мыши, ни Tab, ни экранному диктору. */
.demo-body {
  display: grid;
}

.panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  visibility: hidden;
}

.panel.is-active {
  visibility: visible;
}

.panel:focus-visible {
  outline-offset: 6px;
}

.label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ask {
  padding: 15px 17px;
  border-radius: 18px;
  background: var(--bg);
  box-shadow: var(--inset);
}

.ask p {
  font-size: 15px;
  line-height: 1.5;
}

.context {
  display: grid;
  gap: 9px;
  margin-left: 4px;
  padding-left: 15px;
  border-left: 2px solid var(--accent);
}

.context > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.context dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.context dd {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.flow {
  display: grid;
  justify-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 1;
  color: #7a7a7a;
}

.flow-line {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.result {
  margin-top: auto;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--on-dark);
}

.result .label {
  color: #9a9a9a;
}

.result-title {
  font-size: 16.5px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.result-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 12px;
  color: #a6a6a6;
}

.page-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.page-map li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--on-dark-fill);
  font-size: 12.5px;
  color: #d6d6d6;
}

.page-map li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent);
}

.excerpt {
  margin-top: 14px;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--accent);
  font-size: 13px;
  line-height: 1.55;
  color: #d2d2d2;
}

.steps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #cfcfcf;
}

.steps li {
  position: relative;
  padding-left: 20px;
  line-height: 1.45;
}

.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.panel-note {
  align-self: flex-start;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--quiet-line);
  background: var(--quiet-fill);
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink-soft);
}

.demo figcaption {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Память, навыки, свои помощники ──────────────────────────────────── */

.platform {
  margin-top: 60px;
}

.platform-head {
  max-width: 660px;
}

.eyebrow-dark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.eyebrow-dark::before {
  content: "";
  width: 12px;
  height: 5px;
  border-radius: 2px;
  background: var(--accent);
}

.platform h2 {
  margin-top: 16px;
  font-size: clamp(25px, 2.6vw, 36px);
}

.platform-lead {
  max-width: 56ch;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.platform-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 28px;
  align-items: start;
}

/* Схема-рельс без собственной глубины: разделяют волосяные линии,
   объём остаётся у соседней панели-карточки. */
.rail {
  padding: 0 4px;
}

.rail li {
  position: relative;
  padding: 22px 0 22px 26px;
  border-bottom: 1px solid var(--line);
}

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

.rail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 29px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

.rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 44px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.rail h3 {
  font-size: 17px;
}

.rail p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

.agents-panel {
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--depth);
}

.agents-panel h3 {
  font-size: 19px;
}

.agents-panel > p {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.agents-panel .label {
  margin: 18px 0 8px;
}

.agent-list {
  display: grid;
  gap: 0;
}

/* Примеры ролей — это список, а не кнопки: только волосяные линии. */
.agent-list {
  border-top: 1px solid var(--line);
}

.agent-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.agent-list b {
  font-weight: 550;
}

.agent-list span {
  font-size: 12px;
  color: var(--muted);
}

.agents-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Теги возможностей не нажимаются — плоские, с волосяной рамкой. */
.tool-chips li {
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid var(--quiet-line);
  background: var(--quiet-fill);
  font-size: 12px;
  color: var(--ink-soft);
}

.platform-foot {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  padding-left: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.platform-foot::before {
  content: "";
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Пакеты ──────────────────────────────────────────────────────────── */

.section-head {
  max-width: 680px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(25px, 2.6vw, 36px);
}

.section-lead {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.packages {
  margin-top: 64px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.package {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--depth);
}

.package h3 {
  font-size: 19px;
}

.package-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.package-price b {
  font-size: 27px;
  font-weight: 560;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.package-price span {
  font-size: 12px;
  color: var(--muted);
}

.package-lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.package-list {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

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

.package-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.package-limit {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

.package-cta {
  width: 100%;
  margin-top: auto;
}

.package-accent {
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: none;
}

.package-accent .package-lead {
  color: #d2d2d2;
}

.package-accent .package-price span,
.package-accent .package-list,
.package-accent .package-limit {
  color: var(--on-dark-muted);
}

.package-accent .package-list {
  border-top-color: var(--on-dark-line);
}

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

.packages-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  padding-left: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Запуск и сопровождение ──────────────────────────────────────────── */

.process {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 60px;
}

.process h2 {
  margin-top: 16px;
  font-size: clamp(23px, 2.2vw, 30px);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.steps-row li {
  position: relative;
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--quiet-line);
  background: var(--quiet-fill);
  font-size: 13px;
  line-height: 1.4;
}

.steps-row li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #7a7a7a;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid var(--quiet-line);
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}

.process-note {
  margin-top: 16px;
  padding-left: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.support {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--depth);
}

.support h3 {
  font-size: 18px;
}

.support-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 10px;
}

.support-price b {
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.support-price span {
  font-size: 12px;
  color: var(--muted);
}

.support .qa {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.support .qa summary {
  font-size: 13px;
  min-height: 40px;
}

.support-list {
  display: grid;
  gap: 7px;
  padding-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

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

.support-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

.support-note {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

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

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 6px 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: 550;
  cursor: pointer;
}

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

.qa summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.qa[open] summary::after {
  content: "−";
}

.qa summary:focus-visible {
  outline-offset: 2px;
}

.qa > p {
  padding: 0 32px 16px 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.faq {
  margin-top: 60px;
}

.faq h2 {
  font-size: clamp(23px, 2.2vw, 30px);
}

.faq-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.faq .qa {
  border-bottom: 1px solid var(--line);
}

/* ── Финальный призыв ────────────────────────────────────────────────── */

.final {
  margin-top: 56px;
  padding: 40px 42px;
  border-radius: var(--radius-panel);
  background: var(--ink);
  color: var(--on-dark);
}

.final h2 {
  max-width: 20ch;
  font-size: clamp(25px, 2.6vw, 34px);
}

.final-lead {
  max-width: 56ch;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.final-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: #a6a6a6;
}

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

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

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  padding-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Страница инструкций ─────────────────────────────────────────────── */

.guides-head {
  max-width: 640px;
  padding-top: 52px;
}

.guides-head h1 {
  margin-top: 18px;
  font-size: clamp(29px, 3vw, 42px);
}

.guides-lead {
  max-width: 54ch;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.68;
  color: var(--muted);
}

.guide-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--depth);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-1px);
}

.guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--quiet-line);
  background: var(--quiet-fill);
  color: var(--ink-soft);
}

.guide-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.guide-title {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.guide-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.guide-arrow {
  flex: none;
  margin-left: auto;
  font-size: 18px;
  color: var(--muted);
}

.guides-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 40px;
  padding: 26px 28px;
  border-radius: var(--radius-card);
  border: 1px solid var(--quiet-line);
  background: var(--quiet-fill);
}

.guides-help h2 {
  font-size: 20px;
}

.guides-help p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.guides-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Адаптив ─────────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
  .wrap {
    padding: 0 30px;
  }

  .hero {
    gap: 24px;
  }

  .hero-copy {
    padding: 4px 10px 4px 2px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .platform-body {
    gap: 18px;
  }

  .rail {
    padding: 4px 22px;
  }

  .agents-panel {
    padding: 22px;
  }

  .package-grid {
    gap: 14px;
  }

  .package {
    padding: 22px 20px;
  }

  .package-price b {
    font-size: 25px;
  }

  .process {
    gap: 18px;
  }

  .support {
    padding: 20px;
  }

  .final {
    padding: 34px 30px;
  }
}

@media (max-width: 920px) {
  body {
    background-attachment: scroll;
    background-size: 100% 900px;
  }

  .header-nav {
    gap: 16px;
  }

  /* Якоря разделов уходят, «Инструкции» и «Войти» остаются видимыми. */
  .header-anchor {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 30px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 5.6vw, 50px);
  }

  .hero-lead {
    max-width: 60ch;
  }

  .platform {
    margin-top: 48px;
  }

  .platform-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .packages {
    margin-top: 48px;
  }

  .package-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .process {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 48px;
  }

  .steps-row {
    grid-template-columns: 1fr 1fr;
  }

  .steps-row li:nth-child(2)::after {
    display: none;
  }

  .faq {
    margin-top: 48px;
  }

  .final {
    margin-top: 44px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .wrap {
    padding: 0 20px;
  }

  .brand img {
    width: 92px;
  }

  .header-cta {
    display: none;
  }

  /* На узком экране убавляем поля, но не кегль: читать должно быть
     так же удобно, как на десктопе. */
  .guides-head {
    padding-top: 34px;
  }

  .guide-list {
    margin-top: 26px;
  }

  .guide-card {
    gap: 15px;
    padding: 19px 18px;
  }

  .guide-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .guides-help {
    margin-top: 30px;
    padding: 20px;
  }

  .guides-help-actions {
    width: 100%;
  }

  .guides-help-actions .button {
    flex: 1 1 100%;
  }

  .hero {
    gap: 18px;
    padding-top: 24px;
  }

  .hero-copy h1 {
    margin: 18px 0 16px;
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions {
    padding: 24px 0 0;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-facts {
    gap: 7px 18px;
    margin-top: 24px;
    padding-top: 18px;
    font-size: 12px;
  }

  .demo {
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-card);
  }

  .tab {
    font-size: 12.5px;
    min-height: 38px;
  }

  .ask {
    padding: 13px 15px;
  }

  .ask p {
    font-size: 14px;
  }

  .context {
    margin-left: 2px;
    padding-left: 13px;
  }

  .context > div {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
  }

  .context dd {
    font-size: 12.5px;
  }

  .result {
    padding: 16px 18px;
  }

  .result-title {
    font-size: 15.5px;
  }

  .page-map {
    gap: 7px;
  }

  .page-map li {
    padding: 8px 10px;
    font-size: 12px;
  }

  .platform {
    margin-top: 40px;
  }

  .platform h2 {
    margin-top: 14px;
  }

  .platform-lead {
    font-size: 13.5px;
  }

  .platform-body {
    gap: 14px;
    margin-top: 22px;
  }

  .rail {
    padding: 2px 20px;
  }

  .rail li {
    padding: 18px 0 18px 24px;
  }

  .rail li::before {
    top: 25px;
  }

  .rail li:not(:last-child)::after {
    top: 40px;
  }

  .rail h3 {
    font-size: 16px;
  }

  .rail p,
  .agents-panel > p {
    font-size: 13px;
  }

  .agents-panel {
    padding: 20px;
  }

  .agents-panel h3 {
    font-size: 18px;
  }

  .tool-chips li {
    font-size: 11.5px;
    padding: 7px 11px;
  }

  .packages {
    margin-top: 40px;
  }

  .section-head h2 {
    margin-top: 14px;
  }

  .section-lead {
    font-size: 13.5px;
  }

  .package-grid {
    margin-top: 22px;
  }

  .package {
    padding: 20px 18px;
  }

  .package h3 {
    font-size: 18px;
  }

  .package-price b {
    font-size: 24px;
  }

  .packages-notes {
    margin-top: 16px;
    font-size: 12px;
  }

  .process {
    margin-top: 40px;
  }

  .steps-row {
    gap: 10px;
    margin-top: 20px;
  }

  .steps-row li {
    padding: 14px 12px;
    font-size: 12.5px;
  }

  .steps-row li::after {
    display: none;
  }

  .support {
    padding: 18px;
  }

  .faq {
    margin-top: 40px;
  }

  .qa summary {
    font-size: 14px;
  }

  .qa > p {
    padding-right: 24px;
    font-size: 13px;
  }

  .final {
    margin-top: 36px;
    padding: 26px 22px;
    border-radius: var(--radius-card);
  }

  .final-lead {
    font-size: 13.5px;
  }

  .final-actions .button {
    flex: 1 1 100%;
  }

  .site-footer {
    margin-top: 40px;
  }

  .footer-row {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding: 0 16px;
  }

  .brand img {
    width: 84px;
  }

  .header-nav {
    gap: 12px;
  }

  .header-link {
    font-size: 12px;
  }

  .button-small {
    padding: 9px 13px;
    font-size: 12px;
  }

  .guide-card {
    padding: 16px;
  }

  .guide-arrow {
    display: none;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .demo {
    padding: 16px;
  }

  .tabs {
    gap: 4px;
    padding: 5px;
  }

  .tab {
    font-size: 12px;
    padding: 8px 6px;
  }

  .context > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .page-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .agents-panel {
    padding: 18px;
  }

  .button {
    padding: 13px 16px;
    font-size: 13.5px;
  }

  .package {
    padding: 18px 16px;
  }

  .package-price b,
  .support-price b {
    font-size: 22px;
  }

  .steps-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .final {
    padding: 22px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .button-accent:hover,
  .button-accent:active {
    transform: none;
  }
}

/* ── Бумага (13.10.2026) ─────────────────────────────────────────────
   Korra Hub и инструкции говорят языком главной: тёплая бумага, поля как
   у шапки, плоские поверхности — глубину дают тонкие линии, а не тени;
   основная кнопка — чёрная капсула. Блок переопределяет правила выше. */
:root {
  --bg: #f1f1eb;
  --surface: #e7e7de;
  --line: #deded6;
  --quiet-line: #deded6;
  --quiet-fill: rgba(255, 255, 255, 0.4);
  --depth: 0 0 0 1px #cfcfc4;
  --control: inset 0 0 0 1px #cfcfc4;
  --inset: inset 0 0 0 1px #deded6;
  --gutter: clamp(20px, 3vw, 48px);
}
body { background-image: none; }
.wrap, .wrap[class] { max-width: none; padding: 0 var(--gutter); }
h1 { letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-weight: 500; letter-spacing: -0.03em; }
/* Кнопка — одна, та же капсула, что на первом экране главной: 46 px, текст 13 px, стрелка ↗ 19 px. */
.button, .button-accent, .button-surface {
  min-height: 46px; padding: 0 21px; gap: 28px; border-radius: 999px;
  background: #1b1e18; color: #f6f7ef; box-shadow: none; font-size: 13px; font-weight: 500; letter-spacing: 0;
}
.button:hover, .button-accent:hover, .button-surface:hover { background: #34451b; transform: none; box-shadow: none; }
.button:active { box-shadow: none; transform: none; }
.button > span[aria-hidden] { color: #9ede01; font-size: 19px; line-height: 1; }
/* Метка и вводный текст — как подпись и вводный текст первого экрана. */
.eyebrow-dark { display: block; font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; color: #4d5047; }
.eyebrow-dark::before { display: none; }
.guides-lead { color: #272923; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; letter-spacing: -0.03em; }
.guide-card { background: transparent; }
.guide-card:hover { box-shadow: 0 0 0 1px var(--ink); }
/* Заголовки страниц — того же размера, что заголовки разделов главной. */
.guides-head { max-width: 900px; }
.guides-head h1 { font-size: clamp(34px, 5.4vw, 72px); }
/* Ролик инструкции — как сценарии на главной: не во всю ширину экрана. */
.guide-video { max-width: 980px; }
