/* ==========================================================================
   AI Real — дизайн-система (v2, 2026-09)
   Фирменный синий #2563EB, градиент бренда: #2563EB → #06B6D4 → #8B5CF6
   Темы: data-theme="light|dark" на <html>, дефолт — системная (inline-скрипт)
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --accent: #5A6BE6;
  --accent-2: #22D3EE;
  --accent-3: #6630D8;
  --accent-strong: #4856D6;
  --grad-brand: linear-gradient(135deg, #7589F9 0%, #6630D8 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(117,137,249,.16), rgba(102,48,216,.14));

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --header-h: 68px;

  --ok: #16a34a;
  --err: #dc2626;
}

:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --bg-elev: #ffffff;
  --bg-hero: radial-gradient(1200px 600px at 50% -10%, #16204a 0%, #0b1226 55%, #080e1e 100%);
  --text: #0e1526;
  --text-mid: rgba(14, 21, 38, .68);
  --text-low: rgba(14, 21, 38, .58);
  --border: rgba(14, 21, 38, .10);
  --border-strong: rgba(14, 21, 38, .18);
  --card-shadow: 0 1px 2px rgba(14,21,38,.05), 0 8px 28px -12px rgba(14,21,38,.12);
  --card-shadow-hover: 0 2px 6px rgba(14,21,38,.07), 0 18px 44px -14px rgba(37,99,235,.25);
  --header-bg: rgba(255, 255, 255, .78);
  --input-bg: #fff;
  --hero-text: #f4f7ff;
  --hero-text-mid: rgba(226, 234, 255, .78);
  --code-bg: #eef2fb;
  --accent-on-dark: #93A5FF;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b16;
  --bg-soft: #0b1122;
  --bg-elev: #101830;
  --bg-hero: radial-gradient(1200px 600px at 50% -10%, #16204a 0%, #0b1226 55%, #080e1e 100%);
  --text: #eef2ff;
  --text-mid: rgba(226, 234, 255, .70);
  --text-low: rgba(226, 234, 255, .55);
  --border: rgba(226, 234, 255, .10);
  --border-strong: rgba(226, 234, 255, .20);
  --card-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.5);
  --card-shadow-hover: 0 2px 8px rgba(0,0,0,.4), 0 20px 48px -14px rgba(37,99,235,.35);
  --header-bg: rgba(7, 11, 22, .72);
  --input-bg: rgba(255,255,255,.05);
  --hero-text: #f4f7ff;
  --hero-text-mid: rgba(226, 234, 255, .78);
  --code-bg: #131b33;
  --accent-on-dark: #93A5FF;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
[data-theme="dark"] a { color: var(--accent-on-dark); }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
code, kbd { font-family: var(--font-mono); font-size: .92em; background: var(--code-bg); border-radius: 6px; padding: .1em .4em; }
::selection { background: rgba(37,99,235,.25); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
[data-theme="dark"] .eyebrow { color: var(--accent-on-dark); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-mid); margin: 0; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-pill);
  font-weight: 650; font-size: 1rem; line-height: 1.2; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(37,99,235,.55); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
[data-theme="dark"] .btn--ghost:hover { color: var(--accent-on-dark); }
.btn--white { background: #fff; color: #0e1526; }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(255,255,255,.35); }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; }
.btn--sm { padding: 9px 20px; font-size: .92rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.header__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.header__logo:hover { text-decoration: none; }
.header__logo svg { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a.nav__link {
  color: var(--text-mid); font-weight: 550; padding: 8px 13px; border-radius: 10px; font-size: .97rem;
}
.nav a.nav__link:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a.nav__link[aria-current="page"] { color: var(--accent); }
[data-theme="dark"] .nav a.nav__link[aria-current="page"] { color: var(--accent-on-dark); }

.nav__item { position: relative; }
.nav__btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  color: var(--text-mid); font-weight: 550; padding: 8px 13px; border-radius: 10px; font-size: .97rem; font-family: inherit;
}
.nav__btn:hover { color: var(--text); background: var(--bg-soft); }
.nav__btn .chev { transition: transform .18s ease; }
.nav__item:hover .nav__btn .chev, .nav__item:focus-within .nav__btn .chev, .nav__item.open .nav__btn .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); min-width: 320px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-m);
  box-shadow: var(--card-shadow-hover); padding: 10px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown, .nav__item.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item.dismissed .dropdown { opacity: 0; visibility: hidden; }
.nav__item.dismissed .nav__btn .chev { transform: none; }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--text);
}
.dropdown a:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown .dd__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-brand-soft); }
.dropdown .dd__icon svg { width: 18px; height: 18px; }
.dropdown .dd__title { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.dropdown .dd__desc { color: var(--text-low); font-size: .83rem; line-height: 1.35; }
.dropdown .dd__all { margin-top: 6px; border-top: 1px solid var(--border); padding-top: 6px; }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--text-mid);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: transparent; cursor: pointer; place-items: center; color: var(--text); }
.burger svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 20px 24px 40px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu details { border-bottom: 1px solid var(--border); }
.mobile-menu summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 650; cursor: pointer; color: var(--text); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .mm__links { padding: 0 4px 14px; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 10px 4px; color: var(--text-mid); font-weight: 550; }
.mobile-menu a:hover { color: var(--accent); text-decoration: none; }
.mobile-menu > a { font-weight: 650; color: var(--text); }
.mobile-menu .btn { width: 100%; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--hero-text);
  background: var(--bg-hero);
  padding: calc(var(--header-h) + 84px) 0 96px; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -35% -10%; height: 60%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(6,182,212,.22), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { color: var(--hero-text); margin-bottom: 20px; }
.hero .lead { color: var(--hero-text-mid); font-size: 1.22rem; max-width: 680px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__trust { margin-top: 18px; font-size: .9rem; color: var(--hero-text-mid); opacity: .8; }
.hero__shot {
  position: relative; z-index: 1; margin: 64px auto 0; max-width: 980px;
  border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 40px 90px -30px rgba(2, 8, 30, .8);
  background: #0d1526;
}
.hero__shot img { display: block; width: 100%; }
.shot-frame { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--card-shadow); background: var(--bg-elev); }
.shot-frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.shot-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.shot-frame img { display: block; width: 100%; }

/* ---------- Сетки и карточки ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 28px; box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); border-color: rgba(37,99,235,.35); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-mid); margin: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-brand-soft); margin-bottom: 18px; color: var(--accent);
}
[data-theme="dark"] .card__icon { color: var(--accent-on-dark); }
.card__icon svg { width: 23px; height: 23px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; }
.card__link svg { width: 16px; height: 16px; transition: transform .15s; }
.card--hover:hover .card__link svg { transform: translateX(3px); }
.card--link { color: var(--text); display: block; }
.card--link:hover { text-decoration: none; }

/* Продукт-карточка (каталог) */
.product-card { display: flex; flex-direction: column; }
.product-card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.product-card__logo { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden; }
.product-card__logo img, .product-card__logo svg { width: 100%; height: 100%; }
.product-card__name { font-size: 1.2rem; font-weight: 750; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: var(--radius-pill); vertical-align: middle;
  background: var(--grad-brand-soft); color: var(--accent); border: 1px solid rgba(37,99,235,.25);
}
[data-theme="dark"] .badge { color: var(--accent-on-dark); }
.badge--ok { color: var(--ok); border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); }

/* Featured-продукт (Сенсим) */
.featured {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  border-radius: var(--radius-l); padding: 44px;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(139,92,246,.08)), var(--bg-elev);
  border: 1px solid var(--border);
}
.featured h3 { font-size: 1.7rem; }
.featured .shot-frame { box-shadow: var(--card-shadow-hover); }
.featured__list { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.featured__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-mid); }
.featured__list svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--accent); }
[data-theme="dark"] .featured__list svg { color: var(--accent-on-dark); }

/* ---------- Статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 16px; }
.stat__num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--text-mid); font-size: .95rem; margin-top: 6px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius-l); border: 1px solid var(--border); background: var(--bg-elev); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: .9rem; font-weight: 800; color: var(--accent); letter-spacing: .1em; margin-bottom: 12px;
}
[data-theme="dark"] .step::before { color: var(--accent-on-dark); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-mid); font-size: .95rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg-elev); margin-bottom: 12px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 650; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border-strong); transition: transform .2s, background .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq .faq__body { padding: 0 22px 20px; color: var(--text-mid); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- CTA-полоса ---------- */
.cta-band {
  border-radius: var(--radius-l); padding: 64px 48px; text-align: center; color: #fff;
  background: radial-gradient(900px 400px at 50% -20%, #2b4acb 0%, #131f4d 60%, #0c1430 100%);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(226,234,255,.8); margin-inline: auto; }

/* ---------- Форма заявки ---------- */
.lead-form { max-width: 620px; margin: 0 auto; text-align: left; }
.lead-form .fld { margin-bottom: 18px; }
.fld__optional { font-size: .82em; font-weight: 400; opacity: .75; }
#lead-form-wrap { scroll-margin-top: 32px; }
.lead-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.lead-form .req { color: var(--err); }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form textarea, .lead-form select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-s); border: 1.5px solid var(--border-strong);
  background: var(--input-bg); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.18);
}
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form .fld--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fld__err { display: none; color: var(--err); font-size: .85rem; margin-top: 6px; }
.fld.invalid .fld__err { display: block; }
.fld.invalid input, .fld.invalid textarea { border-color: var(--err); }
.lead-form .agree { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-mid); }
.agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--h-action); flex: none; }
.form-note { font-size: .85rem; color: var(--text-low); margin-top: 14px; text-align: center; }
.form-ok { display: none; text-align: center; padding: 40px 20px; }
.form-ok h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-ok p { color: var(--text-mid); }
.lead-form.sent { display: none; }
.lead-form.sent + .form-ok, .form-ok.shown { display: block; }
.form-err-global { display: none; color: var(--err); font-weight: 600; margin: 10px 0; }
.form-err-global.shown { display: block; }

/* Форма на тёмной CTA-полосе — карточка */
.cta-band .lead-form {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 30px; border-radius: var(--radius-l); backdrop-filter: blur(6px);
}
.cta-band .lead-form input, .cta-band .lead-form textarea {
  background: rgba(255,255,255,.92); color: #0e1526; border-color: transparent;
}
.cta-band .lead-form label { color: rgba(255,255,255,.92); }
.cta-band .agree { color: rgba(226,234,255,.75); }
.cta-band .agree a { color: #9ec1ff; }
.cta-band .form-note { color: rgba(226,234,255,.6); }
.cta-band .form-ok h3, .cta-band .form-ok p { color: #fff; }

/* ---------- Блог ---------- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.blog-filters a, .blog-filters button {
  padding: 8px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong);
  color: var(--text-mid); font-weight: 600; font-size: .9rem; background: transparent; cursor: pointer; font-family: inherit;
}
.blog-filters a:hover, .blog-filters button:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.blog-filters .active { background: var(--accent); border-color: var(--accent); color: #fff; }
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__meta { display: flex; gap: 10px; align-items: center; font-size: .83rem; color: var(--text-low); margin-bottom: 12px; }
.post-card__title { font-size: 1.2rem; margin-bottom: 8px; }
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); text-decoration: none; }
.post-card__excerpt { color: var(--text-mid); font-size: .95rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: .78rem; color: var(--text-low); border: 1px solid var(--border); padding: 3px 10px; border-radius: var(--radius-pill); }

/* Статья */
.article { max-width: 760px; margin: 0 auto; }
.article__head { margin-bottom: 36px; }
.article__meta { display: flex; gap: 12px; align-items: center; color: var(--text-low); font-size: .9rem; margin-bottom: 16px; flex-wrap: wrap; }
.article__body h2 { margin-top: 1.6em; }
.article__body h3 { margin-top: 1.4em; }
.article__body p, .article__body li { color: var(--text-mid); }
.article__body p:has(> strong:first-child:last-child) { color: var(--text); }
.article__body ul li, .article__body ol li { margin-bottom: 6px; }
.article__body blockquote {
  margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text-mid); font-style: italic;
}
.article__body img { border-radius: var(--radius-m); }
.article__body a { text-decoration: underline; }
.breadcrumbs { font-size: .88rem; color: var(--text-low); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-low); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Технологии ---------- */
.tech-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: var(--bg-elev); font-weight: 600; font-size: .95rem; color: var(--text-mid);
}
.tech-chip svg { width: 17px; height: 17px; color: var(--accent); }
[data-theme="dark"] .tech-chip svg { color: var(--accent-on-dark); }

/* ---------- Цитата ---------- */
.quote-band { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-band blockquote { font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.45; margin: 0 0 18px; letter-spacing: -.01em; }
.quote-band cite { color: var(--text-low); font-style: normal; }

/* ---------- Подвал ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 64px 0 36px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; margin-bottom: 44px; }
.footer__brand p { color: var(--text-mid); font-size: .92rem; max-width: 260px; }
.footer__title { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mid); margin: 0 0 16px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-mid); font-size: .95rem; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mid); font-size: .86rem; }
.footer__bottom a { color: var(--text-mid); }
.footer__bottom a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-mid); }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__social svg { width: 17px; height: 17px; }

/* ---------- Поднавигация продукта (как у JetBrains) ---------- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.subnav__inner { display: flex; align-items: center; gap: 22px; height: 56px; }
.subnav__name { font-weight: 750; display: flex; align-items: center; gap: 10px; }
.subnav__name img, .subnav__name svg { width: 26px; height: 26px; border-radius: 7px; }
.subnav nav { display: flex; gap: 4px; margin-left: auto; }
.subnav nav a { padding: 7px 12px; border-radius: 9px; color: var(--text-mid); font-weight: 550; font-size: .93rem; }
.subnav nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

/* ---------- Reveal-анимации ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Админка ---------- */
.admin-shell { min-height: 100vh; background: var(--bg-soft); }
.admin-login { max-width: 400px; margin: 0 auto; padding-top: 12vh; }
.admin-topbar { background: var(--bg-elev); border-bottom: 1px solid var(--border); padding: 14px 0; }
.admin-topbar .container { display: flex; align-items: center; gap: 18px; }
.admin-topbar .spacer { margin-left: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.admin-table th, .admin-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
.admin-table th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-low); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-flash { padding: 13px 18px; border-radius: var(--radius-s); margin-bottom: 18px; border: 1px solid; }
.admin-flash--ok { background: rgba(22,163,74,.09); border-color: rgba(22,163,74,.4); color: var(--ok); }
.admin-flash--err { background: rgba(220,38,38,.07); border-color: rgba(220,38,38,.4); color: var(--err); }
.admin-edit-grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.admin-edit-grid .card { padding: 22px; }
.admin-edit-grid label { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 6px; }
.admin-edit-grid .fld { margin-bottom: 16px; }
.admin-edit-grid input[type="text"], .admin-edit-grid input[type="datetime-local"], .admin-edit-grid textarea, .admin-edit-grid select {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-s); border: 1.5px solid var(--border-strong);
  background: var(--input-bg); color: var(--text); font: inherit;
}
.admin-edit-grid textarea { font-family: var(--font-mono); font-size: .88rem; min-height: 380px; }
.help-text { font-size: .82rem; color: var(--text-low); margin-top: 6px; }

/* ---------- Юр. страницы ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: 1.7em; font-size: 1.35rem; }
.legal p, .legal li { color: var(--text-mid); }
.legal .placeholder {
  background: rgba(139,92,246,.10); border: 1px dashed rgba(139,92,246,.45);
  padding: 2px 8px; border-radius: 6px; font-size: .92em;
}

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 140px 0 120px; }
.err-page .err-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; letter-spacing: -.04em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .featured { grid-template-columns: 1fr; padding: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .admin-edit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 860px) {
  .subnav__inner { gap: 12px; }
  .subnav nav { margin-left: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .subnav nav::-webkit-scrollbar { display: none; }
  .subnav__name { flex: none; }
}
@media (max-width: 640px) {
  .subnav__name span:last-child { display: none; }

  .section { padding: 60px 0; }
  .grid--2, .grid--3, .grid--4, .stats, .steps { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--header-h) + 52px) 0 64px; }
  .cta-band { padding: 44px 22px; }
  .cta-band .lead-form { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ==========================================================================
   ГЛАВНАЯ — редизайн 2026-10 (референс-развёртка владельца)
   Гамма: белая/тёмная темы + фиолетовый; navy-блоки, indigo-кнопки.
   Шрифт Onest (self-hosted, OFL).
   ========================================================================== */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-400-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/onest-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-500-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/onest-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/onest-700-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/onest-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/onest-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/onest-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/onest-800-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/onest-800-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/onest-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/onest-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены блока (светлая/тёмная темы) ---------- */
body.framed {
  --h-frame: #EFF1F8;
  --h-page: #FFFFFF;
  --h-band: #F5F7FC;
  --h-soft: #F6F8FB;
  --h-card: #F1F4FD;
  --h-card2: #FFFFFF;
  --h-ink: #14182B;
  --h-ink2: #3E4356;
  --h-mut: #5B6174;
  --h-line: rgba(20, 24, 43, .09);
  --h-navy: #0A101E;
  --h-navy2: #10172A;
  --h-indigo: #7589F9;
  --h-action: #5863CE;
  --h-indigo-ink: #5A6BE6;
  --h-purple: #6630D8;
  --h-ib: #DCE0FD;
  --h-ib-ink: #1A2140;
  --h-ib-link: #4A5BBD;
  background: var(--h-frame);
  color: var(--h-ink);
}
[data-theme="dark"] body.framed {
  --h-frame: #060A15;
  --h-page: #0B1124;
  --h-band: #101A38;
  --h-soft: #0D1530;
  --h-card: #151F45;
  --h-card2: #131C3E;
  --h-ink: #EEF1FF;
  --h-ink2: #C4CDF0;
  --h-mut: rgba(205, 214, 245, .64);
  --h-line: rgba(255, 255, 255, .09);
  --h-ib: #1B2653;
  --h-ib-ink: #EEF1FF;
  --h-ib-link: #A9B7FF;
}

/* Каркас-«открытка» вокруг всей развёртки */
body.framed .pagecard {
  background: var(--h-page);
  position: relative;
  max-width: 1468px;
  margin: 14px auto;
  border-radius: 30px;
  box-shadow: 0 2px 30px rgba(20, 24, 43, .07);
}
/* Нижние скругления каркаса — у подвала (overflow:hidden на каркасе
   сломал бы position:sticky внутренних элементов, напр. .psubnav) */
body.framed .footer2 { border-radius: 0 0 30px 30px; }
body.framed main h1, body.framed main h2, body.framed main h3 { color: var(--h-ink); }

.hcont { max-width: 1400px; margin: 0 auto; padding: 0 76px; }
.hsec { padding: 56px 0; }
.hsec--soft { background: var(--h-soft); padding: 76px 0; }
.hsec--airy { padding: 68px 0; }
#faq.hsec--airy { padding: 76px 0; }
.hsec--last { padding-bottom: 56px; }
.ctaband--final { padding-top: 220px; padding-bottom: 220px; }
.hsec h2 { text-wrap: balance; font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 36px; }
.hhead h2 { margin-bottom: 14px; }
.hsub { color: var(--h-mut); font-size: 19px; margin: 0 0 36px; }

/* ---------- Кнопки/ссылки/пилюли/иконки ---------- */
.hbtn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px; border: 0; border-radius: 13px; font-weight: 650; font-size: 16.5px;
  line-height: 1.2; text-decoration: none !important; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.hbtn svg { width: 19px; height: 19px; flex: none; }
.hbtn.hbtn--indigo, .hbtn.hbtn--dark { color: #fff; }
.hbtn--indigo { background: var(--h-action); color: #fff; box-shadow: 0 12px 30px -10px rgba(117, 137, 249, .55); }
.hbtn--indigo:hover { background: #4D55BB; transform: translateY(-1px); }
.hbtn--dark { background: var(--h-navy2); color: #fff; box-shadow: 0 12px 26px -12px rgba(10, 16, 30, .5); }
.hbtn--dark:hover { background: #1A2338; transform: translateY(-1px); }
.hlink {
  display: inline-flex; align-items: center; gap: 8px; color: var(--h-indigo-ink);
  font-weight: 700; font-size: 16.5px;
}
.hlink svg { width: 18px; height: 18px; transition: transform .15s; }
.hlink:hover { text-decoration: none; }
.hlink:hover svg { transform: translateX(3px); }
.hpill {
  display: inline-block; background: rgba(117, 137, 249, .15); color: var(--h-indigo-ink);
  font-weight: 700; font-size: 14px; padding: 7px 17px; border-radius: 999px; white-space: nowrap;
}
.hpill--white { background: #fff; box-shadow: 0 2px 10px rgba(20, 24, 43, .06); }
[data-theme="dark"] .hpill--white { background: #232E5E; color: #C9D3FF; }
.hicon {
  width: 58px; height: 58px; border-radius: 15px; background: var(--h-card2); flex: none;
  display: grid; place-items: center; color: var(--h-indigo-ink);
  box-shadow: 0 2px 12px rgba(20, 24, 43, .06);
}
.hicon svg { width: 30px; height: 30px; }
.hicon--bare { background: transparent; box-shadow: none; width: 40px; height: 40px; }
.hicon--bare svg { width: 40px; height: 40px; }

/* ---------- Шапка поверх hero (только главная) ---------- */
body.framed .header { position: absolute; top: 26px; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.framed .header::after { content: ""; position: absolute; left: 102px; right: 102px; bottom: 0; height: 1px; background: rgba(233, 238, 255, .1); }
body.framed .header .container { max-width: none; padding: 0 102px; }
body.framed .nav__btn .chev { display: none; }
@media (max-width: 1180px) { body.framed .header .container { padding: 0 70px; } body.framed .header::after { left: 70px; right: 70px; } }
@media (max-width: 640px) { body.framed .header { top: 10px; } body.framed .header .container { padding: 0 32px; } body.framed .header::after { display: none; } }
body.framed .header__logo, body.framed .header__logo:hover { color: #fff; }
body.framed .nav a.nav__link, body.framed .nav__btn { color: rgba(224, 231, 255, .8); }
body.framed .nav a.nav__link:hover, body.framed .nav__btn:hover { color: #fff; background: rgba(255, 255, 255, .09); }
body.framed .nav a.nav__link[aria-current="page"] { color: #fff; }
body.framed .header .burger { color: #fff; border-color: rgba(255, 255, 255, .25); }
body.framed .header__cta {
  display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 12px;
  background: var(--h-action); color: #fff; font-weight: 650; font-size: 15px;
  box-shadow: 0 10px 26px -10px rgba(117, 137, 249, .6); transition: background .2s, transform .15s;
}
body.framed .header__cta:hover { background: #4D55BB; transform: translateY(-1px); text-decoration: none; }

/* ---------- HERO ---------- */
.hero-wrap { padding: 26px 26px 0; }
.hero2 {
  position: relative; overflow: hidden; border-radius: 26px;
  background:
    radial-gradient(900px 480px at 82% 108%, rgba(46, 62, 143, .5), transparent 62%),
    linear-gradient(165deg, #0D1428 0%, var(--h-navy) 48%, #0B1330 100%);
  min-height: min(760px, calc(100vh - 40px));
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 46px) 76px 70px;
}
.hero2__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; width: 100%; max-width: 1248px; margin: 0 auto; align-items: center; }
.hero2 h1 { text-wrap: balance; font-size: clamp(38px, 3.5vw, 48px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; color: #F5F7FF !important; margin-bottom: 26px; }
.hero2__sub { color: rgba(203, 212, 244, .74); font-size: 19px; line-height: 1.5; margin: 0 0 14px; max-width: 600px; }
.hero2__cta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 32px; }
.hero2__link { display: inline-flex; align-items: center; gap: 9px; color: #E8ECFF; font-weight: 600; font-size: 16.5px; }
.hero2__link svg { width: 18px; height: 18px; }
.hero2__link:hover { color: #fff; text-decoration: none; }
.hero2__art { position: relative; }
.hero-art { display: block; width: 100%; max-width: 520px; height: auto; margin-left: auto; }
.hero2__tagline { color: #B7C3FF; font-weight: 650; margin-bottom: 18px; }
.hero2__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 640px; }
.hero2__points li { position: relative; padding-left: 26px; color: rgba(203, 212, 244, .78); font-size: 17px; line-height: 1.45; }
.hero2__points li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--h-indigo); box-shadow: 0 0 0 4px rgba(117, 137, 249, .18);
}

/* ---------- Мини-карточки (доверие/ИБ) ---------- */
.minicards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.minicard { background: var(--h-card); border-radius: 18px; padding: 30px 30px; }
.minicard__top { font-size: 27px; font-weight: 800; letter-spacing: -.02em; color: var(--h-ink); line-height: 1.15; }
.minicard__bot { color: var(--h-mut); font-size: 17px; line-height: 1.45; margin-top: 10px; }

/* ---------- Консалтинг ---------- */
.hband { margin: 0 40px; background: var(--h-band); border-radius: 24px; padding: 52px 60px; }
.hband--pad { padding: 56px 60px 60px; }
.hband__text { color: var(--h-mut); font-size: 19px; line-height: 1.6; max-width: 1050px; margin: 0 0 22px; }
.consult { display: grid; grid-template-columns: 1.28fr .72fr; gap: 56px; align-items: start; }
.consult__head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.consult__label { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--h-ink); }
.consult h2 { font-size: 37px; margin-bottom: 22px; }
.consult p { color: var(--h-mut); font-size: 18px; line-height: 1.6; max-width: 640px; margin: 0 0 38px; }
.consult__list { display: grid; gap: 26px; padding-top: 8px; }
.consult__item { display: flex; gap: 20px; align-items: center; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--h-ink2); }

/* ---------- Задачи (2×2) ---------- */
.tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.taskcard { background: var(--h-card2); border: 1px solid var(--h-line); border-radius: 20px; padding: 36px 42px; box-shadow: 0 1px 3px rgba(20, 24, 43, .04); }
.taskcard h3 { font-size: 26px; margin: 20px 0 10px; }
.taskcard p { color: var(--h-mut); font-size: 17.5px; line-height: 1.55; margin: 0; }

/* ---------- Тёмная CTA-полоса ---------- */
.ctaband {
  position: relative; overflow: hidden; margin: 0 40px; border-radius: 24px;
  background:
    radial-gradient(760px 380px at 88% 120%, rgba(46, 62, 143, .55), transparent 60%),
    linear-gradient(120deg, #0D1428 0%, var(--h-navy) 55%, #0C1638 100%);
  padding: 54px 60px;
}
.ctaband__text { position: relative; z-index: 1; max-width: 660px; }
.ctaband h2 { color: #fff !important; margin-bottom: 16px; }
.ctaband p { color: rgba(203, 212, 244, .74); font-size: 18px; line-height: 1.55; margin: 0 0 30px; }
.band-waves { position: absolute; right: -30px; bottom: -20px; width: 52%; min-width: 400px; height: auto; pointer-events: none; opacity: .6; }

/* ---------- Продукты ---------- */
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.prodcard { background: var(--h-card); border-radius: 20px; padding: 42px 46px 46px; }
.prodcard__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.prodcard h3 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 12px; }
.prodcard p { color: var(--h-mut); font-size: 18px; line-height: 1.55; margin: 0 0 26px; }
.devline { margin-top: 28px; background: var(--h-band); border-radius: 20px; padding: 40px 46px; }
.devline p { font-size: 21px; font-weight: 600; color: var(--h-ink2); max-width: 620px; margin: 0 0 14px; }
.devline .hlink { display: flex; justify-content: center; font-size: 18px; }

/* ---------- Эффект (2×2) ---------- */
.effects { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.effectcard { background: var(--h-card2); border: 1px solid var(--h-line); border-radius: 18px; padding: 36px 38px; display: flex; gap: 24px; align-items: center; }
.effectcard__t { font-size: 23px; font-weight: 750; letter-spacing: -.01em; color: var(--h-ink); line-height: 1.25; }
.effectcard__d { color: var(--h-mut); font-size: 17px; line-height: 1.45; margin-top: 5px; }

/* ---------- Процесс ---------- */
.pline { position: relative; display: flex; justify-content: space-between; margin: 6px 30px 72px; }
.pline::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; margin-top: -1px; background: #D9DEF0; }
[data-theme="dark"] .pline::before { background: #2A3568; }
.pline i { width: 30px; height: 30px; border-radius: 50%; background: var(--h-purple); position: relative; z-index: 1; box-shadow: 0 0 0 6px rgba(102, 48, 216, .12); }
.psteps { display: grid; gap: 60px; }
.pstep { display: flex; gap: 28px; align-items: flex-start; }
.pstep__num {
  width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--h-indigo); color: #fff; font-size: 26px; font-weight: 800;
  box-shadow: 0 10px 24px -8px rgba(117, 137, 249, .6);
}
.pstep h3 { font-size: 25px; margin: 4px 0 10px; }
.pstep p { color: var(--h-mut); font-size: 18px; line-height: 1.55; margin: 0; max-width: 720px; }

/* ---------- Кейсы ---------- */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.casecard { background: var(--h-card2); border: 1px solid var(--h-line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(20, 24, 43, .04); }
.casecard__body { position: relative; z-index: 1; padding: 42px 46px 40px; background: var(--h-card2); }
.casecard__body::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, var(--h-card2) 0%, transparent 100%);
}
.casecard__body h3 { font-size: 28px; letter-spacing: -.02em; line-height: 1.25; margin: 20px 0 18px; }
.casecard__body hr { border: 0; border-top: 1px solid var(--h-line); margin: 0 0 18px; }
.casecard__body ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.casecard__body li { position: relative; color: var(--h-mut); font-size: 17px; line-height: 1.45; padding-left: 24px; }
.casecard__body li::before { content: "+"; position: absolute; left: 0; top: -1px; color: var(--h-indigo-ink); font-weight: 800; font-size: 18px; }
.casecard { position: relative; min-height: 780px; }
.casecard__media { position: absolute; inset: 0; line-height: 0; }
.casecard__media img, .casecard__media .case-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.casecard__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 40%, rgba(255,255,255,.72) 58%, rgba(255,255,255,.15) 80%, rgba(255,255,255,0) 100%); }
[data-theme="dark"] .casecard__scrim { background: linear-gradient(180deg, rgba(19,28,62,.97) 0%, rgba(19,28,62,.94) 40%, rgba(19,28,62,.7) 58%, rgba(19,28,62,.12) 80%, rgba(19,28,62,0) 100%); }

/* ---------- ИБ-полоса ---------- */
.ibband { margin: 32px 0 0; background: var(--h-ib); border-radius: 20px; padding: 42px 50px; display: flex; gap: 36px; align-items: center; }
.ibband__icon { width: 96px; height: 96px; flex: none; color: var(--h-ib-link); }
.ibband__icon svg { width: 100%; height: 100%; }
.ibband__text strong { display: block; max-width: 430px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--h-ib-ink); margin-bottom: 14px; line-height: 1.3; }
.ibband .hlink { color: var(--h-ib-link); }

/* ---------- Спецпредложение ---------- */
.offerband {
  position: relative; overflow: hidden; margin: 0 40px; border-radius: 24px;
  background:
    radial-gradient(700px 360px at 85% 115%, rgba(58, 46, 143, .5), transparent 60%),
    linear-gradient(120deg, #0D1428 0%, var(--h-navy) 55%, #121A42 100%);
  padding: 64px 64px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center;
}
.offerband__head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.offerband__label { color: #C9D3FF; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.offerband__pill { border: 1.5px solid rgba(139, 155, 247, .55); color: #B7C3FF; border-radius: 999px; padding: 9px 24px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.offerband h2 { color: #8FA1FF !important; font-size: 40px; margin-bottom: 18px; max-width: 560px; }
.offerband p { color: rgba(203, 212, 244, .74); font-size: 18px; line-height: 1.55; max-width: 520px; margin: 0 0 32px; }
.offerband__art { display: grid; place-items: center; }
.gift-art { width: 100%; max-width: 360px; height: auto; }

/* ---------- FAQ ---------- */
.faq2 { display: grid; gap: 14px; }
.faq2 details { background: var(--h-card2); border: 1px solid var(--h-line); border-radius: 16px; box-shadow: 0 2px 16px rgba(20, 24, 43, .05); }
.faq2 summary { list-style: none; cursor: pointer; padding: 24px 30px; font-size: 21px; font-weight: 700; color: var(--h-ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq2 summary::-webkit-details-marker { display: none; }
.chev2 { width: 13px; height: 13px; flex: none; border-right: 2.6px solid var(--h-ink2); border-bottom: 2.6px solid var(--h-ink2); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.faq2 details[open] .chev2 { transform: rotate(-135deg) translateY(-3px); }
.faq2__body { padding: 0 30px 20px; color: var(--h-mut); font-size: 16.5px; line-height: 1.6; }
.faq2__body p { margin: 0; }

/* ---------- Подвал (редизайн, все страницы) ---------- */
.footer2 { background: var(--h-page, var(--bg)); border-top: 1px solid var(--h-line, var(--border)); }
body:not(.framed) .footer2 { --h-page: var(--bg); --h-line: var(--border); --h-ink: var(--text); --h-ink2: var(--text-mid); --h-mut: var(--text-mid); --h-indigo-ink: var(--accent); }
.footer2__inner { max-width: 1400px; margin: 0 auto; padding: 90px 76px 70px; }
.footer2__grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 40px; }
.footer2__logo { display: inline-flex; align-items: center; gap: 12px; color: var(--h-ink); }
.footer2__logo:hover { text-decoration: none; }
.footer2__logo svg { height: 40px; width: auto; display: block; }
.footer2__tag { color: var(--h-ink2); font-size: 17px; font-weight: 600; line-height: 1.45; max-width: 300px; margin: 26px 0 30px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 46px; height: 46px; border-radius: 13px; background: rgba(117, 137, 249, .13); display: grid; place-items: center; color: var(--h-indigo-ink); transition: background .2s, transform .15s; }
.socials a:hover { background: rgba(117, 137, 249, .24); transform: translateY(-1px); }
.socials svg { width: 21px; height: 21px; }
.footer2 h4 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--h-ink); margin: 10px 0 24px; }
.footer2 ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px; }
.footer2 ul a { color: var(--h-mut); font-size: 16.5px; }
.footer2 ul a:hover { color: var(--h-indigo-ink); text-decoration: none; }
.footer2__bottom { border-top: 1px solid var(--h-line); margin-top: 56px; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--h-mut); font-size: 15px; }
.footer2__bottom a { color: var(--h-mut); }
.footer2__bottom a:hover { color: var(--h-indigo-ink); }
.footer2__legal { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.footer2__theme { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--h-line); background: transparent; color: var(--h-mut); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.footer2__theme:hover { color: var(--h-indigo-ink); border-color: var(--h-indigo-ink); }
.footer2__theme svg { width: 15px; height: 15px; }
[data-theme="light"] .footer2__theme .icon-sun { display: none; }
[data-theme="dark"] .footer2__theme .icon-moon { display: none; }

/* ---------- Адаптив главной ---------- */
@media (max-width: 1180px) {
  .hcont { padding: 0 44px; }
  .hero2 { padding: calc(var(--header-h) + 36px) 44px 56px; }
  .hband, .ctaband, .offerband { margin: 0 24px; padding-left: 44px; padding-right: 44px; }
  .footer2__inner { padding: 52px 44px 30px; }
  .minicards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .hero2__grid { grid-template-columns: 1fr; gap: 10px; }
  .hero2__art { max-width: 320px; margin: 0 auto; }
  .hero2 { min-height: 0; }
  .consult { grid-template-columns: 1fr; gap: 40px; }
  .prods, .effects { grid-template-columns: 1fr; }
  .offerband { grid-template-columns: 1fr; }
  .offerband__art { max-width: 300px; margin: 0 auto; }
  .footer2__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body.framed .pagecard { margin: 8px; border-radius: 20px; }
  body.framed .footer2 { border-radius: 0 0 20px 20px; }
  .hero-wrap { padding: 10px 10px 0; }
  .hero2 { border-radius: 18px; padding: calc(var(--header-h) + 26px) 22px 46px; }
  .hero2 h1 { text-wrap: wrap; font-size: 32px; line-height: 1.14; margin-bottom: 22px; }
  .hero2__art { max-width: 230px; }
  .hero2__sub { font-size: 16.5px; }
  .hero2__points li { font-size: 16px; padding-left: 22px; }
  .hero2__cta { gap: 18px; margin-top: 30px; }
  .hcont { padding: 0 20px; }
  .hsec { padding: 30px 0; }
  .hsec--soft { padding: 44px 0; }
  .hsec h2 { font-size: 28px; margin-bottom: 24px; }
  .hband, .ctaband, .offerband { margin: 0 12px; border-radius: 18px; padding: 36px 22px; }
  .consult h2 { font-size: 25px; }
  .minicards, .tasks, .effects, .prods, .cases { grid-template-columns: 1fr; }
  .effectcard { min-width: 0; padding: 28px 24px; gap: 16px; }
  .effectcard > div { min-width: 0; overflow-wrap: anywhere; }
  .effectcard__t { font-size: 21px; }
  .effectcard .hicon { width: 44px; height: 44px; }
  .taskcard { padding: 28px 24px; }
  .prodcard { min-width: 0; padding: 28px 24px; }
  .prodcard h3 { font-size: 26px; overflow-wrap: anywhere; }
  .prodcard p { min-height: 0; }
  .ctaband p, .offerband p { font-size: 16px; }
  .band-waves { width: 120%; min-width: 0; opacity: .4; }
  .pline { margin: 4px 8px 34px; }
  .pline i { width: 18px; height: 18px; }
  .psteps { gap: 30px; }
  .pstep { gap: 18px; }
  .pstep__num { width: 44px; height: 44px; font-size: 19px; }
  .ibband { flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 26px; }
  .ibband__icon { width: 60px; height: 60px; }
  .offerband h2 { font-size: 28px; }
  .casecard__img img, .casecard__img .case-art { height: 210px; }
  .footer2__inner { padding: 44px 22px 26px; }
  .footer2__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer2__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Логотип (шапка/подвал) ---------- */
.logomark { display: inline-flex; color: var(--text); }
.logomark svg { height: 30px; width: auto; display: block; }
.logowordmark { display: inline-flex; }
.logowordmark svg { width: 94px; height: auto; display: block; }
.header__logo .logowordmark svg { width: 94px; height: auto; }
.header__logo .logowordmark .wordmark-ai { color: #b0baf4; }
.logotext { font-size: 21px; letter-spacing: -.01em; }
.logo-ai { font-weight: 500; opacity: .68; }
.logo-real { font-weight: 800; }
body.framed .header .logomark { color: #E9EEFF; }
.footer2__logo .logomark { color: var(--h-ink); }
.footer2__logotext { font-size: 25px; font-weight: 800; letter-spacing: -.015em; color: var(--h-ink); }

/* Финальный CTA — увеличенная высота (после шортхенда .ctaband) */
.ctaband--final { padding-top: 150px; padding-bottom: 150px; }

/* Тусклый знак логотипа в финальном CTA */
.final-dim { position: absolute; right: -30px; bottom: -60px; width: 46%; height: auto; color: #8E9BD8; opacity: .12; pointer-events: none; }

/* Шапка на узких экранах: логотип в одну строку, компактная CTA */
@media (max-width: 640px) {
  .header__logo { white-space: nowrap; gap: 8px; }
  .header__logo .logotext { font-size: 17px; }
  .header__logo .logomark svg { height: 24px; }
  body.framed .header__cta { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
}

/* ==========================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — перенос дизайна главной (2026-10)
   Тёмный page-hero (.phero) под абсолютной шапкой + компоненты главной.
   Старые v2-классы (.section/.card/.hero/.cta-band…) оставлены для админки.
   ========================================================================== */

/* ---------- Page-hero внутренних страниц ---------- */
.phero {
  position: relative; overflow: hidden; border-radius: 26px;
  background:
    radial-gradient(900px 480px at 82% 108%, rgba(46, 62, 143, .5), transparent 62%),
    linear-gradient(165deg, #0D1428 0%, var(--h-navy) 48%, #0B1330 100%);
  padding: calc(var(--header-h) + 74px) 76px 84px;
}
.phero h1 { font-size: 42px; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: #F5F7FF !important; margin: 24px 0 20px; max-width: 920px; }
.phero__sub { color: rgba(203, 212, 244, .74); font-size: 19px; line-height: 1.55; max-width: 780px; margin: 0 0 12px; }
.phero__sub:last-of-type { margin-bottom: 0; }
.phero__cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 36px; }
.phero__trust { margin-top: 20px; font-size: 15px; color: rgba(203, 212, 244, .6); }
.phero__crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 15px; color: rgba(203, 212, 244, .55); margin-bottom: 6px; }
.phero__crumbs a { color: rgba(203, 212, 244, .78); }
.phero__crumbs a:hover { color: #fff; text-decoration: none; }
.phero__meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: rgba(203, 212, 244, .66); font-size: 15.5px; }
.phero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.phero__tags .tag { color: rgba(203, 212, 244, .72); border-color: rgba(255, 255, 255, .2); }
.phero__shot {
  margin: 56px auto 0; max-width: 1020px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 90px -30px rgba(2, 8, 30, .8); background: #0d1526;
}
.phero__shot img { display: block; width: 100%; }
.hpill--dark { background: rgba(255, 255, 255, .1); color: #B7C3FF; }

/* Кнопки: ghost на тёмном, линейная на светлом */
.hbtn--ghostlight { border: 1.5px solid rgba(255, 255, 255, .35); color: #E8ECFF; background: transparent; box-shadow: none; }
.hbtn--ghostlight:hover { border-color: #fff; transform: translateY(-1px); }
.hbtn--line { border: 1.5px solid var(--h-line); color: var(--h-ink); background: var(--h-card2); box-shadow: none; }
.hbtn--line:hover { border-color: var(--h-indigo); color: var(--h-indigo-ink); transform: translateY(-1px); }

/* Центрированные головы секций и CTA-ряды */
.hhead--center { text-align: center; }
.hhead--center .hsub { margin-inline: auto; max-width: 760px; }
.hsec__cta { text-align: center; margin-top: 44px; }
.hsec__cta .form-note { margin-top: 16px; }

/* ---------- Сетки и карточки внутренних страниц ---------- */
.hgrid { display: grid; gap: 26px; }
.hgrid--2 { grid-template-columns: repeat(2, 1fr); }
.hgrid--3 { grid-template-columns: repeat(3, 1fr); }
.hgrid--4 { grid-template-columns: repeat(4, 1fr); }
.hcard {
  background: var(--h-card2); border: 1px solid var(--h-line); border-radius: 20px;
  padding: 40px 38px; box-shadow: 0 1px 3px rgba(20, 24, 43, .04);
}
.hcard h3 { font-size: 22px; letter-spacing: -.01em; margin: 0 0 12px; }
.hcard p { color: var(--h-mut); font-size: 16.5px; line-height: 1.55; margin: 0 0 12px; }
.hcard p:last-child, .hcard .hcheck:last-child { margin-bottom: 0; }
.hcard .hicon, .hcard .hicon--bare { margin-bottom: 22px; }
.hcard--lav { background: var(--h-card); border-color: transparent; box-shadow: none; }
.hcard--hot { border-color: rgba(117, 137, 249, .65); box-shadow: 0 18px 44px -18px rgba(117, 137, 249, .45); }
a.hcard { display: block; color: var(--h-ink); transition: transform .18s ease, box-shadow .2s ease; }
a.hcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(20, 24, 43, .18); }
.jrow { display: flex; gap: 26px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* Чек-листы */
.hcheck { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.hcheck li { display: flex; gap: 12px; color: var(--h-ink2); font-size: 16.5px; line-height: 1.5; }
.hcheck svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--h-indigo-ink); }
.hcheck--cols { grid-template-columns: 1fr 1fr; column-gap: 34px; }

/* ---------- Featured-полоса (текст + медиа/карточка) ---------- */
.fband {
  margin: 0 40px; background: var(--h-band); border-radius: 24px;
  padding: 64px 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.fband h2 { font-size: 34px; margin-bottom: 18px; }
.fband h3 { font-size: 24px; margin-bottom: 14px; }
.fband p { color: var(--h-mut); font-size: 17.5px; line-height: 1.6; }
body.framed .shot-frame { border: 1px solid var(--h-line); background: var(--h-card2); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(20, 24, 43, .25); }
body.framed .shot-frame__bar { border-bottom: 1px solid var(--h-line); }
body.framed .shot-frame__bar i { background: #C9D2EA; }
[data-theme="dark"] body.framed .shot-frame__bar i { background: #2A3568; }

/* ---------- Поднавигация продукта ---------- */
.psubnav { position: sticky; top: 14px; z-index: 90; margin: 22px 40px 0; }
.psubnav__inner {
  display: flex; align-items: center; gap: 22px; background: var(--h-card2);
  border: 1px solid var(--h-line); border-radius: 16px; box-shadow: 0 10px 30px -12px rgba(20, 24, 43, .16);
  padding: 10px 22px;
}
.psubnav__name { font-weight: 800; font-size: 17px; color: var(--h-ink); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.psubnav__name img { width: 26px; height: 26px; border-radius: 7px; }
.psubnav nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.psubnav nav::-webkit-scrollbar { display: none; }
.psubnav nav a { padding: 8px 13px; border-radius: 10px; color: var(--h-mut); font-weight: 600; font-size: 15px; }
.psubnav nav a:hover { color: var(--h-ink); background: var(--h-band); text-decoration: none; }

/* ---------- Тарифы ---------- */
.price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--h-ink); margin: 8px 0 18px; }
.price small { font-size: 16px; font-weight: 500; color: var(--h-mut); }

/* ---------- Технологии (чипы) ---------- */
body.framed .tech-row { display: flex; flex-wrap: wrap; gap: 12px; }
body.framed .tech-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--h-line); background: var(--h-card2); font-weight: 600; font-size: 15.5px; color: var(--h-ink2);
}
body.framed .tech-chip svg { width: 18px; height: 18px; color: var(--h-indigo-ink); }

/* ---------- Форма: светлая карточка и тёмная полоса ---------- */
.fcard { background: var(--h-card); border-radius: 22px; padding: 46px 44px; }
.fcard h3 { font-size: 24px; margin-bottom: 8px; }
.fcard > p { color: var(--h-mut); font-size: 16px; margin-bottom: 24px; }
.fcard .lead-form { max-width: none; margin: 0; }
.ctaband .lead-form {
  position: relative; z-index: 1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  padding: 34px; border-radius: 20px; backdrop-filter: blur(6px); max-width: 660px; margin: 0 auto; text-align: left;
}
.ctaband .lead-form input, .ctaband .lead-form textarea { background: rgba(255, 255, 255, .94); color: #0e1526; border-color: transparent; }
.ctaband .lead-form label { color: rgba(255, 255, 255, .92); }
.ctaband .agree { color: rgba(226, 234, 255, .78); }
.ctaband .agree a { color: #A9B7FF; }
.ctaband .form-note { color: rgba(226, 234, 255, .62); }
.ctaband .form-ok { position: relative; z-index: 1; }
.ctaband .form-ok h3, .ctaband .form-ok p { color: #fff; }
.ctaband .form-ok a { color: #A9B7FF; }

/* ---------- Блог: фильтры и карточки ---------- */
body.framed .blog-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
body.framed .blog-filters button {
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--h-line);
  background: var(--h-card2); color: var(--h-mut); font-weight: 650; font-size: 15px; cursor: pointer; font-family: inherit;
}
body.framed .blog-filters button:hover { border-color: var(--h-indigo); color: var(--h-indigo-ink); }
body.framed .blog-filters button.active { background: var(--h-indigo); border-color: var(--h-indigo); color: #fff; }
body.framed .post-card { display: flex; flex-direction: column; height: 100%; }
body.framed .post-card__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: var(--h-mut); margin-bottom: 16px; }
body.framed .post-card__title { font-size: 21px; margin: 0 0 10px; letter-spacing: -.01em; }
body.framed .post-card__title a { color: var(--h-ink); }
body.framed .post-card__title a:hover { color: var(--h-indigo-ink); text-decoration: none; }
body.framed .post-card__excerpt { color: var(--h-mut); font-size: 15.5px; line-height: 1.55; flex: 1; margin: 0 0 18px; }

/* ---------- Статья и юр. страницы ---------- */
body.framed .article { max-width: 860px; margin: 0 auto; }
body.framed .article__body h2 { margin-top: 1.6em; font-size: 30px; }
body.framed .article__body h3 { margin-top: 1.4em; }
body.framed .article__body p, body.framed .article__body li { color: var(--h-ink2); font-size: 17px; }
body.framed .article__body blockquote { border-left: 3px solid var(--h-indigo); color: var(--h-mut); margin: 1.5em 0; padding: 4px 0 4px 20px; font-style: italic; }
body.framed .article__body a { color: var(--h-indigo-ink); text-decoration: underline; }
body.framed .article__body img { border-radius: 14px; }
body.framed .article__body pre { overflow-x: auto; background: var(--code-bg); border-radius: 12px; padding: 16px 18px; }
body.framed .article__body pre code { background: transparent; padding: 0; }
body.framed .legal { max-width: 860px; margin: 0 auto; }
body.framed .legal h2 { margin-top: 1.7em; font-size: 24px; }
body.framed .legal p, body.framed .legal li { color: var(--h-ink2); font-size: 16.5px; }

/* ---------- Адаптив внутренних страниц ---------- */
@media (max-width: 1180px) {
  .phero { padding: calc(var(--header-h) + 48px) 44px 60px; }
  .phero h1 { font-size: 34px; }
  .hgrid--4 { grid-template-columns: repeat(2, 1fr); }
  .hgrid--3 { grid-template-columns: repeat(2, 1fr); }
  .fband { margin: 0 24px; padding: 48px 44px; gap: 36px; }
  .psubnav { margin: 16px 24px 0; }
}
@media (max-width: 1020px) {
  .fband { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .phero { border-radius: 18px; padding: calc(var(--header-h) + 34px) 22px 44px; }
  .phero h1 { font-size: 29px; margin-top: 18px; }
  .phero__sub { font-size: 16.5px; }
  .phero__cta { gap: 18px; }
  .phero__shot { margin-top: 40px; }
  .hgrid--2, .hgrid--3, .hgrid--4 { grid-template-columns: 1fr; }
  .hcard { padding: 30px 26px; }
  .fband { margin: 0 12px; border-radius: 18px; padding: 34px 24px; }
  .fband h2 { font-size: 26px; }
  .fcard { padding: 30px 24px; }
  .hcheck--cols { grid-template-columns: 1fr; }
  .psubnav { margin: 12px 12px 0; top: 8px; }
  .psubnav__inner { padding: 8px 14px; gap: 12px; }
  .ctaband .lead-form { padding: 22px; }
}

/* ==========================================================================
   Правки 2026-10-03 (документ «Проекты_хранилище (4)»):
   узкие секции, тема в шапке, «Как мы работаем» и финальный CTA по референсам,
   согласие cookies/ПДн.
   ========================================================================== */

/* ---------- Узкие секции (п.9 документа) ---------- */
/* ---------- Переключатель темы в шапке (поверх тёмного hero) ---------- */
body.framed .header .theme-toggle { color: rgba(224, 231, 255, .85); border-color: rgba(255, 255, 255, .25); }
body.framed .header .theme-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }

/* ---------- Кейс Сенсим: текстовое описание ---------- */
.casecard__body p { color: var(--h-mut); font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
.casecard__body p strong { color: var(--h-ink); }
.casecard__body .hlink { margin-top: 8px; }

/* ---------- «Как мы работаем» (референс do-IT, цвета сайта) ---------- */
.stepsband {
  position: relative; overflow: hidden; margin: 0 40px; border-radius: 24px;
  background:
    radial-gradient(760px 420px at 82% 118%, rgba(46, 62, 143, .55), transparent 60%),
    linear-gradient(135deg, #0D1428 0%, var(--h-navy) 52%, #0C1638 100%);
  padding: 52px 60px 12px;
}
.stepsband__head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.stepsband__label { display: inline-block; color: var(--h-indigo); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.stepsband h2 { color: #fff !important; text-transform: uppercase; letter-spacing: .01em; font-size: 40px; margin: 0 0 12px; }
.stepsband__sub { color: rgba(203, 212, 244, .6); font-size: 17px; margin: 0; }
.stepsband__cta { flex: none; border-radius: 999px; }
.stepsband__track { position: relative; overflow: hidden; margin: 8px -20px 0; }
.stepsband__steps {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 32px 20px 44px;
  display: flex; align-items: stretch; min-height: 506px;
}
.stepsband__steps li {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 18px;
  margin-left: -56px; padding: 36px 34px; min-height: 260px;
  background: linear-gradient(160deg, #121B36 0%, #0D1529 100%);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 20px;
  box-shadow: -26px 0 48px -14px rgba(2, 6, 18, .6);
  transition: transform .22s ease, box-shadow .22s ease;
}
.stepsband__steps li:first-child { margin-left: 0; }
.stepsband__steps li:nth-child(1) { z-index: 4; }
.stepsband__steps li:nth-child(2) { z-index: 3; }
.stepsband__steps li:nth-child(3) { z-index: 2; }
.stepsband__steps li:nth-child(4) { z-index: 1; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stepsband__steps li:hover {
    z-index: 10; transform: translateY(-12px);
    box-shadow: 0 12px 24px -10px rgba(2, 6, 18, .78);
  }
}
.stepsband__num { flex: none; font-size: clamp(72px, 7.6vw, 120px); font-weight: 500; line-height: .82; letter-spacing: -.04em; color: #F5F7FF; }
.stepsband__steps h3 { color: #fff !important; font-size: 18px; line-height: 1.28; margin: 0 0 8px; letter-spacing: -.01em; }
.stepsband__steps p { color: rgba(203, 212, 244, .62); font-size: 14px; line-height: 1.5; margin: 0; }
@media (max-width: 1180px) {
  .stepsband__steps { min-height: 456px; }
  }
@media (max-width: 1100px) {
  .stepsband__steps { min-height: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .stepsband__steps::-webkit-scrollbar { display: none; }
  .stepsband__steps li { flex: none; width: min(78%, 340px); min-height: 280px; scroll-snap-align: start; margin-left: -42px; }
}
@media (max-width: 1180px) {
  .stepsband { margin: 0 24px; padding: 52px 44px 12px; }
}
@media (max-width: 640px) {
  .stepsband { margin: 0 12px; border-radius: 18px; padding: 38px 22px 8px; }
  .stepsband h2 { font-size: 26px; }
  .stepsband__sub { font-size: 15.5px; }
  .stepsband__track { margin-top: 2px; }
  .stepsband__steps li { width: calc(100% - 48px); margin-left: -30px; padding: 34px 20px; gap: 16px; min-height: 240px; }
  .stepsband__num { font-size: 64px; }
  .stepsband__cta { padding: 13px 22px; font-size: 15px; }
}

/* ---------- Scrub-обёртка процесса: страница «прилипает», скролл крутит карточки ---------- */
.stepscroll { position: relative; }
.stepscroll.is-pinned .stepscroll__sticky { position: sticky; top: clamp(16px, 8vh, 90px); }
.stepscroll.is-pinned .stepsband__steps { overflow: visible; }

/* ---------- Финальный CTA: тёмная полоса, одна подложка ---------- */
.ctaf {
  margin: 0 40px; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(720px 380px at 88% 118%, rgba(46, 62, 143, .5), transparent 60%),
    linear-gradient(120deg, #0D1428 0%, var(--h-navy) 55%, #0C1638 100%);
  padding: 64px 68px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: start;
}
.ctaf__left .hpill { background: rgba(255, 255, 255, .1); color: #B7C3FF; margin-bottom: 24px; }
.ctaf h2 { color: #fff !important; font-size: 37px; line-height: 1.16; margin: 0 0 20px; }
.ctaf__accent { color: #93A5FF; }
.ctaf__sub { color: rgba(203, 212, 244, .72); font-size: 17px; line-height: 1.55; margin: 0 0 30px; max-width: 470px; }
.ctaf__points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.ctaf__points li { display: flex; gap: 12px; align-items: flex-start; }
.ctaf__pic { flex: none; width: 22px; height: 22px; margin-top: 2px; color: #93A5FF; }
.ctaf__pic svg { width: 22px; height: 22px; }
.ctaf__points strong { display: block; font-size: 15.5px; color: #EEF1FF; margin-bottom: 3px; }
.ctaf__points li > div > span { color: rgba(203, 212, 244, .78); font-size: 13.5px; line-height: 1.4; display: block; }
.ctaf__expert { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.ctaf__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; color: #fff; flex: none; }
.ctaf__avatar svg { width: 24px; height: 24px; }
.ctaf__expert strong { display: block; font-size: 16.5px; color: #EEF1FF; line-height: 1.25; }
.ctaf__expert span { color: rgba(203, 212, 244, .78); font-size: 13px; }
.ctaf__form .lead-form { max-width: none; margin: 0; }
.ctaf__form .lead-form label { color: rgba(238, 241, 255, .88); }
.ctaf__form .lead-form input[type="text"], .ctaf__form .lead-form textarea {
  background: rgba(255, 255, 255, .95); color: #0e1526; border-color: transparent;
}
.ctaf__form .lead-form input:focus, .ctaf__form .lead-form textarea:focus {
  border-color: var(--h-indigo); box-shadow: 0 0 0 3px rgba(117, 137, 249, .3);
}
.ctaf__form .lead-form .fld.invalid input, .ctaf__form .lead-form .fld.invalid textarea { border-color: #F87171; }
.ctaf__form .fld__err { color: #FCA5A5; }
.ctaf__form .agree { color: rgba(226, 234, 255, .75); }
.ctaf__form .agree a { color: #A9B7FF; }
.ctaf__form .form-err-global { color: #FCA5A5; }
.ctaf__form .hbtn--indigo { background: linear-gradient(105deg, var(--h-action), var(--h-purple)); box-shadow: 0 12px 28px -10px rgba(102, 48, 216, .55); white-space: nowrap; }
.ctaf__form .hbtn--indigo:hover { filter: brightness(1.07); transform: translateY(-1px); }
.ctaf__form .form-note { text-align: center; color: rgba(226, 234, 255, .75); }
.ctaf__form .form-ok h3, .ctaf__form .form-ok p { color: #fff; }
.ctaf__form .form-ok a { color: #A9B7FF; }
@media (max-width: 1180px) {
  .ctaf { margin: 0 24px; padding: 48px 44px; gap: 40px; }
}
@media (max-width: 1020px) {
  .ctaf { grid-template-columns: 1fr; }
  .ctaf__sub { max-width: none; }
}
@media (max-width: 640px) {
  .ctaf { margin: 0 12px; border-radius: 18px; padding: 34px 22px; gap: 32px; }
  .ctaf h2 { font-size: 26px; }
  .ctaf__sub { font-size: 15.5px; margin-bottom: 24px; }
  .ctaf__points { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Согласие на cookies и ПДн ---------- */
.consent {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300;
  width: min(760px, calc(100% - 32px)); background: var(--bg-elev);
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: 0 18px 50px -12px rgba(10, 16, 30, .35);
  padding: 18px 22px; display: flex; align-items: center; gap: 20px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 13.5px; color: var(--text-mid); line-height: 1.45; }
.consent .hbtn { flex: none; padding: 12px 24px; font-size: 14.5px; border-radius: 999px; }
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; padding: 16px 18px; }
  .consent .hbtn { justify-content: center; }
}

/* Общий ритм формы на главной и в контактах. */
.lead-form label.agree { font-size: 13px; font-weight: 400; line-height: 1.55; }
.lead-form .agree a { text-decoration: underline; text-underline-offset: 3px; }
.ctaf__form .req { color: #FCA5A5; }
.hbtn:focus-visible, .header__cta:focus-visible, .hero2__link:focus-visible {
  outline: 3px solid var(--h-indigo); outline-offset: 5px;
}
.hbtn:disabled { cursor: wait; opacity: .7; transform: none; }
@media (min-width: 1101px) {
  .ctaf__form .lead-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .ctaf__form .lead-form > * { grid-column: 1 / -1; }
  .ctaf__form .lead-form > .fld--name, .ctaf__form .lead-form > .fld--company { grid-column: auto; }
  .ctaf__form .lead-form.sent { display: none; }
}

@media (max-width: 380px) {
  body.framed .header__cta { display: none; }
  .effectcard { flex-direction: column; align-items: flex-start; }
}

/* Unified solutions page, new PDF structure in the established brand palette. */
.solutions-page .solutions-hero__headline { max-width: 800px; margin: 0 0 24px; color: #F5F7FF; font-size: clamp(25px, 3.1vw, 38px); font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }
.solutions-page .solutions-hero__link { color: #D7DEFF; }
.solutions-scenarios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.solutions-scenario { position: relative; min-width: 0; padding: 30px; border: 1px solid rgba(145, 157, 235, .2); border-radius: 20px; background: radial-gradient(ellipse at 100% 0, rgba(107, 82, 223, .23), transparent 70%), linear-gradient(135deg, #15203E, #0E152B); color: #F5F7FF; box-shadow: 0 12px 30px -24px rgba(17, 23, 53, .6); }
.solutions-scenario:nth-child(3n + 2) { background: radial-gradient(ellipse at 100% 100%, rgba(91, 75, 198, .3), transparent 75%), linear-gradient(135deg, #1C254B, #121B36); }
.solutions-scenario__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 25px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: #B9C2F5; }
.solutions-scenario__icon { display: inline-flex; color: #A5B0FF; margin-bottom: 18px; }
.solutions-scenario__icon svg { width: 28px; height: 28px; }
.solutions-page .solutions-scenario h3 { margin: 0 0 16px; color: #F5F7FF; font-size: 23px; line-height: 1.25; }
.solutions-scenario p { margin: 0; color: #C3CCE9; font-size: 16px; line-height: 1.55; }
.solutions-consulting { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.solutions-consulting .hpill { margin-bottom: 20px; }
.solutions-consulting h2 { margin-bottom: 20px; }
.solutions-consulting .hlink { margin-top: 24px; }
.solutions-consulting__list { list-style: none; counter-reset: consulting; padding: 0; margin: 0; display: grid; gap: 24px; }
.solutions-consulting__list li { position: relative; padding-left: 58px; counter-increment: consulting; }
.solutions-consulting__list li::before { content: counter(consulting, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--h-indigo-ink); font-size: 22px; font-weight: 750; }
.solutions-consulting__list strong { display: block; margin-bottom: 6px; color: var(--h-ink); font-size: 20px; }
.solutions-consulting__list span { display: block; color: var(--h-mut); font-size: 16px; line-height: 1.5; }
.solutions-stack { align-items: start; gap: 44px; }
.solutions-stack__chips { justify-content: flex-start; margin-top: 26px; }
.solutions-page .hcheck svg { flex-shrink: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .solutions-scenario { transition: transform .22s ease, box-shadow .22s ease; }
  .solutions-scenario:hover { transform: translateY(-5px); box-shadow: 0 18px 35px -22px rgba(59, 51, 136, .5); }
}
@media (max-width: 1100px) {
  .solutions-scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions-consulting { gap: 32px; }
}
@media (max-width: 760px) {
  .solutions-consulting { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .solutions-scenarios { grid-template-columns: 1fr; gap: 16px; }
  .solutions-scenario { padding: 25px; }
  .solutions-scenario__meta { margin-bottom: 20px; }
  .solutions-page .solutions-scenario h3 { font-size: 22px; }
  .solutions-page .solutions-hero .hbtn { white-space: normal; }
  .solutions-stack { gap: 28px; }
}

/* RAG product page: source screenshots and the answer workflow. */
.rag-page .rag-copy { margin-bottom: 16px; }
.rag-page .rag-features { margin-bottom: 26px; }
.rag-page .rag-preview { position: relative; display: block; overflow: hidden; border-radius: 18px; }
.rag-page .rag-preview img { display: block; width: 100%; height: auto; }
.rag-page .rag-preview:focus-visible { outline: 3px solid var(--h-indigo-ink); outline-offset: 5px; }
.rag-page .rag-preview__zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 9px; background: #101a38; color: #F5F7FF; font-size: 12px; font-weight: 600; box-shadow: 0 3px 12px rgba(0, 0, 0, .18); }
.rag-page .rag-preview__zoom svg { width: 16px; height: 16px; }
.rag-page .rag-flow { list-style: none; counter-reset: rag-step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.rag-page .rag-flow li { counter-increment: rag-step; min-width: 0; padding: 26px; border: 1px solid var(--h-line); border-radius: 20px; background: var(--h-card2); }
.rag-page .rag-flow li::before { content: counter(rag-step, decimal-leading-zero); display: block; margin-bottom: 20px; color: var(--h-indigo-ink); font-size: 25px; font-weight: 800; }
.rag-page .rag-flow strong { display: block; margin-bottom: 12px; font-size: 19px; line-height: 1.3; }
.rag-page .rag-flow p { margin: 0; color: var(--h-mut); font-size: 16px; line-height: 1.55; }
.rag-page .rag-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 26px; }
.rag-page .rag-screen { min-width: 0; margin: 0; }
.rag-page .rag-screen--wide { grid-column: 1 / -1; }
.rag-page .rag-screen figcaption { padding: 22px 4px 0; }
.rag-page .rag-screen h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.01em; }
.rag-page .rag-screen p { max-width: 760px; margin: 0; color: var(--h-mut); font-size: 16.5px; line-height: 1.55; }
.rag-page .rag-pilot { padding-top: 0; }
.rag-page .rag-pilot .ctaband__text { max-width: 760px; margin-bottom: 34px; }
@media (max-width: 1100px) {
  .rag-page .rag-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rag-page .psubnav__name { display: none; }
  .rag-page .psubnav nav { margin-left: 0; }
  .rag-page .rag-flow, .rag-page .rag-screens { grid-template-columns: 1fr; }
  .rag-page .rag-flow { gap: 16px; }
  .rag-page .rag-flow li { padding: 24px; }
  .rag-page .rag-preview__zoom { right: 8px; bottom: 8px; padding: 6px 9px; font-size: 11px; }
}
