:root {
  --paper:     #F6F2E8;
  --ink:       #0A0A0A;
  --ink-2:     #1F1F1F;
  --primary:   #0F5FA6;
  --primary-700: #0a4d8a;
  --secondary: #E0301E;
  --accent:    #6FB2E8;
  --mute:      #E5DFCE;
  --mute-2:    #EEE7D3;
  --mute-3:    #D4CEBE;

  --ink-72: rgba(10,10,10,.72);
  --ink-56: rgba(10,10,10,.56);
  --ink-32: rgba(10,10,10,.32);
  --ink-12: rgba(10,10,10,.12);
  --ink-06: rgba(10,10,10,.06);

  --paper-85: rgba(246,242,232,.85);
  --paper-72: rgba(246,242,232,.72);
  --paper-56: rgba(246,242,232,.56);
  --paper-32: rgba(246,242,232,.32);
  --paper-16: rgba(246,242,232,.16);
  --paper-06: rgba(246,242,232,.06);

  --color-error: #d93025;

  --font-display: 'Fraunces', 'Times New Roman', 'Liberation Serif', 'DejaVu Serif', serif;
  --font-body:    'Fraunces', 'Times New Roman', 'Liberation Serif', 'DejaVu Serif', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --rad:    4px;
  --rad-lg: 10px;

  --maxw:   1360px;
  --gutter: clamp(16px, 4vw, 56px);

  --header-h: 72px;
}

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

html { scroll-padding-top: calc(var(--header-h) + 12px); scroll-behavior: smooth; }
html, body { background: var(--paper); color: var(--ink); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: "ss01", "ss02", "kern", "liga", "onum";
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--ink-12);
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-56);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ink-32);
  display: inline-block;
}

.num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  color: var(--ink-56);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  border-radius: var(--rad);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; font-size: 18px; }
.btn-primary:hover { background: var(--primary-700); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-32); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink-06); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--ink-12); }
.btn-light:hover { border-color: var(--ink); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
.btn:focus-visible { outline-offset: 2px; }


/* article.css — /articles/{slug} template.
   Uses only tokens from base.css — no new variables, no dark mode. */

/* ── breadcrumbs ───────────────────────────────────────────── */
.art-crumbs {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-56);
}
.art-crumbs a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s ease; }
.art-crumbs a:hover { color: var(--ink); }
.art-crumbs .sep { color: var(--ink-32); }

/* ── article header ────────────────────────────────────────── */
.art-head {
  padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 3.5vw, 36px);
  border-bottom: 1px solid var(--ink-12);
  margin-bottom: clamp(32px, 4.5vw, 52px);
}
.art-head h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 20ch;
  margin: 18px 0 0;
}
.art-head h1 em { font-style: italic; color: var(--primary); font-weight: 400; }

.art-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 18px;
  margin-top: clamp(20px, 2.5vw, 28px);
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-56);
}
.art-meta .sep { color: var(--ink-32); }

/* ── body: styles the HTML produced from markdown ──────────── */
.art-body {
  font-size: 19px;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: clamp(44px, 6vw, 72px);
}
.art-body > * + * { margin-top: 26px; }
.art-body > h2 { margin-top: clamp(34px, 5vw, 48px); }
.art-body > h3 { margin-top: clamp(28px, 4vw, 38px); }

.art-body h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.art-body h3 {
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
}
/* first paragraph of an article reads as a lede */
.art-body > p:first-child { font-size: 21px; line-height: 1.55; color: var(--ink-72); }

.art-body strong { font-weight: 600; }
.art-body em { font-style: italic; }

.art-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(15, 95, 166, .32);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
.art-body a:hover { text-decoration-color: var(--primary); }

.art-body ul, .art-body ol {
  margin-bottom: 0; padding-left: 1.35em;
  display: flex; flex-direction: column; gap: 12px;
}
.art-body ol { font-feature-settings: "lnum", "tnum"; }
.art-body li { padding-left: 6px; }
.art-body li > ul, .art-body li > ol { margin-top: 12px; }

.art-body blockquote {
  margin: clamp(8px, 1.5vw, 14px) 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--primary);
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.35;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.art-body blockquote p + p { margin-top: 14px; }

.art-body hr {
  border: 0; border-top: 1px solid var(--ink-12);
  margin: clamp(32px, 4vw, 44px) 0;
}

/* ── definition card (raw HTML block inside markdown) ──────── */
.art-def {
  background: var(--mute);
  border-radius: var(--rad-lg);
  padding: clamp(22px, 3vw, 30px);
}
.art-def-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-56);
}
.art-def p {
  margin-top: 14px;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.art-def strong { font-weight: 600; }

/* ── end-of-article service CTA ────────────────────────────── */
.art-cta {
  margin-top: clamp(44px, 6vw, 72px);
  margin-bottom: clamp(44px, 6vw, 72px);
  background: var(--mute-2);
  border-radius: var(--rad-lg);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  overflow: hidden;
}
.art-cta-main { padding: clamp(26px, 3.4vw, 38px); display: flex; flex-direction: column; gap: 14px; }
.art-cta-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.art-cta-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-56);
}
.art-cta .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 3px 8px;
  border-radius: 2px;
}
.art-cta h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 20ch;
}
.art-cta h2 em { font-style: italic; color: var(--primary); font-weight: 400; }
.art-cta-desc { color: var(--ink-72); font-size: 17px; line-height: 1.5; max-width: 52ch; }

.art-cta-side {
  padding: clamp(26px, 3.4vw, 38px);
  border-left: 1px solid var(--ink-12);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.art-cta-price { display: flex; flex-direction: column; gap: 6px; }
.art-cta-price .from {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  font-feature-settings: "lnum", "tnum";
}
.art-cta-price .price-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--ink-56);
}
.art-cta-price .price-note {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--accent);
}
.art-cta-side .btn { justify-content: space-between; }

/* optional ink variant (one flag on the template data) */
.art-cta.is-ink { background: var(--ink); color: var(--paper); }
.art-cta.is-ink .art-cta-lbl,
.art-cta.is-ink .art-cta-price .price-lbl { color: var(--paper-56); }
.art-cta.is-ink .art-cta-desc { color: var(--paper-72); }
.art-cta.is-ink h2 em { color: var(--accent); }
.art-cta.is-ink .art-cta-side { border-left-color: var(--paper-16); }

/* ── related articles ──────────────────────────────────────── */
.art-rel { margin: clamp(48px, 7vw, 88px) 0; }
.art-rel-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-12);
}
.art-rel-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.art-rel-all {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-56);
  transition: color .2s ease;
}
.art-rel-all:hover { color: var(--ink); }
.art-rel-list { display: flex; flex-direction: column; }
.art-rel-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding: 22px 4px;
  border-bottom: 1px solid var(--ink-12);
  transition: background .2s ease;
}
.art-rel-item:hover { background: var(--mute-2); }
.art-rel-item .ttl { font-size: clamp(18px, 2vw, 22px); line-height: 1.25; letter-spacing: -0.01em; }
.art-rel-item .go { font-size: 22px; color: var(--ink-32); transition: transform .2s ease, color .2s ease; }
.art-rel-item:hover .go { color: var(--ink); transform: translateX(4px); }

/* ── responsive ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .art-cta { grid-template-columns: 1fr; }
  .art-cta-side { border-left: 0; border-top: 1px solid var(--ink-12); }
  .art-cta.is-ink .art-cta-side { border-top-color: var(--paper-16); }
  .art-body { font-size: 18px; }
  .art-body > p:first-child { font-size: 19px; }
}

/* articles.css — /articles index (список всех статей).
   Только токены из base.css — новых переменных и dark mode нет.
   Разметка: templates/partials/articles_index.html */

/* ── шапка страницы ────────────────────────────────────────── */
.ai-head {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: end;
  padding: clamp(32px, 5vw, 48px) 0 clamp(24px, 3.5vw, 34px);
  border-bottom: 1px solid var(--ink-12);
  margin-bottom: 8px;
}
.ai-head h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 16ch;
}
.ai-head h1 em { font-style: italic; color: var(--primary); font-weight: 400; }
.ai-head .meta { display: flex; flex-direction: column; gap: 14px; }
.ai-head .lede {
  color: var(--ink-72);
  font-size: 18px;
  line-height: 1.55;
  max-width: 460px;
}

/* ── список: дата колонкой | заголовок + анонс | время чтения ─ */
.ai-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--ink-12);
  margin-bottom: clamp(48px, 8vw, 88px);
}

.ai-item {
  display: grid;
  grid-template-columns: 172px 1fr auto;
  align-items: baseline;
  gap: 32px;
  padding: 26px 4px;
  border-top: 1px solid var(--ink-12);
  transition: background .2s ease;
}
/* .ai-head already closes with its own border-bottom right above the first
   item — an immediate second border-top here just doubled the rule with a
   sliver of gap between the two lines */
.ai-item:first-child { border-top: 0; }
.ai-item:hover { background: var(--mute-2); }

.ai-item .date {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.ai-item-txt { display: flex; flex-direction: column; gap: 8px; }
.ai-item .ttl {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 28ch;
}
.ai-item .ttl em { font-style: italic; color: var(--primary); font-weight: 400; }
.ai-item .desc {
  color: var(--ink-72);
  font-size: 17px;
  line-height: 1.5;
  max-width: 62ch;
}

.ai-item-aside {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-56);
  white-space: nowrap;
}
.ai-item .go {
  font-size: 22px;
  color: var(--ink-32);
  transition: transform .2s ease, color .2s ease;
}
.ai-item:hover .go { color: var(--ink); transform: translateX(4px); }

/* ── пустое состояние (статей ещё нет) ─────────────────────── */
.ai-empty {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 8vw, 88px);
  border-top: 1px solid var(--ink-12);
  color: var(--ink-56);
  font-size: 19px;
}

/* ── адаптив: единственный брейкпоинт сайта ────────────────── */
@media (max-width: 760px) {
  .ai-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .ai-head .lede { font-size: 17px; }

  .ai-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  /* дата и время чтения — одной mono-строкой над заголовком */
  .ai-item .date { order: -1; }
  .ai-item-aside {
    order: -1;
    justify-content: flex-end;
    margin-top: -19px; /* поднимает время чтения на строку даты */
  }
  .ai-item .ttl { font-size: 23px; max-width: none; }
  .ai-item .desc { font-size: 16px; max-width: none; }
  /* стрелка не нужна — вся строка и есть ссылка */
  .ai-item .go { display: none; }
}

.is-hidden { display: none !important; }

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.field-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.field-fieldset legend {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-56);
}

.contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-card {
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--rad-lg);
  padding: 36px;
}
.form-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin-bottom: 8px;
}
.form-card .sub {
  color: var(--ink-72);
  margin-bottom: 28px;
}

.field {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-56);
}
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-32);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper);
  border: 1px solid var(--ink-32);
  border-radius: var(--rad);
  padding: 12px 44px 12px 14px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: border-color .2s ease;
}
.field select:hover { border-color: var(--ink); }
.field select:focus { border-color: var(--primary); }
.field select option { background: var(--paper); color: var(--ink); padding: 8px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-32); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--primary); }
.field textarea { resize: vertical; }

.textarea-wrap textarea { width: 100%; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.btn-primary {
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, opacity .4s ease;
}
.btn-primary.is-warming,
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.form-card .submit {
  margin-top: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.channels {
  display: flex; flex-direction: column;
  gap: 18px;
}
.channel {
  display: flex;
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--ink-12);
  align-items: flex-start;
  transition: padding .2s ease;
}
.channel:last-child { border-bottom: 1px solid var(--ink-12); }
.channel:hover { padding-left: 8px; }
.channel .num { width: 28px; flex-shrink: 0; padding-top: 4px; }
.channel .body { flex: 1; }
.channel h4 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  margin-bottom: 4px;
}
.channel p { color: var(--ink-72); font-size: 16px; }
.channel .handle {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--primary);
}
@media (max-width: 1024px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .form-card { order: 0; max-width: 640px; width: 100%; margin: 0 auto; }
  .channels { order: 1; max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .form-card { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 420px) {
  .form-card { padding: 18px; }
  .radio-group { gap: 18px; }
  .channel { gap: 14px; padding: 18px 0; }
  .channel .num { width: 22px; }
}

.radio-group {
  display: flex;
  gap: 28px;
  padding: 8px 0 4px;
}
.radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 17px;
  color: var(--ink);
  user-select: none;
}
.radio-opt input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.req-mark {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 14px;
}

.sel { position: relative; }
.sel > select {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
}
.field select,
.sel-btn {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-72) 50%),
    linear-gradient(-45deg, transparent 50%, var(--ink-72) 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.sel-btn {
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--ink-32);
  border-radius: var(--rad);
  padding: 12px 44px 12px 14px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease;
}
.sel-btn:hover { border-color: var(--ink); }
.sel-btn:focus { outline: none; border-color: var(--primary); }
.sel-btn.is-placeholder { color: var(--ink-32); }
.sel-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--ink-32);
  border-radius: var(--rad);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,.18);
  z-index: 20;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.sel.is-open .sel-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sel-opt {
  padding: 10px 12px;
  border-radius: calc(var(--rad) - 4px);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease;
}
.sel-opt:hover { background: var(--ink-06, rgba(0,0,0,.05)); }
.sel-opt.is-sel { background: var(--ink-12); }

.ch-input-wrap { position: relative; min-height: 44px; }
.ch-input-wrap input {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, border-color .2s ease;
}
.ch-input-wrap input.is-active { opacity: 1; pointer-events: auto; }

.char-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-56);
  align-self: flex-end;
  transition: color .2s ease;
}
.char-counter--warn { color: var(--secondary); }
.char-counter--crit { color: var(--color-error); }

.form-error {
  font-size: 14px;
  color: var(--color-error);
  flex: 1;
}

.form-success {
  padding: 48px 16px;
  text-align: center;
}
.form-success p {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  margin-bottom: 8px;
}
.form-success__sub {
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--ink-72);
}

.manager-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.manager-badge__label {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.manager-badge__name {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 400;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--primary);
}

@keyframes selFlash {
  0%, 100%  { border-color: var(--ink-32); }
  15%, 70%  { border-color: var(--ink); }
}
.sel-btn--flash { animation: selFlash 1.5s ease; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: 128px;
}
.faq-aside h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 18px;
}
.faq-aside p {
  color: var(--ink-72);
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.faq-aside-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.faq-list { border-top: 1px solid var(--ink-12); }
.faq-item { border-bottom: 1px solid var(--ink-12); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .num { font-size: 12px; width: 28px; }
.faq-item summary .plus {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform .2s ease;
}
.faq-item summary .plus::before {
  width: 22px; height: 1.5px;
  top: 50%; left: 0;
  transform: translateY(-50%);
}
.faq-item summary .plus::after {
  width: 1.5px; height: 22px;
  top: 0; left: 50%;
  transform: translateX(-50%);
}
.faq-item[open] summary .plus::after {
  transform: translateX(-50%) rotate(90deg);
}

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .35s ease, content-visibility .35s ease allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

.faq-item .ans {
  padding: 0 0 28px 52px;
  color: var(--ink-72);
  font-size: 19px;
  max-width: 60ch;
  line-height: 1.6;
}

.faq-item summary > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }

@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-aside { position: static; }
  .faq-item summary { font-size: 19px; gap: 16px; }
  .faq-item .ans { padding-left: 44px; }
}
@media (max-width: 420px) {
  .faq-item summary { font-size: 16px; gap: 10px; padding: 16px 0; }
  .faq-item summary .num { width: 22px; font-size: 11px; }
  .faq-item summary .plus { width: 18px; height: 18px; }
  .faq-item summary .plus::before { width: 18px; }
  .faq-item summary .plus::after { height: 18px; }
  .faq-item .ans { padding-left: 32px; font-size: 16px; }
}


footer {
  border-top: 1px solid var(--ink-12);
  padding: 56px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-56);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-grid ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.foot-grid a {
  color: var(--ink-72);
  font-size: 16px;
  transition: color .2s ease;
}
.foot-grid a:hover { color: var(--ink); }

.foot-brand p {
  color: var(--ink-72);
  margin-top: 12px;
  max-width: 320px;
  font-size: 15px;
}

.foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-12);
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--ink-56);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex-wrap: wrap; gap: 16px;
}

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { margin-top: 36px; }
}

.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.hero-logo img {
  width: clamp(320px, 32vw, 400px);
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
}

.hero-tag {
  display: flex; flex-wrap: wrap; gap: 16px 28px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--ink-72);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(64px, 10vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
}
.hero h1 .it {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.hero-sub {
  margin-top: 28px;
  max-width: 640px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-72);
}
.hero-cta {
  margin-top: 36px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
}
.hero-stat {
  padding: 24px 24px;
  border-right: 1px solid var(--ink-12);
  text-align: center;
}
.hero-stat:last-child { border-right: 0; }
.hero-stat .v {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat .l {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-56);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .hero-cta { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-right: 0; padding: 18px 12px; }
  .hero-stat:nth-child(odd) { border-right: 1px solid var(--ink-12); }
}
@media (max-width: 420px) {
  .hero { padding: 36px 0 48px; }
  .hero-tag { gap: 10px 14px; font-size: 12px; }
  .hero-stats { margin-top: 40px; }
  .hero-stat { padding: 14px 8px; }
  .hero-cta .btn { padding: 11px 16px; font-size: 15px; }
}

.notfound { text-align: center; }
.notfound .eyebrow { margin-bottom: 16px; }
.notfound h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}
.notfound p {
  max-width: 480px;
  margin: 0 auto 32px;
  color: var(--ink-72);
  font-size: 17px;
}

#problems .s-head { grid-template-columns: repeat(12, 1fr); }
#problems .s-head h2   { grid-column: span 8; }
#problems .s-head .meta { grid-column: span 4; }
@media (max-width: 760px) {
  #problems .s-head { grid-template-columns: 1fr; }
  #problems .s-head h2,
  #problems .s-head .meta { grid-column: 1 / -1; }
}

.problems {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-12);
}
.prob {
  grid-column: span 4;
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--ink-12);
  border-right: 1px solid var(--ink-12);
  position: relative;
}
.prob:nth-child(3n)   { border-right: 0; padding-right: 0; padding-left: 28px; }
.prob:nth-child(3n+1) { padding-left: 0; }
.prob:nth-child(3n+2) { padding-left: 28px; }
.prob.featured {
  grid-column: span 8;
  background: var(--ink);
  color: var(--paper);
  padding: 36px 36px 40px;
  border-right: 0;
  border-bottom-color: var(--ink);
}
.prob.featured h3 { font-size: 32px; line-height: 1.12; max-width: 20ch; color: var(--paper); }
.prob.featured p { color: var(--paper-72); font-size: 18px; max-width: 52ch; }
.prob.featured .num { color: var(--accent); }
.prob h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  margin: 14px 0 10px;
  font-weight: 500;
}
.prob p { color: var(--ink-72); font-size: clamp(15px, 1.4vw, 17px); }
.prob .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .problems { grid-template-columns: repeat(2, 1fr); }
  .prob,
  .prob:nth-child(3n),
  .prob:nth-child(3n+1),
  .prob:nth-child(3n+2) {
    grid-column: auto;
    padding: 22px 14px 24px;
    border-right: 1px solid var(--ink-12);
  }
  .prob:nth-child(odd)  { padding-left: 0;  padding-right: 14px; }
  .prob:nth-child(even) { padding-left: 14px; padding-right: 0; border-right: 0; }
  .prob h3 { font-size: 19px; max-width: none; margin: 10px 0 8px; }
  .prob p  { font-size: 14.5px; line-height: 1.45; }
  .prob .num { font-size: 40px; margin-bottom: 10px; }
  .prob.featured {
    grid-column: 1 / -1;
    padding: 28px 24px;
    border-right: 0;
  }
  .prob.featured h3 { font-size: 24px; }
}
@media (max-width: 420px) {
  .problems { grid-template-columns: 1fr; }
  .prob,
  .prob:nth-child(odd),
  .prob:nth-child(even) {
    grid-column: auto;
    padding: 18px 0;
    border-right: 0;
  }
}

.prob-callout {
  margin-top: 56px;
  background: var(--ink);
  color: var(--paper);
  padding: 36px 40px;
  border-radius: var(--rad-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.prob-callout .big {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--secondary);
}
.prob-callout p {
  font-size: clamp(16px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--paper-85);
  max-width: 580px;
}
@media (max-width: 760px) {
  .prob-callout { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 420px) {
  .prob-callout { padding: 22px; gap: 16px; }
}

.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review {
  background: var(--paper);
  border: 1px solid var(--ink-12);
  border-radius: var(--rad);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  min-height: 320px;
}
.review .stars {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.review blockquote {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  flex: 1;
}
.review blockquote::before {
  content: "«";
  font-size: 36px;
  color: var(--ink-32);
  margin-right: 4px;
  line-height: 0;
  position: relative;
  top: 8px;
}
.review blockquote::after { content: "»"; color: var(--ink-32); }

.review .who {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-12);
}
.review .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mute);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-72);
  font-size: 14px;
}
.review .who .meta {
  flex: 1;
  display: flex; justify-content: space-between; align-items: baseline;
}
.review .who .name { font-weight: 500; font-size: 14px; }
.review .who .src {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-56);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .rev-grid { grid-template-columns: 1fr; }
  .review { min-height: 0; }
}

.review-date { font-size: 12px; color: var(--ink-72); }

.rev-foot {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--ink-12);
  flex-wrap: wrap;
  gap: 16px;
}
.rev-foot .agg {
  font-family: var(--font-display);
  font-size: 20px;
}
.rev-foot .agg .big {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-right: 6px;
}
.rev-foot .agg .muted { color: var(--ink-72); }

section.s { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
section.s.s-mute { background: var(--mute); }
section.s.s-ink  { background: var(--ink); color: var(--paper); }
section.s.s-ink .eyebrow { color: var(--paper-56); }
section.s.s-ink .eyebrow::before { background: var(--paper-32); }
section.s.s-ink .rule { border-color: var(--paper-16); }
section.s.s-ink .num { color: var(--paper-56); }

.s-head {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink-12);
  margin-bottom: clamp(32px, 5vw, 56px);
}
section.s.s-ink .s-head { border-bottom-color: var(--paper-16); }
.s-head h2 {
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.s-head h2 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}
section.s.s-ink .s-head h2 em { color: var(--accent); }
.s-head .lede {
  color: var(--ink-72);
  font-size: 18px;
  max-width: 460px;
}
section.s.s-ink .s-head .lede { color: var(--paper-72); }
.s-head .meta { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 760px) {
  .s-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

.svc-sub { font-size: .7em; color: var(--ink-56); font-style: italic; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-12);
  border-left: 1px solid var(--ink-12);
}
.svc {
  grid-column: span 4;
  padding: 28px 28px 32px;
  border-bottom: 1px solid var(--ink-12);
  border-right: 1px solid var(--ink-12);
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background .2s ease, box-shadow .2s ease;
}
.svc:hover { background: var(--mute-2); box-shadow: 0 4px 20px rgba(10,10,10,.08); }
.svc.featured {
  grid-column: span 8;
  background: var(--ink);
  color: var(--paper);
  min-height: 360px;
}
.svc.featured:hover { background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(111,178,232,.2); }
.svc.featured .num,
.svc.featured p { color: var(--paper-72); }
.svc.featured h3 em { color: var(--accent); }

.svc .num { display: flex; justify-content: space-between; align-items: center; }
.svc .num .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
  border: 1px solid var(--secondary);
  padding: 3px 8px;
  border-radius: 2px;
}

.svc h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15;
  font-weight: 500;
  margin: 18px 0 10px;
  max-width: 18ch;
}
.svc.featured h3 { font-size: clamp(28px, 4vw, 44px); max-width: 14ch; line-height: 1.05; letter-spacing: -0.02em; }
.svc h3 em { font-style: italic; color: var(--primary); font-weight: 400; }
.svc p {
  color: var(--ink-72);
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.svc .price {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-12);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-72);
}
.svc.featured .price { border-top-color: var(--paper-16); color: var(--paper-72); }
.svc .price .from {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  font-feature-settings: "lnum","tnum";
  font-weight: 500;
}
.svc.featured .price .from { color: var(--paper); }

.price-pre {
  font-family: var(--font-mono);
  font-size: 11px;
  vertical-align: super;
  color: var(--ink-56);
  letter-spacing: 0.04em;
  margin-right: 5px;
}
.svc.featured .price .price-pre { color: var(--paper-56); }
.price-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-56);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.svc.featured .price .price-lbl { color: var(--paper-56); }
.price-note {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.svc.featured .price .price-note { color: var(--accent); }

@media (max-width: 1024px) {
  .svc { grid-column: span 6; min-height: 240px; }
  .svc.featured { grid-column: span 12; }
  .svc-grid > .svc:last-child { grid-column: span 12; }
}
@media (max-width: 760px) {
  .svc, .svc.featured { grid-column: span 12; min-height: 0; padding: 22px; }
}
@media (max-width: 420px) {
  .svc, .svc.featured { padding: 18px; }
}

.svc-go {
  position: absolute;
  right: 24px;
  bottom: 26px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  text-decoration: none;
  z-index: 2;
}
.svc-go span { display: block; transition: transform .2s ease; }
.svc:hover .svc-go span { transform: translateX(5px); }

.svc.featured .svc-go { color: var(--paper); }
.svc.featured:hover .svc-go { color: var(--accent); }

@media (max-width: 760px) {
  .svc-go { right: 18px; bottom: 20px; font-size: 28px; }
}

@keyframes slotFlash {
  0%   { background: rgba(15,95,166,.16); }
  100% { background: rgba(15,95,166,0); }
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

.s-head h1 {
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.s-head h1 em { font-style: italic; color: var(--primary); font-weight: 400; }

.lede-full {
  max-width: 820px;
  color: var(--ink-72);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.slots-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0 25px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.slots-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--primary);
}
.slots-status[data-state="reconnecting"]::before {
  background: var(--secondary);
  animation: liveBlink 1s ease-in-out infinite;
}
.slots-status[data-state="stale"]::before {
  background: transparent;
  border: 1.5px solid var(--ink-32);
}

.slot-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 32px;
  background: var(--paper);
  border-right: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
  transition: background .2s ease, box-shadow .2s ease;
}
.slot-card:hover { background: var(--mute-2); box-shadow: 0 4px 20px rgba(10,10,10,.08); }

.slots-grid.is-stale .slot-card {
  --ink-72: rgba(10,10,10,1);
  --ink-56: rgba(10,10,10,.95);
  --ink-32: rgba(10,10,10,.72);
  --ink-06: rgba(10,10,10,.10);
  opacity: .6;
}

.slot-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px 40px;
  align-items: end;
}
.slot-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 500; margin: 0; }
.slot-head .desc { margin-top: 8px; color: var(--ink-72); font-size: 16px; line-height: 1.45; max-width: 62ch; }

.slot-total { text-align: right; }
.slot-total .n {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: "lnum","tnum";
  padding: 2px 8px;
  margin: -2px -8px;
  border-radius: 3px;
}
.slot-card.is-empty .slot-total .n { color: var(--ink-32); }
.slot-total .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-56);
  margin-top: 6px;
}

.slot-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-72);
}
.slot-card:not(.is-loading):not(.is-empty) .slot-note { display: none; }

.slot-dates {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 20px;
  margin-top: 26px;
}
.slot-card.is-loading .slot-dates,
.slot-card.is-empty .slot-dates { display: none; }

.d-month {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-56);
  padding: 20px 0 6px;
  border-bottom: 1px solid var(--ink-12);
}
.d-month:first-child { padding-top: 0; }

.d-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink-06);
  font-family: var(--font-mono);
  font-size: 13px;
  font-feature-settings: "tnum";
  color: var(--ink-56);
  line-height: 1.4;
  white-space: nowrap;
}
.d-row[data-zero] [data-n],
.d-row[data-zero] [data-d] { color: var(--ink-32); }
.d-row .d-sep { color: var(--ink-32); }
.d-row [data-d], .d-row [data-n] { color: var(--ink); }
.d-row [data-delta] {
  font-size: 13px;
  color: var(--ink-56);
  margin-left: 7px;
  opacity: 0;
  transition: opacity .7s ease;
}

.slot-more {
  display: none;
  align-self: flex-start;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-32);
  border-radius: var(--rad);
  padding: 9px 14px;
  cursor: pointer;
}
.slot-more:hover { border-color: var(--ink); background: var(--ink-06); }

.slot-card.is-empty .slot-head {
  background: repeating-linear-gradient(45deg, rgba(10,10,10,.055) 0 1px, transparent 1px 8px);
}

.slots-foot-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-56);
  max-width: 820px;
}

@media (max-width: 1300px) { .slot-dates { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .slot-dates { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .slot-card { padding: 22px; }
  .slot-head { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .slot-total { text-align: left; }
  .slot-dates { grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
}
@media (max-width: 560px) { .slot-dates { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .slot-card { padding: 18px; } }

.sol { display: block; }

.sol-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-12);
  border: 1px solid var(--ink-12);
}
.pillar {
  background: var(--paper);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .25s ease, box-shadow .25s ease;
}
.pillar:hover { background: var(--mute-2); box-shadow: 0 4px 20px rgba(10,10,10,.08); }

.pillar h4 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  min-height: 3.6em;
  text-wrap: balance;
}
.pillar p {
  color: var(--ink-72);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
@media (max-width: 1024px) {
  .sol-pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar h4 { min-height: 0; }
}
@media (max-width: 760px) {
  .sol-pillars { grid-template-columns: 1fr; }
}

.vs-table {
  margin-top: 80px;
  border-top: 1px solid var(--ink-12);
}
.vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--ink-12);
  font-size: 17px;
}
.vs-row.hd {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-56);
}
.vs-row.hd .col { padding: 14px 16px; }
.vs-row .col {
  padding: 18px 16px;
  border-right: 1px solid var(--ink-12);
}
.vs-row .col:last-child { border-right: 0; }
.vs-row .col.us { background: var(--paper); }
.vs-row .col.them { background: var(--mute); color: var(--ink-56); }
.vs-row .col.feat { font-family: var(--font-display); font-size: 17px; font-weight: 400; }

.vs-check {
  display: inline-block; width: 14px; height: 14px;
  border: 1.5px solid var(--primary); border-radius: 50%;
  vertical-align: -2px; margin-right: 8px; position: relative;
}
.vs-check::before {
  content: ""; position: absolute; left: 3px; top: 5px;
  width: 6px; height: 1.5px; background: var(--primary);
  transform: rotate(45deg); transform-origin: left center;
}
.vs-check::after {
  content: ""; position: absolute; left: 6px; top: 7px;
  width: 9px; height: 1.5px; background: var(--primary);
  transform: rotate(-45deg); transform-origin: left center;
}
.vs-x {
  display: inline-block; width: 14px; height: 14px;
  border: 1.5px solid var(--ink-32); border-radius: 50%;
  vertical-align: -2px; margin-right: 8px; position: relative;
}
.vs-x::before, .vs-x::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 1.5px; background: var(--ink-56);
}
.vs-x::before { transform: translate(-50%,-50%) rotate(45deg); }
.vs-x::after  { transform: translate(-50%,-50%) rotate(-45deg); }

@media (max-width: 760px) {
  .vs-table { margin-top: 48px; border-top: 0; }
  .vs-row.hd { display: none; }
  .vs-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--ink-12);
    border-radius: var(--rad);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .vs-row .col {
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ink-12);
  }
  .vs-row .col:last-child { border-bottom: 0; }
  .vs-row .col.feat {
    background: var(--mute-2);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    padding: 12px 14px;
  }
  .vs-row .col.us   { background: var(--paper); color: var(--ink); }
  .vs-row .col.them { background: var(--paper); color: var(--ink-72); }
  .vs-row .col.us::before {
    content: 'Виза, сэр!';
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
  }
  .vs-row .col.them::before {
    content: 'Иначе';
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-56);
    margin-bottom: 6px;
  }
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--ink-12);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
  justify-self: start;
}
.brand em { font-style: italic; font-weight: 500; }

.navlinks {
  display: flex; gap: 32px;
  font-size: 17px;
  color: var(--ink-72);
  justify-self: center;
}
.nav-cta, .nav-slots { display: none; }

.topbar-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }
.navlinks a:hover { color: var(--ink); }
.navlinks a {
  font-family: var(--font-body);
  font-feature-settings: "lnum";
  font-weight: 500;
}

/* .nav-drop is deliberately NOT position:relative — .nav-drop-panel anchors
   to .topbar itself (position:sticky, spans the full viewport width) so the
   panel can span left:0/right:0 edge-to-edge under the whole header, not
   just under this link. Containing block resolution walks up past
   .topbar-inner/.navlinks (neither sets position) to .topbar. */
.nav-drop { display: flex; }
.nav-drop > a { display: flex; align-items: center; }

.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  /* --paper-85 (topbar's own translucency) read as too see-through here —
     this panel sits over busier content (hero art, stat numbers) than the
     topbar does, so it needs to be closer to solid. */
  background: rgba(246, 242, 232, .97);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--ink-12);
  box-shadow: 0 20px 40px rgba(10, 10, 10, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
/* invisible bridge over the gap between the trigger link and the panel so
   the pointer doesn't lose :hover crossing the rest of the header's height.
   Measured gap (.nav-drop bottom edge to .topbar bottom edge) is ~32px —
   .navlinks sizes to its text line-height (26px), it does NOT stretch to
   match the taller CTA button in the same row — so this needs real margin,
   not a token few px. */
.nav-drop-panel::before {
  content: "";
  position: absolute;
  top: -40px; left: 0; right: 0; height: 40px;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-drop-inner { padding-top: 24px; padding-bottom: 24px; }

.nav-drop-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 40px;
}
.nav-drop-items a {
  padding: 10px 8px;
  border-radius: var(--rad);
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .2s ease, color .2s ease;
}
.nav-drop-items a:hover { background: var(--mute-2); color: var(--ink); }
.nav-drop-items a em { font-style: italic; color: var(--primary); font-weight: 400; }

/* the "see all" cell always occupies the grid's last slot instead of a
   separate (mostly empty) header row above it — kept visually distinct so
   it still reads as an action, not just another article title */
.nav-drop-see-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--mute);
  font-weight: 600;
  color: var(--ink);
}
.nav-drop-see-all:hover { background: var(--mute-2); }
.nav-drop-see-all span { transition: transform .2s ease; }
.nav-drop-see-all:hover span { transform: translateX(4px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink-12);
  border-radius: var(--rad);
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 760px) {
  .navlinks {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink-12);
    padding: 8px var(--gutter) 16px;
  }
  .navlinks.is-open { display: flex; }
  .navlinks a {
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-06);
    font-size: 18px;
    color: var(--ink);
  }
  .navlinks a:last-child { border-bottom: 0; }
  /* dropdown flyout is a desktop hover affordance; on mobile "Статьи" is
     just a plain link like its siblings, panel content lives at /articles */
  .nav-drop { display: block; }
  .nav-drop-panel { display: none; }
  .navlinks a.nav-cta,
  .navlinks a.nav-cta:hover,
  .navlinks a.nav-cta.active {
    display: inline-flex;
    justify-content: center;
    align-self: stretch;
    margin-top: 14px;
    color: var(--paper);
    border-bottom: 0;
    white-space: nowrap;
  }
  .navlinks a.nav-cta.active::after { content: none; }
  .navlinks a.nav-slots {
    display: inline-flex;
    justify-content: center;
    align-self: stretch;
    margin-top: 10px;
    border-bottom-color: var(--ink-32);
    white-space: nowrap;
  }
  .nav-toggle { display: inline-flex; grid-column: 3; justify-self: end; }
  .topbar-actions { display: none; }
}
@media (max-width: 420px) {
  .topbar-inner { padding: 14px var(--gutter); }
  .brand { font-size: 20px; }
}

.trust {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: center;
}
.trust-lead { grid-column: span 5; }
.trust-lead h3 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.trust-lead h3 em { font-style: italic; color: var(--accent); font-weight: 400; }
.trust-lead p { margin-top: 22px; color: var(--paper-72); font-size: 18px; max-width: 460px; }

.trust-grid {
  grid-column: span 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.trust-cell {
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.trust-cell .big {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}
.trust-cell .lbl {
  margin-top: 12px;
  font-size: clamp(15px, 1.6vw, 20px);
  color: var(--paper);
  line-height: 1.4;
}

.trust-case {
  grid-column: span 12;
  margin-top: 32px;
  border: 1px solid var(--paper-16);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.trust-case .tc-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trust-case .tc-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-case .tc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-56);
  border: 1px solid var(--paper-16);
  border-radius: 999px;
  padding: 5px 11px;
}
.trust-case .tc-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--paper);
}
.trust-case .tc-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.trust-case .tc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.trust-case .tc-step {
  font-size: 17px;
  color: var(--paper-72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-case .tc-step::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.trust-case .tc-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--paper-85);
  border-left: 2px solid var(--paper-32);
  padding-left: 18px;
}
.trust-case .tc-result {
  border-left: 1px solid var(--paper-16);
  background: var(--paper-06);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.trust-case .tc-result .tc-rlabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-56);
  margin-bottom: 8px;
}
.trust-case .tc-result .tc-rbig {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--paper);
}
.trust-case .tc-result .tc-rsub {
  font-size: 17px;
  color: var(--paper-56);
  margin-top: 4px;
}
.trust-case .tc-result .tc-rmeta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-16);
  display: flex;
  gap: 28px;
}
.trust-case .tc-rmeta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trust-case .tc-rmeta .k {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-32);
}
.trust-case .tc-rmeta .v {
  font-size: 20px;
  color: var(--paper);
}

@media (max-width: 1024px) {
  .trust-case { grid-template-columns: 1fr; }
  .trust-case .tc-body { padding: 28px 24px; }
  .trust-case .tc-result {
    border-left: 0;
    border-top: 1px solid var(--paper-16);
    padding: 28px 24px;
  }
}
@media (max-width: 760px) {
  .trust-lead, .trust-grid { grid-column: span 12; }
}
@media (max-width: 420px) {
  .trust { gap: 22px; }
  .trust-cell { padding: 0 12px; }
  .trust-case .tc-body, .trust-case .tc-result { padding: 22px 18px; }
  .trust-case .tc-rmeta { gap: 18px; flex-wrap: wrap; }
}

#page-loader{
  position:fixed;inset:0;z-index:9999;
  background:var(--paper);
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:28px;
  transition:opacity .55s ease
}
#page-loader.done{opacity:0;pointer-events:none}
.loader-spin{
  width:28px;height:28px;
  border:1.5px solid var(--ink-12);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:loader-turn .75s linear infinite
}
@keyframes loader-turn{to{transform:rotate(360deg)}}

.reveal{opacity:0;transform:translateY(24px);transition:opacity .65s ease,transform .65s ease}
.reveal.visible{opacity:1;transform:none}
.reveal.d1{transition-delay:.12s}
.reveal.d2{transition-delay:.24s}
.reveal.d3{transition-delay:.36s}
.reveal.d4{transition-delay:.48s}
.reveal.d5{transition-delay:.60s}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1!important;transform:none!important;transition:none!important}
}

.navlinks a{position:relative;transition:color .2s ease}
.navlinks a.active{color:var(--ink)}
.navlinks a.active::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:var(--ink)}
.navlinks a[aria-current="page"]{color:var(--ink)}
.navlinks a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:var(--ink)}

.rev-grid .review:nth-child(1) .avatar{background:rgba(15,95,166,.1);color:var(--primary)}
.rev-grid .review:nth-child(2) .avatar{background:rgba(224,48,30,.1);color:var(--secondary)}
.rev-grid .review:nth-child(3) .avatar{background:rgba(111,178,232,.18);color:var(--primary-700)}

.vs-row .col{transition:background .2s ease}
.vs-row:not(.hd):hover .col.feat{background:var(--mute)}
.vs-row:not(.hd):hover .col.us{background:rgba(15,95,166,.08)}
.vs-row:not(.hd):hover .col.them{background:var(--mute-3)}

