/* Komanda.ai design system (design-system/dist/komanda-ds.css без загрузки шрифтов: их грузит шапка сайта).
   Собирает design-system/site-blocks/build_site_css.py — вручную не править. */
/* Komanda.ai Design System — generated from tokens.json */
:root,[data-theme="light"]{
  --bg:#f5f6f3;
  --surface:#ffffff;
  --surface-sunken:#eef1e8;
  --surface-tint:#f3fde4;
  --ink:#262b23;
  --ink-soft:#40473a;
  --ink-muted:#5f6b57;
  --line:#dfe5d8;
  --control-border:#78836f;
  --lime:#c4f477;
  --lime-hover:#afd87b;
  --lime-deep:#447a20;
  --lime-soft:#e0e9d6;
  --on-lime:#304521;
  --green-text:#447a20;
  --green-ink:#304521;
  --inverse:#232720;
  --inverse-2:#2f3626;
  --on-inverse:#f5f6f3;
  --on-inverse-muted:#bec4b7;
  --warning:#8a5a00;
  --warning-bg:rgba(224,170,72,.18);
  --danger:#b42318;
  --danger-bg:rgba(180,35,24,.08);
  --shadow-card:0 2px 6px rgba(38,43,35,.04), 0 24px 48px -24px rgba(38,43,35,.14);
  --shadow-lime:0 18px 44px -18px rgba(68,122,32,.4);
  --shadow-ink:0 16px 34px -14px rgba(38,43,35,.5);
}
[data-theme="dark"]{
  --bg:#1f251f;
  --surface:#2a3129;
  --surface-sunken:#222b24;
  --surface-tint:#30412b;
  --ink:#e8eee1;
  --ink-soft:#aebba3;
  --ink-muted:#9aa492;
  --line:#404c39;
  --control-border:#7b8772;
  --lime:#c4f477;
  --lime-hover:#d3f89a;
  --lime-deep:#ceefa7;
  --lime-soft:#3b4535;
  --on-lime:#304521;
  --green-text:#b1d487;
  --green-ink:#ceefa7;
  --inverse:#191e17;
  --inverse-2:#262d20;
  --on-inverse:#e8eee1;
  --on-inverse-muted:#8d9785;
  --warning:#e0aa48;
  --warning-bg:#3d3c2b;
  --danger:#ff8a7a;
  --danger-bg:rgba(255,138,122,.12);
  --shadow-card:0 2px 16px rgba(0,0,0,.28);
  --shadow-lime:0 16px 38px rgba(196,244,119,.2);
  --shadow-ink:0 16px 34px -14px rgba(0,0,0,.7);
}
:root{
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:18px;
  --space-5:24px;
  --space-6:34px;
  --space-7:54px;
  --space-8:64px;
  --space-section:96px;
  --radius-sm:14px;
  --radius-md:20px;
  --radius-lg:28px;
  --radius-xl:36px;
  --radius-pill:100px;
  --container:1200px;
  --container-text:760px;
  --gutter:24px;
  --font-display:"Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-sans:"Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono:"JetBrains Mono", ui-monospace, Consolas, monospace;
}

/* Komanda.ai Design System — components. Every value comes from tokens.css.
   Wrap page content in <div class="kds"> (inside a Tilda T131 block too). */

.kds, .kds *, .kds *::before, .kds *::after { box-sizing: border-box; }
.kds {
  font-family: var(--font-sans);
  font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
.kds :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.kds :where(a) { color: inherit; text-decoration: none; }
.kds :where(button, input, textarea, select) { font: inherit; color: inherit; }
.kds :where(img, svg) { max-width: 100%; display: block; }
.kds :focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; border-radius: 6px; }
.kds [hidden] { display: none !important; }
.kds ::selection { background: var(--lime); color: var(--on-lime); }

/* Headings and big numbers use the display family */
.kds :where(h1, h2, h3, h4), .kds-display, .kds-h2, .kds-h3-panel, .kds-h3, .kds-h4,
.kds-stat__num, .kds-price__sum, .kds-quote__name, .kds-person__name { font-family: var(--font-display); }

/* ---------- Layout ---------- */
.kds-container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.kds-section { padding-block: var(--space-section); }
.kds-grid { display: grid; gap: var(--space-4); }
.kds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kds-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (max-width: 1024px) { .kds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kds-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kds-container { padding-inline: 16px; }
  .kds-section { padding-block: var(--space-8); }
  .kds-grid--2, .kds-grid--3, .kds-grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Type ---------- */
.kds-display { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.kds-h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.14; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
.kds-h3-panel { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.kds-h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.kds-h4 { font-size: 16.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.kds-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 640px; }
.kds-body-sm { font-size: 15.5px; color: var(--ink-soft); }
.kds-caption { font-size: 14.5px; line-height: 1.4; font-weight: 600; color: var(--ink-muted); }
.kds-mark { background: none; color: var(--kds-mark-ink); }
.kds-accent { color: var(--green-text); }

.kds-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; line-height: 1.3; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-text);
}
.kds-eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--lime-deep); }

.kds-sec-head { max-width: var(--container-text); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); margin-bottom: var(--space-7); }
.kds-sec-head--center { margin-inline: auto; text-align: center; align-items: center; }
.kds-sec-head--center .kds-eyebrow::before { display: none; }

/* ---------- Button ---------- */
.kds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 32px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font-size: 16px; line-height: 1.2; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s, border-color .25s;
}
.kds-btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s; }
.kds-btn:hover svg { transform: translateX(4px); }
.kds-btn--primary { background: var(--lime); color: var(--on-lime); box-shadow: 0 10px 28px -10px rgba(68,122,32,.55); }
.kds-btn--primary:hover { transform: translateY(-3px); background: var(--lime-hover); box-shadow: var(--shadow-lime); }
.kds-btn--secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.kds-btn--secondary:hover { transform: translateY(-3px); border-color: var(--lime-deep); box-shadow: var(--shadow-card); }
.kds-btn--dark { background: var(--ink); color: var(--bg); }
.kds-btn--dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-ink); }
.kds-btn:active { transform: translateY(0) scale(.98); }
.kds-btn--sm { padding: 11px 22px; font-size: 15.5px; }
.kds-btn--block { width: 100%; }
.kds-btn:disabled, .kds-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
/* phones: a long label («Протестировать ИИ-Копирайтера») wraps instead of pushing the page wider than the screen */
@media (max-width: 480px) { .kds-btn { white-space: normal; text-align: center; max-width: 100%; } }

/* ---------- Text link ---------- */
.kds-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: var(--green-text);
  border-bottom: 2px solid var(--lime); padding-bottom: 2px; transition: gap .25s;
}
.kds-link:hover { gap: 13px; }
.kds-link svg { width: 16px; height: 16px; }
.kds-prose a, .kds-link--inline { color: var(--green-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Chip & badge ---------- */
.kds-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: var(--radius-pill);
  font-size: 14.5px; line-height: 1.4; font-weight: 600;
  background: var(--surface-tint); border: 1px solid rgba(68,122,32,.28); color: var(--green-ink);
}
.kds-chip svg { width: 15px; height: 15px; flex: none; }
.kds-chip--outline { background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); padding: 13px 22px; font-size: 15.5px; transition: border-color .25s, background .25s, transform .25s; }
.kds-chip--outline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); }
a.kds-chip--outline:hover { border-color: var(--lime-deep); background: var(--surface-tint); transform: translateY(-3px); }

.kds-badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 5px 13px; border-radius: var(--radius-pill);
  font-size: 14px; line-height: 1.4; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--lime); color: var(--on-lime);
}
.kds-badge--neutral { background: var(--surface-tint); color: var(--green-ink); }
.kds-badge--warning { background: var(--warning-bg); color: var(--warning); }
.kds-badge--danger { background: var(--danger-bg); color: var(--danger); }
.kds-badge--dark { background: var(--inverse); color: var(--on-inverse); }

/* ---------- Icon tile ---------- */
.kds-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--inverse); color: var(--lime); transition: transform .3s, background .3s; }
.kds-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kds-icon--lime { background: var(--lime); color: var(--on-lime); }
.kds-icon--sm { width: 46px; height: 46px; border-radius: 13px; }
.kds-icon--sm svg { width: 22px; height: 22px; }

/* ---------- Card ---------- */
.kds-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-5); min-width: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s;
}
.kds-card p { font-size: 15.5px; color: var(--ink-soft); }
.kds-card--lg { border-radius: var(--radius-lg); padding: 30px 26px; }
.kds-card--tint { background: linear-gradient(165deg, var(--surface), var(--surface-tint)); }
a.kds-card:hover, .kds-card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--lime-deep); }
a.kds-card:hover .kds-icon, .kds-card--hover:hover .kds-icon { transform: rotate(-6deg) scale(1.06); }
.kds-card__num { position: absolute; top: 18px; right: 22px; font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--ink-muted); }
.kds-card__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--green-text); transition: gap .25s; }
.kds-card__go svg { width: 15px; height: 15px; }
a.kds-card:hover .kds-card__go { gap: 11px; }

/* ---------- Dark panel (CTA, demo) ---------- */
.kds-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--inverse-2), var(--inverse) 60%);
  color: var(--on-inverse); border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4);
}
.kds-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(196,244,119,.26), transparent 65%); pointer-events: none; }
.kds-panel > * { position: relative; }
.kds-panel p { color: var(--on-inverse-muted); max-width: 600px; }
.kds-panel .kds-eyebrow { color: var(--lime); }
.kds-panel .kds-eyebrow::before { background: var(--lime); }
.kds-panel .kds-btn--secondary { background: transparent; border-color: rgba(245,246,243,.42); color: var(--on-inverse); }
.kds-panel :focus-visible { outline-color: var(--lime); }
.kds-panel--center { align-items: center; text-align: center; }

/* ---------- Stats ---------- */
.kds-stats { background: linear-gradient(135deg, var(--surface-tint), var(--surface) 70%); border: 1px solid rgba(68,122,32,.25); border-radius: var(--radius-xl); padding: clamp(28px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-6); }
.kds-stat__num { font-size: clamp(34px, 4.4vw, 54px); line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kds-stat__label { margin-top: var(--space-2); font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Compare table ---------- */
.kds-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.kds-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; text-align: left; }
.kds-table th { background: var(--inverse); color: var(--on-inverse); font-weight: 800; padding: 20px 26px; }
.kds-table th.is-us { color: var(--lime); }
.kds-table td { padding: 17px 26px; border-top: 1px solid var(--line); }
.kds-table td:first-child { font-weight: 600; }
.kds-table tbody tr { transition: background .25s; }
.kds-table tbody tr:hover { background: var(--surface-tint); }
.kds-yes, .kds-no { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.kds-yes { color: var(--green-ink); }
.kds-no { color: var(--ink-muted); }
.kds-yes svg, .kds-no svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Accordion (FAQ) ---------- */
.kds-faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-3); }
.kds-faq__item { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.kds-faq__item[open] { border-color: var(--lime-deep); box-shadow: var(--shadow-card); }
.kds-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 26px; font-size: 16.5px; font-weight: 700; }
.kds-faq__item summary::-webkit-details-marker { display: none; }
.kds-faq__item summary::after { content: "+"; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--surface-tint); color: var(--green-ink); display: grid; place-items: center; font-size: 20px; font-weight: 800; transition: transform .35s, background .3s; }
.kds-faq__item[open] summary::after { transform: rotate(45deg); background: var(--lime); color: var(--on-lime); }
.kds-faq__body { padding: 0 26px 24px; font-size: 15.5px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Tabs ---------- */
.kds-tabs { display: flex; flex-direction: column; gap: 10px; }
.kds-tab { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 17px 20px; transition: border-color .3s, background .3s, transform .3s, box-shadow .3s; }
.kds-tab__num { font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--ink-muted); }
.kds-tab b { display: block; font-size: 15.5px; font-weight: 700; }
.kds-tab small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.kds-tab:hover { border-color: var(--lime-deep); transform: translateX(4px); }
.kds-tab[aria-selected="true"] { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); box-shadow: var(--shadow-ink); }
.kds-tab[aria-selected="true"] small { color: var(--on-inverse-muted); }
.kds-tab[aria-selected="true"] .kds-tab__num { color: var(--lime); }

/* ---------- Hero ---------- */
.kds-hero { position: relative; overflow: hidden; padding-block: 72px 64px; }
.kds-hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(196,244,119,.5), rgba(196,244,119,.25) 45%, transparent 68%); pointer-events: none; }
.kds-hero__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); max-width: 760px; }
.kds-hero__badge { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); padding: 9px 18px 9px 10px; border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow-card); }
.kds-hero__badge img { width: 26px; height: 26px; border-radius: 50%; }
.kds-hero__badge b { color: var(--green-text); }
.kds-hero .kds-lead { color: var(--ink); font-weight: 500; }
/* якорные ссылки (#example, #video) не прячут заголовок раздела под липкой шапкой сайта */
.kds [id] { scroll-margin-top: 96px; }
/* AppMock: упрощённая схема экрана продукта в окнах-подсказках (что посетитель увидит после перехода) */
.kds-appmock { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-sunken); }
.kds-appmock__head { display: flex; align-items: center; gap: var(--space-3); }
.kds-appmock__head img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.kds-appmock__head small { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.kds-appmock__head b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink); }
.kds-appmock__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.kds-appmock__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; font-size: 14px; color: var(--ink-muted); }
.kds-appmock__row + .kds-appmock__row { border-top: 1px solid var(--line); }
.kds-appmock__row b { font-weight: 600; color: var(--ink); }
.kds-appmock__row.is-target { background: var(--surface-tint); box-shadow: inset 0 0 0 2px var(--lime-deep); border-radius: var(--radius-sm); }
.kds-appmock__tag { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--green-text); }
.kds-appmock__input { padding: 12px 14px 28px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; color: var(--ink-muted); }
/* Hero с длинным H1-вопросом (сценарии ii-…): заголовок мельче, текстовая колонка шире */
.kds-hero--long .kds-display { font-size: clamp(30px, 3.7vw, 48px); line-height: 1.12; }
@media (min-width: 901px) { .kds-hero--long .kds-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); } }

/* ---------- Form ---------- */
.kds-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 460px; }
.kds-field { display: flex; flex-direction: column; gap: 7px; }
.kds-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.kds-input, .kds-textarea, .kds-select {
  width: 100%; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--control-border); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 16px; line-height: 1.4; transition: border-color .2s, box-shadow .2s;
}
.kds-textarea { min-height: 110px; resize: vertical; }
.kds-input::placeholder, .kds-textarea::placeholder { color: var(--ink-muted); }
.kds-input:hover, .kds-textarea:hover, .kds-select:hover { border-color: var(--ink); }
.kds-input:focus, .kds-textarea:focus, .kds-select:focus { outline: none; border-color: var(--green-text); box-shadow: 0 0 0 3px rgba(68,122,32,.3); }
.kds-field--error .kds-input, .kds-field--error .kds-textarea { border-color: var(--danger); }
.kds-hint { font-size: 14px; color: var(--ink-muted); }
.kds-field--error .kds-hint { color: var(--danger); font-weight: 600; }
.kds-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.kds-check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--green-text); }

/* ---------- Price card ---------- */
.kds-price { position: relative; display: flex; flex-direction: column; gap: var(--space-4); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; min-width: 0; }
.kds-price--featured { border-color: var(--lime-deep); box-shadow: var(--shadow-card); background: linear-gradient(165deg, var(--surface), var(--surface-tint)); }
.kds-price .kds-badge { position: absolute; top: -13px; left: 26px; }
.kds-price__sum { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kds-price__sum small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink-muted); }
.kds-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; color: var(--ink-soft); }
.kds-list li { display: flex; gap: 10px; align-items: flex-start; }
.kds-list li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--lime) no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23304521' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.kds-price .kds-btn { margin-top: auto; }

/* ---------- Steps ---------- */
.kds-steps { list-style: none; counter-reset: kds-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--space-4); }
.kds-step { counter-increment: kds-step; display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-4); border-top: 3px solid var(--line); }
.kds-step::before { content: counter(kds-step, decimal-leading-zero); font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--green-text); }
.kds-step:first-child { border-top-color: var(--lime-deep); }
.kds-step p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Prose (articles, cases) ---------- */
.kds-prose { max-width: var(--container-text); font-size: 17px; }
.kds-prose > * + * { margin-top: 1.1em; }
.kds-prose h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin-top: 1.9em; }
.kds-prose h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin-top: 1.6em; }
.kds-prose ul, .kds-prose ol { padding-left: 1.3em; }
.kds-prose li + li { margin-top: .45em; }
.kds-prose li::marker { color: var(--green-text); font-weight: 700; }
.kds-prose blockquote:not(.kds-quote) { background: var(--surface-tint); border-radius: var(--radius-md); padding: 22px 26px; font-size: 18px; font-weight: 500; color: var(--ink); }
.kds-prose blockquote cite { display: block; margin-top: 10px; font-size: 14.5px; font-style: normal; font-weight: 600; color: var(--green-ink); }
.kds-prose img { border-radius: var(--radius-md); border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .kds *, .kds *::before, .kds *::after { transition: none !important; animation: none !important; }
}

/* ---------- Quote ---------- */
.kds-quote { position: relative; display: flex; flex-direction: column; gap: var(--space-5); margin: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.6vw, 44px); max-width: 860px; }
.kds-quote::before { content: "\00AB"; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--lime); color: var(--on-lime); font-size: 34px; line-height: 1; font-weight: 800; padding-bottom: 6px; }
.kds-quote__text { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.kds-quote__author { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kds-quote__photo { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-tint); color: var(--green-ink); display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.kds-quote__name { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.kds-quote__role { display: block; font-size: 14.5px; color: var(--ink-muted); }
.kds-quote__result { margin-left: auto; }
.kds-quote--tint { background: linear-gradient(165deg, var(--surface), var(--surface-tint)); border-color: rgba(68,122,32,.28); }
.kds-quote--dark { background: linear-gradient(160deg, var(--inverse-2), var(--inverse) 60%); border-color: transparent; }
.kds-quote--dark .kds-quote__text, .kds-quote--dark .kds-quote__name { color: var(--on-inverse); }
.kds-quote--dark .kds-quote__role { color: var(--on-inverse-muted); }
.kds-quote--dark .kds-quote__photo { background: var(--inverse-2); color: var(--lime); }
.kds-quote--compact { padding: var(--space-5); gap: var(--space-4); border-radius: var(--radius-md); }
.kds-quote--compact::before { display: none; }
.kds-quote--compact .kds-quote__text { font-size: 17px; }

/* ---------- Video ---------- */
.kds-video { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); max-width: 960px; }
.kds-video__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--inverse-2), var(--inverse) 60%); box-shadow: var(--shadow-card); padding: 0; cursor: pointer; }
.kds-video__frame img, .kds-video__frame iframe, .kds-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.kds-video__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(196,244,119,.28); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
.kds-video__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.kds-video__frame:hover .kds-video__play { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(196,244,119,.22); }
.kds-video__title { position: absolute; left: 22px; bottom: 20px; right: 110px; text-align: left; font-size: 17px; font-weight: 700; color: var(--on-inverse); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.kds-video__time { position: absolute; right: 18px; bottom: 18px; padding: 5px 11px; border-radius: var(--radius-pill); background: rgba(35,39,32,.78); color: var(--on-inverse); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kds-video figcaption { font-size: 15px; color: var(--ink-muted); }
.kds-video--portrait { max-width: 340px; }
.kds-video--portrait .kds-video__frame { aspect-ratio: 9 / 16; }

/* ---------- Code ---------- */
.kds-code { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--inverse); border: 1px solid var(--line); max-width: var(--container-text); }
.kds-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: var(--inverse-2); color: var(--on-inverse-muted); font-size: 14px; font-weight: 600; }
.kds-code__copy { cursor: pointer; border: 1px solid rgba(245,246,243,.3); background: transparent; color: var(--on-inverse); border-radius: var(--radius-pill); padding: 6px 14px; font-size: 14px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.kds-code__copy:hover { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.kds-code :focus-visible { outline-color: var(--lime); }
.kds-code pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 15px; line-height: 1.6; color: var(--on-inverse); tab-size: 2; }
.kds-code code { font-family: inherit; background: none; padding: 0; color: inherit; }
.kds-code .tok-c { color: var(--on-inverse-muted); font-style: italic; }
.kds-code .tok-s { color: var(--lime); }
.kds-code .tok-k { color: var(--lime-soft); font-weight: 600; }
.kds-prose :not(pre) > code, .kds-inline-code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-tint); color: var(--green-ink); border-radius: 6px; padding: .12em .4em; }
.kds-prompt { margin: 0; background: var(--surface); border: 1.5px dashed rgba(68,122,32,.55); border-radius: var(--radius-md); padding: 20px 22px; max-width: var(--container-text); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.kds-prompt__label { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); }
.kds-prompt__text { font-size: 17px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }

/* ---------- Prose extras: long reads ---------- */
.kds-prose h4 { font-size: 18px; line-height: 1.35; font-weight: 700; margin-top: 1.5em; }
.kds-prose h2 + *, .kds-prose h3 + *, .kds-prose h4 + * { margin-top: .6em; }
.kds-prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.kds-prose figure { margin-inline: 0; }
.kds-prose figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-muted); }
.kds-prose strong { font-weight: 700; }
.kds-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.kds-prose th { text-align: left; font-weight: 700; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.kds-prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kds-prose__lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink); font-weight: 500; }
.kds-prose__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--ink-muted); }
.kds-callout { display: flex; gap: 14px; align-items: flex-start; background: var(--surface-tint); border: 1px solid rgba(68,122,32,.28); border-radius: var(--radius-md); padding: 20px 22px; color: var(--ink); }
.kds-callout b { display: block; margin-bottom: 4px; }
.kds-callout .kds-icon { width: 40px; height: 40px; border-radius: 12px; }
.kds-callout .kds-icon svg { width: 20px; height: 20px; }
.kds-toc { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 20px 24px; }
.kds-toc b { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); margin-bottom: 10px; }
.kds-toc ol { margin: 0; padding-left: 1.3em; font-size: 16px; }
/* a key–value table (row headers: th scope="row", e.g. company details) stacks on phones: label above value */
@media (max-width: 640px) {
  .kds-prose tr:has(> th[scope="row"]) { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .kds-prose tr > th[scope="row"], .kds-prose tr > th[scope="row"] + td { display: block; padding: 0; border: 0; }
  .kds-prose tr > th[scope="row"] { font-size: 14.5px; color: var(--ink-muted); }
}
/* contents of a document whose section titles carry their own numbers («1. Предмет договора») */
.kds-toc--numbered ol { list-style: none; padding-left: 0; }
/* Document page (offer, policies, requisites): one centred text column, the breadcrumbs above it */
.kds-doc .kds-container { max-width: calc(var(--container-text) + 2 * var(--gutter)); }
.kds-prose .kds-toc a { text-decoration: none; font-weight: 500; color: var(--ink); }
.kds-prose .kds-toc a:hover { color: var(--green-text); }

/* ---------- Mascot ---------- */
.kds-mascot { display: block; height: auto; max-width: 100%; }
.kds-mascot--hero { width: min(320px, 60vw); }
.kds-mascot--section { width: 200px; }
.kds-mascot--inline { width: 96px; }
/* decorative mascot (service pages: contacts, documents): hidden on phones, where the content comes first */
@media (max-width: 640px) { .kds-mascot--decor { display: none !important; } }
.kds-mascot--avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.kds-mascot-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 170px; padding: 16px; border: 1.5px dashed rgba(68,122,32,.55); border-radius: var(--radius-md); background: var(--surface); }
.kds-mascot-slot b { font-size: 16px; }
.kds-mascot-slot span { font-size: 14px; color: var(--ink-muted); }

/* ---------- Breadcrumbs ---------- */
.kds-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ink-muted); }
.kds-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.kds-crumbs li + li::before { content: "/"; color: var(--ink-muted); }
.kds-crumbs a { color: var(--ink-soft); font-weight: 500; }
.kds-crumbs a:hover { color: var(--green-text); }
.kds-crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Feature split (text + media) ---------- */
.kds-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.kds-split--reverse > :first-child { order: 2; }
.kds-split__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.kds-split__text p { color: var(--ink-soft); }
@media (max-width: 900px) { .kds-split { grid-template-columns: minmax(0, 1fr); } .kds-split--reverse > :first-child { order: 0; } }

/* ---------- Figure (screenshot, image) ---------- */
.kds-figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.kds-figure__frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); }
.kds-figure__frame img { width: 100%; height: auto; }
.kds-figure__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-sunken); }
.kds-figure__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); border: 1px solid var(--control-border); opacity: .6; }
.kds-figure__ph { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(165deg, var(--surface), var(--surface-tint)); color: var(--ink-muted); font-size: 15px; font-weight: 600; text-align: center; padding: 16px; }
.kds-figure figcaption { font-size: 15px; color: var(--ink-muted); }

/* ---------- Article card (blog, cases, news) ---------- */
.kds-post { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s, border-color .35s; }
a.kds-post:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--lime-deep); }
.kds-post__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: linear-gradient(165deg, var(--surface-tint), var(--lime-soft)); }
.kds-post__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.kds-post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-muted); font-weight: 500; }
.kds-post__meta b { color: var(--green-text); font-weight: 700; }
.kds-post h3 { font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.kds-post p { font-size: 15.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kds-post--row { flex-direction: row; }
.kds-post--row .kds-post__img { width: 38%; aspect-ratio: auto; }
@media (max-width: 640px) { .kds-post--row { flex-direction: column; } .kds-post--row .kds-post__img { width: 100%; aspect-ratio: 16 / 9; } }

/* ---------- Related links ---------- */
.kds-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.kds-related a { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; font-size: 16px; font-weight: 600; transition: border-color .25s, background .25s, transform .25s; }
.kds-related a:hover { border-color: var(--lime-deep); background: var(--surface-tint); transform: translateX(4px); }
.kds-related small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.kds-related svg { width: 18px; height: 18px; flex: none; color: var(--green-text); }

/* ---------- Logo wall ---------- */
.kds-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.kds-logos li { display: flex; align-items: center; justify-content: center; height: 56px; min-width: 132px; padding: 0 26px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); font-size: 16px; font-weight: 800; color: var(--ink-soft); }
.kds-logos img { height: 22px; width: auto; }
.kds-logos--dark li { background: var(--inverse); border-color: transparent; color: var(--on-inverse); }

/* ---------- CTA banner (light, inline) ---------- */
.kds-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); background: linear-gradient(135deg, var(--surface-tint), var(--surface) 75%); border: 1px solid rgba(68,122,32,.28); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.kds-banner__text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; min-width: 0; }
.kds-banner__text p { font-size: 16px; color: var(--ink-soft); }

/* ---------- Person card ---------- */
.kds-person { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); }
.kds-person__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--surface-tint); color: var(--green-ink); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.kds-person__name { font-size: 18px; font-weight: 700; }
.kds-person__role { font-size: 15px; font-weight: 600; color: var(--green-text); }
.kds-person p { font-size: 15.5px; color: var(--ink-soft); }
.kds-person--row { flex-direction: row; align-items: center; gap: var(--space-4); }

/* ---------- Modal ---------- */
.kds-overlay { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(35,39,32,.6); }
.kds-modal { position: relative; width: min(520px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: var(--space-4); background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 90px -30px rgba(35,39,32,.6); }
.kds-modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-tint); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.kds-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kds-modal p { color: var(--ink-soft); }
.kds-modal .kds-form { max-width: none; }

/* ---------- Filter bar, search, pagination ---------- */
.kds-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kds-filter { cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 10px 18px; font-size: 15px; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
.kds-filter:hover { border-color: var(--lime-deep); }
.kds-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.kds-filter span { margin-left: 6px; font-weight: 500; opacity: .7; }
.kds-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.kds-search .kds-input { border-radius: var(--radius-pill); padding-left: 48px; }
.kds-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.kds-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.kds-pages a, .kds-pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 16px; font-weight: 600; color: var(--ink); }
.kds-pages a { background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s; }
.kds-pages a:hover { border-color: var(--lime-deep); }
.kds-pages [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* ---------- Notice ---------- */
.kds-notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-sm); padding: 14px 18px; font-size: 16px; background: var(--surface-tint); color: var(--green-ink); border: 1px solid rgba(68,122,32,.28); }
.kds-notice svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kds-notice b { font-weight: 700; }
.kds-notice--info { background: var(--surface); color: var(--ink); border-color: var(--line); }
.kds-notice--warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.kds-notice--danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }

/* ---------- Chat demo ---------- */
.kds-chat { display: flex; flex-direction: column; gap: 14px; max-width: 640px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.kds-chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.kds-chat__head small { display: block; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.kds-chat__msg { max-width: 86%; padding: 14px 18px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.kds-chat__msg--user { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.kds-chat__msg--ai { align-self: flex-start; background: var(--surface-tint); color: var(--ink); border-bottom-left-radius: 6px; }
.kds-chat__msg--ai b { color: var(--green-ink); }
.kds-chat__msg ul { margin: 8px 0 0; padding-left: 1.2em; }

/* ---------- Do / Don't ---------- */
.kds-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.kds-fit__col { display: flex; flex-direction: column; gap: var(--space-3); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); }
.kds-fit__col--yes { border-color: rgba(68,122,32,.45); background: linear-gradient(165deg, var(--surface), var(--surface-tint)); }
.kds-fit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-soft); }
.kds-fit li { display: flex; gap: 10px; align-items: flex-start; }
.kds-fit li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kds-fit__col--yes li svg { stroke: var(--green-text); }
.kds-fit__col--no li svg { stroke: var(--ink-muted); }
@media (max-width: 640px) { .kds-fit { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sticky CTA (mobile) ---------- */
.kds-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99980; display: none; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(38,43,35,.35); }
.kds-sticky span { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
@media (max-width: 640px) { .kds-sticky { display: flex; } }
.kds-sticky--demo { position: static; display: flex; max-width: 390px; border: 1px solid var(--line); border-radius: var(--radius-md); }

/* ---------- Header (light) ---------- */
.kds-header { position: sticky; top: 0; z-index: 99990; background: var(--bg); border-bottom: 1px solid var(--line); }
.kds-header__bar { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 24px; position: relative; }
.kds-logo { display: inline-flex; align-items: center; flex: none; height: 40px; }
.kds-logo img { height: 18px; width: auto; max-width: none; }
.kds-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.kds-nav__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 10px 12px; border-radius: var(--radius-pill); border: 0; background: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.kds-nav__item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-muted); transition: transform .25s; }
.kds-nav__item:hover, .kds-nav__item[aria-expanded="true"] { background: var(--surface-tint); color: var(--green-ink); }
.kds-nav__item[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--green-text); }
.kds-nav__item { justify-content: center; text-align: center; }
.kds-nav__item[aria-current="page"] { background: var(--ink); color: var(--bg); }
.kds-nav__item[aria-current="page"] svg { color: currentColor; opacity: .75; }
.kds-header__actions { flex: none; display: flex; align-items: center; gap: 10px; }
.kds-burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; margin-left: auto; }
.kds-burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kds-mega { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card), 0 30px 60px -30px rgba(38,43,35,.25); padding: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 22px; }
.kds-mega--static { position: static; margin: 8px var(--gutter) 0; }
.kds-mega__label { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); padding: 6px 10px 8px; }
.kds-mega__link { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 14px; transition: background .16s; }
.kds-mega__link:hover { background: var(--surface-tint); }
.kds-mega__link .kds-icon { width: 40px; height: 40px; border-radius: 12px; }
.kds-mega__link .kds-icon svg { width: 20px; height: 20px; }
.kds-mega__link b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.kds-mega__link small { display: block; font-size: 14px; line-height: 1.35; color: var(--ink-muted); }
.kds-mega__foot { grid-column: 1 / -1; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 1080px) {
  .kds-header__bar { height: 64px; }
  .kds-nav, .kds-header__actions .kds-btn--secondary, .kds-header__actions .kds-nav__item { display: none; }
  .kds-header__actions { margin-left: auto; }
  .kds-burger { display: grid; margin-left: 0; }
}
@media (max-width: 420px) { .kds-header__actions .kds-btn { display: none; } .kds-header__actions { margin-left: auto; } }
.kds-header--demo-mobile { max-width: 390px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; position: static; }
.kds-header--demo-mobile .kds-header__bar { height: 64px; padding: 0 16px; }
.kds-header--demo-mobile .kds-nav, .kds-header--demo-mobile .kds-btn--secondary, .kds-header--demo-mobile .kds-header__actions .kds-nav__item { display: none; }
.kds-header--demo-mobile .kds-header__actions { margin-left: auto; }
.kds-header--demo-mobile .kds-burger { display: grid; margin-left: 0; }

/* ---------- Footer (light) ---------- */
.kds-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink); }
.kds-footer__inner { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 28px; display: flex; flex-direction: column; gap: 40px; }
.kds-footer__top { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.kds-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.kds-footer__brand p { font-size: 16px; color: var(--ink-soft); max-width: 320px; }
.kds-footer__col { display: flex; flex-direction: column; gap: 10px; }
.kds-footer__col b { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.kds-footer__col a { font-size: 16px; font-weight: 500; color: var(--ink); width: fit-content; }
.kds-footer__col a:hover, .kds-footer__bottom a:hover { color: var(--green-text); }
.kds-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-muted); }
.kds-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.kds-footer__bottom a { color: var(--ink-soft); font-weight: 500; }
.kds-footer__langs { display: flex; gap: 6px; }
.kds-footer__langs a { display: grid; place-items: center; min-width: 44px; height: 36px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; }
.kds-footer__langs [aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (max-width: 900px) { .kds-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kds-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .kds-footer__top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Mascot gallery tile ---------- */
.kds-mascot-tile { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 18px 14px; min-width: 0; }
.kds-mascot-tile .kds-mascot { height: 220px; width: auto; object-fit: contain; }
.kds-mascot-tile figcaption { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.kds-mascot-tile b { font-size: 16px; }
.kds-mascot-tile span { font-size: 14px; color: var(--ink-muted); }
.kds-mascot-tile code { font-family: var(--font-mono); font-size: 14px; color: var(--green-ink); background: var(--surface-tint); border-radius: 6px; padding: 2px 8px; overflow-wrap: anywhere; }
video.kds-mascot { background: transparent; }
@media (max-width: 900px) { .kds-split > .kds-mascot--hero { width: min(220px, 50vw); } }

/* Hero glow is smaller on phones so it does not tint the whole first screen */
@media (max-width: 640px) { .kds-hero::before { width: 460px; height: 460px; right: -220px; top: -220px; } .kds-hero { padding-block: 40px 48px; } }


/* ---------- Theme-dependent helpers ----------
   Custom properties resolve from the nearest themed ancestor, so a light wrapper inside a dark page works. */
:root, [data-theme="light"] { --kds-show-light: block; --kds-show-dark: none; --kds-mark-ink: var(--green-text); }
[data-theme="dark"], .kds-panel, .kds-quote--dark, .kds-founder { --kds-show-light: none; --kds-show-dark: block; --kds-mark-ink: var(--lime); }
.kds-on-light { display: var(--kds-show-light); }
.kds-on-dark { display: var(--kds-show-dark); }

/* ---------- Section head with a mascot ---------- */
.kds-sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-7); }
.kds-sec-row .kds-sec-head { margin-bottom: 0; }
.kds-sec-row--reverse { flex-direction: row-reverse; justify-content: flex-end; }
.kds-sec-row .kds-mascot { width: 124px; flex: none; }
@media (max-width: 640px) { .kds-sec-row { gap: var(--space-3); align-items: flex-start; } .kds-sec-row .kds-mascot { width: 84px; } }

/* ---------- Motion ----------
   Hidden states apply only under .kds-motion, which kds-motion.js sets on  when motion is allowed.
   Without the script, or with reduced motion, everything is simply visible. */
.kds-motion [data-kds-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--kds-i, 0) * 90ms); }
.kds-motion [data-kds-reveal="left"] { transform: translateX(-40px); }
.kds-motion [data-kds-reveal="right"] { transform: translateX(40px); }
.kds-motion [data-kds-reveal="zoom"] { transform: scale(.93); }
.kds-motion [data-kds-reveal].is-in { opacity: 1; transform: none; }
@keyframes kds-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
.kds-float { animation: kds-float 5.5s ease-in-out infinite; }
@keyframes kds-blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(-50px, 44px) scale(1.1); } }
.kds-hero::before { animation: kds-blob 14s ease-in-out infinite alternate; }
@keyframes kds-pulse { 0% { box-shadow: 0 0 0 0 rgba(196,244,119,.6); } 70%, 100% { box-shadow: 0 0 0 16px rgba(196,244,119,0); } }
.kds-btn--pulse { animation: kds-pulse 2.4s ease-out infinite; }
.kds-marquee { overflow: hidden; max-width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.kds-marquee__track { display: flex; gap: 10px; width: max-content; animation: kds-marquee 30s linear infinite; }
.kds-marquee:hover .kds-marquee__track { animation-play-state: paused; }
@keyframes kds-marquee { to { transform: translateX(-50%); } }
@keyframes kds-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.kds-motion .kds-step { position: relative; border-top-color: var(--line); }
.kds-motion .kds-step::after { content: ""; position: absolute; left: 0; right: 0; top: -3px; height: 3px; background: var(--lime-deep); transform: scaleX(0); transform-origin: left; }
.kds-motion .kds-step.is-in::after { animation: kds-draw .6s cubic-bezier(.22,1,.36,1) forwards; animation-delay: calc(var(--kds-i, 0) * 140ms + .2s); }
@media (prefers-reduced-motion: reduce) {
  .kds-marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .kds-marquee { -webkit-mask-image: none; mask-image: none; }
}
/* side reveals would widen the page on narrow screens, so they rise instead */
@media (max-width: 900px) { .kds-motion [data-kds-reveal="left"], .kds-motion [data-kds-reveal="right"] { transform: translateY(28px); } }

/* ---------- Mascot stage: a ground for cropped (bust) mascots and videos ---------- */
.kds-mascot-stage { display: flex; align-items: flex-end; justify-content: center; width: 260px; max-width: 100%; padding: 22px 22px 0; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, var(--surface-tint), var(--surface-sunken)); border: 1px solid var(--line); }
.kds-mascot-stage .kds-mascot { width: 100%; height: auto; display: var(--kds-show-light); }
.kds-mascot-stage .kds-on-dark { display: var(--kds-show-dark); }
.kds-mascot-stage--wide { width: 100%; }

/* ---------- Small additions (homepage, 16.11.2026) ---------- */
.kds-table td svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; fill: none; stroke: currentColor; }
.kds-logos a { color: inherit; text-decoration: none; }
.kds-logos li:has(a):hover { border-color: var(--lime-deep); }
/* LinkList: a long list of plain links in columns (all industries, all articles of a section) */
.kds-linklist { list-style: none; margin: 0; padding: 0; columns: 4 220px; column-gap: var(--space-5); }
.kds-linklist li { break-inside: avoid; padding: 6px 0; }
.kds-linklist a { color: var(--ink-soft); text-decoration: none; font-size: 15.5px; }
.kds-linklist a:hover { color: var(--green-text); text-decoration: underline; }
.kds-modal > .kds-mascot { align-self: flex-start; }

/* ---------- Founder: the founder's words, full container width, large portrait ---------- */
.kds-founder { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--lime) 16%, transparent), transparent 62%), linear-gradient(160deg, var(--inverse-2), var(--inverse) 60%); color: var(--on-inverse); border-radius: var(--radius-xl); padding: clamp(18px, 2.4vw, 32px); }
.kds-founder__photo { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--inverse-2); }
.kds-founder__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.kds-founder__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 56px 22px 20px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--inverse) 92%, transparent)); }
.kds-founder__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--on-inverse); }
.kds-founder__role { font-size: 15.5px; color: var(--on-inverse-muted); }
.kds-founder__body { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding: clamp(6px, 1.4vw, 20px) clamp(0px, 1.4vw, 20px) clamp(6px, 1.4vw, 20px) 0; }
.kds-founder .kds-eyebrow { color: var(--lime); }
.kds-founder .kds-eyebrow::before { background: var(--lime); }
.kds-founder__lead { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--on-inverse); margin: 0; text-wrap: balance; }
.kds-founder__text { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; font-weight: 500; color: var(--on-inverse); margin: 0; text-wrap: pretty; }
.kds-founder__text b { color: var(--on-inverse); font-weight: 600; }
.kds-founder__sign { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--lime); margin: 0; }
@media (max-width: 900px) {
  .kds-founder { grid-template-columns: minmax(0, 1fr); }
  .kds-founder__photo { min-height: 0; aspect-ratio: 4 / 4.2; }
  .kds-founder__body { padding: 6px 6px 12px; }
}

/* прежний CSS проекта */
div:has(> a[href*="zapier-gbl-pnua-link-interface_built_on_zapier_button"]) {
    display: none !important;
  }
  a[href*="zapier-gbl-pnua-link-interface_built_on_zapier_button"] {
    display: none !important;
  }
