/* tokens.css */
/* Токены дизайн-системы Claude Band. Компоненты и секции берут цвета, шрифты, отступы и радиусы только отсюда.
   Палитра — стайлгайд Anthropic (docs/reference/anthropic/style-reference.md), композиция и ритм — anthropic.com
   (сняты 13–14.11.2026). Без градиентов, свечений и теней: поверхности плоские.
   Тема — атрибут data-theme на <html>: auto (настройка устройства), dark и light. Шрифты и шкала в обеих темах одни. */

:root,
:root[data-theme="light"] {
  color-scheme: light;

  --footer-background: #141413;

  /* Цвет */
  --bg: #F0EEE6;               /* холст — Ivory Medium */
  --bg-soft: #FAF9F5;          /* карточки, капсулы — Ivory Light */
  --bg-tertiary: #E8E6DC;      /* мягкие кнопки, «···» */
  --bg-oat: #E3DACC;           /* тёплые панели — Oat */
  --bg-feature: #F5E3C7;       /* главная карточка-анонс — Manilla */
  --bg-inverse: #141413;
  --fg: #141413;
  --fg-muted: #5E5D59;
  --fg-soft: #3D3D3A;          /* текст карточек и капсул — Slate Medium */
  --fg-inverse: #FAF9F5;
  --line: #CCCBC8;             /* тонкие линии — Stone */
  --line-strong: #87867F;      /* рамки контурных кнопок — Cloud Dark */
  --line-soft: #E3E1D8;        /* рамка капсул */
  --accent: #D97757;           /* глина — только одно главное действие на странице */
  --accent-strong: #C6613F;
  --accent-soft: #F5E4DA;

  /* Постер с пиксельным Claude: одна тёплая палитра в обеих темах. */
  --pixel-paper: #F8E1D1;
  --pixel-bar: #F1CFB8;
  --pixel-ink: #713F2D;
  --pixel-line: #C99C80;

  /* Цвета коллажей (плитки, медиа-панель) — тёплая палитра Anthropic */
  --art-clay: #D97757;
  --art-kraft: #CC785C;
  --art-oat: #E3DACC;
  --art-cream: #FAF9F5;
  --art-manilla: #F5E3C7;
  --art-olive: #788C5D;
  --art-sand: #D8C3A0;
  --art-ink: #191918;
  --art-sun: #EBCB8B;


  /* Окно терминала — тёмное в обеих темах */
  --term-bg: #1A1918;
  --term-bar: #232220;
  --term-line: #34322F;
  --term-fg: #EDEBE3;
  --term-muted: #9A978E;
  --term-accent: #E08A6B;
  --term-ok: #7CC48A;
  --term-err: #E5786D;

  /* Утверждённая пара: Feature Display для заголовков, Styrene B для контента. */
  --font-serif: "Feature Display", Georgia, serif;
  --font-styrene-a: "Styrene A LC", "Inter", system-ui, sans-serif;
  --font-styrene-b: "Styrene B LC", "Inter", system-ui, sans-serif;
  --font-sans: "Styrene B LC", "BangBang Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "BangBang Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-heading: var(--font-serif);
  --font-ui: var(--font-sans);
  --heading-weight: 400;
  --heading-tracking: 0;
  --heading-leading: 1.12;

  --h2-size-reduction: 0px;

  /* Шкала: интерфейс 12–16, текст 18–20/1.4, заголовки до 60–68 */
  --text-xs: 0.8125rem;                                   /* 13 — метки, подписи, капсулы */
  --text-s: 0.875rem;                                     /* 14 — строки, подвал */
  --text-m: 1rem;                                         /* 16 — интерфейс */
  --text-l: clamp(1.125rem, 0.3vw + 1rem, 1.25rem);       /* 18–20 — текст, вводные абзацы, статьи */
  --text-h3: clamp(1.0625rem, 0.3vw + 0.95rem, 1.25rem);  /* 17–20 — жирный гротеск карточек */
  --text-h2: clamp(2rem, 3vw + 1rem, 3.75rem);            /* 32–60 */
  --text-h1: clamp(2.25rem, 3.6vw + 1rem, 4.25rem);       /* 36–68 */

  /* Отступы */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 80px;
  --section-pad: clamp(56px, 6vw, 96px);

  /* Формы */
  --radius-s: 8px;             /* медиа, поля ввода */
  --radius-m: 12px;            /* окна */
  --radius-l: 24px;            /* карточки */
  --radius-btn: 999px;         /* капсулы — все кнопки сайта */
  --shadow: none;

  /* Сетка: контейнер 1280 с полями 80 на десктопе, как у anthropic.com */
  --shell: 1280px;
  --gutter: clamp(20px, 8vw, 80px);
  --header-h: 72px;

  /* Значки: стрелка и шеврон — маской, цвет берут из currentColor */
  --icon-arrow: url("img/icon-arrow.svg");
  --icon-chevron: url("img/icon-chevron.svg");
  --icon-external: url("img/icon-external.svg");
  --icon-dots: url("img/icon-dots.svg");
  /* Зерно коллажей */
  --grain: url("img/grain.svg");
}

@media (min-width: 1024px) {
  :root, :root[data-theme] { --header-h: 84px; --h2-size-reduction: 10px; }
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #141413;
  --bg-soft: #1F1E1D;
  --bg-tertiary: #262523;
  --bg-oat: #262523;
  --bg-feature: #1F1E1D;
  --bg-inverse: #0E0E0D;
  --fg: #FAF9F5;
  --fg-muted: #B0AEA5;
  --fg-soft: #E8E6DC;
  --fg-inverse: #FAF9F5;
  --line: #30302E;
  --line-strong: #87867F;
  --line-soft: #30302E;
  --accent: #D97757;
  --accent-strong: #E8956F;
  --accent-soft: #3A2820;

  --icon-dots: url("img/icon-dots-dark.svg");

  --term-bg: #0E0E0D;
  --term-bar: #191918;
  --term-line: #2C2B28;
}

/* CSS fallback follows the device even with JavaScript disabled. */
@media (prefers-color-scheme: dark) {
:root[data-theme="auto"] {
  color-scheme: dark;

  --bg: #141413;
  --bg-soft: #1F1E1D;
  --bg-tertiary: #262523;
  --bg-oat: #262523;
  --bg-feature: #1F1E1D;
  --bg-inverse: #0E0E0D;
  --fg: #FAF9F5;
  --fg-muted: #B0AEA5;
  --fg-soft: #E8E6DC;
  --fg-inverse: #FAF9F5;
  --line: #30302E;
  --line-strong: #87867F;
  --line-soft: #30302E;
  --accent: #D97757;
  --accent-strong: #E8956F;
  --accent-soft: #3A2820;

  --icon-dots: url("img/icon-dots-dark.svg");

  --term-bg: #0E0E0D;
  --term-bar: #191918;
  --term-line: #2C2B28;
}
}


/* Инверсная секция (подвал): тёмная в обеих темах; в тёмной теме отделена линией сверху. */
.section--inverse {
  --bg: var(--footer-background);
  --bg-soft: #1F1E1D;
  --bg-tertiary: #30302E;
  --fg: #FAF9F5;
  --fg-muted: #B0AEA5;
  --fg-soft: #E8E6DC;
  --line: #3D3D3A;
  --line-strong: #87867F;
  --line-soft: #30302E;
  --accent-soft: #3A2820;
}

/* base.css */
/* Feature Display: original Lovart Latin WOFF2 + official Cyrillic of the same family.
   User confirms an extended license. All headings remain ordinary HTML text. */
@font-face {
  font-family: "Feature Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/feature/FeatureDisplay_Regular_Web-s.p.15okwp9-8254o.woff2") format("woff2");
}
@font-face {
  font-family: "Feature Display"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/feature/FeatureDisplay-Regular-Cy-Gr-Web.woff2") format("woff2");
  unicode-range: U+0370-052F, U+1F00-1FFF, U+2DE0-2DFF, U+A640-A69F, U+20BD, U+2116;
}
@font-face {
  font-family: "Feature Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/feature/FeatureDisplay_RegularItalic_Web-s.p.0s_s3gu3ebr02.woff2") format("woff2");
}
@font-face {
  font-family: "Feature Display"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/feature/FeatureDisplay-RegularItalic-Cy-Gr-Web.woff2") format("woff2");
  unicode-range: U+0370-052F, U+1F00-1FFF, U+2DE0-2DFF, U+A640-A69F, U+20BD, U+2116;
}

/* Шрифты лежат локально. Пути — относительно dist/assets/, где лежит собранный CSS.
   BangBang: шесть предоставленных пользователем variable WOFF2, веса 300–800.
   Кириллицу отображают Styrene B LC (sans), Feature Display (serif) и JetBrains Mono (mono).
   Соответствие файлов семействам — docs/fonts.md. */

@font-face { font-family: "BangBang Serif"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/bangbang/BangBang_Roman_Web-s.p.0twp0vwi-lncj.woff2") format("woff2"); }
@font-face { font-family: "BangBang Serif"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("fonts/bangbang/BangBang_Italic_Web-s.p.1fjksu1uimpf3.woff2") format("woff2"); }
@font-face { font-family: "BangBang Sans"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/bangbang/BangBang_Roman_Web-s.p.1e3n6bt4oqimz.woff2") format("woff2"); }
@font-face { font-family: "BangBang Sans"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("fonts/bangbang/BangBang_Italic_Web-s.p.212cqpul8-axk.woff2") format("woff2"); }
@font-face { font-family: "BangBang Mono"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("fonts/bangbang/BangBangMono_Roman_Web-s.p.16xhthj2n-pap.woff2") format("woff2"); }
@font-face { font-family: "BangBang Mono"; font-style: italic; font-weight: 300 800; font-display: swap;
  src: url("fonts/bangbang/BangBang_Italic_Web-s.p.0x1wr-4z1xgw3.woff2") format("woff2"); }

@font-face { font-family: "Styrene A LC"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/styrene/Styrene-A-LC-Medium.woff2") format("woff2"); }
@font-face { font-family: "Styrene A LC"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/styrene/Styrene-A-LC-Regular.woff2") format("woff2"); }
@font-face { font-family: "Styrene B LC"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/styrene/Styrene-B-LC-Medium.woff2") format("woff2"); }
@font-face { font-family: "Styrene B LC"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/styrene/Styrene-B-LC-Regular.woff2") format("woff2"); }

/* Source Serif 4 Text: кириллица в текстовом рисунке opsz=20, натуральные веса.
   Умеренные 107% согласуют высоту с Anthropic Serif без подмены Regular на Medium. */
@font-face { font-family: "Source Serif 4 Text"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-serif-text/source-serif-4-text-cyrillic-normal.woff2") format("woff2");
  size-adjust: 107%;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif 4 Text"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-serif-text/source-serif-4-text-cyrillic-italic.woff2") format("woff2");
  size-adjust: 107%;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-latin-400-normal.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; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/inter-latin-500-normal.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; }

@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-latin-600-normal.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; }

@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-400-normal.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; }

@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-500-normal.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; }

/* Основа */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-m);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* IntersectionObserver switches the Safari document backdrop only while the footer is visible.
   Removing the attribute restores the current theme, including changes made at the footer. */
html[data-footer-visible],
html[data-footer-visible] > body { background: var(--active-footer-background, var(--footer-background)); }
body:has(> .site-footer) > main { background: var(--bg); }

main { flex: 1 0 auto; }
main:focus { outline: none; }

/* Заголовки — Feature Display; контент и интерфейс — Styrene B. */
h1, h2, h3, h4 {
  margin: 0;
  text-wrap: balance;
}
h1, h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  line-height: var(--heading-leading);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: calc(var(--text-h2) - var(--h2-size-reduction)); }
h3, h4 {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
strong, b { font-weight: 600; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.9em; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
a:hover { text-decoration-color: var(--accent); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

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

:root.no-scroll { overflow: hidden; }

[id] { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }

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

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

/* Служебное */

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

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-s);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: var(--text-s);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-4)));
}
.skip-link:focus-visible { transform: none; }

/* components.css */
/* Компоненты — грамматика блоков anthropic.com. Только токены из tokens.css: обе темы и подвал работают без исключений. */

/* Контейнер и секции */

.shell {
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

.section--inverse {
  background: var(--bg);
  color: var(--fg);
}

/* Шапка раздела: подпись между двумя линиями во всю ширину, ниже крупный заголовок с засечками и вводный абзац */
.section__head {
  display: grid;
  justify-items: start;
  gap: var(--space-5);
  margin-bottom: clamp(var(--space-6), 4vw, var(--space-7));
}
.section__head > h1,
.section__head > h2 { max-width: 22em; }
.section__head > .eyebrow { justify-self: stretch; margin-bottom: var(--space-3); }

/* Подпись раздела: маленькая жирная строка между тонкими линиями */
.eyebrow {
  display: block;
  padding-block: var(--space-4);
  border-block: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--fg);
}
/* Только верхняя линия подписи, без текста (тизер журнала) */
.eyebrow--rule { padding: 0; border-bottom: 0; }

/* Вводный абзац раздела — засечками */
.lead {
  max-width: 40em;
  font-family: var(--font-sans);
  font-size: var(--text-l);
  line-height: 1.4;
  color: var(--fg-soft);
}

/* Вводный абзац страницы, как на главной anthropic.com: первое предложение — жирный гротеск, дальше — обычное начертание */
.intro {
  font-family: var(--font-sans);
  font-size: var(--text-l);
  text-wrap: pretty;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.intro b {
  font-family: var(--font-ui);
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Кнопки — одна форма на весь сайт: капсула, как кнопки меню anthropic.com (решение заказчика, G11).
   .btn--primary — залитая; .btn--accent — глиняная, одна на странице (главное действие);
   .btn--ghost — контурная; .btn--soft — мягкая кнопка карточки во всю ширину. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-size: var(--text-m);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { flex: none; width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: var(--fg-soft); }

/* Текст глиняной кнопки — белый в обеих темах и во всех состояниях (решение заказчика, таск 14). Наведение — #C6613F
   и в тёмной теме: светлый --accent-strong тёмной темы (#E8956F) с белым текстом нечитаем. */
.btn--accent,
.btn--accent:hover,
.btn--accent:focus-visible,
.btn--accent:active { color: #fff; }
.btn--accent { background: #B8583C; }
.btn--accent:hover,
.btn--accent:active { background: #AB4F35; }

.btn--ghost {
  padding-inline: 18px;
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--fg); }

.btn--soft {
  width: 100%;
  min-height: 40px;
  padding: 8px 20px 8px 24px;
  background: var(--bg-tertiary);
  border-color: var(--line-soft);
  color: var(--fg-soft);
  font-weight: 400;
}
.btn--soft:hover { border-color: var(--line-strong); color: var(--fg); }

.btn--small {
  min-height: 36px;
  padding: 6px 16px;
  font-size: var(--text-s);
}

/* Стрелка после текста: «Оставить заявку →» */
.arrow::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: 2px;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.15s ease;
}
.arrow:hover::after { transform: translateX(2px); }

/* Метка — просто жирный текст в строке, без контейнера (стайлгайд) */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--fg);
  white-space: nowrap;
}
.chip--accent { color: var(--fg); }

/* Строка-метка карточки: капсула «···», рубрика, дата */

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--fg-muted);
}
.meta-row::before {
  content: "";
  flex: none;
  width: 36px;
  height: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-btn);
  background: var(--bg-tertiary) var(--icon-dots) center / 14px 4px no-repeat;
}

/* Карточка анонса: светлая на холсте, скругление 24, поля 32, без теней; заголовок жирным гротеском,
   текст гротеском, внизу пустое место, строки «подпись — значение» и мягкая кнопка. .card--feature — manilla, одна главная */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--bg-soft);
  border-radius: var(--radius-l);
  color: var(--fg);
}
.card > .meta-row { margin-bottom: var(--space-2); }
.card > p:not([class]) { font-size: var(--text-m); line-height: 1.5; color: var(--fg-soft); }
.card--feature { background: var(--bg-feature); }
.card > .chip { align-self: flex-start; }
.card__foot { margin-top: auto; padding-top: var(--space-6); display: grid; gap: var(--space-5); }
/* Тёмная тема, как на claude.com: плашка — заливка #1F1E1D и рамка 1 px #30302E (внутренним кольцом, размер не меняется);
   главная карточка — та же заливка и рамка покрепче; капсулы — #262523 */
:root[data-theme="dark"] .card { box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .card--feature { box-shadow: inset 0 0 0 1px var(--line-strong); }
:root[data-theme="dark"] .pill,
:root[data-theme="dark"] .icon-btn { background: var(--bg-tertiary); }
a.card { text-decoration: none; transition: background-color 0.15s ease; }
a.card:hover { background: color-mix(in srgb, var(--bg-soft) 70%, var(--bg-tertiary)); }

/* Сетка карточек: три колонки с зазором 16 */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Строки-разделители «подпись — значение →» */

.rows { display: grid; margin: 0; padding: 0; list-style: none; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px var(--space-4);
  min-height: 48px;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
  font-size: var(--text-m);
  line-height: 1.5;
}
.row > :first-child { color: var(--fg); }
.row > :last-child:not(:first-child) { margin-left: auto; color: var(--fg-muted); text-align: right; }
.row dd { margin: 0; }
.row b { font-weight: 500; color: var(--fg); white-space: nowrap; }
.row a { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-muted); text-decoration: none; }
.row a:hover { color: var(--fg); }

/* Плитка «Learn more»: над плиткой «···» и рубрика, коллаж, жирный заголовок, короткий текст */

.tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7) var(--space-4);
}
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--fg);
  text-decoration: none;
}
.tile > .meta-row { margin-bottom: var(--space-2); }
.tile > p:not([class]) { font-size: var(--text-s); line-height: 1.55; color: var(--fg-muted); max-width: 30em; }
a.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Подложка картинки: овёс и бумажное зерно поверх; сама картинка — img внутри (assets/img/gen/) */

.art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--art-oat);
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--grain) 0 0 / 160px 160px;
  mix-blend-mode: multiply;
  opacity: 0.22;
}

/* Медиа-панель: на всю ширину контейнера, небольшое скругление, сгенерированная гравюра
   (img.media__plate из assets/img/gen/), поверх — окно терминала */
.media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(16px, 6vw, 96px) clamp(12px, 8vw, 160px);
  overflow: hidden;
  border-radius: var(--radius-s);
  background-color: var(--art-oat);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grain) 0 0 / 160px 160px;
  mix-blend-mode: multiply;
  opacity: 0.22;
  pointer-events: none;
}
.media > * { position: relative; width: 100%; min-width: 0; }
.media > .media__plate {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Окно терминала: тёмное в обеих темах. Глифы ⏺ и ⎿ рисуются CSS — в шрифтах их нет,
   а символ ⏺ на телефонах превращается в эмодзи. */

.term {
  background: var(--term-bg);
  color: var(--term-fg);
  border: 1px solid var(--term-line);
  border-radius: var(--radius-m);
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.25vw + 0.7rem, 0.875rem);
  line-height: 1.65;
  overflow: hidden;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: 8px 14px;
  background: var(--term-bar);
  border-bottom: 1px solid var(--term-line);
  color: var(--term-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.term__bar::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 34px;
  border-radius: 50%;
  background: var(--term-line);
  box-shadow: 16px 0 0 var(--term-line), 32px 0 0 var(--term-line);
}

.term__body {
  display: grid;
  gap: 2px;
  padding: clamp(14px, 2.2vw, 22px);
}

.term__line {
  display: block;
  min-height: 1.65em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term__prompt {
  margin-block: 6px;
  padding: 7px 12px;
  border: 1px solid var(--term-line);
  border-radius: 6px;
  color: var(--term-fg);
}
.term__prompt::before {
  content: ">";
  margin-right: 1ch;
  color: var(--term-muted);
}

.term__tool { position: relative; padding-left: 2ch; }
.term__tool::before {
  content: "";
  position: absolute;
  left: 0.2ch;
  top: calc(0.825em - 0.3em);
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--term-ok);
}
.term__tool--msg::before { background: var(--term-fg); }
.term__tool--err::before { background: var(--term-err); }

.term__result { position: relative; padding-left: 4.5ch; color: var(--term-muted); }
.term__result::before {
  content: "";
  position: absolute;
  left: 2.3ch;
  top: 0.15em;
  width: 1.1ch;
  height: 0.7em;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.term__muted { color: var(--term-muted); }
.term__accent { color: var(--term-accent); }
.term__ok { color: var(--term-ok); }
.term__err { color: var(--term-err); }

.term__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--term-fg);
  animation: cb-blink 1.1s steps(1) infinite;
}
@keyframes cb-blink { 50% { opacity: 0; } }

/* Аккордеон как группа подвала anthropic.com: строки с тонкими линиями, текст слева, шеврон справа.
   Раскрытый — шеврон вверх, содержимое ниже строками между линиями (на телефоне — с отступом 24),
   приглушённым цветом. <details> — работает без JS. Двухколоночный вид — в подвале и faq.css. */

.accordion { --acc-row: 52px; border-bottom: 1px solid var(--line); }
.accordion:first-child { border-top: 1px solid var(--line); }
.accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--acc-row);
  padding: 12px 0;
  font-family: var(--font-ui);
  font-size: var(--text-s);
  color: var(--fg-muted);
  list-style: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon-chevron) center / contain no-repeat;
  mask: var(--icon-chevron) center / contain no-repeat;
  transition: transform 0.2s ease;
}
.accordion > summary:hover,
.accordion[open] > summary { color: var(--fg); }
.accordion[open] > summary::after { transform: rotate(180deg); }
.accordion__body { margin: 0; padding: 0 0 0 var(--space-5); color: var(--fg-muted); }
.accordion__body > * { margin: 0; padding-block: 14px; }
.accordion__body > * + * { border-top: 1px solid var(--line); }

/* Логотип: пиксельный всадник из пейзажа и словесный знак Claude Band. */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.logo__mark { display: block; flex: none; width: 36px; height: 32px; }
.logo__word {
  font-family: var(--font-sans);
  font-size: 1.3125rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

/* Шапка: фон страницы, слева капсулы разделов, по центру словесный знак (при прокрутке — значок),
   справа /theme, расчёт стоимости, личный кабинет и ≡. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

/* Keep the entire bar at one viewport position; reserve the same space in page flow. */
:root.js .site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  min-height: var(--header-h);
  flex-shrink: 0;
}
:root.js body:has(> .site-header) { padding-top: var(--header-h); }
:root.js .site-header__bar {
  height: var(--header-h);
  grid-template-rows: minmax(0, 1fr);
  align-content: center;
}
@media print {
  :root.js body:has(> .site-header) { padding-top: 0; }
}

.site-header__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-btn);
  background: var(--bg-soft);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--fg-soft);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pill:hover { background: var(--bg-tertiary); color: var(--fg); }

/* Круглая кнопка 28×28 (капсула, как все кнопки); зона нажатия шире видимой */
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-btn);
  background: var(--bg-soft);
  color: var(--fg-soft);
  cursor: pointer;
}
.icon-btn::after { content: ""; position: absolute; inset: -8px; }
.icon-btn:hover { background: var(--bg-tertiary); color: var(--fg); }

.site-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.site-header__logo { grid-column: 2; justify-self: center; position: relative; min-height: 40px; padding-left: 46px; }
.site-header__logo .logo__mark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: left 0.2s ease, transform 0.2s ease;
}
.site-header__logo .logo__word { transition: opacity 0.2s ease; }
.site-header[data-scrolled] .site-header__logo .logo__mark { left: 50%; transform: translate(-50%, -50%); }
.site-header[data-scrolled] .site-header__logo .logo__word { opacity: 0; }

.site-header__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.site-header__actions .pill { padding-inline: 12px; }
.site-header__calculate svg, .site-header__account-short { display: none; }

.theme-toggle { display: none; font-family: var(--font-mono); letter-spacing: 0; }
.theme-toggle::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform 0.3s ease;
}
:root[data-theme="dark"] .theme-toggle::after { transform: rotate(180deg); }
:root.js .theme-toggle { display: inline-flex; }

.nav-toggle { display: none; }
:root.js .nav-toggle { display: inline-grid; }
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  height: 1.2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}
.nav-toggle__icon { position: relative; width: 12px; }
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -3.5px; width: 12px; }
.nav-toggle__icon::after { top: 3.5px; width: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { width: 12px; transform: translateY(-3.5px) rotate(-45deg); }

/* Меню на весь экран под шапкой: крупные ссылки, ниже — документы и заявка */
.site-menu { display: none; }
:root.js .site-header[data-open] .site-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.site-menu__inner {
  display: grid;
  align-content: start;
  gap: var(--space-7);
  padding-block: var(--space-5) var(--space-8);
}
.site-menu__main { display: grid; }
.site-menu__main a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: clamp(1.625rem, 2vw + 1rem, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
  text-decoration: none;
}
.site-menu__main li:first-child a { border-top: 1px solid var(--line); }
.site-menu__main a:hover { color: var(--accent-strong); }
.site-menu__aside { display: grid; gap: var(--space-5); align-content: start; }
.site-menu__title { font-size: var(--text-xs); font-weight: 600; color: var(--fg); }
.site-menu__links { display: grid; gap: var(--space-2); font-size: var(--text-s); }
.site-menu__links a { color: var(--fg-muted); text-decoration: none; }
.site-menu__links a:hover { color: var(--fg); }
.site-menu__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-menu .theme-toggle { min-height: 36px; padding-inline: 16px; }

@media (min-width: 1024px) {
  .site-menu__inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: var(--space-8); padding-top: var(--space-7); }
}

@media (prefers-reduced-motion: no-preference) {
  :root.js .site-header[data-open] .site-menu { animation: cb-fade 0.18s ease-out; }
}
@keyframes cb-fade { from { opacity: 0; } }

/* Компактная шапка: значок слева, справа тема, расчёт, кабинет и меню.
   Без JS ≡ не работает — капсулы разделов переносятся строкой под знак. */
@media (max-width: 1279.98px) {
  .site-header__bar { grid-template-columns: auto minmax(0, 1fr); }
  .site-header__logo { grid-column: 1; grid-row: 1; justify-self: start; padding-left: 0; }
  .site-header__logo .logo__word { display: none; }
  .site-header__logo .logo__mark, .site-header[data-scrolled] .site-header__logo .logo__mark { position: static; transform: none; width: 36px; height: 32px; }
  .site-header__actions { grid-column: 2; grid-row: 1; }
  :root.js .site-pills { display: none; }
  :root:not(.js) .site-header { position: relative; }
  :root:not(.js) .site-pills { grid-column: 1 / -1; grid-row: 2; padding-bottom: var(--space-4); }
}

/* Подвал: тёмный на всю ширину; знак слева, справа аккордеон групп ссылок;
   внизу — декоративный пиксельный пейзаж */

.site-footer {
  padding-block: clamp(56px, 6vw, 80px) 0;
  scroll-margin-top: 80px;
  font-size: var(--text-s);
}
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}
.site-footer__logo .logo__mark { width: 36px; height: 32px; }

.site-footer .accordion__body { padding-left: var(--space-5); }
.site-footer__links > li { display: flex; padding: 0; }
.site-footer__links a { display: flex; align-items: center; min-height: var(--acc-row); padding-block: 8px; color: var(--fg-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--fg); text-decoration: underline; }

/* Пиксельный пейзаж завершает подвал во всю ширину; ссылки остаются над иллюстрацией. */
.site-footer__landscape {
  margin-top: clamp(24px, 3vw, 48px);
  overflow: hidden;
  pointer-events: none;
}
.site-footer__landscape img {
  width: 100%;
  height: clamp(230px, 30vw, 480px);
  object-fit: cover;
  object-position: center bottom;
  image-rendering: pixelated;
  mask-image: linear-gradient(to bottom, transparent, #000 16%);
}

.ext { display: inline-flex; align-items: center; gap: 4px; color: var(--fg-soft); text-decoration: none; overflow-wrap: anywhere; }
.ext::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  opacity: 0.7;
  -webkit-mask: var(--icon-external) center / contain no-repeat;
  mask: var(--icon-external) center / contain no-repeat;
}
.ext:hover { color: var(--fg); }

@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-6); align-items: start; }
  /* Раскрытая группа — две колонки, как у anthropic.com: подпись слева, ссылки справа с 38 %,
     первая — в строке подписи. Тело не ловит клики, чтобы шеврон под ним закрывал группу. */
  .site-footer__groups .accordion__body {
    position: relative;
    margin-top: calc(-1 * var(--acc-row));
    padding-left: 38%;
    pointer-events: none;
  }
  .site-footer__groups .accordion__body a { pointer-events: auto; }
  .site-footer__groups .accordion__body > :first-child { padding-right: var(--space-7); }
}


/* Зоны нажатия в компактной шапке, без увеличения её высоты. */
@media (max-width: 639.98px) {
  .site-header__actions .icon-btn { width: 44px; height: 44px; }
  .site-header__bar { gap: var(--space-2); }
  .site-header__actions { gap: var(--space-1); }
  .site-header__actions .theme-toggle, .site-header__actions .site-header__calculate { width: 44px; height: 44px; padding: 0; flex: none; }
  .site-header__theme-label, .site-header__calculate > span, .site-header__account-full { display: none; }
  .site-header__account-short { display: inline; }
  .site-header__actions .theme-toggle::after { width: 13px; height: 13px; margin-left: 0; }
  .site-header__calculate svg { display: block; width: 20px; height: 20px; }
  .site-header__actions .site-header__cta { min-height: 44px; padding-inline: 10px; font-size: 0.75rem; }
}

/* sections/account.css */
/* Account entry. The fixed-size brand artwork yields to the form on short displays. */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.account-story { display: grid; grid-template-rows: auto 1fr; padding: clamp(24px, 4vw, 64px); background: var(--bg-oat); }
.account-logo { justify-self: start; }
.account-story__content { display: grid; align-content: center; gap: clamp(20px, 5vh, 48px); }
.account-story__content h2 { font: 400 clamp(2.75rem, 5.5vw, 5.5rem)/.99 var(--font-heading); letter-spacing: -.025em; }
.account-story__art { display: block; width: min(100%, 37vh, 380px); height: auto; border-radius: var(--radius-l); }
.account-main { min-width: 0; display: flex; flex-direction: column; padding: clamp(16px, 3vh, 36px) clamp(24px, 4vw, 64px); background: var(--bg-soft); }
.account-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: var(--text-xs); }
.account-back { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--fg-muted); text-decoration: none; }
.account-back:hover { color: var(--fg); }
.account-toolbar .account-mobile-logo { display: none; }
.account-card { width: 100%; max-width: 420px; margin: auto; padding-block: clamp(14px, 3vh, 40px); }
.account-card__heading { margin-bottom: clamp(15px, 2.8vh, 26px); }
.account-card__heading h1 { font: 400 clamp(2rem, 3.5vw, 3.75rem)/1.04 var(--font-heading); letter-spacing: -.018em; }
.account-card__heading h1:focus { outline: none; }
.account-card__heading p { margin-top: 8px; color: var(--fg-muted); font-size: var(--text-s); }
.account-form { display: grid; gap: clamp(10px, 1.9vh, 18px); }
.account-field { display: grid; gap: 5px; min-width: 0; font-size: var(--text-s); }
.account-field label, .account-promo label > span, .account-code label { font-weight: 500; }
.account-field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.account-form .lead-form__input { min-height: 46px; padding: 9px 18px; font-size: 1rem; }
.account-password { position: relative; }
.account-password .lead-form__input { padding-right: 50px; }
.account-password__toggle { position: absolute; top: 50%; transform: translateY(-50%); right: 3px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: transparent; color: var(--fg-muted); cursor: pointer; }
.account-password__toggle:hover { color: var(--fg); }
.account-password__toggle svg { width: 20px; height: 20px; }
.account-hint, .account-text-link, .account-promo summary { font-size: var(--text-xs); color: var(--fg-muted); }
.account-promo summary, .account-text-link, .account-switch a { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.account-text-link { border: 0; background: transparent; padding: 0; justify-self: start; }
.account-promo summary { width: fit-content; }
.account-promo[open] .account-field { margin-top: 6px; }
.account-submit { min-height: 46px; width: 100%; justify-content: space-between; padding-inline: 20px; }
.account-submit:disabled { opacity: .55; cursor: default; }
.account-code { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.account-code label { font-size: var(--text-s); }
.account-code output { font: 500 1rem/1.45 var(--font-mono); overflow-wrap: anywhere; user-select: all; }
.account-status { font-size: var(--text-s); color: var(--fg-soft); border-inline-start: 2px solid var(--accent); padding-inline-start: 10px; }
.account-switch { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-top: clamp(14px, 2.4vh, 24px); padding-top: clamp(10px, 1.7vh, 18px); border-top: 1px solid var(--line); font-size: var(--text-s); }
.account-switch > span { color: var(--fg-muted); }
.account-legal { display: flex; flex-wrap: wrap; gap: 5px; margin-top: clamp(11px, 2vh, 20px); font-size: var(--text-xs); color: var(--fg-muted); }
.account-legal a { text-decoration: none; }
.account-legal a:hover { text-decoration: underline; }
.account-page [hidden] { display: none !important; }
@media (max-width: 859px) {
  .account-layout { display: block; }
  .account-story, .account-back { display: none; }
  .account-toolbar .account-mobile-logo { display: inline-flex; }
  .account-main { min-height: 100svh; padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  .account-toolbar { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-height: 635px) {
  .account-main { padding-block: 7px; }
  .account-form { gap: 8px; }
  .account-card { padding-block: 8px; }
  .account-card__heading { margin-bottom: 10px; }
  .account-card__heading p { margin-top: 5px; }
  .account-card__heading h1 { font-size: 2rem; }
  .account-field { gap: 3px; }
  .account-switch { margin-top: 10px; padding-top: 8px; }
  .account-legal { margin-top: 8px; }
}
@media (max-height: 480px) and (min-aspect-ratio: 4/3) {
  .account-story { display: none; }
  .account-layout { display: block; }
  .account-main { min-height: 100svh; }
  .account-toolbar, .account-card { max-width: 640px; width: 100%; margin-inline: auto; }
  .account-toolbar .account-mobile-logo { display: inline-flex; }
  .account-back { display: none; }
  .account-card__heading p { display: none; }
  .account-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-form > :not(.account-field) { grid-column: 1/-1; }
  .account-card[data-mode="register"] .account-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) and (max-height: 635px) {
  .account-card { padding-block: 4px; }
  .account-form { gap: 6px; }
}

/* sections/article.css */
/* Статьи журнала и общие элементы внутренних страниц — как статья на anthropic.com:
   узкая колонка текста засечками 20/1.4, подзаголовки жирным гротеском, оглавление строками с номерами и линиями. */

.shell--text { width: min(100% - 2 * var(--gutter), 46rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
  color: var(--fg-muted);
}
.crumbs a { color: inherit; }

.article-head .shell { display: grid; gap: var(--space-5); justify-items: start; }
.article-head h1 { font-size: var(--text-h2); }
.article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.article-head__meta::before {
  content: "";
  flex: none;
  width: 36px;
  height: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-btn);
  background: var(--bg-tertiary) var(--icon-dots) center / 14px 4px no-repeat;
}
.article-head__meta .chip + .chip { font-weight: 400; color: var(--fg-muted); }

/* Оглавление: строки с номерами 01, 02… и тонкими линиями */
.toc { width: 100%; margin-top: var(--space-3); }
.toc__title { padding-bottom: var(--space-3); font-size: var(--text-xs); font-weight: 600; color: var(--fg); }
.toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; font-size: var(--text-m); }
.toc__list li {
  counter-increment: toc;
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}
.toc__list li:last-child { border-bottom: 1px solid var(--line); }
.toc__list li::before { content: counter(toc, decimal-leading-zero); flex: none; width: 2ch; font-size: var(--text-xs); line-height: 1.85; color: var(--fg-muted); }
.toc__list a { text-decoration: none; }
.toc__list a:hover { text-decoration: underline; }

.article__part { padding-block: var(--space-5); }
.article__body { display: grid; gap: var(--space-4); font-family: var(--font-sans); font-size: var(--text-l); line-height: 1.4; }
.article__body h2 { font-family: var(--font-ui); font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; margin-top: var(--space-3); }
.article__body ul, .article__body ol { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.article__body li::marker { color: var(--fg-muted); }
.article__body code { padding: 0.05em 0.35em; background: var(--bg-tertiary); border-radius: 4px; font-size: 0.8em; overflow-wrap: anywhere; }
.article__note { padding: var(--space-5) var(--space-6); background: var(--bg-soft); border-radius: var(--radius-l); }
.article__code {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: var(--term-bg);
  color: var(--term-fg);
  border-radius: var(--radius-m);
  overflow-x: auto;
  font-size: var(--text-s);
  line-height: 1.6;
}
.article__code code { padding: 0; background: none; font-size: inherit; }

/* Призыв в конце страницы и «Читайте также» */
.article-cta .shell { display: grid; gap: var(--space-4); justify-items: start; padding-top: var(--space-6); border-top: 1px solid var(--line); }
.article-cta h2 { font-size: calc(clamp(1.75rem, 1.5vw + 1.2rem, 2.5rem) - var(--h2-size-reduction)); }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.article-more h2 { margin-bottom: var(--space-6); padding-block: var(--space-4); border-block: 1px solid var(--line); font-family: var(--font-ui); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.01em; }

:root[data-theme="dark"] .article__note { box-shadow: inset 0 0 0 1px var(--line); }

/* sections/business.css */
/* Страница «Для команд». Пакеты берут грамматику #team (team.css), «Нужен другой состав?» — карточку «Связи»
   (contact.css), FAQ, журнал и финал — общие секции. Здесь только раскладки, которых нет у главной. */

.biz__eyebrow { margin-bottom: clamp(var(--space-5), 3vw, var(--space-7)); }

/* «Копии и восстановление»: подпись во всю ширину, слева заголовок, справа три строки */
.biz-split__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.biz-split__head { display: grid; justify-items: start; gap: var(--space-5); }
.biz-split__list { display: grid; margin: 0; padding: 0; list-style: none; }
.biz-split__list li { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-top: 1px solid var(--line); }
.biz-split__list li:last-child { border-bottom: 1px solid var(--line); }
.biz-split__list .meta-row { margin-bottom: var(--space-1); }
.biz-split__list p:not([class]) { max-width: 36em; font-size: var(--text-m); line-height: 1.5; color: var(--fg-soft); }

@media (min-width: 1024px) {
  .biz-split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: var(--space-8); row-gap: var(--space-5); align-items: start; }
  .biz-split__grid > .eyebrow { grid-column: 1 / -1; }
}

/* sections/calc.css */
/* Экран 5 — калькулятор в грамматике карточек анонсов: группы — карточки на вторичном фоне с рубрикой «···»,
   опции — строки с линиями, тариф Claude — капсулы, итог — карточка со строками «подпись — сумма» и кнопкой во всю ширину.
   Справа итог (липкий); на телефоне итог — липкая полоса внизу. Без JS видны база и состав. */

.calc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
@media (min-width: 900px) {
  .calc__layout { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
  .calc__sum { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
  .calc__bar { display: none !important; }
}

.calc__form { display: grid; gap: var(--space-4); min-width: 0; }
.calc__group {
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
/* Нумерация связывает три группы без дополнительного шага заполнения. */
.calc__legend {
  display: flex; align-items: center; gap: var(--space-3);
  float: left; width: 100%; padding: 0; margin-bottom: var(--space-5);
  font-size: var(--text-m); font-weight: 500; color: var(--fg);
}
.calc__step {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: var(--radius-btn);
  border: 1px solid var(--line); color: var(--fg-muted);
  font-size: var(--text-xs); font-family: var(--font-mono);
}
.calc__legend + * { clear: both; }

.calc__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  justify-content: space-between;
  align-items: flex-start;
}
.calc__base > div { flex: 1 1 280px; min-width: 0; display: grid; gap: var(--space-2); }
.calc__base p { color: var(--fg-soft); }
.calc__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0; padding: 0; list-style: none; }
.calc__price { display: grid; text-align: right; }
.calc__price b { font-family: var(--font-ui); font-weight: 400; font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem); line-height: 1.1; white-space: nowrap; }
.calc__price span { font-size: var(--text-xs); color: var(--fg-muted); }
.calc__hint { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--fg-muted); }

/* Опция — строка с линией: флажок, название с пояснением, цена справа. Зона нажатия ≥ 56 px */
.calc__option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-4);
  margin-top: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--bg);
  cursor: pointer;
}
.calc__option:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.calc__option input,
.calc__choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.calc__option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc__option-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.calc__option-body b { font-weight: 500; }
.calc__option-body span { font-size: var(--text-s); color: var(--fg-muted); }
.calc__option-price { flex: none; color: var(--fg-muted); white-space: nowrap; }
.calc__option:has(input:checked) .calc__option-price { color: var(--fg); }

/* Карточки выбора: метка, пояснение и видимое состояние radio. */
.calc__choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.calc__choices--plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc__choice {
  position: relative; display: flex; align-items: flex-start; gap: var(--space-3);
  min-width: 0; min-height: 88px; padding: var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  background: var(--bg); color: var(--fg-soft); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.calc__choice input { margin-top: 1px; }
.calc__choice-copy { display: grid; gap: var(--space-1); min-width: 0; }
.calc__choice-copy b { font-size: var(--text-s); font-weight: 500; }
.calc__choice-copy small { font-size: var(--text-xs); color: var(--fg-muted); line-height: 1.4; }
.calc__choice:hover { border-color: var(--fg); }
.calc__choice:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.calc__choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Итог в отдельной спокойной панели, сумма первого платежа выделена. */
.calc__sum {
  display: grid;
  gap: var(--space-4);
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--bg-soft);
  border-radius: var(--radius-l);
}
.calc__sum-head { display: grid; gap: var(--space-2); padding-bottom: var(--space-2); }
.calc__eyebrow { color: var(--fg-muted); font-size: var(--text-xs); }
.calc__sum-head h3 { font-family: var(--font-heading); font-size: 2rem; font-weight: 400; }
.calc__rows { margin: 0; padding: 0; list-style: none; }
.calc__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  font-size: var(--text-s);
}
.calc__row[hidden] { display: none; }
.calc__row b { font-weight: 400; color: var(--fg-muted); text-align: right; white-space: nowrap; }
.calc__row--soft { color: var(--fg-muted); }
.calc__totals { display: grid; margin: 0; }
.calc__totals div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding: 10px 2px; border-top: 1px solid var(--line); }
.calc__totals dt { font-size: var(--text-s); color: var(--fg-muted); }
.calc__totals dd { margin: 0; white-space: nowrap; }
.calc__totals .calc__first { display: grid; gap: var(--space-3); padding: var(--space-5) 0 var(--space-2); }
.calc__first dt { color: var(--fg); font-weight: 500; }
.calc__first dd { font-family: var(--font-ui); font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.1; }
.calc__cta { width: 100%; }
.calc__sum .calc__hint { margin-top: 0; }

/* Липкая полоса итога — только на телефоне */
.calc__bar {
  position: sticky;
  bottom: var(--space-2);
  z-index: 5;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--radius-m);
  font-size: var(--text-s);
}
.calc__bar span { opacity: 0.7; }
.calc__bar b { margin-left: auto; font-weight: 600; white-space: nowrap; }
.calc__bar a { color: inherit; }

/* Тёмная тема: группы и итог — плашки с рамкой (кольцом внутри, размер не меняется) */
:root[data-theme="dark"] .calc__group,
:root[data-theme="dark"] .calc__sum { box-shadow: inset 0 0 0 1px var(--line); }


/* Длинные названия услуг на телефоне: цена под пояснением, а не в узкой третьей колонке. */
@media (max-width: 600px) {
  .calc__option:has(.calc__option-price) {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 8px var(--space-3);
  }
  .calc__option:has(.calc__option-price) input { grid-row: 1 / span 2; margin-top: 3px; }
  .calc__option-price { grid-column: 2; }
}


.calc__account-new { margin-top: var(--space-3); padding: var(--space-3); background: var(--bg-tertiary); border-radius: var(--radius-s); font-size: var(--text-s); line-height: 1.5; }
.calc__account-new[hidden] { display: none; }
.calc__group [data-account-hint] { margin-bottom: var(--space-4); }

@media (max-width: 1100px) and (min-width: 900px), (max-width: 600px) {
  .calc__choices { grid-template-columns: minmax(0, 1fr); }
  .calc__choices--plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc__choice { min-height: 72px; }
}
@media (max-width: 380px) {
  .calc__choices--plans { grid-template-columns: minmax(0, 1fr); }
  .calc__group, .calc__sum { padding: var(--space-4); }
}

/* Configuration, subscriptions and group size share the same selectable-card language. */
.calc__package-title { margin-bottom: var(--space-4); }
.calc__package-description { display: grid; gap: var(--space-2); padding-left: 1.2em; margin: 0 0 var(--space-5); color: var(--fg-muted); font-size: var(--text-s); }
ul.calc__package-description { list-style: disc; padding-left: 1.2em; }
.calc__choices--servers, .calc__choices--subscriptions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc__choices--users { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc__server-choice { min-height: 164px; }
.calc__choice-copy .calc__plan-price { font-size: 1.5rem; line-height: 1.2; font-weight: 500; display: grid; gap: 4px; margin-block: 6px; }
.calc__plan-price small, .calc__plan-name { font-size: var(--text-xs); font-weight: 400; color: var(--fg-muted); }
.calc__plan-specs { display: grid; gap: 3px; font-size: var(--text-s); }
.calc__plan-custom { margin-top: var(--space-3); font-size: var(--text-s); }
.calc__subscription-price { margin-top: var(--space-2); font-size: var(--text-s); font-weight: 500; }
.calc__users-intro { color: var(--fg-muted); font-size: var(--text-s); margin-bottom: var(--space-5); }
.calc__corporate-note { display: grid; gap: var(--space-3); padding: var(--space-4); margin-top: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-m); font-size: var(--text-s); }
.calc__corporate-note[hidden], .calc__hint[hidden] { display: none; }
.calc__row small { display: inline-block; color: var(--fg-muted); margin-top: 4px; }
.calc__rate { line-height: 1.6; }
@media (max-width: 1100px) { .calc__choices--users { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .calc__choices--servers, .calc__choices--subscriptions, .calc__choices--users { grid-template-columns: minmax(0, 1fr); } .calc__server-choice { min-height: 0; } }

.calc__bar { flex-wrap: wrap; }
.calc[data-custom-quote] .calc__first dd, [data-calc][data-custom-quote] .calc__first dd { font-size: var(--text-l); white-space: normal; }

@media (min-width: 1200px) { .calc__choices--subscriptions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* sections/checklist.css */
/* Интерактивный чек-лист и печатная версия: группы — подпись между линиями, пункты — строки с флажком. */

.check__hint { font-size: var(--text-xs); color: var(--fg-muted); }
.check .shell { display: grid; gap: var(--space-7); }
.check__group { display: grid; }
.check__group h2 {
  padding-block: var(--space-4);
  border-block: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.check__list { margin: 0; padding: 0; list-style: none; display: grid; }
.check__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 2px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-m);
  line-height: 1.5;
  cursor: pointer;
}
.check__item input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--fg); }
.check__item:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.check__item:has(input:checked) { color: var(--fg-muted); }
.check__item:has(input:checked) span { text-decoration: line-through; text-decoration-thickness: 1px; }
.check__progress { font-size: var(--text-s); color: var(--fg-muted); }
.check__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.check__actions [hidden] { display: none; }

@media print {
  .site-header, .site-footer, .skip-link, #lead, .no-print, .crumbs { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .check__item { color: #000; }
  .check__item:has(input:checked) { color: #000; }
  .section { padding-block: 12px; }
  .check__group { break-inside: avoid; }
  h1, h2, p { color: #000 !important; }
}

/* sections/closing.css */
/* Hero Dithering Card (21st.dev): rounded surface, soft orange warp, centered copy. */
.closing { padding-block: var(--section-pad); }
.closing__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 600px;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 48px;
  background: var(--bg-soft);
}
/* The background is decorative; the section works with scripts or WebGL disabled. */
.closing__pattern { position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .34; }
.closing__pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #ec4e02 1px, transparent 1.2px) 0 0 / 8px 8px;
  -webkit-mask-image: linear-gradient(125deg, #000, transparent 35%, transparent 65%, #000);
  mask-image: linear-gradient(125deg, #000, transparent 35%, transparent 65%, #000);
}
[data-shader-ready] .closing__pattern::before { display: none; }
.closing__pattern canvas { display: block; width: 100%; height: 100%; }
.closing__cta { display: grid; justify-items: center; gap: var(--space-5); text-align: center; }
.closing__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-2);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--fg);
}
.closing__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.closing__cta h2 {
  max-width: 16em;
  font-size: calc(clamp(2.375rem, 4.4vw + 1rem, 5rem) - var(--h2-size-reduction));
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--fg);
}
.closing__cta h2 span { display: block; }
.closing__muted { color: var(--fg-soft); }
.closing__cta .lead { max-width: 34em; margin: 0; color: var(--fg-soft); }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.closing__actions .btn--ghost { background: var(--bg-soft); }
@media (max-width: 639.98px) {
  .closing__card { min-height: 540px; border-radius: 28px; }
  .closing__actions { width: 100%; }
  .closing__actions .btn { width: 100%; }
  .closing__pattern { opacity: .26; }
}
@media (prefers-reduced-motion: reduce) {
  .closing__card * { transition: none; }
}

/* sections/config.css */
/* Экран 4 — «Ваш конфиг — ваша копия»: подпись между линиями во всю ширину, слева заголовок,
   вводный абзац и две строки-разделителя, справа интерфейс на всю высоту текстовой колонки. */

.config__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}
.config__copy { display: grid; justify-items: start; gap: var(--space-5); }
.config__copy > .eyebrow { justify-self: stretch; margin-bottom: var(--space-3); }

@media (min-width: 1024px) {
  /* Подпись тянется на обе колонки: содержимое колонки текста встаёт прямо в сетку */
  .config__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-8); row-gap: var(--space-5); align-items: start; }
  .config__copy { display: contents; }
  .config__copy > .eyebrow { grid-column: 1 / -1; }
  .config__copy > :not(.eyebrow) { grid-column: 1; }
  .config__stage { grid-column: 2; grid-row: 1 / span 3; align-self: stretch; }
}

.config__list { display: grid; margin: var(--space-3) 0 0; padding: 0; list-style: none; justify-self: stretch; }
.config__list li {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}
.config__list li:last-child { border-bottom: 1px solid var(--line); }
.config__list p { font-size: var(--text-s); color: var(--fg-muted); }

/* Сам интерфейс занимает всю правую область, без фоновой картинки и внешних полей. */
.config__stage { display: flex; min-width: 0; margin: 0; }
.config__stage > .term { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.config__stage .term__body { flex: 1; align-content: start; padding: clamp(20px, 2.5vw, 36px); overflow-x: auto; }
@media (min-width: 1024px) {
  .config__stage > .term { font-size: 1rem; }
}
@media (max-width: 479.98px) {
  .config__stage .term { font-size: 0.75rem; }
}

/* sections/connection-diagram.css */
.connection-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1.1fr) 104px minmax(0, 1fr); align-items: start; gap: var(--space-3); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-soft); }
.connection-diagram__node { min-width: 0; text-align: center; }
.connection-diagram__art { display: block; width: 100%; height: 190px; max-width: 240px; margin-inline: auto; overflow: visible; }
.connection-diagram__location { display: flex; justify-content: center; align-items: center; gap: var(--space-2); min-height: 28px; margin-top: var(--space-3); color: var(--fg-muted); font-size: var(--text-s); }
.connection-diagram__location svg { width: 12px; height: 15px; }
.connection-diagram__copy h3 { margin-top: var(--space-2); font-size: var(--text-h3); }
.connection-diagram__description { margin-top: 15px; font-size: var(--text-s); line-height: 1.55; color: var(--fg-muted); }
.connection-diagram__connector { display: grid; justify-items: center; gap: var(--space-4); padding-top: 104px; color: var(--fg-muted); text-align: center; font-size: var(--text-xs); line-height: 1.4; }
.connection-diagram__connector > span { display: flex; align-items: end; justify-content: center; min-height: 2.8em; }
.connection-diagram__connector > svg { width: 64px; height: 24px; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .connection-diagram[data-animating] .connection-diagram__cursor { animation: connection-cursor 1.2s steps(1, end) infinite; }
  .connection-diagram[data-animating] .connection-diagram__led { animation: connection-led 2.2s steps(2, end) infinite; }
  .connection-diagram[data-animating] .connection-diagram__led--second { animation-delay: -1.1s; }
  .connection-diagram[data-animating] .connection-diagram__packet { animation: connection-packet 2.4s steps(7, end) infinite; }
  .connection-diagram[data-animating] .connection-diagram__packet--second { animation-delay: -1.2s; }
  .connection-diagram[data-animating] .connection-diagram__wave { animation: connection-wave 1.6s steps(1, end) infinite; }
  .connection-diagram[data-animating] .connection-diagram__spark { animation: connection-led 1.6s steps(1, end) infinite; }
  .connection-diagram[data-animating] .connection-diagram__eyes { transform-box: fill-box; transform-origin: center; animation: connection-blink 4.4s steps(1, end) infinite; }
}
@keyframes connection-cursor { 50% { opacity: 0; } }
@keyframes connection-led { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes connection-packet { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(42px); opacity: 0; } }
@keyframes connection-wave { 0%, 100% { transform: translateY(0); } 30%, 60% { transform: translateY(-3px); } }
@keyframes connection-blink { 0%, 90%, 100% { transform: scaleY(1); } 93%, 97% { transform: scaleY(.2); } }
@media (min-width: 760px) and (max-width: 1099.98px) {
  .connection-diagram { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1.1fr) 72px minmax(0, 1fr); padding: var(--space-5); gap: var(--space-2); }
  .connection-diagram__art { height: 150px; }
  .connection-diagram__connector { padding-top: 80px; font-size: .75rem; }
  .connection-diagram__description br { display: none; }
}
@media (max-width: 759.98px) {
  .connection-diagram { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: var(--space-5) var(--space-4); }
  .connection-diagram__node { display: grid; grid-template-columns: clamp(80px, 24vw, 128px) minmax(0, 1fr); gap: var(--space-4); align-items: center; text-align: left; }
  .connection-diagram__art { height: 120px; }
  .connection-diagram__location { justify-content: start; margin-top: 0; min-height: 0; margin-bottom: var(--space-2); font-size: var(--text-xs); }
  .connection-diagram__location:empty { display: none; }
  .connection-diagram__copy h3 { margin-top: 0; }
  .connection-diagram__description { font-size: var(--text-xs); }
  .connection-diagram__description br { display: none; }
  .connection-diagram__connector { display: flex; justify-content: center; align-items: center; min-height: 64px; gap: var(--space-3); padding-top: 0; }
  .connection-diagram__connector > span { min-height: 0; }
  .connection-diagram__connector > svg { transform: rotate(90deg); width: 48px; }
}

/* sections/contact.css */
/* «Связь» — полоса-карточка: слева «···» с рубрикой, заголовок и строка текста, справа кнопка Telegram и почта. */

.contact__card { display: grid; gap: var(--space-6); }
.contact__copy { display: grid; justify-items: start; gap: var(--space-3); }
.contact__copy > .meta-row { margin-bottom: var(--space-2); }
.contact__copy p:not([class]) { max-width: 36em; font-size: var(--text-m); line-height: 1.5; color: var(--fg-soft); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

@media (min-width: 900px) {
  .contact__card { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--space-7); }
  .contact__actions { flex-direction: column; align-items: flex-end; }
}

.contact__copy h2 { font-size: calc(clamp(1.75rem, 1.5vw + 1.2rem, 2.5rem) - var(--h2-size-reduction)); }

/* sections/faq.css */
/* FAQ — «Перед настройкой» на главной и вопросы компаний на /business/: аккордеон на <details> (работает без JS).
   Раскрытая группа подвала anthropic.com: линия во всю ширину, слева подпись раздела, справа вопросы строками;
   раскрытый вопрос — шеврон вверх, ответ ниже в той же колонке строками между линиями. */

.faq__eyebrow { margin-bottom: clamp(var(--space-5), 3vw, var(--space-7)); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.faq__grid > .section__head { margin-bottom: 0; }

.faq__list .accordion { --acc-row: 64px; }
.faq__list .accordion > summary {
  padding-block: 18px;
  font-size: var(--text-m);
  line-height: 1.4;
  color: var(--fg-soft);
}
.faq__list .accordion > summary:hover,
.faq__list .accordion[open] > summary { color: var(--fg); }
.faq__list .accordion__body > * { padding-block: 0 18px; font-size: var(--text-m); line-height: 1.55; }
.faq__list .accordion__body > * + * { padding-top: 18px; }

/* Заголовок начинается у первой линии вопросов, без закрепления при прокрутке. */
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; align-items: start; }
  .faq__grid > .section__head {
    align-self: start;
    padding: 0 var(--space-7) 0 0;
  }
  .faq__list .accordion__body { padding-left: 0; }
  .faq__list .accordion__body > * { padding-right: var(--space-8); }
  .faq__list .accordion__body > :first-child { border-top: 1px solid var(--line); padding-top: 18px; }
}
.faq .lead a { text-decoration: underline; text-underline-offset: .2em; }
/* Контактная карточка продолжает FAQ; обычный отступ после неё сохраняется. */
.faq:has(+ .contact) { padding-bottom: 0; }
.faq + .contact { padding-top: 60px; }

/* sections/footer-brand.css */
.site-footer__brand { display: grid; gap: var(--space-4); align-content: start; min-width: 0; }
.site-footer__logo { justify-self: start; }
.site-footer__description { max-width: 40ch; color: var(--fg-soft); font-size: var(--text-s); line-height: 1.5; }
.site-footer__support { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.site-footer__email { color: var(--fg-soft); font-size: var(--text-s); overflow-wrap: anywhere; text-underline-offset: 4px; }
.site-footer__disclaimer { max-width: 46ch; color: var(--fg-muted); font-size: var(--text-xs); line-height: 1.5; }
.site-footer__copyright { color: var(--fg-muted); font-size: var(--text-xs); }
.site-footer__landscape { position: relative; background: var(--bg); height: clamp(230px, 30vw, 480px); }
.site-footer__landscape > img, .site-footer__landscape > canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; image-rendering: pixelated; }
.site-footer__landscape > canvas { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.site-footer__landscape[data-scene-ready] > img { visibility: hidden; }
.site-footer__landscape [hidden] { display: none; }
.site-footer__rider { position: absolute; color: #E6DFC4; image-rendering: pixelated; }
.site-footer__rider[data-facing="left"] .horse-mark { transform: scaleX(-1); }
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-7); }
}

/* Closed footer fits the available desktop viewport; opened document groups may grow naturally. */
@media (min-width: 900px) {
  .site-footer {
    display: grid;
    grid-template-rows: auto minmax(200px, 1fr);
    row-gap: var(--space-4);
    min-height: calc(100svh - var(--header-h));
    padding-top: clamp(24px, 4vh, 40px);
    scroll-margin-top: var(--header-h);
  }
  .site-footer__landscape { margin-top: 0; height: auto; min-height: 200px; }
  .site-footer__landscape > img { position: absolute; inset: 0; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
}
@media (max-width: 899.98px) {
  .site-footer { padding-top: var(--space-6); }
  .site-footer__top { gap: var(--space-6); }
}

/* sections/hero.css */
/* Экран 1: текст слева задаёт высоту иллюстрации справа; на узких экранах — одна колонка.
   .hero, .hero__intro и .hero__actions без модификатора — первый экран /business/ (вводный абзац и действия). */

.hero { padding-block: clamp(24px, 3.4vw, 48px) var(--section-pad); }
.hero--home { padding-top: calc(clamp(56px, 5vw, 80px) - 30px); }
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(32px, 4vw, 64px);
}
.hero__copy { min-width: 0; }

/* Вводный абзац крупно, как на anthropic.com: ~42 px на 1440, ~27 px на 390, плотный интерлиньяж */
.hero__intro {
  max-width: none;
  font-size: clamp(1.625rem, 1.5vw + 1.32rem, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.hero__intro b { font-size: 0.96em; letter-spacing: -0.025em; }

.hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg-soft);
}
.hero__mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

/* H1 антиквой: 36 px на 375 → 60 px на 1440+, как 36 → 58 у шаблона; по строке на половину фразы */
.hero__title {
  margin-top: var(--space-5);
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 2vw + 1.78rem, 3.75rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: 0;
}
.hero__title span { display: block; }

.hero__sub {
  max-width: 31em;
  margin-top: 20px;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
  line-height: 1.55;
  color: var(--fg-soft);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: clamp(var(--space-5), 2.4vw, var(--space-6));
}
.hero--home .hero__actions { gap: 10px; margin-top: var(--space-6); }

.hero__media { position: relative; width: 100%; min-width: 0; margin: 0; }

/* Три преимущества — строки «подпись — значение» под медиа */
.hero__facts { margin-top: calc(var(--space-6) + 10px); }
.hero__facts .row:last-child { border-bottom: 1px solid var(--line); }
.hero__spec { white-space: nowrap; }

@media (max-width: 959.98px) {
  .hero__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__media { aspect-ratio: 3 / 2; max-height: 420px; }
}

@media (max-width: 639.98px) {
  .hero__title { font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.1; letter-spacing: 0; }
  .hero--home .hero__actions .btn { flex: 1 1 100%; padding-inline: var(--space-2); font-size: 0.9375rem; }
  .hero__facts .row { display: grid; gap: 2px; }
  .hero__facts .row > :last-child { margin-left: 0; text-align: left; }
}

/* Построчный показ окна терминала (terminal.js) — для любого [data-terminal] на сайте.
   Строки прячутся, только когда JS есть и движение не уменьшено; если модуль не запустился за 3 с,
   анимация-страховка возвращает окно целиком. */
@media (prefers-reduced-motion: no-preference) {
  :root.js [data-terminal]:not([data-state="done"]) .term__line:not([data-shown]) { visibility: hidden; }
  :root.js [data-terminal]:not([data-state]) .term__line { animation: cb-term-fallback 0s linear 3s forwards; }
  [data-terminal][data-state="playing"] .term__line[data-shown] { animation: cb-term-in 0.22s ease-out; }
}
@keyframes cb-term-fallback { to { visibility: visible; } }
@keyframes cb-term-in { from { opacity: 0; transform: translateY(3px); } }

/* sections/horse.css */
.horse-mark { display: block; width: 100%; height: 100%; fill: currentColor; overflow: visible; }
.horse-run { display: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-running] .horse-rest { display: none; }
  [data-running] .horse-run { display: inline; }
  [data-running] .horse-body { animation: horse-bounce .72s steps(1, end) infinite; }
  [data-running] .horse-run-frame { opacity: 0; animation: horse-gait .72s steps(1, end) infinite; }
  [data-running] .horse-run-frame:nth-child(2) { animation-delay: -.54s; }
  [data-running] .horse-run-frame:nth-child(3) { animation-delay: -.36s; }
  [data-running] .horse-run-frame:nth-child(4) { animation-delay: -.18s; }
}
@keyframes horse-gait { 0%, 24.99% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes horse-bounce { 0%, 50%, 100% { transform: translateY(0); } 25%, 75% { transform: translateY(-1px); } }

/* sections/how.css */
/* Как работает: пиксельная схема выше, три текстовые карточки с двумя строками преимуществ ниже. */
.how__steps-label { margin: clamp(56px, 7vw, 96px) 0 var(--space-6); }
.tile__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin-bottom: var(--space-3); background: var(--art-oat); }

.how__steps { align-items: stretch; }
.how__step { min-width: 0; gap: 0; }
.how__step > .meta-row { margin-bottom: var(--space-5); }
.how__step h3 { margin-bottom: var(--space-4); }
.how__step-intro { padding-bottom: var(--space-6); color: var(--fg-soft); font-size: var(--text-m); line-height: 1.55; }
.how__benefit { padding-block: var(--space-4); border-top: 1px solid var(--line); color: var(--fg-soft); font-size: var(--text-s); line-height: 1.55; }
.how__benefit strong { color: var(--fg); font-weight: 500; }
.how__benefit:last-child { padding-bottom: 0; }

@media (min-width: 900px) {
  .how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto minmax(180px, 1fr) auto auto; row-gap: 0; }
  .how__step { display: grid; grid-template-rows: subgrid; grid-row: span 5; }
}
@media (max-width: 899.98px) {
  .how__steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
}
@supports not (grid-template-rows: subgrid) {
  .how__steps { grid-template-rows: none; }
  .how__step { display: flex; grid-row: auto; }
  .how__step-intro { flex: 1; }
}

/* sections/journal-list.css */
/* Списки статей и чек-листов — плитки «Learn more»: над плиткой «···» и рубрика, коллаж, жирный заголовок,
   короткий текст гротеском. Разметка — карточки .card.jcard с img.jcard__img; плиткой их делает этот файл. */

.jlist { padding-top: 0; }
.jlist__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7) var(--space-4); }
@media (min-width: 640px) { .jlist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .jlist__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card.jcard {
  gap: var(--space-2);
  padding: 0;
  border-radius: 0;
  background: none;
}
a.card.jcard:hover { background: none; }
a.jcard:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Картинка плитки — assets/img/gen/journal-*.webp, guide-*.webp */
.jcard__img {
  order: -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: var(--space-3);
  background: var(--art-oat);
}

/* Строка-метка над коллажем: «···», рубрика, время чтения */
.jcard__meta,
.jcard > .chip:first-child {
  order: -2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px var(--space-4);
  margin-bottom: var(--space-2);
  font-weight: 400;
  color: var(--fg-muted);
}
.jcard__meta::before,
.jcard > .chip:first-child::before {
  content: "";
  flex: none;
  width: 36px;
  height: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-btn);
  background: var(--bg-tertiary) var(--icon-dots) center / 14px 4px no-repeat;
}
.jcard__meta .chip { font-weight: 400; color: var(--fg-muted); }
.jcard__meta .chip:first-child { color: var(--fg); }

.jcard h3 { font-size: var(--text-h3); }
.jcard > p:not([class]) { font-size: var(--text-s); line-height: 1.55; color: var(--fg-muted); }
.jcard__more {
  margin-top: var(--space-2);
  font-size: var(--text-s);
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* sections/journal-teaser.css */
/* Тизер журнала на главной и /business/: плитки «Learn more» со ссылками на статьи и кнопка «Весь журнал». */

.journal-teaser .section__head > .eyebrow { width: 100%; max-width: none; }

.journal-teaser__grid { margin: 0; padding: 0; list-style: none; }
.journal-teaser__grid .tile { height: 100%; }
.journal-teaser__grid .meta-row > :first-child { color: var(--fg); }
.journal-teaser__actions { margin-top: clamp(var(--space-6), 4vw, var(--space-7)); }


@media (max-width: 899.98px) {
  .journal-teaser__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .journal-teaser__grid .tile { display: grid; grid-template-columns: clamp(80px, 18vw, 128px) minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: start; padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
  .journal-teaser__grid .tile__img { grid-column: 1; grid-row: 1 / span 3; margin: 0; border-radius: var(--radius-s); }
  .journal-teaser__grid .meta-row { grid-column: 2; grid-row: 1; margin: 0; flex-wrap: wrap; }
  .journal-teaser__grid h3 { grid-column: 2; grid-row: 2; }
  .journal-teaser__grid p:not([class]) { grid-column: 2; grid-row: 3; max-width: none; }
}

/* sections/lead-form.css */
/* Форма заявки dialog#lead. Без JS — открытый блок внизу страницы с контактами вместо полей;
   с JS — модальное окно: по центру на десктопе, лист снизу на телефоне. */

.lead-form {
  position: static;
  width: min(100% - 2 * var(--gutter), 38rem);
  max-width: none;
  margin: var(--section-pad) auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
}
:root.js .lead-form:not(:modal) { display: none; }
:root:has(.lead-form:modal) { overflow: hidden; }

.lead-form:modal {
  position: fixed;
  width: min(100% - 2 * var(--gutter), 38rem);
  max-height: calc(100dvh - 2 * var(--space-5));
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}
.lead-form::backdrop { background: color-mix(in srgb, var(--bg-inverse) 72%, transparent); backdrop-filter: blur(5px); }

@media (max-width: 639px) {
  .lead-form:modal {
    width: 100%;
    max-height: calc(100dvh - var(--space-6));
    margin: auto 0 0;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
  }
}

.lead-form__panel {
  position: relative;
  padding: clamp(20px, 4vw, var(--space-7));
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: inherit;
}
.lead-form:not(:modal) .lead-form__panel { border-radius: var(--radius-l); }

.lead-form__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--bg-tertiary);
  color: var(--fg-muted);
}
.lead-form__close::before,
.lead-form__close::after {
  content: "";
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.lead-form__close::after { transform: rotate(-45deg); }
.lead-form__close:hover { background: var(--bg); color: var(--fg); }
:root:not(.js) .lead-form__close { display: none; }

.lead-form__body { display: grid; gap: var(--space-4); }
.lead-form__body[hidden] { display: none; }
.lead-form__heading { display: grid; gap: var(--space-3); padding-right: var(--space-5); }
.lead-form__eyebrow { font-size: var(--text-xs); color: var(--fg-muted); padding-right: var(--space-5); }
.lead-form__title { font-family: var(--font-heading); font-size: calc(clamp(1.75rem, 4vw, 2.5rem) - var(--h2-size-reduction)); font-weight: 400; line-height: 1.12; padding-right: var(--space-4); }
.lead-form__title:focus { outline: none; }
.lead-form__intro { color: var(--fg-muted); font-size: var(--text-s); line-height: 1.6; max-width: 44ch; margin-bottom: var(--space-2); }
.lead-form__done .btn { justify-self: start; }

/* Без JS форма не отправится — вместо полей контакты */
.lead-form__nojs { color: var(--fg-muted); }
:root.js .lead-form__nojs,
:root:not(.js) .lead-form__fields { display: none; }

.lead-form__fields { display: grid; gap: var(--space-5); }
.lead-form__field { display: grid; gap: var(--space-2); min-width: 0; }

.lead-form__label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: var(--text-s); font-weight: 500; }
.lead-form__label span { color: var(--fg-muted); font-weight: 400; }

.lead-form__input {
  width: 100%;
  min-height: 52px;
  padding: 11px 20px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  font-size: 1rem; /* не меньше 16 px — iOS не увеличивает страницу при фокусе */
  transition: border-color 0.15s ease;
}
.lead-form__input::placeholder { color: var(--fg-muted); opacity: 0.75; }
.lead-form__input:focus-visible { border-color: var(--fg-muted); outline: none; }
.lead-form__input:hover { border-color: var(--fg-muted); }
textarea.lead-form__input { resize: vertical; min-height: 96px; border-radius: 26px; }
.lead-form__input[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Ошибка у поля: текст основным цветом (контраст), маркер — акцентом */
.lead-form__error {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  line-height: 1.4;
}
.lead-form__error::before {
  content: "";
  flex: none;
  width: 3px;
  margin-block: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.lead-form__error[hidden] { display: none; }

.lead-form__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 44px;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--fg-muted);
  cursor: pointer;
}
.lead-form__check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.lead-form__check input[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Расчёт из калькулятора */
.lead-form__quote {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.lead-form__quote[hidden] { display: none; }
.lead-form__quote ul {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-s);
  color: var(--fg-muted);
}
.lead-form__quote-total { font-size: var(--text-s); }
.lead-form__quote-total b { font-family: var(--font-mono); font-weight: 500; }

/* Ловушка для ботов — вне экрана, не display:none: часть ботов такие поля пропускает */
.lead-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__alert {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--accent-soft);
  border-radius: var(--radius-m);
  font-size: var(--text-s);
}
.lead-form__alert[hidden] { display: none; }
.lead-form__alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.lead-form__alert-actions [hidden] { display: none; }

.lead-form__submit { width: 100%; }
.lead-form__submit:disabled { opacity: 0.6; cursor: progress; }


.lead-form__context { padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-s); }
.lead-form__quote-note { font-size: var(--text-xs); color: var(--fg-muted); margin-top: var(--space-2); }

.lead-form__success-mark {
  display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: var(--radius-btn); background: var(--accent-soft);
  color: var(--fg); font-size: 1.75rem; margin-bottom: var(--space-2);
}
.lead-form__done { padding-block: var(--space-5); }
.lead-form__quote { border-left: 3px solid var(--accent); }
.lead-form__quote-total { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.lead-form__submit { min-height: 52px; }
@media (max-width: 639px) {
  .lead-form__panel { padding: var(--space-6) var(--space-5) max(var(--space-5), env(safe-area-inset-bottom)); }
  .lead-form__heading { padding-right: var(--space-5); }
}
@media (prefers-reduced-motion: no-preference) {
  .lead-form:modal { animation: lead-form-enter 0.18s ease-out; }
  @keyframes lead-form-enter { from { opacity: 0; } to { opacity: 1; } }
}

/* sections/legal.css */
/* Юридические страницы, реквизиты и 404: та же колонка, что у статьи; реквизиты — строки «подпись — значение». */

.legal__head .shell { display: grid; gap: var(--space-5); justify-items: start; }
.legal__head .eyebrow { justify-self: stretch; }
.legal__head h1 { font-size: var(--text-h2); }
.legal__notice {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-l);
  background: var(--bg-soft);
  font-size: var(--text-s);
}
.legal__part { padding-block: var(--space-5); }
.legal__part h2 { margin-bottom: var(--space-2); }
.legal__head h1 { overflow-wrap: anywhere; hyphens: auto; }
.legal__dl { display: grid; margin: 0; font-family: var(--font-ui); font-size: var(--text-m); }
.legal__dl > div { display: grid; gap: var(--space-1); padding-block: var(--space-3); border-top: 1px solid var(--line); }
.legal__dl > div:last-child { border-bottom: 1px solid var(--line); }
.legal__dl dt { font-size: var(--text-s); color: var(--fg-muted); }
.legal__dl dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .legal__dl > div { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--space-4); } }
.legal__links { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }

.notfound .shell { display: grid; gap: var(--space-5); justify-items: start; }
.notfound .eyebrow { justify-self: stretch; }
.notfound .article-cta__actions { margin-top: var(--space-2); }

:root[data-theme="dark"] .legal__notice { box-shadow: inset 0 0 0 1px var(--line); }


@media (max-width: 639.98px) {
  .legal__head h1 { font-size: clamp(1.625rem, 8vw, 2.25rem); }
}

/* sections/modes.css */
/* Два способа работы с полными скриншотами интерфейсов, без коллажей и наложенных макетов. */
.modes__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-7); }
@media (min-width: 900px) {
  .modes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.modes__card { min-width: 0; }
.modes__card > p:not([class]) { flex: 1; font-size: var(--text-m); line-height: 1.5; color: var(--fg-soft); max-width: 34em; }
.modes__shot { display: grid; place-items: center; aspect-ratio: 16 / 10; margin: 0 0 var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-soft); overflow: hidden; }
.modes__screenshot { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.modes__compare { margin: var(--space-3) 0 0; font-size: var(--text-s); line-height: 1.5; }
.modes__compare > div { position: relative; display: grid; gap: 4px; padding-block: var(--space-3); border-top: 1px solid transparent; }
.modes__compare > div::before { content: ""; position: absolute; top: -1px; left: 0; right: 20px; border-top: 1px solid var(--line); pointer-events: none; }
.modes__compare dt { color: var(--fg); font-weight: 500; }
.modes__compare dd { margin: 0; color: var(--fg-muted); }
@media (min-width: 1200px) { .modes__compare > div { grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-4); } }
@media (max-width: 639.98px) { .modes__shot { padding: var(--space-2); } }

/* sections/pixel-claude.css */
/* A small pixel-art scene, built from SVG so it stays crisp on any screen. */
.pixel-scene { overflow: hidden; border-radius: var(--radius-m); background: var(--pixel-paper); color: var(--pixel-ink); }
.pixel-scene__code { position: absolute; z-index: 1; top: var(--space-4); left: var(--space-4); right: var(--space-4); display: flex; align-items: center; gap: var(--space-2); height: 42px; padding: 0 var(--space-3); background: var(--pixel-bar); font-size: clamp(0.6875rem, 1vw, 0.8125rem); font-family: var(--font-mono); white-space: nowrap; }
.pixel-scene__code code { font: inherit; }
.pixel-scene__prompt { opacity: 0.6; }
.pixel-scene__cursor { margin-left: -5px; }
.pixel-scene__stage { position: absolute; inset: 62px 0 38px; display: grid; place-items: center; }
.pixel-scene__art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.pixel-scene__footer { position: absolute; inset: auto var(--space-4) var(--space-3); display: flex; align-items: center; gap: var(--space-3); min-height: 28px; font: 10px/1.4 var(--font-mono); letter-spacing: 0.04em; }
.pixel-scene__label { margin-right: auto; }
.pixel-coffee, .pixel-magic, .pixel-face--coffee, .pixel-face--magic { display: none; }
.pixel-scene[data-pose="coffee"] .pixel-coffee,
.pixel-scene[data-pose="coffee"] .pixel-face--coffee,
.pixel-scene[data-pose="magic"] .pixel-magic,
.pixel-scene[data-pose="magic"] .pixel-face--magic { display: inline; }
.pixel-scene[data-pose="coffee"] .pixel-hands,
.pixel-scene[data-pose="coffee"] .pixel-face--normal,
.pixel-scene[data-pose="magic"] .pixel-hands,
.pixel-scene[data-pose="magic"] .pixel-face--normal { display: none; }
.pixel-scene[data-pose="coffee"] .pixel-actor { transform: translate(-5px, 1px); }
.pixel-scene[data-pose="magic"] .pixel-actor { transform: translate(-3px, -2px); }
.pixel-scene[data-pose="focus"] .pixel-actor { transform: translate(5px, 3px); }
.pixel-scene[data-pose="focus"] .pixel-face--normal { transform: translate(4px, 1px); }
.pixel-scene[data-pose="focus"] .pixel-laptop { transform: translate(3px, 0); }
@media (prefers-reduced-motion: no-preference) {
  .pixel-scene[data-pixel-ready][data-pose="type"] .pixel-actor { animation: pixel-typing-body 0.84s steps(2, end) infinite; }
  .pixel-scene[data-pixel-ready][data-pose="coffee"] .pixel-actor { animation: pixel-coffee-body 3.2s steps(4, end) infinite; }
  .pixel-scene[data-pixel-ready][data-pose="coffee"] .pixel-coffee { transform-origin: 54px 58px; animation: pixel-sip 3.2s steps(6, end) infinite; }
  .pixel-scene[data-pixel-ready][data-pose="focus"] .pixel-actor { animation: pixel-focus-body 1.4s steps(4, end) infinite; }
  .pixel-scene[data-pixel-ready][data-pose="focus"] .pixel-face--normal { animation: pixel-read-screen 1.4s steps(4, end) infinite; }
  .pixel-scene[data-pixel-ready][data-pose="focus"] .pixel-hand { animation-duration: 0.28s; }
  .pixel-scene[data-pixel-ready][data-pose="magic"] .pixel-actor { animation: pixel-cast-body 1.6s steps(4, end) infinite; }

  .pixel-scene[data-pixel-ready] .pixel-hand--left { animation: pixel-type-left 0.42s steps(2, end) infinite; }
  .pixel-scene[data-pixel-ready] .pixel-hand--right { animation: pixel-type-right 0.42s steps(2, end) infinite; }
  .pixel-scene[data-pixel-ready] .pixel-eyes { transform-box: fill-box; transform-origin: center; animation: pixel-blink 4.8s steps(1, end) infinite; }
  .pixel-scene[data-pixel-ready] .pixel-steam { animation: pixel-steam 1.6s steps(3, end) infinite; }
  .pixel-scene[data-pixel-ready] .pixel-wand { transform-origin: 116px 57px; animation: pixel-wand 1.6s steps(5, end) infinite; }
  .pixel-scene[data-pixel-ready] .pixel-sparks { animation: pixel-spark 0.8s steps(2, end) infinite; }
  .pixel-scene[data-pixel-ready] .pixel-scene__cursor { animation: pixel-cursor 1s steps(1, end) infinite; }
  .pixel-scene[data-playing="false"] *, .pixel-scene[data-playing="false"] *::before { animation-play-state: paused !important; }
}
@keyframes pixel-type-left { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1px, 3px); } }
@keyframes pixel-type-right { 0%, 100% { transform: translate(0, 3px); } 50% { transform: translate(-1px, 0); } }
@keyframes pixel-blink { 0%, 92%, 100% { transform: scaleY(1); } 94%, 97% { transform: scaleY(0.2); } }
@keyframes pixel-steam { from { transform: translateY(2px); opacity: 0.8; } to { transform: translateY(-5px); opacity: 0; } }
@keyframes pixel-wand { 0%, 100% { transform: rotate(7deg); } 35%, 55% { transform: rotate(-10deg) translate(0, -2px); } 75% { transform: rotate(0deg); } }
@keyframes pixel-typing-body { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, 1px); } }
@keyframes pixel-sip { 0%, 15%, 100% { transform: translate(0, 0) rotate(0deg); } 40%, 65% { transform: translate(20px, -3px) rotate(-10deg); } 85% { transform: translate(5px, 0) rotate(0deg); } }
@keyframes pixel-coffee-body { 0%, 15%, 100% { transform: translate(-5px, 1px); } 40%, 65% { transform: translate(-7px, 2px); } }
@keyframes pixel-focus-body { 0%, 100% { transform: translate(5px, 3px); } 40%, 65% { transform: translate(8px, 6px); } }
@keyframes pixel-read-screen { 0%, 100% { transform: translate(4px, 1px); } 40%, 65% { transform: translate(5px, 3px); } }
@keyframes pixel-cast-body { 0%, 100% { transform: translate(-3px, -2px); } 35%, 55% { transform: translate(-4px, -4px); } 75% { transform: translate(-2px, -2px); } }
@keyframes pixel-spark { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes pixel-cursor { 50% { opacity: 0; } }
@media (max-width: 639.98px) {
  .pixel-scene__code { top: var(--space-3); left: var(--space-3); right: var(--space-3); height: 36px; gap: 5px; padding-inline: var(--space-2); }
  .pixel-scene__stage { inset: 48px -8px 30px; }
  .pixel-scene__footer { inset-inline: var(--space-3); bottom: var(--space-2); font-size: 9px; }
  .hero__media.pixel-scene { aspect-ratio: 1 / 1; max-height: 420px; }
}

/* sections/team.css */
/* Anthropic-inspired editorial panel: large serif, quiet surfaces and one clay action. */
.team__offer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; padding: clamp(28px, 4.5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-soft); }
.team__offer-copy { display: grid; justify-items: start; gap: var(--space-5); min-width: 0; }
.team__eyebrow { font-size: var(--text-s); color: var(--fg-muted); }
.team__offer h2 { max-width: 10em; }
.team__intro { font-size: var(--text-m); line-height: 1.6; color: var(--fg-soft); }
.team__benefits { display: grid; gap: var(--space-4); margin: var(--space-2) 0; list-style: none; font-size: var(--text-s); }
.team__benefits li { position: relative; padding-left: 25px; }
.team__benefits li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); }
.team__visual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-items: center; }
.team__workspace { min-width: 0; padding: var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg); }
.team__workspace:nth-child(2) { margin-top: 72px; }
.team__workspace:nth-child(3) { margin-top: 144px; }
.team__member { font-family: var(--font-mono); font-size: .625rem; color: var(--fg-muted); }
.team__workspace-screen { display: grid; gap: 5px; margin-block: var(--space-3); padding: var(--space-3); background: var(--bg-tertiary); min-height: 100px; border-radius: 4px; }
.team__workspace-screen > span { display: block; height: 3px; background: var(--fg-muted); opacity: .4; }
.team__workspace-screen > span:nth-child(2) { width: 65%; }
.team__workspace-screen > span:nth-child(3) { width: 80%; }
.team__workspace-screen b { font-size: 30px; line-height: 1; color: var(--accent); margin-top: 6px; }
.team__workspace > p { font-size: .6875rem; line-height: 1.5; }
.team__workspace > p > span { display: block; color: var(--fg-muted); }
.team__visual-caption { grid-column: 1 / -1; margin-top: var(--space-5); text-align: center; font-size: var(--text-s); color: var(--fg-muted); }
@media (max-width: 999.98px) { .team__offer { grid-template-columns: minmax(0, 1fr); } .team__visual { width: min(100%, 480px); margin-inline: auto; } }
@media (max-width: 479.98px) { .team__offer { padding: var(--space-5); } .team__visual { gap: 6px; } .team__workspace { padding: 6px; } .team__workspace-screen { padding: 6px; } .team__workspace:nth-child(2) { margin-top: 28px; } .team__workspace:nth-child(3) { margin-top: 56px; } }

/* sections/typography.css */
/* Feature Display headings stay ordinary, selectable HTML text. */
h1, h2 { font-synthesis: none; }
@media (max-width: 359px) { h1.journal-title { font-size: 1.875rem; } }

/* sections/workspace-library.css */
.ws-library .lib-editor { margin-top: var(--space-4); }
.lib-editor > summary { font-weight: 500; cursor: pointer; }
.lib-editor[open] > form, .lib-editor[open] > p { margin-top: var(--space-4); }
.lib-preview { margin-block: var(--space-2); }
.lib-preview summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: var(--text-s); }
.lib-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: var(--text-s); color: var(--fg-soft); }
.ws-library [data-lib-export] { margin-top: 20px; }
.lib-pages { justify-content: space-between; margin-top: var(--space-4); border-top: 1px solid var(--line-soft); padding-top: 6px; }
.lib-pages button:disabled { cursor: default; opacity: .35; }
[data-two-factor] form, [data-totp-backups] { margin-top: var(--space-4); }
.ws-secret { display: block; width: fit-content; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); user-select: all; }

/* sections/workspace.css */
/* Личный кабинет: та же палитра и шрифты, более плотная рабочая сетка. */
.workspace [hidden] { display: none !important; }
.ws-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 12px clamp(18px, 3.4vw, 64px); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.ws-top .logo { font-size: 1.25rem; }
.ws-tools, .ws-buttons, .ws-headrow, .ws-help, .ws-search { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ws-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-oat); text-decoration: none; color: var(--fg); font-size: var(--text-s); }
.ws-frame { display: grid; grid-template-columns: clamp(208px, 18vw, 285px) minmax(0, 1fr); flex: 1; }
.ws-rail { position: sticky; top: 0; align-self: start; max-height: 100dvh; overflow-y: auto; padding: 32px clamp(12px, 1.7vw, 30px); }
.ws-nav { display: grid; gap: 2px; }
.ws-nav a, .ws-menu-toggle { display: flex; align-items: center; padding: 10px 16px; min-height: 42px; color: var(--fg-soft); font-size: var(--text-s); text-decoration: none; line-height: 1.35; border-radius: var(--radius-m); }
.ws-nav a[aria-current="page"] { background: var(--bg-soft); color: var(--fg); font-weight: 500; }
.ws-nav a:hover { background: var(--bg-tertiary); }
.ws-menu-toggle { display: none; }
.ws-main { min-width: 0; padding: clamp(26px, 4vw, 66px) clamp(20px, 4.5vw, 80px) 64px; border-left: 1px solid var(--line); }
.ws-content, .ws-loading { max-width: 1110px; margin-inline: auto; }
.ws-loading button { margin-top: var(--space-4); }
.ws-context, .ws-muted, .ws-record__meta, .ws-form-status { color: var(--fg-muted); font-size: var(--text-s); }
.ws-title { font-size: clamp(2.4rem, 4vw, 4.4rem); line-height: 1.07; letter-spacing: -.025em; margin: 7px 0 clamp(20px, 3vw, 38px); overflow-wrap: anywhere; }
.ws-title:focus { outline: none; }
.ws-hero, .ws-card { border: 1px solid var(--line); border-radius: var(--radius-l); overflow-wrap: anywhere; }
.ws-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(130px, .8fr); overflow: hidden; background: var(--bg-oat); }
.ws-hero > div { align-self: center; padding: clamp(22px, 3vw, 48px); }
.ws-hero h2 { font-size: clamp(1.9rem, 3vw, 3.1rem); }
.ws-hero p { margin: 12px 0 22px; max-width: 43ch; color: var(--fg-soft); }
.ws-hero img { display: block; width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.ws-grid, .ws-stack, .ws-config, .ws-fields { display: grid; gap: var(--space-4); }
.ws-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.ws-hero + .ws-grid, .ws-filters + .ws-card { margin-top: var(--space-4); }
.ws-card { min-width: 0; padding: clamp(18px, 2.3vw, 34px); background: var(--bg-soft); }
.ws-card h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
.ws-card h2 + p, .ws-card h2 + div, .ws-card h2 + .ws-field, .ws-card .ws-field + .btn { margin-top: var(--space-3); }
.ws-fields h2 + .ws-field, .ws-fields h2 + div { margin-top: 0; }
.ws-action, .ws-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fg); font-size: var(--text-s); font-weight: 500; text-decoration: none; }
.ws-action:hover, .ws-back:hover { text-decoration: underline; }
.ws-card > .ws-action, .ws-back { margin-top: var(--space-3); }
.ws-help { justify-content: space-between; padding: var(--space-4) 0; margin-top: var(--space-5); border-block: 1px solid var(--line); color: var(--fg-soft); font-size: var(--text-s); }
.ws-headrow { justify-content: space-between; margin-bottom: var(--space-5); }
.ws-headrow p, .ws-intro { color: var(--fg-soft); max-width: 60ch; }
.ws-intro { margin-bottom: var(--space-5); }
.ws-config { grid-template-columns: 1.1fr 1fr; align-items: start; }
.ws-fields { align-content: start; }
.ws-field { display: grid; gap: 6px; font-size: var(--text-s); font-weight: 500; min-width: 0; }
.ws-field input, .ws-field select, .ws-field textarea { min-width: 0; width: 100%; padding: 11px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-btn); font-size: 1rem; line-height: 1.4; font-weight: 400; }
.ws-field textarea { resize: vertical; min-height: 104px; border-radius: 22px; }
.ws-field input:read-only { color: var(--fg-muted); }
:is(.workspace, .account-page) :is(a[href], button, summary):focus-visible {
  outline: none;
  background-color: var(--accent-soft);
  color: var(--fg);
}
.ws-field :is(input, textarea):focus {
  outline: none;
  border-color: var(--fg-muted);
  background-color: var(--bg-oat);
}
.ws-field:has(> input[type="checkbox"]:focus-visible) {
  background-color: var(--accent-soft);
  border-radius: var(--radius-s);
}
.ws-field:has(> select) { position: relative; }
.ws-field > select {
  appearance: none;
  min-height: 46px;
  padding-inline-end: 48px;
  border-color: transparent;
  background-color: var(--bg-tertiary);
  color: var(--fg);
  text-overflow: ellipsis;
  cursor: pointer;
}
.ws-field:has(> select)::before,
.ws-field:has(> select)::after {
  content: '';
  position: absolute;
  pointer-events: none;
}
.ws-field:has(> select)::before {
  inset-inline-end: 9px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
}
.ws-field:has(> select)::after {
  inset-inline-end: 14px;
  bottom: 15px;
  width: 16px;
  height: 16px;
  background: var(--fg-soft);
  mask: var(--icon-chevron) center / contain no-repeat;
}
.ws-field > select:enabled:hover { background-color: var(--bg-oat); }
.ws-field > select:focus { outline: none; }
.ws-field > select:focus-visible { background-color: var(--accent-soft); }
.ws-field:has(> select:focus-visible)::before { background: var(--fg); }
.ws-field:has(> select:focus-visible)::after { background: var(--bg-soft); }
.ws-field:has(> select:open)::after { transform: rotate(180deg); }
.ws-field > select:disabled { opacity: .6; cursor: default; }
@supports (appearance: base-select) and selector(::picker(select)) {
  .ws-field > select, .ws-field > select::picker(select) { appearance: base-select; }
  .ws-field > select::picker-icon { display: none; }
  .ws-field > select::picker(select) {
    margin-block: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-soft);
    color: var(--fg);
    font: inherit;
    max-height: min(50dvh, 22rem);
    overflow: auto;
  }
  .ws-field > select option {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: var(--radius-m);
    overflow-wrap: anywhere;
  }
  .ws-field > select option:checked { background-color: var(--bg-tertiary); }
  .ws-field > select option:is(:hover, :focus-visible) { outline: none; background-color: var(--accent-soft); }
  .ws-field > select option::checkmark { order: 1; margin-inline-start: auto; }
}
@media (forced-colors: active) {
  :is(.workspace, .account-page) :is(a[href], button, summary, input, select, textarea):focus-visible { outline: 2px solid Highlight; }
  .ws-field:has(> select)::after { forced-color-adjust: none; background: ButtonText; }
}
.ws-total { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: clamp(1.9rem, 3.3vw, 3.4rem); line-height: 1.18; }
.ws-breakdown, .ws-record { margin: var(--space-4) 0; }
.ws-breakdown > div, .ws-between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ws-breakdown > div { padding-block: 8px; border-top: 1px solid var(--line-soft); font-size: var(--text-s); }
.ws-breakdown dt { color: var(--fg-muted); }
.ws-breakdown dd { margin: 0; text-align: right; }
.ws-summary .ws-buttons, .ws-confirm .ws-buttons, .ws-record .ws-buttons { margin-top: var(--space-4); }
.ws-filters { display: flex; flex-wrap: wrap; gap: 3px; }
.ws-filters button { padding: 8px 13px; border: 1px solid transparent; border-radius: var(--radius-btn); background: transparent; color: var(--fg-muted); font-size: var(--text-s); min-height: 42px; }
.ws-filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.ws-search { align-items: end; margin-bottom: 20px; }
.ws-search .ws-field { flex: 1 1 190px; }
@media (min-width: 620px) {
  .ws-search .ws-field:has(> select) { flex: 0 1 15rem; }
}
.ws-record { padding-block: var(--space-4); margin: 0; border-top: 1px solid var(--line-soft); }
.ws-record:first-child { margin-top: var(--space-4); }
.ws-record:last-child { padding-bottom: 0; }
.ws-record h3 { font-size: var(--text-m); }
.ws-record p + p, .ws-record h3 + p { margin-top: 5px; }
.ws-record__body { white-space: pre-wrap; }
.ws-record .ws-action { margin-right: var(--space-4); }
.ws-empty { padding-block: var(--space-4) var(--space-1); color: var(--fg-muted); }
.ws-notice, .ws-form-status:not([hidden]) { margin-block: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--fg); }
.ws-notice { background: var(--bg-soft); }
.ws-form-status[data-error] { border-color: var(--accent-strong); }
.workspace button:disabled { opacity: .65; cursor: wait; }
.ws-security { margin-top: var(--space-4); }
@media (max-width: 849.98px) {
  .ws-frame { display: block; }
  .ws-rail { position: static; max-height: none; overflow: visible; padding: 6px var(--space-4); border-bottom: 1px solid var(--line); }
  .ws-menu-toggle { display: flex; width: 100%; justify-content: space-between; min-height: 44px; padding-inline: 4px; border: 0; border-radius: 0; background: transparent; font-weight: 500; }
  .ws-menu-toggle span { font-family: system-ui, sans-serif; }
  .ws-menu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .ws-menu-toggle[aria-expanded="false"] + .ws-nav { display: none; }
  .ws-nav { grid-template-columns: repeat(2,minmax(0,1fr)); margin-block: 2px 10px; }
  .ws-main { border: 0; }
  .ws-top { min-height: 62px; padding-block: 8px; }
}
@media (max-width: 619.98px) {
  .ws-main { padding: 24px 16px 48px; }
  .ws-hero { grid-template-columns: 1fr; }
  .ws-hero img { display: none; }
  .ws-grid, .ws-config { grid-template-columns: 1fr; }
  .ws-help { align-items: start; gap: 4px; }
  .ws-help .ws-action { padding-right: 8px; }
  .ws-form-status { margin-block: 4px; }
}
.ws-text-btn { border: 0; padding: 0; background: transparent; }
.ws-details { border-top: 1px solid var(--line-soft); padding-top: var(--space-3); margin-top: var(--space-3); }
.ws-details summary { cursor: pointer; font-size: var(--text-s); color: var(--fg-soft); }
.ws-details form { margin-top: var(--space-3); }
.ws-details output { font-family: var(--font-mono); user-select: all; }
.ws-service { margin-bottom: var(--space-4); }
.ws-service > summary { font-weight: 500; cursor: pointer; }
.ws-service[open] > summary { margin-bottom: var(--space-4); }
[data-form="reply"] { margin-top: var(--space-5); }
.ws-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 20px 0; counter-reset: ws-step; }
.ws-steps li { display: grid; align-content: start; grid-template-columns: 22px 1fr; column-gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; font-size: var(--text-s); }
.ws-steps li::before { content: counter(ws-step); counter-increment: ws-step; grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; background: var(--bg-tertiary); border-radius: 50%; font: 12px/1 var(--font-mono); }
.ws-steps li[data-done="true"]::before { content: '✓'; background: var(--bg-soft); }
.ws-steps a { align-self: center; text-decoration: none; }
.ws-steps a:hover { text-decoration: underline; }
.ws-steps span { font-size: var(--text-xs); color: var(--fg-muted); }
@media (max-width:619.98px) { .ws-steps { grid-template-columns: 1fr; gap: 8px; } .ws-steps li { grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; } .ws-steps li::before { grid-row: auto; } }
