/* ==========================================================================
   КликЮрист — светлая дизайн-система
   Один стилевой файл без сборщика. Порядок: токены → база → компоненты →
   секции → адаптив → печать.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/Manrope-2.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/static/fonts/Manrope-6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f8fc;
  --bg-muted: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #475569;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-soft: #eef2ff;
  --accent: #0d9488;
  --accent-soft: #ecfdf5;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --danger: #b91c1c;
  --success: #047857;
  --warn: #b45309;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 18px 50px -28px rgba(15, 23, 42, 0.22);
  --shadow-lg: 0 30px 70px -40px rgba(15, 23, 42, 0.3);
  --max: 1200px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(67, 56, 202, 0.18);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}
.container--narrow {
  max-width: 860px;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary,
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px -18px rgba(67, 56, 202, 0.75);
}
.btn--primary:hover,
.btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn--secondary,
.btn.secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover,
.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--ghost,
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}
.btn--ghost:hover,
.btn.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn--dark {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.btn--dark:hover {
  background: #1e293b;
  border-color: #1e293b;
}

.btn--sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}
.btn--lg {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 14px;
}
.btn--full {
  width: 100%;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 252, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(14px);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  min-height: 70px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 40px;
  height: 40px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__line {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand__highlight {
  font-weight: 800;
  color: var(--primary);
}
.brand__tagline {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 230px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.session-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}
.session-chip.locked .session-chip__dot {
  background: var(--primary);
}
.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
}
.archive-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
}

.nav-drawer {
  display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 720px at 18% -10%, rgba(67, 56, 202, 0.1), transparent 62%),
    radial-gradient(circle 520px at 92% 8%, rgba(13, 148, 136, 0.09), transparent 62%),
    linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 58%, transparent 100%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}
.hero__text h1 {
  max-width: 640px;
  margin-top: 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.text-gradient {
  background: linear-gradient(100deg, #4338ca 0%, #0d9488 58%, #0f172a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.hero .lead {
  max-width: 620px;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.hero__tags li {
  position: relative;
  padding-left: 16px;
}
.hero__tags li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__tags strong {
  color: var(--text-soft);
  font-weight: 700;
}

.hero__visual {
  display: flex;
  justify-content: center;
}
.preview {
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-lg);
}
.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.preview__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}
.preview__status {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.preview__steps {
  display: grid;
  gap: 10px;
  padding: 18px 0;
}
.preview__step {
  display: flex;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}
.preview__num {
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.preview__step strong {
  display: block;
  font-size: 15px;
}
.preview__step span:not(.preview__num) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.preview__foot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Секции
   ========================================================================== */
.section {
  padding: 88px 0;
}
.section--muted {
  background: var(--bg-muted);
}
.section--workspace {
  padding-top: 72px;
}
.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.section-head--compact {
  margin-bottom: 28px;
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

/* ==========================================================================
   Кому помогает
   ========================================================================== */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.usecase {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.usecase:hover {
  transform: translateY(-3px);
  border-color: rgba(67, 56, 202, 0.25);
  box-shadow: var(--shadow);
}
.tag {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag--consumer {
  background: var(--accent-soft);
  color: #0f766e;
}
.tag--b2b {
  background: var(--primary-soft);
  color: var(--primary);
}
.usecase h3 {
  margin-top: 16px;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.usecase p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.usecase__link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================================
   Как работает
   ========================================================================== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  counter-reset: how;
}
.how-step {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.how-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
}
.how-step h3 {
  margin-top: 16px;
  font-size: 18px;
}
.how-step p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}
.notice {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 12px;
  background: var(--accent-soft);
  color: #115e59;
  font-size: 14.5px;
  line-height: 1.6;
}
.notice strong {
  font-weight: 800;
}

/* ==========================================================================
   Stepper и рабочая область
   ========================================================================== */
.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  list-style: none;
  box-shadow: var(--shadow-sm);
}
.stepper__item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.stepper__item.is-current {
  background: var(--primary-soft);
  color: var(--primary);
}
.stepper__item.is-done {
  color: var(--success);
}
.stepper__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}
.stepper__item.is-current .stepper__num {
  background: var(--primary);
  color: #fff;
}
.stepper__item.is-done .stepper__num {
  background: var(--success);
  color: #fff;
}
.stepper__label {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.stepper__price {
  margin-left: auto;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}
.stepper__sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex: 0 0 auto;
}

.steps-grid {
  display: grid;
  gap: 18px;
}
.card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-card {
  scroll-margin-top: 92px;
}
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card__kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}
.card__sub {
  max-width: 760px;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.badge {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.field {
  display: block;
  margin-top: 22px;
}
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-soft);
}
.field textarea,
.field input {
  display: block;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea {
  min-height: 150px;
}
.field textarea:focus,
.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.12);
}
.field textarea::placeholder {
  color: #64748b;
}
.field__hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.quick-tag {
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.quick-tag:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}
.consent a {
  color: var(--primary);
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.status {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.status.success {
  color: var(--success);
}
.status.error {
  color: var(--danger);
}

.package-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px dashed rgba(67, 56, 202, 0.35);
  border-radius: 14px;
  background: var(--primary-soft);
}
.package-cta__text strong {
  display: block;
  font-size: 15px;
}
.package-cta__text span {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 13.5px;
}
.package-cta__price {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 800;
}

.doc-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doc-type-btn {
  font-size: 14px;
}
.doc-type-btn .spinner {
  margin-right: 8px;
}

/* ==========================================================================
   Результаты
   ========================================================================== */
.result {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.result__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.result__head h3 {
  font-size: 18px;
}
.result__hint {
  color: var(--muted);
  font-size: 13px;
}
.result-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.result-timer .spinner {
  color: var(--primary);
}
.result-body {
  margin-top: 16px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.result-body > *:first-child {
  margin-top: 0;
}
.result-body h2 {
  margin: 24px 0 10px;
  padding-top: 4px;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.result-body h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}
.result-body p {
  margin: 10px 0;
}
.result-body ul,
.result-body ol {
  margin: 10px 0;
  padding-left: 22px;
}
.result-body li {
  margin: 5px 0;
}
.result-body strong {
  font-weight: 800;
}
.result-body blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  color: #115e59;
}
.result-body table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
.result-body th,
.result-body td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.result-body th {
  background: var(--surface-2);
}
.result-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-muted);
  font-size: 0.9em;
}
.result-body hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.result-body a {
  text-decoration: underline;
}

.result-warning {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  line-height: 1.5;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.summary-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.summary-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.summary-value {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.risk-low {
  color: var(--success);
}
.risk-medium {
  color: var(--warn);
}
.risk-high {
  color: var(--danger);
}

.result__sources {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.result__sources h4 {
  font-size: 14px;
  letter-spacing: 0;
}
.result__sources ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.result__sources li {
  margin: 5px 0;
  font-size: 14px;
}
.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.step-disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Skeleton */
.skeleton-loader {
  margin-top: 16px;
}
.skeleton-line {
  height: 12px;
  margin: 10px 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton-line.skeleton-title {
  width: 42%;
  height: 18px;
}
.skeleton-line.short {
  width: 68%;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* ==========================================================================
   Тарифы
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.price-card--featured {
  border-color: rgba(67, 56, 202, 0.45);
  background: linear-gradient(160deg, #ffffff 0%, #eef2ff 100%);
  box-shadow: var(--shadow);
}
.price-card__label {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card__label--accent {
  background: var(--primary);
  color: #fff;
}
.price-card h3 {
  margin-top: 14px;
  font-size: 18px;
}
.price-card__price {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.price-card__save {
  margin-top: 2px;
  color: var(--success);
  font-size: 13.5px;
  font-weight: 700;
}
.price-card__list {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 14px;
}
.price-card__list li {
  position: relative;
  padding-left: 20px;
}
.price-card__list li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-card .btn {
  margin-top: auto;
}
.pricing-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ==========================================================================
   Доверие
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.trust-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.trust-card h3 {
  margin-top: 16px;
  font-size: 17px;
}
.trust-card p {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  display: grid;
  gap: 10px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.faq__item summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq__item[open] summary::after {
  content: "−";
}
.faq__item p {
  padding: 0 18px 18px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}
.faq__item a {
  text-decoration: underline;
}

/* ==========================================================================
   Юридический блок
   ========================================================================== */
.legal-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.legal-card__text {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
}
.legal-card__text + .legal-card__text {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.legal-card__text h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}
.legal-card__text p {
  margin: 8px 0;
}
.legal-card__text ul {
  margin: 8px 0;
  padding-left: 20px;
}
.legal-card__text li {
  margin: 4px 0;
}
.disclaimer {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
}
.legal-links a {
  color: var(--text-soft);
  text-decoration: underline;
}
.legal-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   Архив
   ========================================================================== */
.archive {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  padding: 22px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 70px -40px rgba(15, 23, 42, 0.45);
  overflow-y: auto;
}
.archive__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.archive__title {
  margin-top: 4px;
  font-size: 22px;
}
.archive__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.archive__counter {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.archive__notice {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.archive__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.archive__empty {
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.archive-item {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.archive-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.archive-item__time {
  color: var(--muted);
  font-size: 13px;
}
.archive-item__fav,
.archive-item__del,
.archive-item__open {
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.archive-item__open {
  color: var(--primary);
}
.archive-item__query {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
}
.archive-item__actions {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}
.archive__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Paywall / toast
   ========================================================================== */
.paywall {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
}
.paywall__card {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.paywall__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
}
.paywall__card h3 {
  margin-top: 10px;
  font-size: 21px;
}
.paywall__card p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14.5px;
}
.paywall__amount {
  font-size: 30px !important;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.03em;
}
.paywall__hint {
  color: var(--muted) !important;
  font-size: 13px !important;
}
.paywall .btn {
  margin-top: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-shown,
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.success {
  border-color: rgba(4, 120, 87, 0.3);
  color: var(--success);
}
.toast.error {
  border-color: rgba(185, 28, 28, 0.3);
  color: var(--danger);
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer {
  padding: 56px 0 26px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.brand--footer {
  gap: 9px;
}
.brand--footer .brand__line {
  font-size: 17px;
}
.footer__brand p {
  max-width: 360px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.footer__mail {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}
.footer__col h4 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__col a {
  display: block;
  margin: 7px 0;
  color: var(--text-soft);
  font-size: 14px;
}
.footer__col a:hover {
  color: var(--primary);
}
.footer__col p {
  margin: 7px 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.footer__small {
  color: var(--muted) !important;
  font-size: 13px !important;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================================================
   Анимации
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1240px) {
  .archive-link {
    display: none;
  }
  .nav-links {
    gap: 16px;
  }
}

@media (max-width: 1080px) {
  .session-chip {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero__visual {
    justify-content: flex-start;
  }
  .preview {
    max-width: 560px;
  }
  .usecase-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .session-chip,
  .topbar__cta {
    display: none;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .topbar__actions {
    margin-left: auto;
  }
  .archive-link {
    display: none;
  }
  .nav-drawer {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 49;
    display: none;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav-drawer.is-open {
    display: block;
  }
  .nav-drawer__nav {
    display: grid;
    gap: 4px;
  }
  .nav-drawer__nav a {
    padding: 11px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
  }
  .nav-drawer__nav a:hover,
  .nav-drawer__archive:hover {
    background: var(--primary-soft);
    color: var(--primary);
    text-decoration: none;
  }
  .nav-drawer__archive {
    width: 100%;
    padding: 11px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    text-align: left;
  }
  .how-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
  .result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stepper {
    flex-wrap: wrap;
  }
  .stepper__sep {
    display: none;
  }
  .stepper__item {
    flex: 1 1 30%;
  }
  .stepper__price {
    display: none;
  }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }
  .topbar__inner {
    width: min(100% - 28px, var(--max));
    min-height: 62px;
  }
  .brand__mark {
    width: 34px;
    height: 34px;
  }
  .brand__line {
    font-size: 17px;
  }
  .brand__tagline {
    display: none;
  }
  .archive-link {
    display: none;
  }
  .hero {
    padding: 48px 0 44px;
  }
  .hero__text h1 {
    font-size: clamp(34px, 10vw, 46px);
  }
  .section {
    padding: 60px 0;
  }
  .section--workspace {
    padding-top: 48px;
  }
  .card {
    padding: 20px;
    border-radius: var(--radius);
  }
  .card__head {
    flex-direction: column;
    gap: 8px;
  }
  .badge {
    align-self: flex-start;
  }
  .usecase-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .stepper {
    gap: 4px;
    padding: 6px;
  }
  .stepper__item {
    flex: 1 1 100%;
    padding: 8px 10px;
  }
  .stepper__label {
    white-space: normal;
  }
  .package-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .package-cta .btn {
    width: 100%;
  }
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .actions .btn {
    width: 100%;
  }
  .status {
    text-align: center;
  }
  .result-summary {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .footer__legal {
    flex-direction: column;
  }
  .archive {
    width: 100%;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Печать
   ========================================================================== */
@media print {
  .topbar,
  .hero,
  .section--muted,
  .usecase-grid,
  .how-grid,
  .trust-grid,
  .pricing-grid,
  .faq,
  .footer,
  .archive,
  .paywall,
  .toast,
  .stepper,
  .package-cta,
  .actions,
  .quick-tags,
  .consent,
  .step-disclaimer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }
  .card,
  .result {
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  .result-body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* Большие мониторы: не заставляем пользователя увеличивать масштаб. */
@media (min-width: 1600px) {
  :root {
    --max: 1320px;
  }
  body {
    font-size: 18px;
  }
  .hero {
    padding: 88px 0 72px;
  }
  .section {
    padding: 96px 0;
  }
}

@media (min-width: 2200px) {
  :root {
    --max: 1500px;
  }
  body {
    font-size: 19px;
  }
  .hero__inner {
    gap: 80px;
  }
}

