/* ==========================================================================
   ARMlock — дизайн-система сайта
   Чистый CSS без сборки. Порядок: токены → база → раскладка → компоненты →
   разделы страниц → утилиты → печать.
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --brand-50: #f1f8fc;
  --brand-100: #e1f0f8;
  --brand-200: #bfdff0;
  --brand-300: #86c5e5;
  --brand-400: #3ea4d5;
  --brand-500: #1a87bc;
  --brand-600: #0f6e9a;
  --brand-700: #0c5a7f;
  --brand-800: #0b4866;
  --brand-900: #093a52;

  --accent-300: #7ee8d5;
  --accent-400: #34d3b8;
  --accent-500: #14b8a0;

  --ink-950: #050f1a;
  --ink-900: #081827;
  --ink-800: #0d2236;
  --ink-700: #16324b;

  --gray-900: #0f1b2a;
  --gray-800: #1f2c3c;
  --gray-700: #334357;
  --gray-600: #4a5a6e;
  --gray-500: #647489;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #eef2f6;
  --gray-50: #f7f9fb;

  --success: #15803d;
  --success-bg: #ecfdf3;
  --danger: #c62828;
  --danger-bg: #fef2f2;
  --warning: #a16207;
  --warning-bg: #fffbeb;

  --text: var(--gray-900);
  --text-2: #3b4b5f;
  --text-muted: #5c6c80;
  --line: #e3e9f0;
  --line-strong: #cdd7e2;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 27, 42, .06);
  --shadow-sm: 0 1px 2px rgba(15, 27, 42, .05), 0 2px 8px rgba(15, 27, 42, .05);
  --shadow: 0 2px 4px rgba(15, 27, 42, .04), 0 10px 28px rgba(15, 27, 42, .08);
  --shadow-lg: 0 4px 10px rgba(15, 27, 42, .05), 0 28px 56px -12px rgba(15, 27, 42, .22);
  --shadow-brand: 0 10px 28px -10px rgba(15, 110, 154, .6);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --container-narrow: 860px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

main { flex: 1 0 auto; }
main:focus { outline: none; }
.req { color: var(--danger); }

img, svg, video { display: block; max-width: 100%; }
picture { display: contents; } /* обёртка WebP не должна влиять на раскладку */
img { height: auto; }

a {
  color: var(--brand-600);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s;
}
a:hover { color: var(--brand-800); }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible,
.section--dark :focus-visible,
.cta :focus-visible,
.card--brand :focus-visible,
.site-footer :focus-visible,
.header-dark:not(.nav-open) .site-header:not(.is-scrolled) :focus-visible { outline-color: #fff; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--gray-900);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.1rem + 3.1vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.08rem + .35vw, 1.35rem); line-height: 1.3; letter-spacing: -.012em; }
h4 { font-size: 1.05rem; line-height: 1.35; letter-spacing: -.01em; }

@media (max-width: 560px) {
  /* длинные русские слова («несанкционированного») не должны вылезать за экран */
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: break-word; }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }

strong, b { font-weight: 650; }
small { font-size: .875em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

code, kbd, samp { font-family: var(--font-mono); font-size: .9em; }

table { border-collapse: collapse; }

button { font: inherit; color: inherit; }

::selection { background: var(--brand-200); color: var(--gray-900); }

[hidden] { display: none !important; }

/* пока открыт cookie-баннер, он не должен перекрывать контент и элементы в фокусе */
html.has-cookie-banner { scroll-padding-bottom: var(--cookie-h, 0px); }
html.has-cookie-banner body { padding-bottom: var(--cookie-h, 0px); }

/* ---------- 3. Раскладка ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--flush-top { padding-top: 0; }
.section--dark {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(62, 164, 213, .22), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(52, 211, 184, .12), transparent 60%),
    var(--ink-900);
  color: rgba(255, 255, 255, .78);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--bordered { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .4em; }
.section-head__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); margin: 0; }
.section--dark .section-head__lead { color: rgba(255, 255, 255, .72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin: 0 0 1rem;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head--center .eyebrow::before { display: none; }
.section--dark .eyebrow { color: var(--brand-300); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 > :last-child:nth-child(odd),
  .grid--4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--top { align-items: start; }
.split--wide-text { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split--wide-text { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
}

.stack > * + * { margin-top: var(--stack, 1rem); }

/* ---------- 4. Иконки ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  display: inline-block;
  vertical-align: -.2em;
}
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.6em; height: 1.6em; }

/* ---------- 5. Кнопки ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: var(--btn-h);
  padding: 0 1.4em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--sm { --btn-h: 38px; padding: 0 1.05em; font-size: .9375rem; }
.btn--lg { --btn-h: 56px; padding: 0 1.75em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--wrap { white-space: normal; }

.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-700); color: #fff; }

.btn--secondary { background: #fff; color: var(--gray-900); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }

.btn--ghost { background: transparent; color: var(--brand-600); padding-inline: .9em; }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-800); }

.btn--light { background: #fff; color: var(--ink-900); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-800); }

.btn--outline-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
@media (max-width: 480px) {
  /* на телефоне длинные подписи кнопок переносятся, а не вылезают за край */
  .btn { white-space: normal; line-height: 1.25; padding-block: .55em; }
  .btn-row--stack-mobile { flex-direction: column; align-items: stretch; }
  .btn-row--stack-mobile .btn { width: 100%; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 620;
  text-decoration: none;
}
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gray-700);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--gray-100); color: var(--gray-900); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- 6. Шапка ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gray-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 27, 42, .45); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 32px; width: auto; }
.logo__img--light { display: none; }
@media (max-width: 640px) { .logo img { height: 28px; } }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__list li + li { margin-top: 0; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-size: .9375rem;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--gray-900); background: var(--gray-100); }
.nav__link[aria-current="page"] { color: var(--brand-600); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-800);
  font-size: .9375rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__phone:hover { color: var(--brand-700); }
.nav__cta-mobile { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1279px) {
  .site-header__phone { display: none; }
}

@media (max-width: 1099px) {
  .nav-toggle { display: inline-grid; order: 3; }
  .site-header__actions { margin-left: auto; order: 2; }
  /* backdrop-filter создаёт контейнер для fixed-потомков — при открытом меню отключаем */
  .nav-open .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: var(--line); }
  .site-header__actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 99;
    margin: 0;
    padding: 16px var(--gutter) 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: flex;
    height: auto;
    padding: 16px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    color: var(--gray-900);
  }
  .nav__link:hover { background: transparent; color: var(--brand-600); }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta-mobile { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .nav__cta-mobile .btn { width: 100%; }
  .nav-open { overflow: hidden; }
}

/* Тёмная шапка поверх героя главной страницы */
.header-dark .site-header:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header-dark .site-header:not(.is-scrolled) .logo__img--dark { display: none; }
.header-dark .site-header:not(.is-scrolled) .logo__img--light { display: block; }
.header-dark .site-header:not(.is-scrolled) .nav__link { color: rgba(255, 255, 255, .82); }
.header-dark .site-header:not(.is-scrolled) .nav__link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-dark .site-header:not(.is-scrolled) .site-header__phone { color: #fff; }
.header-dark .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
.header-dark .site-header:not(.is-scrolled) .nav-toggle:hover { background: rgba(255, 255, 255, .1); }
.header-dark .site-header:not(.is-scrolled) .site-header__actions .btn--secondary {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  box-shadow: none;
}
@media (max-width: 1099px) {
  /* при открытом меню шапка всегда светлая */
  .header-dark.nav-open .site-header { background: #fff; }
  .header-dark.nav-open .site-header .logo__img--dark { display: block; }
  .header-dark.nav-open .site-header .logo__img--light { display: none; }
  .header-dark.nav-open .site-header .nav-toggle { color: var(--gray-900); }
  .header-dark .site-header:not(.is-scrolled) .nav__link { color: var(--gray-900); }
  .header-dark .site-header:not(.is-scrolled) .nav__link:hover { color: var(--brand-600); background: transparent; }
}

/* ---------- 7. Герой главной ---------- */
.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px));
  color: rgba(255, 255, 255, .8);
  background:
    radial-gradient(1100px 560px at 78% -12%, rgba(62, 164, 213, .38), transparent 62%),
    radial-gradient(800px 480px at -8% 42%, rgba(52, 211, 184, .14), transparent 60%),
    linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 55%, var(--ink-800) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 78%);
}
.hero::after {
  /* светлая «полка», на которой стоят устройства */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: clamp(56px, 11vw, 150px);
  background: var(--bg);
}
.hero__inner { text-align: center; max-width: 1100px; }
.hero__eyebrow { display: flex; justify-content: center; margin: 0 0 24px; }
.hero__title { color: #fff; margin: 0 auto 20px; max-width: 920px; }
.hero__lead {
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: clamp(1.075rem, 1rem + .45vw, 1.3rem);
  color: rgba(255, 255, 255, .76);
}
.hero__lead strong { color: #fff; font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.hero__media {
  position: relative;
  max-width: 1080px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding-inline: var(--gutter);
}
.hero__media::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 8%;
  bottom: 30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(62, 164, 213, .45), transparent);
  filter: blur(30px);
}
.hero__media img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .28)); }
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
}

.text-gradient {
  background: linear-gradient(92deg, var(--brand-300) 0%, var(--accent-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 8. Шапка внутренних страниц ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(800px 360px at 90% -20%, rgba(62, 164, 213, .18), transparent 65%),
    linear-gradient(180deg, var(--brand-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(15, 110, 154, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 110, 154, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 20%, transparent 70%);
}
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: .35em; max-width: 900px; }
.page-hero__lead { max-width: 760px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); margin: 0; }
.page-hero__actions { margin-top: 28px; }
.page-hero__meta { margin-top: 16px; color: var(--text-muted); font-size: .9375rem; }

.breadcrumbs { margin-bottom: 20px; font-size: .875rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--text-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--gray-300); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--gray-800); }

/* ---------- 9. Бейджи и «чипы» ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35em .8em;
  border-radius: var(--radius-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: .8125rem;
  font-weight: 620;
  line-height: 1.3;
}
.badge .icon { width: 1.1em; height: 1.1em; }
.badge--success { background: var(--success-bg); color: var(--success); border-color: #c9f1d8; }
.badge--neutral { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.badge--glow {
  background: rgba(62, 164, 213, .12);
  color: #d7eef9;
  border-color: rgba(134, 197, 229, .35);
  padding: .5em 1em;
  font-size: .875rem;
}
.badge--glow .icon { color: var(--accent-300); }
a.badge { text-decoration: none; }
a.badge--glow:hover { color: #fff; border-color: rgba(134, 197, 229, .6); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 1em;
  border-radius: var(--radius-pill);
  background: var(--gray-50);
  border: 1px solid var(--line);
  color: var(--gray-700);
  font-size: .875rem;
  font-weight: 560;
  line-height: 1.3;
}
.chip .icon { color: var(--brand-600); width: 1.15em; height: 1.15em; }
.chips--on-dark .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .86); }
.chips--on-dark .chip .icon { color: var(--accent-300); }
.chips--left { justify-content: flex-start; }
@media (max-width: 1100px) {
  .chips { gap: 8px; }
  .chip { padding: .5em .8em; }
}
a.chip { text-decoration: none; transition: border-color .2s, color .2s, background-color .2s; }
a.chip:hover { border-color: var(--brand-200); color: var(--brand-700); background: var(--brand-50); }
.chips--on-dark a.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }

/* ---------- 10. Карточки ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.card--hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.card--flat { box-shadow: none; background: var(--bg-alt); border-color: transparent; }
.card--dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; color: rgba(255, 255, 255, .74); }
.card--dark .card__title { color: #fff; }
.card--dark .card__icon { background: rgba(62, 164, 213, .14); color: var(--brand-300); }
.card--brand {
  background: linear-gradient(145deg, var(--brand-800) 0%, var(--brand-600) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.card--brand .card__title { color: #fff; }
.card--brand .card__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.card--brand a, .card--brand .link-arrow, .card--dark a { color: #fff; }
.card--brand a:hover, .card--dark a:hover { color: var(--accent-300); }
.card--brand.card--link, .card--dark.card--link { color: rgba(255, 255, 255, .86); }
.card--link { text-decoration: none; color: inherit; }
.card--link .link-arrow { color: var(--brand-600); }
.card--link:hover .link-arrow { color: var(--brand-800); }
.card--link:hover .link-arrow .icon { transform: translateX(3px); }
.card--link:hover { color: inherit; }
.card--center { text-align: center; align-items: center; }

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
  flex: none;
}
.card__icon .icon { width: 26px; height: 26px; }
.card__icon img { width: 30px; height: 30px; }
.card__title { margin: 0 0 .5em; font-size: 1.2rem; }
.card__text { margin: 0; color: var(--text-2); }
.card--dark .card__text, .card--brand .card__text { color: inherit; }
.card__footer { margin-top: auto; padding-top: 20px; }
.card__kicker { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); }

/* ---------- 11. «Формула» ARMlock ---------- */
.formula {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.formula > li { margin: 0; }
.formula__item { height: 100%; }
.formula__op {
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--brand-600);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.formula__op--equals { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
@media (max-width: 1099px) {
  .formula { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 10px; }
  .formula__op { justify-self: center; width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ---------- 12. Список возможностей ---------- */
.feature-list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.feature-list > li { margin: 0; }
.feature { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.feature__icon .icon { width: 26px; height: 26px; }
.feature__title { margin: 4px 0 .35em; font-size: 1.15rem; }
/* на серо-голубом фоне светлые плитки иконок теряются — делаем их белыми */
.section--alt .feature__icon,
.section--alt .card__icon,
.section--alt .contact-card__icon { background: #fff; border: 1px solid var(--brand-100); box-shadow: var(--shadow-xs); }
.section--alt .card .card__icon,
.section--alt .contact-card .contact-card__icon { background: var(--brand-50); border-color: transparent; box-shadow: none; }
.feature__text { margin: 0; color: var(--text-2); }
.section--dark .feature__icon { background: rgba(62, 164, 213, .14); color: var(--brand-300); }
.section--dark .feature__text { color: rgba(255, 255, 255, .72); }

/* Бенто-сетка */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.bento__item--wide { grid-column: span 2; }
.bento__item--full { grid-column: 1 / -1; }
.bento__item--tall { grid-row: span 2; }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__item--tall { grid-row: auto; }
  .bento__item--wide, .bento__item--full { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__item--wide, .bento__item--full { grid-column: auto; }
}

/* Медиа-панель с изображением продукта */
.media-panel {
  position: relative;
  display: grid;
  margin: 0;
  place-items: center;
  padding: clamp(20px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px 260px at 30% 20%, rgba(62, 164, 213, .22), transparent 70%),
    linear-gradient(160deg, var(--brand-50) 0%, #e8f3fa 100%);
  border: 1px solid var(--brand-100);
  overflow: hidden;
}
.media-panel img { width: 100%; max-width: 520px; mix-blend-mode: multiply; } /* фото на белом фоне сливается с панелью */
.media-panel--dark img { mix-blend-mode: normal; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .35)); }
.media-panel--dark {
  background:
    radial-gradient(420px 260px at 30% 20%, rgba(62, 164, 213, .3), transparent 70%),
    var(--ink-800);
  border-color: rgba(255, 255, 255, .08);
}

/* ---------- 13. Список с галочками ---------- */
.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist > li { position: relative; margin: 0; padding-left: 34px; color: var(--text-2); }
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6e9a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--brand-100);
}
.checklist--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.checklist--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 900px) { .checklist--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .checklist--cols-2, .checklist--cols-3 { grid-template-columns: minmax(0, 1fr); } }
.section--dark .checklist > li { color: rgba(255, 255, 255, .8); }
.section--dark .checklist > li::before { background-color: rgba(52, 211, 184, .14); border-color: rgba(52, 211, 184, .3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- 14. Статистика / факты ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; list-style: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stats > li { margin: 0; }
.stat { height: 100%; padding: clamp(20px, 2.5vw, 32px); background: #fff; }
.stat__value {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--brand-600);
}
.stat__label { display: block; color: var(--text-2); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.section--dark .stats { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.section--dark .stat { background: var(--ink-900); }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__label { color: rgba(255, 255, 255, .7); }

/* ---------- 15. Вопрос-ответ (аккордеон) ---------- */
.faq { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-item > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 60px 20px 24px;
  font-size: 1.075rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background-color: var(--brand-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6e9a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .25s var(--ease), background-color .2s;
}
.faq-item[open] > summary::after { transform: rotate(180deg); }
.faq-item > summary:hover { color: var(--brand-700); }
.faq-item__body { padding: 0 24px 22px; color: var(--text-2); }
.faq-item__body > :first-child { margin-top: 0; }
@media (max-width: 640px) {
  .faq-item > summary { padding: 16px 52px 16px 18px; font-size: 1rem; }
  .faq-item > summary::after { right: 14px; }
  .faq-item__body { padding: 0 18px 18px; }
}

/* ---------- 16. Сноски ---------- */
.fn-ref { font-size: .72em; line-height: 0; vertical-align: super; }
.fn-ref a { text-decoration: none; font-weight: 700; padding: 0 1px; }
.footnotes {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 20px 0 0 1.4em;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.55;
}
.footnotes li + li { margin-top: .6em; }
.footnotes li:target { color: var(--gray-900); background: var(--brand-50); border-radius: 6px; }

/* ---------- 17. Видео ---------- */
.video-frame {
  max-width: 980px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.video-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--text-muted);
}
.video-frame__dots { display: flex; gap: 6px; margin-right: 8px; }
.video-frame__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.video-frame__dots span:nth-child(1) { background: #f87171; }
.video-frame__dots span:nth-child(2) { background: #fbbf24; }
.video-frame__dots span:nth-child(3) { background: #34d399; }
.section--dark .video-frame { background: var(--ink-800); border-color: rgba(255, 255, 255, .1); }
.section--dark .video-frame__bar { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(600px 300px at 70% 20%, rgba(62, 164, 213, .35), transparent 70%),
    linear-gradient(160deg, var(--ink-800), var(--ink-950));
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.video__logo { width: min(280px, 55%); opacity: .95; }
.video__play {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-600);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .12), 0 16px 40px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.video__play .icon { width: 30px; height: 30px; margin-left: 4px; }
.video__poster:hover .video__play { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(255, 255, 255, .16), 0 16px 40px rgba(0, 0, 0, .35); }
.video__label { font-weight: 600; font-size: 1rem; color: rgba(255, 255, 255, .9); }
.video__note { max-width: 980px; margin: 14px auto 0; font-size: .8125rem; color: var(--text-muted); text-align: center; }
.section--dark .video__note { color: rgba(255, 255, 255, .55); }
.section--dark .video__note a { color: var(--brand-300); }
@media (max-width: 640px) {
  .video__play { width: 60px; height: 60px; }
  .video__logo { display: none; }
}

/* ---------- 18. Логотипы клиентов ---------- */
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.logos > li { margin: 0; }
.logos img {
  height: 56px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  mix-blend-mode: multiply;
  transition: filter .3s, opacity .3s;
}
.logos img:hover { filter: none; opacity: 1; }
.logos__item--square img { height: 68px; }

/* ---------- 19. Отзывы ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.testimonial__mark { width: 36px; height: 36px; color: var(--brand-200); margin-bottom: 16px; }
.testimonial__text { margin: 0 0 24px; color: var(--gray-800); font-size: 1.0625rem; line-height: 1.6; }
.testimonial__text p { margin: 0; }
.testimonial__footer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.testimonial__author { font-style: normal; font-weight: 650; color: var(--gray-900); }
.rating { display: inline-flex; gap: 2px; color: #d97706; }
.rating .icon { width: 16px; height: 16px; }

/* ---------- 20. Призыв к действию ---------- */
.cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(126, 232, 213, .14), transparent 60%),
    linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
  box-shadow: var(--shadow-brand);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.cta__title { color: #fff; margin-bottom: .35em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.cta__text { margin: 0; max-width: 640px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta__actions { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .cta__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- 21. Шаги ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 750;
  box-shadow: var(--shadow-brand);
}
.steps__title { margin: 0 0 .4em; font-size: 1.1rem; }
.steps__text { margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 22. Выноски ---------- */
.callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--gray-800);
}
.callout > .icon { width: 24px; height: 24px; color: var(--brand-600); margin-top: 1px; }
.callout__title { margin: 0 0 .25em; font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.callout p { margin: 0 0 .5em; }
.callout p:last-child { margin: 0; }
.callout--warn { background: var(--warning-bg); border-color: #fde7b0; }
.callout--warn > .icon { color: var(--warning); }
.callout--success { background: var(--success-bg); border-color: #c9f1d8; }
.callout--success > .icon { color: var(--success); }

/* ---------- 23. Таблицы ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  -webkit-overflow-scrolling: touch;
}
.table { width: 100%; font-size: .9375rem; line-height: 1.5; }
.table caption { padding: 14px 18px; text-align: left; font-weight: 650; color: var(--gray-900); caption-side: top; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th {
  background: var(--gray-50);
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.35;
}
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover > * { background: var(--brand-50); }
.table td strong { color: var(--gray-900); }
.table .nowrap { white-space: nowrap; }

@media (max-width: 760px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack th { display: block; width: 100%; }
  .table--stack tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td, .table--stack tbody th { border: 0; padding: 8px 18px; }
  .table--stack td[data-label]::before, .table--stack tbody th[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .table--stack tbody tr:hover > * { background: transparent; }
  .prose .table--stack td, .prose .table--stack tbody th { border: 0; padding: 8px 18px; }
  .prose .table--stack tr { border-bottom: 1px solid var(--line); }
  .prose .table--stack tbody tr:last-child { border-bottom: 0; }
}

.hash {
  display: inline;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--gray-50);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--gray-800);
  word-break: break-all;
}
.hash-cell { display: flex; align-items: flex-start; gap: 8px; }
.copy-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--gray-600);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.copy-btn:hover { color: var(--brand-700); border-color: var(--brand-200); background: var(--brand-50); }
.copy-btn .icon { width: 15px; height: 15px; }
.copy-btn.is-copied { color: var(--success); border-color: #bbe8cb; background: var(--success-bg); }

/* ---------- 24. Документы ---------- */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.doc-list > li { margin: 0; }
@media (max-width: 760px) { .doc-list { grid-template-columns: minmax(0, 1fr); } }
.doc-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.doc-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.doc-card__type {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 64px;
  border-radius: 10px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.doc-card__type .icon { position: absolute; top: 9px; width: 20px; height: 20px; opacity: .8; }
.doc-card__type span { position: absolute; bottom: 9px; }
.doc-card__type--pdf { background: #fff1f1; border-color: #ffd9d9; color: #c0392b; }
.doc-card__type--img { background: #f1f7ff; border-color: #d6e6ff; color: #2c5fb3; }
.doc-card__title { display: block; margin: 0 0 4px; font-weight: 650; color: var(--gray-900); line-height: 1.35; }
.doc-card__meta { display: block; font-size: .8125rem; color: var(--text-muted); }
.doc-card__action {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--brand-600);
  transition: background-color .2s, color .2s;
}
.doc-card:hover .doc-card__action { background: var(--brand-600); color: #fff; }
@media (max-width: 420px) {
  .doc-card { grid-template-columns: 48px minmax(0, 1fr); }
  .doc-card__type { width: 48px; height: 56px; }
  .doc-card__action { display: none; }
}

/* ---------- 25. Контакты и реквизиты ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
}
.contact-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); }
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card__label { margin: 0 0 4px; font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.contact-card__value { margin: 0; font-size: 1.075rem; font-weight: 650; color: var(--gray-900); overflow-wrap: anywhere; }
.contact-card__value a { color: inherit; text-decoration: none; }
.contact-card__value a:hover { color: var(--brand-700); text-decoration: underline; }
.contact-card__note { margin: 6px 0 0; font-size: .875rem; color: var(--text-muted); }

.dl { display: grid; grid-template-columns: minmax(160px, max-content) minmax(0, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.dl dt, .dl dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--text-muted); font-size: .9375rem; background: var(--gray-50); }
.dl dd { color: var(--gray-900); font-weight: 520; overflow-wrap: anywhere; }
.dl dt:nth-last-of-type(1), .dl dd:nth-last-of-type(1) { border-bottom: 0; }
@media (max-width: 640px) {
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { padding-bottom: 4px; border-bottom: 0; background: transparent; font-size: .8125rem; }
  .dl dd { padding-top: 0; }
}

/* ---------- 26. Юридические страницы / «проза» ---------- */
.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 1023px) { .legal { grid-template-columns: minmax(0, 1fr); } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: .9rem;
}
.toc__title { margin: 0 0 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--gray-700);
  text-decoration: none;
  line-height: 1.4;
  transition: background-color .2s, color .2s;
}
.toc a:hover { background: #fff; color: var(--brand-700); }
.toc a.is-active { background: #fff; color: var(--brand-700); font-weight: 620; box-shadow: var(--shadow-xs); }
@media (max-width: 1023px) {
  .toc { position: static; max-height: none; }
}

.prose { max-width: 780px; color: var(--gray-800); font-size: 1.0125rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .7em; font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin: 1.8em 0 .6em; font-size: 1.15rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand-600); }
.prose a { overflow-wrap: anywhere; }
.prose table { width: 100%; margin: 1.2em 0 1.6em; font-size: .9375rem; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--gray-50); color: var(--text-muted); font-size: .8125rem; font-weight: 650; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.prose .table-wrap table { margin: 0; border: 0; border-radius: 0; }
.prose .clause { display: inline-block; min-width: 2.4em; font-weight: 650; color: var(--gray-900); }
.prose .callout { margin: 1.4em 0; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; color: var(--text-muted); font-size: .9375rem; }
.doc-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 27. Формы ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field__label { font-size: .9375rem; font-weight: 600; color: var(--gray-800); }
.field__label .req { color: var(--danger); margin-left: 2px; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #8391a5;
  border-radius: 12px;
  background: #fff;
  color: var(--gray-900);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: var(--gray-500); }
.field__input:hover { border-color: var(--gray-600); }
.field__input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(26, 135, 188, .16); }
textarea.field__input { min-height: 112px; resize: vertical; }
.field__hint { font-size: .8125rem; color: var(--text-muted); }
.field__error { display: none; font-size: .8125rem; color: var(--danger); font-weight: 520; }
.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.field.is-invalid .field__error { display: block; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .875rem; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-600); cursor: pointer; }
.check a { font-weight: 560; }
.field.is-invalid .check { color: var(--danger); }

.form__note { margin: 0; font-size: .8125rem; color: var(--text-muted); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form__actions .btn { flex: 1 1 auto; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card__title { margin: 0 0 .35em; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.form-card__lead { margin: 0 0 24px; color: var(--text-2); }

/* ---------- 28. Модальные окна ---------- */
.modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--text);
  box-shadow: 0 40px 80px -20px rgba(5, 15, 26, .45);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(5, 15, 26, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .28s var(--ease); }
.modal[open]::backdrop { animation: fade-in .28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 12px 28px;
  background: #fff;
}
.modal__title { margin: 0; font-size: 1.35rem; }
.modal__subtitle { margin: 6px 0 0; color: var(--text-2); font-size: .9375rem; }
.modal__close { margin-left: auto; margin-top: -4px; margin-right: -8px; }
.modal__body { padding: 12px 28px 28px; }
@media (max-width: 480px) {
  .modal__header { padding: 20px 16px 8px 20px; }
  .modal__body { padding: 8px 20px 24px; }
}

/* ---------- 29. Уведомления ---------- */
.toast-region {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 16px;
  z-index: 300;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: .9375rem;
  color: var(--gray-800);
  pointer-events: auto;
  animation: toast-in .3s var(--ease);
}
.toast > .icon { width: 22px; height: 22px; }
.toast--success > .icon { color: var(--success); }
.toast--error > .icon { color: var(--danger); }
.toast--info > .icon { color: var(--brand-600); }
.toast__close { width: 28px; height: 28px; margin: -4px -4px 0 0; }
.toast__close .icon { width: 16px; height: 16px; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .toast-region { left: 16px; right: 16px; width: auto; } }

/* ---------- 30. Cookie-баннер ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 250;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -16px rgba(5, 15, 26, .35);
  animation: toast-in .35s var(--ease);
}
.cookie-banner__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cookie-banner__head .icon { width: 24px; height: 24px; color: var(--brand-600); }
.cookie-banner__title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.cookie-banner__text { margin: 0 0 16px; font-size: .8125rem; line-height: 1.5; color: var(--text-2); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .btn { flex: 1 1 auto; }
@media (max-width: 480px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 16px; }
  .cookie-banner__text { font-size: .78rem; margin-bottom: 12px; }
  .cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cookie-banner__actions .btn--ghost { grid-column: 1 / -1; min-height: 32px; }
}

.cookie-options { display: grid; gap: 12px; margin: 8px 0 20px; }
.cookie-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.cookie-option__title { margin: 0 0 4px; font-size: 1rem; font-weight: 650; color: var(--gray-900); }
.cookie-option__text { margin: 0; font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.cookie-option__always { font-size: .8125rem; font-weight: 650; color: var(--success); white-space: nowrap; padding-top: 2px; }

.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--gray-500);
  transition: background-color .2s;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 27, 42, .3);
  transition: transform .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--brand-600); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--brand-600); outline-offset: 2px; }
.switch input:disabled + .switch__track { opacity: .6; }

/* ---------- 31. Подвал ---------- */
.site-footer {
  margin-top: auto;
  padding: clamp(56px, 7vw, 88px) 0 28px;
  background:
    radial-gradient(800px 360px at 100% 0%, rgba(62, 164, 213, .12), transparent 60%),
    var(--ink-950);
  color: rgba(255, 255, 255, .64);
  font-size: .9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 1023px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__brand img { height: 32px; width: auto; margin-bottom: 18px; }
.footer__about { margin: 0 0 18px; max-width: 360px; line-height: 1.6; }
.footer__title { margin: 0 0 16px; font-size: .8125rem; font-weight: 700; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer__links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__links li { margin: 0; }
.footer__links a, .footer__links button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .72);
  font-size: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.footer__links a:hover, .footer__links button:hover { color: #fff; }
.footer__links .icon { width: 16px; height: 16px; color: var(--brand-300); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .5);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer__legal li { margin: 0; }
.footer__legal a, .footer__legal button {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .6);
  font-size: inherit;
  text-decoration: none;
  cursor: pointer;
}
.footer__legal a:hover, .footer__legal button:hover { color: #fff; text-decoration: underline; }
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  font-size: .8125rem;
  text-decoration: none;
}
.footer__badge .icon { color: var(--accent-300); width: 18px; height: 18px; }
a.footer__badge:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }

/* ---------- 32. Страница 404 ---------- */
.error-page { padding: clamp(64px, 12vw, 140px) 0; text-align: center; }
.error-page__code {
  margin: 0 0 8px;
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.06em;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-400) 60%, var(--accent-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}
.error-page p:not(.error-page__code) { max-width: 520px; margin-inline: auto; color: var(--text-2); }

/* ---------- 33. Появление при прокрутке ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { --reveal-delay: 1; }
[data-reveal-delay="2"] { --reveal-delay: 2; }
[data-reveal-delay="3"] { --reveal-delay: 3; }
[data-reveal-delay="4"] { --reveal-delay: 4; }
[data-reveal-delay="5"] { --reveal-delay: 5; }
[data-reveal-delay="6"] { --reveal-delay: 6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 34. Утилиты ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: .875rem; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }
.mt-5 { margin-top: 48px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mx-auto { margin-inline: auto; }
.max-w-prose { max-width: 720px; }

/* ---------- 35. Печать ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .toast-region, .toc, .cta, .modal, .skip-link, .nav-toggle { display: none !important; }
  body { color: #000; background: #fff; }
  .page-hero { background: none; border: 0; padding: 0 0 16px; }
  .page-hero::before { display: none; }
  .legal { display: block; }
  .prose { max-width: none; font-size: 11pt; }
  a { color: #000; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
