/* ---------- Локальные шрифты (SIL OFL). Ни одного запроса к Google ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/inter-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: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-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: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/outfit-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;
}

/* ============================================================
   Интерика Лаб — Interika Lab
   Единая дизайн-система (design system)
   ============================================================ */

:root {
  /* Палитра */
  --color-navy: #0a1a3f;          /* глубокий синий — технологии, доверие */
  --color-navy-800: #0f2350;
  --color-navy-700: #16305f;
  --color-slate: #1f2733;         /* тёмно-серый — основательность */
  --color-slate-600: #3a4757;
  --color-teal: #16d3b0;          /* акцент — инновации, безопасность */
  --color-teal-600: #0a7d6d;   /* текст-ссылка, 5.04:1 к белому */
  --color-teal-500: #0fb499;   /* прежний оттенок для декора на тёмном */
  --color-field: #7f8da6;      /* граница полей ввода, 3.1:1 к белому */
  --color-teal-050: #e6fbf6;
  --color-ink: #0d1b2a;
  --color-text: #253141;
  --color-muted: #64748b;
  --color-line: #e5eaf1;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f8fc;
  --color-bg-navy-soft: #f0f4fb;

  /* Типографика */
  --font-sans: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Радиусы и тени */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 63, 0.06), 0 2px 8px rgba(10, 26, 63, 0.05);
  --shadow: 0 8px 30px rgba(10, 26, 63, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 26, 63, 0.14);

  /* Сетка */
  --container: 1200px;
  --gap: 24px;

  /* Плавность */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--color-teal-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-navy); }
.section--navy a:hover, .hero a:hover, .page-hero a:hover, .cta-band a:hover, .site-footer a:hover { color: var(--color-teal); }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }

/* ------------------------------ Layout ------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--color-bg-soft); }
.section--navy {
  background: radial-gradient(1200px 600px at 80% -10%, rgba(22,211,176,.15), transparent 60%),
              linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-800) 100%);
  color: #cdd8ee;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .card h3 { color: var(--color-ink); }
.section--navy .card p { color: var(--color-muted); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-teal-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--color-teal); border-radius: 2px; }
.center .eyebrow { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--color-muted); }
.section--navy .lead { color: #aab8d6; }

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; transition: all .25s var(--ease); white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--color-teal); color: var(--color-navy); box-shadow: 0 8px 24px rgba(22,211,176,.35); }
.btn-primary:hover { background: var(--color-teal-600); color: var(--color-navy); }
.btn-dark { background: var(--color-navy); color: #fff; }
.btn-dark:hover { background: var(--color-navy-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--color-line); }
.btn-ghost:hover { border-color: var(--color-navy); color: var(--color-navy); background: #fff; }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--color-navy); font-size: 1.18rem; letter-spacing: -.02em; }
.brand:hover { color: var(--color-navy); }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand > span { display: inline-flex; flex-direction: column; justify-content: center; white-space: nowrap; line-height: 1.05; }
.brand small { display: block; margin-top: 4px; font-size: .62rem; font-weight: 600; letter-spacing: .18em; color: var(--color-muted); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav a {
  display: flex; align-items: center; white-space: nowrap;
  padding: 10px 14px; border-radius: 10px; color: var(--color-slate);
  font-weight: 600; font-size: .95rem;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active { color: var(--color-navy); background: var(--color-bg-navy-soft); }

/* Dropdown */
.has-drop { position: relative; }
.has-drop > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); opacity: .55;
}
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 320px;
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .22s var(--ease);
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; }
.drop a:hover { background: var(--color-bg-soft); }
.drop .di { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--color-teal-050); display: grid; place-items: center; }
.drop .di svg { width: 18px; height: 18px; color: var(--color-teal-600); }
.drop strong { display: block; color: var(--color-navy); font-size: .95rem; }
.drop span { display: block; color: var(--color-muted); font-size: .82rem; font-weight: 500; }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: 12px; background: #fff; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--color-navy); border-radius: 2px; transition: .25s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative; overflow: hidden; color: #eaf1ff;
  background: radial-gradient(900px 500px at 85% 0%, rgba(22,211,176,.22), transparent 55%),
              radial-gradient(700px 500px at 10% 100%, rgba(46,101,255,.25), transparent 55%),
              linear-gradient(160deg, var(--color-navy) 0%, #061233 60%, var(--color-ink) 100%);
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.7vw, 3rem); line-height: 1.12; margin-bottom: .35em; }
.hero h1 .accent { color: var(--color-teal); }
.hero-lead { font-size: 1.22rem; color: #b9c6e6; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 34px; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: -20px 0 30px; font-size: .9rem; color: #a9b8dc; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--color-teal); flex: none; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats > div { max-width: 200px; }
.hero-stats .n { font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.15; white-space: nowrap; }
.hero-stats .l { font-size: .9rem; color: #93a4cb; max-width: 150px; }

/* декоративная сетка/частицы */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ------------------------------ Cards ------------------------------ */
.card {
  background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ico {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-700)); color: var(--color-teal);
}
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-muted); margin-bottom: 16px; }
.card .more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.card:hover .more, .post-card:hover .more { text-decoration: underline; text-underline-offset: 4px; }
a.card { color: inherit; display: block; }

/* Service card link full */
.svc-card { position: relative; overflow: hidden; }
.svc-card .num { position: absolute; top: 22px; right: 26px; font-size: 1rem; font-weight: 800; color: var(--color-muted); }

/* Feature (почему мы) */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .fi { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--color-teal-050); color: var(--color-teal-600); }
.feature .fi svg { width: 26px; height: 26px; }
.section--navy .feature .fi { background: rgba(22,211,176,.14); }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { color: var(--color-muted); margin: 0; }
.section--navy .feature p { color: #a9b7d6; }
.case-card .thumb { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; color: #fff; }
.case-card .thumb .tag { position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.case-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.case-card .metrics .n { font-size: 1.5rem; font-weight: 800; color: var(--color-navy); }
.case-card .metrics .l { font-size: .8rem; color: var(--color-muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--color-line); background: #fff; font-weight: 600; color: var(--color-slate); transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--color-navy); }
.filter-btn.is-active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

/* ------------------------------ Segments (для кого) ------------------------------ */
.segment { padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--color-line); position: relative; overflow: hidden; }
.segment::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--color-teal); }
.segment h3 { font-size: 1.25rem; margin-bottom: 8px; }
.segment .segment-lead { color: var(--color-muted); font-size: .95rem; margin-bottom: 14px; line-height: 1.5; }
.segment ul { list-style: none; }
.segment li { padding-left: 26px; position: relative; color: var(--color-muted); margin-bottom: 6px; }
.segment li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 10px; border: solid var(--color-teal-600); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ------------------------------ Segments slider ------------------------------ */
.seg-slider { position: relative; }
.seg-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 10px; scrollbar-width: none; -ms-overflow-style: none; }
.seg-track::-webkit-scrollbar { display: none; }
.seg-track > .segment { flex: 0 0 calc(25% - 18px); scroll-snap-align: start; }
.seg-prev { left: -20px; }
.seg-next { right: -20px; }
@media (max-width: 1024px) { .seg-track > .segment { flex-basis: calc(50% - 12px); } }
@media (max-width: 680px) { .seg-track > .segment { flex-basis: 85%; } }

/* ------------------------------ Steps / process ------------------------------ */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 20px; padding: 24px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 1.4rem; font-weight: 800; color: var(--color-teal); flex: none; }
.step h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--color-muted); }

/* ------------------------------ Pricing list (подуслуги) ------------------------------ */
.svc-list { display: grid; gap: 16px; }
.svc-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; padding: 22px 26px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.svc-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-item .si { width: 56px; height: 56px; border-radius: 14px; background: var(--color-navy); color: var(--color-teal); display: grid; place-items: center; }
.svc-item .si svg { width: 26px; height: 26px; }
.svc-item h3 { font-size: 1.12rem; margin-bottom: 3px; }
.svc-item p { margin: 0; color: var(--color-muted); font-size: .95rem; }
.svc-item .price { text-align: right; }
.svc-item .price .p { font-weight: 800; color: var(--color-navy); white-space: nowrap; }
.svc-item .price .t { font-size: .82rem; color: var(--color-muted); }

/* ------------------------------ FAQ ------------------------------ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: 4px 24px; transition: box-shadow .25s var(--ease); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--color-navy); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--color-teal-600); font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--color-muted); padding-bottom: 18px; margin: 0; }

/* ------------------------------ CTA band ------------------------------ */
.cta-band { border-radius: var(--radius-lg); padding: 56px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(700px 400px at 50% -30%, rgba(22,211,176,.25), transparent 60%), linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-800) 100%); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c6e6; max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ------------------------------ Forms ------------------------------ */
.form-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; color: var(--color-slate); margin-bottom: 7px; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--color-field); border-radius: 12px; font: inherit; font-size: 1rem; color: var(--color-ink); background: #fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--color-teal-600); box-shadow: 0 0 0 4px rgba(15,180,153,.22); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: .82rem; color: var(--color-muted); }
.form-note { font-size: .82rem; color: var(--color-muted); margin-top: 4px; }
.form-success { display: none; padding: 16px; border-radius: 12px; background: var(--color-teal-050); color: var(--color-teal-600); font-weight: 700; margin-top: 10px; }
.form-success.show { display: block; }

/* ------------------------------ Newsletter ------------------------------ */
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.subscribe input { flex: 1; min-width: 200px; padding: 14px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; }
.subscribe input::placeholder { color: #93a4cb; }
.subscribe input:focus { outline: none; border-color: var(--color-teal); }

/* ------------------------------ Blog ------------------------------ */
.post-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); height: 100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .82rem; color: var(--color-muted); margin-bottom: 8px; display: flex; gap: 10px; }
.post-card .cat { color: var(--color-teal-600); font-weight: 700; }
.post-card h3 { font-size: 1.2rem; color: inherit; }
.post-card p { color: var(--color-muted); font-size: .95rem; }
.post-card .more { margin-top: auto; font-weight: 700; }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article-body { font-size: 1.08rem; max-width: 66ch; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin-bottom: 1rem; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--color-teal); background: var(--color-bg-soft); border-radius: 0 12px 12px 0; color: var(--color-slate); font-style: italic; }

/* ------------------------------ About / team ------------------------------ */
.team-card { text-align: center; }
.team-card .avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: #fff; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.team-card .role { color: var(--color-teal-600); font-weight: 700; font-size: .92rem; }
.team-card p { color: var(--color-muted); font-size: .9rem; }

.value-card .ico { background: var(--color-teal-050); color: var(--color-teal-600); }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.logo-chip { display: grid; place-items: center; height: 90px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff; font-weight: 800; color: var(--color-slate-600); letter-spacing: .02em; }

/* ------------------------------ Compare ------------------------------ */
.compare { max-width: 1000px; margin-inline: auto; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.compare-row { display: grid; grid-template-columns: 1fr 1.35fr 1.35fr; }
.compare-row + .compare-row { border-top: 1px solid var(--color-line); }
.compare-crit, .compare-them, .compare-us { padding: 16px 20px; display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; line-height: 1.4; }
.compare-crit { font-weight: 700; color: var(--color-ink); background: var(--color-bg-soft); align-items: center; }
.compare-them { color: var(--color-muted); }
.compare-us { background: var(--color-teal-050); color: var(--color-ink); font-weight: 600; }
.compare-them svg, .compare-us svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.compare-them svg { color: #d1495b; }
.compare-us svg { color: var(--color-teal-600); }
.compare-head { font-weight: 800; }
.compare-head .compare-crit { background: var(--color-navy); color: #fff; }
.compare-head .compare-them { background: var(--color-navy); color: #cdd8ee; }
.compare-head .compare-us { background: var(--color-teal); color: var(--color-navy); }
.compare-head svg { display: none; }
.ctag { display: none; }
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-head { display: none; }
  .compare-crit { background: var(--color-navy); color: #fff; font-size: 1rem; }
  .compare-them, .compare-us { border-top: 1px solid var(--color-line); }
  .ctag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; margin-right: 4px; align-self: flex-start; }
  .compare-them .ctag { background: rgba(209,73,91,.12); color: #d1495b; }
  .compare-us .ctag { background: rgba(22,211,176,.18); color: var(--color-teal-600); }
}

/* Certificates */
.cert { display: flex; gap: 14px; align-items: center; padding: 18px 22px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); }
.cert .ci { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--color-teal-050); color: var(--color-teal-600); display: grid; place-items: center; }

/* ------------------------------ Page hero (внутренние) ------------------------------ */
.page-hero { background: radial-gradient(800px 400px at 90% -20%, rgba(22,211,176,.16), transparent 55%), linear-gradient(160deg, var(--color-navy) 0%, #061233 100%); color: #eaf1ff; padding: 64px 0; }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero p { color: #b9c6e6; max-width: 720px; font-size: 1.15rem; }
.breadcrumbs { font-size: .85rem; color: #8ea0c8; margin-bottom: 16px; }
.breadcrumbs a { color: #b9c6e6; }
.breadcrumbs a:hover { color: var(--color-teal); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

/* pain/solution */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--color-line); }
.panel.pain { background: #fff5f5; border-color: #ffe0e0; }
.panel.pain h3 { color: #c0392b; }
.panel.sol { background: var(--color-teal-050); border-color: #c6f2e8; }
.panel.sol h3 { color: var(--color-teal-600); }
.panel ul { list-style: none; }
.panel li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.panel.pain li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; background: linear-gradient(45deg, transparent 44%, #e74c3c 44%, #e74c3c 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #e74c3c 44%, #e74c3c 56%, transparent 56%); }
.panel.sol li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 6px; height: 10px; border: solid var(--color-teal-600); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--color-ink); color: #9fb0d0; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4, .site-footer .footer-h { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9fb0d0; }
.site-footer a:hover { color: var(--color-teal); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.footer-brand .logo-mark { width: 40px; height: 40px; }
.footer-about { max-width: 320px; font-size: .95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cdd8ee; }
.socials a:hover { background: var(--color-teal); color: var(--color-navy); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-contacts a { color: #fff; font-weight: 700; font-size: 1.05rem; }

/* ------------------------------ Chatbot ------------------------------ */
.chat-fab { position: fixed; right: 24px; bottom: 24px; z-index: 200; width: 62px; height: 62px; border-radius: 50%; border: none; background: var(--color-teal); color: var(--color-navy); box-shadow: 0 12px 30px rgba(22,211,176,.5); display: grid; place-items: center; transition: transform .25s var(--ease); }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; }
.chat-panel { position: fixed; right: 24px; bottom: 98px; z-index: 200; width: 370px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--color-line); }
.chat-panel.open { display: flex; animation: popup .28s var(--ease); }
@keyframes popup { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { background: linear-gradient(135deg, var(--color-navy), var(--color-navy-700)); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .ava { width: 40px; height: 40px; border-radius: 50%; background: var(--color-teal); color: var(--color-navy); display: grid; place-items: center; font-weight: 800; }
.chat-head strong { display: block; }
.chat-head span { font-size: .8rem; color: #a9dfd4; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--color-bg-soft); display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .94rem; line-height: 1.5; }
.msg.bot { background: #fff; border: 1px solid var(--color-line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--color-navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; background: var(--color-bg-soft); }
.chat-quick button { font-size: .82rem; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--color-teal); background: #fff; color: var(--color-teal-600); font-weight: 600; }
.chat-quick button:hover { background: var(--color-teal-050); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--color-line); background: #fff; }
.chat-input input { flex: 1; padding: 12px 14px; border: 1px solid var(--color-line); border-radius: 999px; font: inherit; }
.chat-input input:focus { outline: none; border-color: var(--color-teal); }
.chat-input button { width: 44px; height: 44px; flex: none; border-radius: 50%; border: none; background: var(--color-teal); color: var(--color-navy); display: grid; place-items: center; }

/* ------------------------------ Utilities ------------------------------ */
.text-center { text-align: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.tag-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--color-teal-050); color: var(--color-teal-600); font-size: .8rem; font-weight: 700; }

/* ------------------------------ Responsive ------------------------------ */
/* Шапка: чтобы пункты меню не съезжали на ноутбуках */

@media (max-width: 1080px) and (min-width: 861px) {
  .header-inner { gap: 14px; }
  .main-nav > ul { gap: 0; }
  .main-nav a { padding: 9px 10px; font-size: .9rem; }
  .brand { font-size: 1.08rem; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  /* backdrop-filter/filter на шапке делает её containing block для position:fixed
     потомков и «ловит» мобильное меню — на мобильных отключаем, чтобы панель
     позиционировалась относительно окна */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.98); }
  .main-nav { position: fixed; inset: 74px 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 20px; gap: 0; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; z-index: 90; }
  body.nav-open .main-nav { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .has-drop > a::after { display: none; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 12px; min-width: 0; }
  .drop a { padding: 10px 12px; }
  .nav-toggle { display: flex; }
  .header-cta .btn { display: none; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 40px 24px; }
  .svc-item { grid-template-columns: 44px 1fr; }
  .svc-item .si { width: 44px; height: 44px; }
  .svc-item .price { grid-column: 2; text-align: left; }
  /* при открытом меню прячем плавающие элементы, чтобы не перекрывали панель */
  body.nav-open .chat-fab, body.nav-open .chat-panel, body.nav-open .to-top, body.nav-open .contact-dock, body.nav-open .scroll-progress { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 22px; }
  .form-card, .cta-band { padding: 26px 20px; }
}

/* ============================================================
   UI POLISH v2 — премиальный дизайн + удобство
   ============================================================ */

:root { scroll-padding-top: 86px; }

/* Доступность: заметный фокус только для клавиатуры */
:focus-visible { outline: 3px solid var(--color-teal-600); outline-offset: 3px; border-radius: 8px; }
.section--navy :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible, .site-header :focus-visible { outline-color: var(--color-teal); }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* Выделение текста */
::selection { background: var(--color-teal); color: var(--color-navy); }

/* Кастомный скроллбар */
* { scrollbar-width: thin; scrollbar-color: var(--color-navy) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--color-navy), var(--color-navy-700)); border-radius: 10px; border: 3px solid var(--color-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--color-teal-600); }

/* Прогресс-бар прокрутки */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--color-teal), #4ad3e8); box-shadow: 0 0 14px rgba(22,211,176,.7); transition: width .1s linear; }

/* Skip-link (доступность) */
.skip-link { position: fixed; left: 14px; top: -70px; z-index: 400; background: var(--color-navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow-lg); transition: top .25s var(--ease); }
.skip-link:focus { top: 14px; color: #fff; }

/* «Умная» шапка: уплотняется и усиливает тень при прокрутке */
.site-header { transition: box-shadow .3s var(--ease), background .3s var(--ease); }

.brand .logo-mark { transition: transform .3s var(--ease); }

/* Кнопка «Наверх» (слева, чтобы не мешать чат-боту) */
.to-top { position: fixed; left: 24px; bottom: 24px; z-index: 190; width: 50px; height: 50px; border-radius: 15px; border: 1px solid var(--color-line); background: #fff; color: var(--color-navy); box-shadow: var(--shadow-lg); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); transform: translateY(-3px); }

.btn { position: relative; isolation: isolate; }

/* Карточки: градиентная светящаяся рамка при наведении */
.card { position: relative; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(135deg, var(--color-teal), #4ad3e8); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.card:hover::before { opacity: 1; }
.card .ico { transition: transform .35s var(--ease); }
.card:hover .ico { transform: translateY(-3px) rotate(-4deg) scale(1.06); }

/* Иконки услуг «оживают» */
.svc-item .si, .segment, .feature .fi { transition: transform .3s var(--ease); }
.svc-item:hover .si { transform: rotate(-6deg) scale(1.08); }
.feature:hover .fi { transform: translateY(-3px) scale(1.06); }

/* Плавающие орбы в hero */
.hero { isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: 0; width: 540px; height: 540px; border-radius: 50%; top: -180px; right: -140px; background: radial-gradient(circle, rgba(22,211,176,.4), transparent 70%); filter: blur(20px); animation: floatOrb 13s ease-in-out infinite; pointer-events: none; }
.hero > .container { position: relative; z-index: 2; }
@keyframes floatOrb { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, 50px) scale(1.08); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* Пульс у чат-кнопки — привлекает внимание */
.chat-fab { position: fixed; }
.chat-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1; animation: pulseRing 2.6s ease-out infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(22,211,176,.5); } 70% { box-shadow: 0 0 0 18px rgba(22,211,176,0); } 100% { box-shadow: 0 0 0 0 rgba(22,211,176,0); } }

/* Числа-счётчики: моноширинные для плавной анимации */
[data-count] { font-variant-numeric: tabular-nums; }

/* Анимация появления секций: варианты */
.reveal:not(.in) { will-change: opacity, transform; }
.reveal.in { will-change: auto; }

.cta-band { position: relative; overflow: hidden; }

/* Плавная линия под пунктами меню (десктоп) */
@media (min-width: 861px) {
  .main-nav > ul > li { position: relative; }
}

/* Ссылки-«стрелки» в статьях и карточках плавнее */
.post-card .more::after, .case-card .more::after { }

/* Небольшой параллакс-ховер на логотипах партнёров */
.logo-chip { transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.logo-chip:hover { transform: translateY(-4px); border-color: var(--color-teal); color: var(--color-navy); box-shadow: var(--shadow); }

/* Мобайл: кнопка наверх компактнее */
@media (max-width: 520px) {
  .to-top { width: 44px; height: 44px; left: 16px; bottom: 16px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-panel { bottom: 74px; right: 16px; }
}

/* ============================================================
   Лидогенерация: согласие, ошибка формы, модалка, дока связи, лид-магнит
   ============================================================ */

/* Ссылка «смотреть кейс» */
.case-card .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--color-teal-600); }
.case-card:hover .more { text-decoration: underline; text-underline-offset: 4px; }
.result-metrics .rm .n { font-size: 2rem; font-weight: 800; color: var(--color-teal-600); letter-spacing: -.02em; }
.result-metrics .rm .l { color: var(--color-muted); font-size: .92rem; margin-top: 4px; }

/* Текстовая страница-документ (политика) */
.doc-content h2 { font-size: 1.35rem; margin: 34px 0 12px; color: var(--color-navy); }
.doc-content p { color: var(--color-text); margin-bottom: 14px; }
.doc-content a:not(.btn) { color: var(--color-teal-600); text-decoration: underline; }
.doc-list { margin: 0 0 16px 20px; color: var(--color-text); }
.doc-list li { margin-bottom: 8px; }
.check-list { list-style: none; margin: 0 0 18px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--color-text); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border: 2px solid var(--color-teal-600); border-radius: 5px; }

/* Чекбокс согласия на обработку ПДн */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; line-height: 1.4; color: var(--color-muted); margin: 14px 0; cursor: pointer; }
.consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--color-teal-600); }
.consent a { color: var(--color-teal-600); text-decoration: underline; }
.consent.consent-error { color: #c0392b; }
.consent.consent-error a { color: #c0392b; }
.consent.consent-error input { outline: 2px solid #e74c3c; outline-offset: 2px; border-radius: 3px; }

/* Cookie-баннер */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: #0a1a3f; color: #cdd8ee; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); font-size: .9rem; line-height: 1.5; transform: translateY(160%); transition: transform .35s var(--ease); }
.cookie-banner.show { transform: none; }
.cookie-banner span { flex: 1; min-width: 220px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .cookie-accept { flex: none; padding: 10px 24px; }

/* Сообщение об ошибке отправки */
.form-error { display: none; padding: 14px 16px; border-radius: 12px; background: #fdecea; color: #c0392b; font-weight: 600; margin-top: 10px; }
.form-error.show { display: block; }

/* Модальное окно (заказать звонок) */
.modal { position: fixed; inset: 0; z-index: 400; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 26, 63, .55); animation: fadeIn .2s var(--ease); }
.modal-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 92vw); max-height: 90vh; overflow: auto; background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); animation: modalIn .25s var(--ease); }
.modal-card h3 { margin: 0 0 6px; font-size: 1.5rem; }
.modal-sub { color: var(--color-muted); margin: 0 0 20px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: none; background: var(--color-bg-soft); border-radius: 11px; display: grid; place-items: center; color: var(--color-slate); cursor: pointer; transition: background .2s var(--ease); }
.modal-close:hover { background: var(--color-line); }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Плавающая дока связи (слева, чтобы не мешать AI-чату справа) */
.contact-dock { position: fixed; left: 24px; bottom: 88px; z-index: 185; display: flex; flex-direction: column; gap: 12px; }
.lead-magnet .eyebrow { color: var(--color-teal); }
.lm-form .consent { color: #aebbdd; margin: 6px 0 0; }
.lm-form .consent a { color: #fff; }

@media (max-width: 520px) {
  .contact-dock { left: 16px; bottom: 78px; gap: 10px; }
  .modal-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before, .hero-visual, .chat-fab::before { animation: none !important; }
  .modal-card, .modal-backdrop, .chat-panel.open { animation: none !important; }
  .cookie-banner { transition: none !important; }
  .card:hover, .case-card:hover, .post-card:hover, .svc-item:hover,
  .logo-chip:hover, .stack-chip:hover, .to-top:hover, .dock-btn:hover,
  .chat-fab:hover, .card:hover .ico, .feature:hover .fi, .svc-item:hover .si,
  .hero-link:hover svg { transform: none !important; }
}

/* ============================================================
   ПРОИЗВОДИТЕЛЬНОСТЬ И МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
   ============================================================ */

/* Нет горизонтального скролла из-за декоративных орбов/сдвигов */
.hero, .lead-magnet, .cta-band { overflow-x: clip; }

/* Медиа не выходит за контейнер */
img, svg, video { max-width: 100%; }
img { height: auto; }

/* Подсказки браузеру о композитных слоях (плавные анимации без лишней перерисовки) */
.chat-fab, .to-top, .contact-dock, .scroll-progress { will-change: transform; transform: translateZ(0); }

/* Плавный скролл по якорям, но без «дёрганья» на тачах */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Убираем серую вспышку при тапе по кнопкам/ссылкам на мобильных */
a, button, .btn, .dock-btn, summary { -webkit-tap-highlight-color: rgba(22,211,176,.15); }

/* Планшеты и меньше: облегчаем «тяжёлые» эффекты ради скорости и батареи */
@media (max-width: 860px) {
  .hero::before { display: none; }           /* большой blur — дорого для GPU */
  .chat-fab::before { animation: none; }
  .card::before { display: none; }            /* градиентная маска-рамка */
}

/* Телефоны */
@media (max-width: 520px) {
  /* Тап-цели не меньше комфортных 44px */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-toggle { width: 44px; height: 44px; }
  .main-nav a { min-height: 44px; display: flex; align-items: center; }

  /* Инпуты 16px — iOS не будет зумить при фокусе */
  input, textarea, select { font-size: 16px; }

  /* Кнопка «наверх» ближе к краю, чтобы не перекрывать контент */
  .to-top { left: 16px; bottom: 16px; width: 44px; height: 44px; }

  /* Аккуратные отступы контейнера */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Заголовки не «ломают» вёрстку длинными словами */
  h1, h2, h3 { overflow-wrap: anywhere; }
}

/* ============================================================
   ШАПКА — тёмная, панель-пилюля по референсу kindgeek
   Значения сняты с computed styles: nav #161616 r16 h56,
   шапка h100 p30/24, кнопка #fff / #0b0b0b r8 h40 14px/500
   ============================================================ */
.site-header, .site-header.scrolled { background: #080808; backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.header-inner { height: 88px; }

.brand { color: #fff; font-family: "Outfit", var(--font-sans); }
.brand:hover { color: #fff; }
.brand small { color: #858585; }

@media (min-width: 861px) {
  .header-inner { position: relative; }
  .main-nav { position: absolute; left: 50%; transform: translateX(-50%); }
}
.main-nav > ul { background: #161616; border-radius: 16px; padding: 5px 6px; gap: 2px; }
.main-nav a { color: #d8d8d8; font-family: "Outfit", var(--font-sans); font-weight: 500; font-size: 15px; padding: 9px 15px; border-radius: 11px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active { color: #fff; background: rgba(255,255,255,.08); }

.header-cta .btn { height: 40px; padding: 0 28px; border-radius: 8px; font-family: "Outfit", var(--font-sans); font-size: 14px; font-weight: 500; }
.header-cta .btn-primary { background: #fff; color: #0b0b0b; box-shadow: none; }
.header-cta .btn-primary:hover { background: #e2e2e2; color: #0b0b0b; }

/* выпадающее меню: строки-пилюли с собственными отступами.
   Подсветка обнимает всю строку, а не липнет к тексту, и остаётся спокойной:
   один мягкий фон плюс метка слева вместо кислотной перекраски букв. */
.drop { background: #161616; border: 0; border-radius: 14px; padding: 8px; box-shadow: 0 18px 44px rgba(0,0,0,.45); min-width: 316px; }
.drop li + li { margin-top: 2px; }
.drop a {
  position: relative; display: flex; align-items: center; gap: 0;
  padding: 12px 16px 12px 22px; border-radius: 10px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.drop a::before {
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 3px; height: 0; border-radius: 2px; background: var(--color-teal);
  transform: translateY(-50%); transition: height .18s var(--ease);
}
.drop a:hover, .drop a:focus-visible { background: rgba(255,255,255,.06); }
.drop a:hover::before, .drop a:focus-visible::before { height: 17px; }
.drop .di { display: none; }
.drop strong { font-family: "Outfit", var(--font-sans); font-size: 15.5px; font-weight: 500; color: #cfd3d9; white-space: nowrap; transition: color .18s var(--ease); }
.drop a:hover strong, .drop a:focus-visible strong { color: #fff; }
.drop strong + span { display: none; }

.nav-toggle { background: #1f1f1f; border-color: rgba(255,255,255,.08); border-radius: 14px; }
.nav-toggle span { background: #fff; }

@media (max-width: 860px) {
  .main-nav { inset: 88px 0 0; background: #080808; }
  .main-nav > ul { background: transparent; border-radius: 0; padding: 0; }
  .main-nav a { color: #e6e6e6; }
}

/* блок пакетов: колонка «пилот» не красная, это не «плохой вариант» */
.compare--plans .compare-them svg, .compare--plans .compare-them .ctag { color: var(--color-teal-600); }
.compare--plans .compare-them .ctag { background: rgba(15,180,153,.12); }
.compare--plans .compare-crit { white-space: nowrap; }

/* ------------------------------ Разборы типовых задач ------------------------------ */
.page-hero .eyebrow { color: var(--color-teal); }

.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.task-card { display: flex; flex-direction: column; padding: 30px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.task-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.task-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.task-meta span { font-size: .76rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--color-teal-050); color: var(--color-teal-600); }
.task-meta span.ind { background: var(--color-bg-navy-soft); color: var(--color-navy); }
.task-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.task-card > p { color: var(--color-muted); font-size: .96rem; margin-bottom: 18px; }
.task-points { list-style: none; margin: 0 0 22px; display: grid; gap: 9px; }
.task-points li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--color-slate); }
.task-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-teal); }
.task-card .more { margin-top: auto; font-weight: 700; color: var(--color-teal-600); }
.task-card:hover .more { text-decoration: underline; text-underline-offset: 4px; }

.task-grid--auto { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.task-grid--auto .task-card:only-child { max-width: 720px; }

.limitbox { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 34px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--color-navy) 0%, #061233 100%); color: #b9c6e6; }
.limitbox .li { width: 56px; height: 56px; border-radius: 14px; background: rgba(22,211,176,.14); color: var(--color-teal); display: grid; place-items: center; }
.limitbox .li svg { width: 26px; height: 26px; }
.limitbox h3 { color: #fff; margin-bottom: 12px; }
.limitbox p { margin: 0 0 10px; }
.limitbox p:last-child { margin-bottom: 0; }

.steps--plain .step p { color: var(--color-slate); margin: 0; }
.steps--plain .step { align-items: flex-start; }

.panel--plain { background: #fff; }
.qlist { list-style: none; display: grid; gap: 13px; margin: 0; }
.qlist li { position: relative; padding-left: 32px; color: var(--color-slate); }
.qlist li::before { content: "?"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--color-navy); color: #fff; font-size: .74rem; font-weight: 800; display: grid; place-items: center; }

@media (max-width: 900px) {
  .task-grid { grid-template-columns: 1fr; }
  .limitbox { grid-template-columns: 1fr; padding: 26px; }
}

/* ============================ Портфолио: тёмная ведомость ============================ */
.pfx { background: #080808; color: #fff; padding: 72px 0 84px; font-family: "Outfit", var(--font-sans); }
.pfx-head { max-width: 680px; margin-bottom: 40px; }
.pfx-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #858585; margin-bottom: 18px; }
.pfx-eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #9EDC57, #00BFBF); }
.pfx-h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 16px; color: #fff; }
.pfx-h2 span { background: linear-gradient(#9EDC57 0%, #00BFBF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pfx-lead { font-size: 15px; line-height: 1.65; color: #858585; margin: 0; max-width: 58ch; }

.pf-filters { margin-bottom: 28px; }
.pf-toggle { display: none; align-items: center; gap: 9px; width: 100%; padding: 13px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #0f0f0f; font: inherit; font-size: 15px; font-weight: 500; color: #e6e6e6; cursor: pointer; }
.pf-toggle svg { width: 17px; height: 17px; flex: none; color: #858585; }
.pf-toggle-n { margin-left: auto; font-size: 13px; color: #00BFBF; }
.pf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pf-tab {
  padding: 9px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: #161616;
  font: inherit; font-weight: 500; font-size: 14px; color: #cfcfcf; cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.pf-tab:hover { border-color: rgba(255,255,255,.22); color: #fff; }
.pf-tab.is-active { background: #fff; border-color: #fff; color: #080808; font-weight: 600; }
.pf-tab-n { margin-left: 7px; font-size: 12px; color: #595959; font-variant-numeric: tabular-nums; }
.pf-tab.is-active .pf-tab-n { color: #858585; }

.pf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; padding: 12px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: #0b0b0b; }
.pf-bar-lbl { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #6f6f6f; }
.pf-sel {
  appearance: none; -webkit-appearance: none;
  padding: 9px 32px 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background-color: #161616;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23858585' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 11px;
  font: inherit; font-size: 14px; font-weight: 500; color: #e6e6e6; cursor: pointer;
}
.pf-sel:hover { border-color: rgba(255,255,255,.24); }
.pf-sel option { background: #161616; color: #fff; }
.pf-reset { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: #00BFBF; cursor: pointer; border-bottom: 1px dashed currentColor; }
.pf-found { margin: 14px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6f6f6f; font-variant-numeric: tabular-nums; }
.pf-found b { color: #fff; }

.pf-sheet { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.07); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
.pf-empty { padding: 48px 24px; text-align: center; color: #858585; background: #0b0b0b; }

.pf { display: flex; flex-direction: column; padding: 34px 38px 32px; background: #0b0b0b; position: relative; overflow: hidden; transition: background .25s var(--ease); }
.pf::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,191,191,.13), rgba(0,191,191,0)); opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.pf:hover { background: #0f0f0f; }
.pf:hover::after { opacity: 1; }
.pf > * { position: relative; z-index: 1; }
.pf[hidden] { display: none !important; }

.pf-meta { display: flex; align-items: center; gap: 10px; min-height: 21px; margin-bottom: 22px; white-space: nowrap; overflow: hidden; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.pf-meta .ind { color: #cfcfcf; flex: none; }
.pf-meta .dir { color: #6f6f6f; overflow: hidden; text-overflow: ellipsis; }
.pf-meta .dir::before { content: "·"; margin-right: 10px; color: #3a3a3a; }

.pf-claim { margin: 0 0 18px; font-size: 1.62rem; line-height: 1.22; font-weight: 600; letter-spacing: -.022em; color: #fff; text-wrap: balance; max-width: 24ch; }
.pf-claim em { font-style: normal; background: linear-gradient(#9EDC57 0%, #00BFBF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pf-proof { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 26px; font-size: 14px; line-height: 1.55; color: #9a9a9a; }
.pf-proof svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: #9EDC57; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pf-proof b { color: #cfcfcf; font-weight: 600; }

.pf-name { margin: 0 0 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.pf-name h3 { font-family: var(--font-sans); font-size: 15px; line-height: 1.45; font-weight: 500; color: #d6d6d6; margin: 0; }

.pf-det { margin: 0 0 20px; }
.pf-det summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: #00BFBF; }
.pf-det summary::-webkit-details-marker { display: none; }
.pf-det summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.pf-det[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.pf-det[open] summary { margin-bottom: 16px; }
.pf-path { display: grid; gap: 14px; margin: 0; font-family: var(--font-sans); }
.pf-path > div { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 16px; align-items: start; }
.pf-path dt { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6f6f6f; padding-top: 3px; }
.pf-path dt b { color: #fff; }
.pf-path dd { margin: 0; font-size: 14px; line-height: 1.65; color: #bdbdbd; }
.pf-path ul { list-style: none; margin: 0; display: grid; gap: 3px; }
.pf-path li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.55; color: #a3a3a3; }
.pf-path li::before { content: "—"; position: absolute; left: 0; color: #444; }

.pf-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pf-go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #fff; }
.pf-go svg { width: 14px; height: 14px; flex: none; transition: transform .2s var(--ease); }
.pf-go:hover { color: #5FF4F4; }
.pf:hover .pf-go svg { transform: translateX(3px); }
.pf-ask { font-size: 14px; color: #858585; border-bottom: 1px dashed rgba(255,255,255,.2); }
.pf-ask:hover { color: #fff; border-bottom-color: #fff; }

.pf-more { display: flex; justify-content: center; margin-top: 28px; }
.pf-foot-band { display: grid; grid-template-columns: 1.3fr auto; gap: 20px 40px; align-items: center; margin-top: 30px; padding: 26px 30px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: #0b0b0b; }
.pf-foot-band p { margin: 0; font-size: 14px; line-height: 1.6; color: #858585; }
.pf-foot-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

@media (max-width: 1000px) { .pf-grid { grid-template-columns: 1fr; } .pf { padding: 26px 26px 26px; } }
@media (max-width: 860px) {
  .pf-toggle { display: flex; }
  .pf-panel { display: none; margin-top: 12px; }
  .pf-filters.is-open .pf-panel { display: block; }
  .pf-tabs { gap: 7px; }
  .pf-bar { padding: 12px 14px; }
}
@media (max-width: 720px) {
  .pfx { padding: 52px 0 60px; }
  .pf { padding: 22px 18px 22px; }
  .pf-claim { font-size: 1.22rem; max-width: none; }
  .pf-meta { white-space: normal; flex-wrap: wrap; }
  .pf-path > div { grid-template-columns: 1fr; gap: 4px; }
  .pf-foot-band { grid-template-columns: 1fr; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pf, .pf::after, .pf-go svg, .pf-det summary::after { transition: none !important; } }

/* --- Разбор: фраза-результат в шапке и прогресс чтения --- */
.read-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, #9EDC57, #00BFBF); transition: width .1s linear; }
.page-hero .cs-claim { font-family: "Outfit", var(--font-sans); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.26; font-weight: 600; letter-spacing: -.02em; color: #fff; margin: 4px 0 14px; max-width: 26ch; text-wrap: balance; }
.page-hero .cs-claim em { font-style: normal; background: linear-gradient(#9EDC57 0%, #00BFBF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .cs-proof { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 26px; font-size: .93rem; line-height: 1.5; color: #8ea0c8; max-width: 60ch; }
.page-hero .cs-proof svg { width: 16px; height: 16px; flex: none; margin-top: 3px; fill: none; stroke: #9EDC57; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.page-hero .cs-proof b { color: #b9c6e6; font-weight: 600; }
.page-hero .cs-proof + .hero-lead { font-size: 1.02rem; line-height: 1.62; color: #9fb0d4; }
@media (prefers-reduced-motion: reduce) { .read-bar { transition: none; } }

/* ================================================================
   ТЕМА САЙТА. Один слой, одна шкала.

   Правила, по которым собрана палитра:
   1. Ни чистого белого фона, ни чистого чёрного текста — от пары
      #fff / #000 глаз устаёт быстрее всего. Фон #f6f7f9, текст #1c2027.
   2. Все нейтральные оттенки одной температуры (слегка холодные,
      оттенок 215°). Тёплый серый рядом с холодным читается как грязь.
   3. Три ступени текста и три ступени фона. Больше — рябит.
   4. Один акцентный тон. Насыщенный на тёмном, приглушённый
      и затемнённый на светлом, чтобы держать контраст от 4.5:1.
   5. Иерархия делается кеглем и насыщенностью, цветом — только
      служебные состояния.
   ================================================================ */
:root {
  /* нейтральная шкала, холодная, оттенок 215° */
  --n-0:  #ffffff;
  --n-25: #f6f7f9;   /* фон страницы */
  --n-50: #eceff3;   /* второй уровень фона */
  --n-100:#e2e6ec;   /* линии */
  --n-200:#c9d0da;   /* сильные линии, границы полей */
  --n-400:#7b8494;   /* приглушённый текст */
  --n-500:#5d6675;   /* вторичный текст */
  --n-700:#3b434f;   /* основной текст */
  --n-900:#1c2027;   /* заголовки */

  /* тёмная сторона: те же ступени в обратную сторону */
  --d-950:#0b0d10;   /* фон тёмных блоков */
  --d-900:#101317;   /* поверхность */
  --d-800:#171b21;   /* поверхность 2 */

  /* один акцент: глубокий бирюзовый */
  --a-dark:  #0b7f69;  /* на светлом: 5.2:1 к белому */
  --a-darker:#08624f;  /* нажатие и наведение */
  --a-light: #2fd4ac;  /* на тёмном */
  --a-tint:  #eaf6f3;  /* мягкая заливка на светлом */

  --color-bg: var(--n-25);
  --color-bg-soft: var(--n-50);
  --color-bg-navy-soft: var(--n-50);
  --color-surface: var(--n-0);
  --color-surface-2: var(--n-50);
  --color-line: var(--n-100);
  --color-line-strong: var(--n-200);
  --color-field: var(--n-200);
  --color-ink: var(--n-900);
  --color-text: var(--n-700);
  --color-slate: var(--n-700);
  --color-slate-600: var(--n-500);
  --color-muted: var(--n-500);
  --color-teal: var(--a-dark);
  --color-teal-600: var(--a-darker);
  --color-teal-500: var(--a-dark);
  --color-teal-050: var(--a-tint);
  --color-navy: var(--n-900);
  --color-navy-700: var(--n-700);
  --color-navy-800: var(--n-900);

  --shadow-sm: 0 1px 2px rgba(28,32,39,.05);
  --shadow: 0 4px 18px rgba(28,32,39,.07);
  --shadow-lg: 0 16px 44px rgba(28,32,39,.10);
}

/* ---------- типографика: шкала 1.25, мера 62–72 знака ---------- */
body { background: var(--color-bg); color: var(--color-text); font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .pfx-h2, .band-h { font-family: "Outfit", var(--font-sans); font-weight: 700; letter-spacing: -.028em; line-height: 1.14; color: var(--color-ink); }
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); }
h3 { font-size: 1.14rem; line-height: 1.32; letter-spacing: -.02em; }
h4 { font-size: 1rem; letter-spacing: -.015em; }
p, li { line-height: 1.7; }
.lead, .pfx-lead, .hero-lead, .page-hero p { font-size: 1.08rem; line-height: 1.62; color: var(--color-muted); max-width: 64ch; }
.section-head.center .lead { margin-inline: auto; }
.card p, .step p, .svc-item p, .post-card p, .task-card p, .segment p, .cert p { font-size: 1rem; line-height: 1.66; color: var(--color-muted); }
.panel li, .qlist li, .task-points li, .pf-path dd { font-size: 1rem; line-height: 1.7; }
.faq details p, .doc-content p, .doc-content li { max-width: 72ch; line-height: 1.75; }
.eyebrow, .pfx-eyebrow { color: var(--color-teal); font-weight: 600; letter-spacing: .13em; }
a:hover { color: var(--color-teal); }
::selection { background: rgba(11,127,105,.16); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 3px; }

/* ---------- поверхности ---------- */
.card, .step, .svc-item, .faq details, .form-card, .post-card, .compare, .cert,
.task-card, .panel, .panel--plain, .modal-card, .drop, .chat-panel, .segment {
  background: var(--color-surface); border-color: var(--color-line); box-shadow: var(--shadow-sm);
}
.card:hover, .svc-item:hover, .post-card:hover, .task-card:hover { border-color: var(--color-line-strong); box-shadow: var(--shadow); }
.section--soft, .section--navy { background: var(--color-bg-soft); }
.page-hero { background: var(--color-bg-soft); color: var(--color-ink); border-bottom: 1px solid var(--color-line); }
.page-hero h1, .page-hero .cs-claim, .faq summary, .doc-content h2, .cta-band h2,
.site-footer h4, .site-footer .footer-h, .footer-brand, .limitbox h3, .compare-crit { color: var(--color-ink); }
.page-hero p, .hero-lead, .cta-band p, .doc-content .cta-band p, .limitbox,
.breadcrumbs, .breadcrumbs a, .hero-note, .page-hero .cs-proof { color: var(--color-muted); }
.hero-note svg, .page-hero .cs-proof svg { color: var(--color-teal); stroke: var(--color-teal); }
.page-hero .cs-claim em { background: none; -webkit-text-fill-color: var(--color-teal); color: var(--color-teal); }
.page-hero .cs-proof b { color: var(--color-text); }
.cta-band, .pf-foot-band { background: var(--color-surface); border: 1px solid var(--color-line); }
.site-footer { background: var(--color-bg-soft); border-top: 1px solid var(--color-line); color: var(--color-muted); }
.site-footer a { color: var(--color-slate-600); }
.site-footer a:hover { color: var(--color-teal); }

/* ---------- шапка: тёмная на всех страницах, как была ---------- */
.site-header, .site-header.scrolled { background: var(--d-950); border-bottom: 1px solid rgba(255,255,255,.07); }
.main-nav > ul { background: #161616; border: 0; }
.main-nav a { color: #d8d8d8; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.brand, .brand:hover { color: #fff; }
.brand small { color: #858585; }
.header-cta .btn-primary { background: #fff; color: var(--d-950); }
.header-cta .btn-primary:hover { background: #e8e8e8; color: var(--d-950); }
.drop { background: #101317; border-color: rgba(255,255,255,.08); }
.drop strong { color: #cfd3d9; }
.drop a:hover strong, .drop a:focus-visible strong { color: #fff; }
.drop a { color: #d8d8d8; }
.drop a span { color: #858585; }
.drop a:hover { background: rgba(255,255,255,.06); }
.drop .di { background: rgba(255,255,255,.06); color: var(--a-light); }
.nav-toggle { background: #161616; border-color: rgba(255,255,255,.1); }
.nav-toggle span { background: #fff; }

/* ---------- панели: цвет только полосой, без заливки ---------- */
.panel { padding-left: 26px; border-left: 3px solid var(--color-line-strong); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.panel.sol { border-left-color: var(--color-teal); }
.panel.pain { border-left-color: #b5705c; }
.panel.sol h3 { color: var(--color-ink); }
.panel.pain h3 { color: var(--color-ink); }
.panel li { color: var(--color-text); }
.panel.sol li::before { border-color: var(--color-teal); }
.panel.pain li::before { background: linear-gradient(45deg, transparent 44%, #b5705c 44%, #b5705c 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #b5705c 44%, #b5705c 56%, transparent 56%); }

/* ---------- таблица сравнения ---------- */
.compare-crit { background: var(--color-bg-soft); }
.compare-them { color: var(--color-muted); }
.compare-us { background: var(--a-tint); color: var(--color-text); }
.compare-head .compare-us { background: var(--color-teal); color: #fff; }
.compare-them svg { color: #b5705c; }
.compare-us svg { color: var(--color-teal); }
.compare-us .ctag, .compare--plans .compare-them .ctag { background: var(--color-bg-soft); color: var(--color-text); }

/* ---------- формы ---------- */
.form-row label { color: var(--color-text); }
.form-row input, .form-row textarea, .form-row select { background: var(--color-surface); border-color: var(--color-field); color: var(--color-ink); }
.form-row input::placeholder, .form-row textarea::placeholder, .subscribe input::placeholder { color: var(--n-400); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--color-teal); box-shadow: 0 0 0 3px rgba(11,127,105,.13); }
.form-success { background: var(--a-tint); border: 1px solid #bfe0d7; color: var(--a-darker); }
.form-error { background: #fbf0ed; border: 1px solid #edcfc6; color: #8f4632; }

/* ---------- элементы ---------- */
.step::before { color: var(--color-teal); }
.qlist li::before { background: var(--color-teal); color: #fff; }
.task-meta span { background: var(--a-tint); color: var(--a-darker); }
.task-meta span.ind { background: var(--color-bg-soft); color: var(--color-muted); }
.task-card .more, .post-card .more { color: var(--color-teal); }
.svc-item .price .p { color: var(--color-ink); }
.limitbox { background: var(--color-surface); border: 1px solid var(--color-line); border-left: 3px solid var(--color-teal); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; color: var(--color-text); }
.limitbox .li { background: var(--a-tint); color: var(--color-teal); }
.chip, .pf-stack li { background: var(--color-bg-soft); color: var(--color-muted); }
.read-bar { background: var(--color-teal); }
.logo-chip { background: var(--color-bg-soft); }
.to-top { background: var(--color-surface); border-color: var(--color-line); color: var(--color-ink); }
.chat-fab, .chat-input button, .chat-head .ava { background: var(--color-teal); color: #fff; }
.msg.bot { background: var(--color-bg-soft); color: var(--color-text); }
.chat-input { background: var(--color-surface); }
.chat-input input { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-field); }
.chat-quick button { background: var(--color-bg-soft); border-color: var(--color-line); color: var(--color-text); }

/* ---------- кнопки ---------- */
.btn-primary { background: var(--color-teal); color: #fff; }
.btn-primary:hover { background: var(--a-darker); color: #fff; }
.btn-dark { background: var(--color-ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline, .btn-outline-light { border-color: var(--color-line-strong); color: var(--color-ink); background: transparent; }
.btn-outline:hover, .btn-outline-light:hover { border-color: var(--color-teal); color: var(--color-teal); background: transparent; }
.btn-ghost { color: var(--color-teal); }
.btn-ghost:hover { background: var(--color-bg-soft); color: var(--a-darker); }
.filter-btn { background: var(--color-surface); border-color: var(--color-line); color: var(--color-text); }
.filter-btn:hover { border-color: var(--color-line-strong); color: var(--color-ink); }
.filter-btn.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

/* ---------- Главная: тёмный первый экран и направления, светлое портфолио ---------- */
html body .kg-hero { background: var(--d-950); }
html body .kg-linewrap { background: var(--d-950); }
html body .dirs { background: var(--d-900); }
html body .kg-offer { background: var(--d-800); border-color: rgba(255,255,255,.07); }
html body .kg-offer:hover { background: #1c2027; border-color: rgba(255,255,255,.14); }
html body .pfx {
  background: var(--color-bg); color: var(--color-text);
  border-top: 1px solid var(--color-line);
}
html body .pfx-h2 { color: var(--color-ink); }
html body .pfx-h2 span { background: none; -webkit-text-fill-color: var(--color-teal); color: var(--color-teal); }
html body .pfx-eyebrow { color: var(--color-teal); }
html body .pfx-eyebrow::before { background: var(--color-teal); }
html body .pfx-lead { color: var(--color-muted); }
html body .pf-sheet { background: var(--color-line); border-color: var(--color-line); }
html body .pf { background: var(--color-surface); }
html body .pf:hover { background: #fbfcfd; }
html body .pf-claim { color: var(--color-ink); }
html body .pf-claim em { background: none; -webkit-text-fill-color: var(--color-teal); color: var(--color-teal); }
html body .pf-proof { color: var(--color-muted); }
html body .pf-proof svg { stroke: var(--color-teal); }
html body .pf-proof b { color: var(--color-text); }
html body .pf-meta .ind { color: var(--color-text); }
html body .pf-meta .dir { color: var(--color-muted); }
html body .pf-name { border-top-color: var(--color-line); }
html body .pf-name h3 { color: var(--color-slate-600); }
html body .pf-det summary, html body .pf-reset, html body .pf-toggle-n { color: var(--color-teal); }
html body .pf-path dt { color: var(--n-400); }
html body .pf-path dt b { color: var(--color-ink); }
html body .pf-path dd { color: var(--color-text); }
html body .pf-path li { color: var(--color-muted); }
html body .pf-path li::before { color: var(--color-line-strong); }
html body .pf-stack li { background: var(--color-bg-soft); color: var(--color-muted); }
html body .pf-go { color: var(--color-ink); }
html body .pf-go:hover { color: var(--color-teal); }
html body .pf-ask { color: var(--color-muted); border-bottom-color: var(--color-line-strong); }
html body .pf-ask:hover { color: var(--color-ink); border-bottom-color: var(--color-ink); }
html body .pf-foot { border-top-color: var(--color-line); }
html body .pf-tab, html body .pf-bar, html body .pf-toggle { background: var(--color-surface); border-color: var(--color-line); color: var(--color-text); }
html body .pf-tab:hover { border-color: var(--color-line-strong); color: var(--color-ink); }
html body .pf-tab.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
html body .pf-tab-n { color: var(--n-500); }
html body .pf-tab.is-active .pf-tab-n { color: rgba(255,255,255,.78); }
html body .pf-bar-lbl { color: var(--n-400); }
html body .pf-sel { background-color: var(--color-surface); border-color: var(--color-line); color: var(--color-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235d6675' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
html body .pf-found { color: var(--color-muted); }
html body .pf-found b { color: var(--color-ink); }
html body .pf-empty { background: var(--color-surface); color: var(--color-muted); }
html body .pf-foot-band { background: var(--color-surface); border-color: var(--color-line); }
html body .pf-foot-band p { color: var(--color-muted); }
/* ярлыки: контраст 4.5 вместо 3.8 */
.pf-bar-lbl, .pf-path dt, html body .pf-bar-lbl, html body .pf-path dt { color: var(--n-500); }
@media (max-width: 900px) { .main-nav { background: var(--d-950); } .main-nav > ul { background: transparent; } .main-nav a { color: #e6e6e6; } }

/* ---------- Шапка внутренних страниц: один ритм ---------- */
.page-hero { padding: 56px 0 52px; }
.page-hero .eyebrow { color: var(--a-darker); }
.page-hero h1 { margin-bottom: 18px; max-width: 20ch; }
.page-hero .cs-claim { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; line-height: 1.32; max-width: 30ch; margin: 0 0 12px; }
.page-hero .cs-proof { margin-bottom: 22px; }
.page-hero .hero-lead,
.page-hero .cs-proof + .hero-lead,
.page-hero p { font-size: 1rem; line-height: 1.7; color: var(--n-500); max-width: 64ch; margin-bottom: 28px; }
.page-hero .hero-actions { margin-bottom: 22px; }

/* галочки под кнопками: аккуратный столбец вместо рваной строки */
.hero-note { display: grid; gap: 8px; margin: 0; font-size: .93rem; color: var(--n-500); }
.hero-note span { display: inline-flex; align-items: flex-start; gap: 9px; }
.hero-note svg { margin-top: 4px; }
@media (min-width: 900px) { .hero-note { display: flex; flex-wrap: wrap; gap: 10px 30px; } .hero-note span { align-items: center; } .hero-note svg { margin-top: 0; } }
/* карточка портфолио: подвал теперь с одной ссылкой */
html body .pf-foot { justify-content: flex-start; }
html body .pf-det summary { color: var(--n-500); font-weight: 500; }
html body .pf-det summary:hover { color: var(--color-teal); }
html body .pf-name h3 { color: var(--color-text); font-weight: 600; }

/* блок «Задача» на страницах разборов */
.cs-task { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 940px; }
.cs-task-lbl { font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--color-teal); padding-top: 6px; }
.cs-task p { margin: 0; font-size: 1.1rem; line-height: 1.72; color: var(--color-text); max-width: 68ch; }
@media (max-width: 720px) { .cs-task { grid-template-columns: 1fr; gap: 10px; } .cs-task-lbl { padding-top: 0; } }
/* шапка разбора без лида: короче и собраннее */
.page-hero h1 { text-wrap: balance; }
.page-hero .cs-claim { text-wrap: balance; }

/* ---------- Ритм секций: чередование задаётся правилом, а не руками ---------- */
main > section.section:nth-of-type(odd) { background: var(--color-bg-soft); }
main > section.section:nth-of-type(even) { background: transparent; }
main > section.page-hero { background: var(--color-bg-soft); }
main > section.section { padding: 76px 0; }
main > section.section:last-of-type { padding-bottom: 88px; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
/* строка архитектуры в раскрывашке карточки */
html body .pf-path dd { line-height: 1.68; }
html body .pf-path > div:nth-last-child(2) dd { color: var(--color-muted); }
/* этапы работ в раскрывашке карточки */
.pf-steps { list-style: none; counter-reset: st; margin: 0; display: grid; gap: 10px; }
.pf-steps li { counter-increment: st; position: relative; padding-left: 30px; font-size: .95rem; line-height: 1.62; color: var(--color-muted); }
.pf-steps li::before { content: counter(st); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-bg-soft); color: var(--color-teal); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.pf-steps b { display: block; color: var(--color-text); font-weight: 600; margin-bottom: 2px; }

/* --- Разбор: этапы работ и стек --- */
.cs-how { list-style: none; counter-reset: how; margin: 0; display: grid; gap: 22px; max-width: 900px; }
.cs-how li { counter-increment: how; position: relative; padding-left: 56px; }
.cs-how li::before { content: counter(how, decimal-leading-zero); position: absolute; left: 0; top: 2px; font-family: "Outfit", var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--color-teal); }
.cs-how b { display: block; font-family: "Outfit", var(--font-sans); font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em; color: var(--color-ink); margin-bottom: 5px; }
.cs-how span { display: block; font-size: 1rem; line-height: 1.7; color: var(--color-muted); max-width: 70ch; }
.cs-arch { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 44px; align-items: start; }
.cs-arch-txt { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--color-text); }
.cs-stack { padding: 24px 26px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); }
.cs-stack-lbl { display: block; margin-bottom: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--color-teal); }
.cs-stack ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.cs-stack li { padding: 6px 12px; border-radius: 999px; background: var(--color-bg-soft); font-size: .84rem; font-weight: 600; color: var(--color-text); }
@media (max-width: 860px) {
  .cs-arch { grid-template-columns: 1fr; gap: 26px; }
  .cs-how li { padding-left: 40px; }
}

/* заголовок карточки — ссылка на деталку */
.pf-claim { margin: 0 0 18px; }
.pf-claim a, .pf-claim-btn {
  display: inline; margin: 0; padding: 0; border: 0; background: none; text-align: left;
  font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit;
}
.pf-claim a:hover, .pf-claim-btn:hover { color: inherit; }
.pf-claim a:hover em, .pf-claim-btn:hover em { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pf-claim a:focus-visible, .pf-claim-btn:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 4px; border-radius: 4px; }
html body .pf-name p { font-size: 15px; line-height: 1.45; font-weight: 500; color: var(--color-slate-600); margin: 0; }

/* ============================ Бегущая строка стека ============================ */
.tk { background: var(--d-950); color: #fff; padding: 30px 0 34px; overflow: hidden; }
.tk-wrap { position: relative; }
.tk-wrap::before, .tk-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.tk-wrap::before { left: 0; background: linear-gradient(90deg, var(--d-950), rgba(11,13,16,0)); }
.tk-wrap::after { right: 0; background: linear-gradient(270deg, var(--d-950), rgba(11,13,16,0)); }

.tk-row { display: flex; width: max-content; }

.tk-track { list-style: none; display: flex; align-items: flex-start; gap: 48px; margin: 0; padding: 0 24px; will-change: transform; }
.tk-a .tk-track { animation: tk-move 120s linear infinite; }
.tk:hover .tk-track { animation-play-state: paused; }
@keyframes tk-move { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.tk-track li { flex: none; text-align: center; }
.tk-track b {
  display: block; font-family: "Outfit", var(--font-sans); font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; color: #e8e8e8; white-space: nowrap;
}
.tk-track span { display: block; margin-top: 5px; font-size: 11.5px; line-height: 1.4; color: #8d8d8d; white-space: nowrap; }

@media (max-width: 720px) {
  .tk { padding: 24px 0 26px; }
  .tk-track { gap: 30px; }
  .tk-track b { font-size: 17px; }

  .tk-wrap::before, .tk-wrap::after { width: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none !important; }
  .tk-row { width: 100%; overflow-x: auto; }
  .tk-row .tk-track[aria-hidden="true"] { display: none; }
}

/* ============================ Градиентный призыв после портфолио ============================ */
.cta-gs { background: var(--d-950); padding: 74px 0 78px; }
.cta-g {
  padding: 52px 56px 54px; border-radius: 22px;
  background: linear-gradient(103deg, #5FF4F4 0%, #7DF0B4 48%, #ACF459 100%);
  color: #0b1f1a;
}
.cta-g h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 2.9vw, 2.3rem); color: #08211b; letter-spacing: -.028em; }
.cta-g p { margin: 0 0 30px; max-width: 62ch; font-size: 1.05rem; line-height: 1.66; color: #14413a; }
.cta-g-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-g-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 10px; background: #0b0d10; color: #fff;
  font-family: "Outfit", var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.cta-g-btn:hover { background: #1b1f25; color: #fff; transform: translateY(-1px); }
.cta-g-note { font-size: .88rem; color: #1c4d44; }
@media (max-width: 720px) {
  .cta-gs { padding: 44px 0 48px; }
  .cta-g { padding: 32px 24px 34px; border-radius: 16px; }
  .cta-g p { font-size: 1rem; margin-bottom: 24px; }
  .cta-g-btn { width: 100%; }
}

/* ============================ Строка областей: таблетки ============================ */
.tk-row + .tk-row { margin-top: 16px; }
.tk-b .tk-track { animation: tk-move 78s linear infinite reverse; align-items: center; gap: 12px; }
.tk-chip {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03);
  font-size: 13.5px; line-height: 1.2; color: #8f8f8f; white-space: nowrap;
}

/* ============================ Отзывы ============================ */
.tst { background: #fff; padding: 74px 0 82px; }
.tst-slider { position: relative; }
.tst-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.tst-track::-webkit-scrollbar { display: none; }
.tst-card {
  flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column; margin: 0;
  padding: 28px 28px 24px; border-radius: 16px;
  border: 1px solid var(--color-line); background: var(--color-bg-soft);
}
.tst-nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.tst-arrow {
  width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--color-line-strong); background: transparent; color: var(--color-ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.tst-arrow svg { width: 20px; height: 20px; }
.tst-arrow:hover:not(:disabled) { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.tst-arrow:disabled { opacity: .3; cursor: default; }
.tst-dots { display: flex; align-items: center; gap: 8px; }
.tst-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--color-line-strong); transition: background .2s var(--ease), width .2s var(--ease);
}
.tst-dot[aria-selected="true"] { width: 26px; border-radius: 999px; background: var(--color-teal); }
.tst-card::before {
  content: "«"; display: block; font-family: "Outfit", var(--font-sans);
  font-size: 44px; line-height: .6; color: var(--color-teal); opacity: .55; margin-bottom: 14px;
}
.tst-track { scroll-padding-left: 0; }
.tst-card blockquote {
  margin: 0 0 22px; padding: 0; border: 0; flex: 1;
  font-size: 1rem; line-height: 1.68; color: var(--n-800);
}
.tst-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--color-line); }
.tst-ava {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--a-tint); color: var(--a-darker);
  font-family: "Outfit", var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.tst-card figcaption b { display: block; font-size: 14.5px; font-weight: 600; color: var(--color-ink); }
.tst-card figcaption i { display: block; font-style: normal; font-size: 13px; color: var(--color-muted); margin-top: 2px; }

/* ============================ Статьи из блога ============================ */
.bl { background: #f6f7f9; padding: 74px 0 84px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--color-line); background: #fff;
  color: inherit; text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.bl-card:hover { border-color: var(--color-line-strong); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,28,42,.09); }
.bl-cover { display: block; overflow: hidden; background: #0e1116; }
.bl-cover img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .35s var(--ease); }
.bl-card:hover .bl-cover img { transform: scale(1.035); }
.bl-meta { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; font-size: 12.5px; color: var(--color-muted); }
.bl-cat { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; color: var(--color-teal); }
.bl-cat::after { content: "·"; margin-left: 12px; color: var(--color-line-strong); }
.bl-card h3 { margin: 11px 0 9px; padding: 0 22px; font-size: 1.08rem; line-height: 1.34; font-weight: 600; color: var(--color-ink); letter-spacing: -.012em; }
.bl-card p { margin: 0 0 20px; padding: 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--color-muted); }
.bl-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 0 22px 22px; font-size: 14px; font-weight: 600; color: var(--color-teal); }
.bl-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.bl-card:hover .bl-more svg { transform: translateX(4px); }
.bl-all {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 34px;
  font-size: 15px; font-weight: 600; color: var(--color-ink);
  border-bottom: 1px solid var(--color-line-strong); padding-bottom: 3px;
}
.bl-all:hover { color: var(--color-teal); border-bottom-color: var(--color-teal); }
.bl-all svg { width: 17px; height: 17px; }

@media (max-width: 1024px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
  .tst-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 720px) {
  .tst, .bl { padding: 48px 0 54px; }
  .bl-grid { grid-template-columns: 1fr; gap: 16px; }
  .tst-track { gap: 14px; }
  .tst-card { flex-basis: 88%; }
  .tst-nav { margin-top: 20px; }
  .tst-card { padding: 24px 22px 20px; }
  .tk-chip { font-size: 12.5px; padding: 6px 13px; }
  .tk-row + .tk-row { margin-top: 12px; }
}

/* ============================ Подвал: тёмное закрытие страницы ============================ */
html body .site-footer { background: var(--d-950); border-top: 0; color: #9096a0; padding: 68px 0 26px; }
html body .site-footer h4, html body .site-footer .footer-h { color: #fff; font-size: .78rem; letter-spacing: .12em; }
html body .footer-brand { color: #fff; }
html body .footer-about { color: #9096a0; }
html body .site-footer a { color: #b6bcc6; }
html body .site-footer a:hover { color: #6fe3c9; }
html body .socials a { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: #cdd2da; }
html body .socials a:hover { background: #6fe3c9; border-color: #6fe3c9; color: var(--d-950); }
html body .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); color: #7d838d; }
html body .site-footer .subscribe input {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 10px;
}
html body .site-footer .subscribe input::placeholder { color: #7d838d; }
html body .site-footer .subscribe input:focus { border-color: #6fe3c9; outline: none; }
html body .site-footer .btn-primary { background: #fff; color: var(--d-950); border-color: #fff; }
html body .site-footer .btn-primary:hover { background: #6fe3c9; color: var(--d-950); border-color: #6fe3c9; }
html body .site-footer .btn-outline-light { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); color: #fff; }
html body .site-footer .btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.36); color: #fff; }
html body .site-footer .form-success { background: rgba(111,227,201,.12); border: 1px solid rgba(111,227,201,.3); color: #8fecd6; }
/* раскладка подвала: услуги в две колонки, чтобы ссылки не ломались по слогам */
html body .footer-grid { grid-template-columns: 1fr 1.7fr .75fr 1.7fr; gap: 40px; margin-bottom: 40px; }
html body .footer-grid > div:last-child ul { columns: 2; column-gap: 26px; }
html body .footer-grid > div:last-child li { break-inside: avoid; }
html body .footer-call { display: inline-flex; margin-top: 22px; }
html body .footer-grid > div:nth-child(2) ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-content: start; }
html body .site-footer li { margin-bottom: 12px; font-size: 14px; line-height: 1.45; }
html body .footer-about { font-size: 14px; line-height: 1.6; }
html body .site-footer .subscribe { gap: 8px; }
html body .site-footer .subscribe input { padding: 12px 14px; font-size: 14px; }
html body .site-footer .subscribe .btn-primary { border-radius: 10px; padding: 12px 20px; }
html body .footer-bottom { font-size: 13.5px; padding-top: 22px; }
@media (max-width: 1080px) {
  html body .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  html body .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  html body .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  html body .footer-grid > div:nth-child(2) ul { grid-template-columns: 1fr 1fr; }
  html body .footer-grid > div:last-child ul { columns: 1; }
  html body .site-footer { padding: 48px 0 22px; }
  html body .footer-call { width: 100%; justify-content: center; }
}
/* обложки в списке блога */
html body .post-card .thumb { display: block; aspect-ratio: 5 / 3; background: #0e1116; overflow: hidden; }
html body .post-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ============================ Плавающие кнопки: справа, над чатом ============================ */
html body .contact-dock { left: auto; right: 24px; bottom: 24px; gap: 12px; }
.dock-btn {
  width: 52px; height: 52px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid var(--color-line); background: var(--color-surface); color: var(--color-ink);
  box-shadow: 0 10px 26px rgba(16,24,40,.16);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.dock-btn svg { width: 22px; height: 22px; }
.dock-btn:hover { transform: translateY(-2px); border-color: var(--color-teal); background: var(--color-teal); color: #fff; }
.dock-tg:hover { background: #229ED9; border-color: #229ED9; }
@media (max-width: 520px) {
  html body .contact-dock { left: auto; right: 16px; bottom: 16px; gap: 10px; }
  .dock-btn { width: 46px; height: 46px; }
  .dock-btn svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .dock-btn:hover { transform: none; }
}

/* ============================ Блок смежных ссылок на посадочных ============================ */
.rel-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rel-links li { margin: 0; }
.rel-links a {
  display: flex; align-items: center; min-height: 100%; padding: 18px 20px;
  border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface);
  font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--color-ink);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.rel-links a::after { content: "→"; margin-left: auto; padding-left: 14px; color: var(--color-teal); }
.rel-links a:hover { border-color: var(--color-teal); color: var(--color-teal); transform: translateY(-2px); }
@media (max-width: 900px) { .rel-links { grid-template-columns: 1fr; } }
/* рубрика и время чтения на статьях — в палитре сайта, а не старым бирюзовым */
html body .tag-pill {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--a-tint); border: 1px solid #bfe0d7; color: var(--a-darker);
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
}

/* ============================ Контраст: доводка после обхода страниц ============================ */
/* надзаголовок падал до 4.28 на сером фоне секции — берём тёмный оттенок акцента */
html body .eyebrow, html body .pfx-eyebrow { color: var(--a-darker); }
html body .eyebrow::before, html body .pfx-eyebrow::before { background: var(--a-darker); }
/* мелкие серые подписи на тёмном: 3.7 → 5.6 */
html body .dir-lab, html body .band-d, html body .kg-sub small { color: #9a9a9a; }
/* акцентные слова в заголовках разборов и «все статьи» — тот же тёмный оттенок */
html body .page-hero .cs-claim em, html body .pf-claim em { color: var(--a-darker); -webkit-text-fill-color: var(--a-darker); }
html body .bl-all { padding: 8px 0 8px; }
/* мобильное меню: выпадающий список не должен распирать панель шире экрана */
@media (max-width: 860px) {
  html body .main-nav { max-width: 100%; overflow-x: hidden; }
  html body .drop { min-width: 0; max-width: 100%; padding: 6px 0 6px 14px; }
  html body .drop strong { white-space: normal; }
  html body .drop li + li { margin-top: 14px; }
}
/* карточка результата: на узком экране столбцы складываются, иначе строка не ужимается */
@media (max-width: 720px) {
  html body .svc-item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px 16px; padding: 18px 18px; align-items: start; }
  html body .svc-item .si { width: 44px; height: 44px; border-radius: 12px; }
  html body .svc-item .si svg { width: 22px; height: 22px; }
  html body .svc-item .price { grid-column: 2; text-align: left; }
  html body .svc-item h3 { font-size: 1.04rem; }
}

/* ============================ Схемы «как устроено» ============================ */
.dia { margin: 0; padding: 26px 26px 20px; border: 1px solid var(--color-line); border-radius: 18px; background: var(--color-surface); }
.dia svg { display: block; width: 100%; height: auto; }
.dia figcaption { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-line); font-size: 14.5px; line-height: 1.6; color: var(--color-muted); max-width: 74ch; }
@media (max-width: 860px) {
  .dia { padding: 14px 14px 16px; border-radius: 14px; overflow-x: auto; }
  .dia svg { min-width: 660px; }
  .dia figcaption { font-size: 13.5px; }
}

/* ============================ Реквизиты ============================ */
.req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.req > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-line); }
.req dt { margin: 0; font-size: 13.5px; color: var(--color-muted); }
.req dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.req-note { margin: 26px 0 0; max-width: 78ch; font-size: 14.5px; line-height: 1.65; color: var(--color-muted); }
html body .footer-legal { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; line-height: 1.6; color: #7d838d; }
@media (max-width: 900px) {
  .req { grid-template-columns: 1fr; gap: 0; }
  .req > div { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}
.req-wide { grid-column: 1 / -1; }
@media (min-width: 901px) { .req-wide { grid-template-columns: 190px minmax(0, 1fr); } }

/* ============================ Наведение на кнопки ============================ */
/* Правила вида `.page-hero a:hover { color: var(--color-teal) }` писались для текстовых
   ссылок, но по специфичности перебивали `.btn-primary:hover` — и подпись на кнопке
   становилась одного цвета с её фоном. Возвращаем кнопкам их собственное наведение. */
html body a.btn-primary:hover,
html body button.btn-primary:hover {
  background: var(--a-darker); color: #fff; border-color: var(--a-darker);
}
html body a.btn-outline:hover, html body a.btn-outline-light:hover,
html body button.btn-outline:hover, html body button.btn-outline-light:hover {
  color: var(--color-teal); border-color: var(--color-teal); background: transparent;
}
html body a.kg-btn-primary:hover { color: #0b0b0b; }
html body a.kg-btn-ghost:hover { color: #fff; }
html body a.cta-g-btn:hover { color: #fff; }
/* мятное свечение осталось от прежней палитры и не подходит тёмно-зелёной кнопке */
html body .btn-primary { box-shadow: 0 6px 18px rgba(11,127,105,.22); }
html body .btn-primary:hover { box-shadow: 0 8px 22px rgba(8,98,79,.28); }
html body .site-footer .btn-primary, html body .header-cta .btn-primary { box-shadow: none; }

/* ============================ Список результатов: было тяжело ============================ */
/* Тёмный квадрат с одной и той же галочкой шесть раз подряд забирал внимание и место.
   Заменяем на нумерацию: список артефактов упорядочен по сроку сдачи, и номер это показывает. */
html body .svc-list { counter-reset: svc; gap: 0; border-top: 1px solid var(--color-line); }
html body .svc-item {
  counter-increment: svc; border: 0; border-bottom: 1px solid var(--color-line);
  border-radius: 0; background: transparent; padding: 22px 4px; align-items: start;
  grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px 20px;
}
html body .svc-item:hover { transform: none; box-shadow: none; background: var(--color-surface); }
html body .svc-item .si {
  width: 34px; height: 34px; border-radius: 50%; background: var(--a-tint); color: var(--a-darker);
  font-family: "Outfit", var(--font-sans); font-size: 14px; font-weight: 600; margin-top: 2px;
}
html body .svc-item .si svg { display: none; }
html body .svc-item .si::before { content: counter(svc, decimal-leading-zero); }
html body .svc-item h3 { font-size: 1.06rem; line-height: 1.35; margin: 0 0 4px; }
html body .svc-item .price { align-self: start; margin-top: 4px; }
html body .svc-item .price .p {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--color-bg-soft); border: 1px solid var(--color-line);
  font-size: 12.5px; font-weight: 600; color: var(--color-muted); white-space: nowrap;
}
@media (max-width: 720px) {
  html body .svc-item { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 14px; padding: 18px 2px; }
  html body .svc-item .price { grid-column: 2; margin-top: 8px; }
  html body .svc-item .si { width: 30px; height: 30px; font-size: 13px; }
}

/* наведение: подпись на светлой кнопке не должна уходить в цвет фона */
html body a.btn-outline-light:hover, html body .page-hero a.btn-outline-light:hover { color: var(--a-darker); border-color: var(--a-darker); }
html body .pf-tab.is-active:hover, html body .pf-tab.is-active { color: #fff; }

/* ============================ Таблица тарифов ============================ */
.tar { border-top: 1px solid var(--color-line); }
.tar-row { display: grid; grid-template-columns: 2fr 1.15fr .8fr 1.7fr; gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--color-line); align-items: start; }
.tar-row.tar-head { padding: 12px 4px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); border-bottom-color: var(--color-line-strong); }
.tar-head .tar-lab { display: none; }
.tar-row > div { font-size: 14.5px; line-height: 1.55; color: var(--color-muted); }
.tar-row b { display: block; font-size: 15.5px; font-weight: 600; color: var(--color-ink); }
.tar-row > div > span:not(.tar-lab) { display: block; margin-top: 4px; font-size: 13.5px; }
.tar-row > div:nth-child(2) b { font-family: "Outfit", var(--font-sans); font-size: 1.12rem; color: var(--a-darker); font-variant-numeric: tabular-nums; }
.tar-row:not(.tar-head):hover { background: var(--color-surface); }
.tar-lab { display: none; }
.tar-note { margin: 22px 0 0; max-width: 82ch; font-size: 14.5px; line-height: 1.65; color: var(--color-muted); }
@media (max-width: 900px) {
  .tar-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 2px; }
  .tar-row.tar-head { display: none; }
  .tar-lab { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--color-muted); }
  .tar-row > div:nth-child(2) b { font-size: 1.06rem; }
}

/* ============================ Врезка портфолио на странице услуги ============================ */
.pf-teaser .card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.pf-teaser .card h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.06rem; line-height: 1.35; }
.pf-teaser .card h3 b {
  margin-left: auto; padding: 3px 11px; border-radius: 999px; flex: none;
  background: var(--a-tint); color: var(--a-darker);
  font-family: "Outfit", var(--font-sans); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pf-teaser .card p { flex: 1; margin-bottom: 16px; }
.pf-teaser .card .bl-more { padding: 0; margin-top: auto; }
.pf-teaser .card:hover .bl-more svg { transform: translateX(4px); }

/* несколько блоков «текст + стек» подряд: разделяем, иначе читаются как один */
.cs-arch + .cs-arch { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--color-line); }
@media (max-width: 860px) { .cs-arch + .cs-arch { margin-top: 22px; padding-top: 22px; } }
/* белая кнопка заявки в тёмном блоке направлений */
html body .dirs .dir-cta { display: flex; width: max-content; margin: 52px auto 0; height: 40px; padding: 0 28px; border-radius: 8px; font-size: 14px; font-weight: 500; background: #fff; color: var(--d-950); border-color: #fff; box-shadow: none; }
html body .dirs .dir-cta:hover { background: #e6e6e6; color: var(--d-950); border-color: #e6e6e6; }

/* ворота реестра: условие + кто за него отвечает (страница портирования) */
.gate { border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.gate-row { display: grid; grid-template-columns: 152px 1fr; align-items: stretch; }
.gate-row + .gate-row { border-top: 1px solid var(--color-line); }
.gate-who { padding: 20px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.35; }
.gate-row.us .gate-who { background: var(--color-teal-050); color: var(--color-teal-600); }
.gate-row.you .gate-who { background: var(--color-bg-navy-soft); color: var(--color-navy); }
.gate-row.stop .gate-who { background: #fff5f5; color: #c0392b; }
.gate-txt { padding: 20px 24px; }
.gate-txt b { display: block; font-size: 1.03rem; font-weight: 700; margin-bottom: 5px; }
.gate-txt span { display: block; color: var(--color-muted); font-size: .94rem; line-height: 1.55; }
.gate-note { margin: 18px 0 0; color: var(--color-muted); font-size: .92rem; line-height: 1.6; }
@media (max-width: 720px) {
  .gate-row { grid-template-columns: 1fr; }
  .gate-who { padding: 14px 20px 0; }
  .gate-txt { padding: 8px 20px 20px; }
}

/* «зеркало»: что не в порядке внутри → что из-за этого увидит клиент (страница порталов) */
.mirror { border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.mirror-row { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: stretch; }
.mirror-row + .mirror-row { border-top: 1px solid var(--color-line); }
.mirror-row.mirror-head { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mirror-head .mirror-in { background: var(--color-navy); color: #cdd8ee; }
.mirror-head .mirror-out { background: #c0392b; color: #fff; }
.mirror-head .mirror-arrow { background: var(--color-navy); }
.mirror-in, .mirror-out { padding: 18px 22px; font-size: .96rem; line-height: 1.55; }
.mirror-in { background: var(--color-bg-soft); color: var(--color-slate); }
.mirror-out { background: #fff5f5; color: var(--color-ink); }
.mirror-arrow { display: grid; place-items: center; background: var(--color-bg-soft); color: #c0392b; }
.mirror-arrow svg { width: 19px; height: 19px; }
.mirror-lab { display: none; }
@media (max-width: 720px) {
  .mirror-row { grid-template-columns: 1fr; }
  .mirror-row.mirror-head { display: none; }
  .mirror-arrow { height: 30px; }
  .mirror-arrow svg { transform: rotate(90deg); }
  .mirror-lab { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--color-muted); }
  .mirror-out .mirror-lab { color: #c0392b; }
}

/* лестница съёма данных: уровень → что можно посчитать и чего нельзя (страница корпоративных систем) */
.ladder { display: grid; gap: 14px; }
.lad { display: grid; grid-template-columns: 92px 1fr 1fr; align-items: stretch; border: 1px solid var(--color-line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.lad-n { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px 10px; background: var(--color-bg-soft); }
.lad-n b { font-family: "Outfit", var(--font-sans); font-size: 1.5rem; font-weight: 800; color: var(--color-muted); line-height: 1; }
.lad-bars { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.lad-bars i { width: 5px; border-radius: 2px; background: var(--color-line); }
.lad-bars i:nth-child(1) { height: 7px; } .lad-bars i:nth-child(2) { height: 11px; }
.lad-bars i:nth-child(3) { height: 15px; } .lad-bars i:nth-child(4) { height: 20px; }
.lad[data-lvl="1"] .lad-bars i:nth-child(-n+1),
.lad[data-lvl="2"] .lad-bars i:nth-child(-n+2),
.lad[data-lvl="3"] .lad-bars i:nth-child(-n+3),
.lad[data-lvl="4"] .lad-bars i:nth-child(-n+4) { background: var(--color-teal-600); }
.lad[data-lvl="4"] .lad-n { background: var(--color-teal-050); }
.lad[data-lvl="4"] .lad-n b { color: var(--color-teal-600); }
.lad-what { padding: 20px 24px; border-left: 1px solid var(--color-line); }
.lad-what h3 { font-size: 1.06rem; margin-bottom: 5px; }
.lad-what p { margin: 0; color: var(--color-muted); font-size: .94rem; line-height: 1.55; }
.lad-can { padding: 20px 24px; border-left: 1px solid var(--color-line); display: grid; gap: 10px; align-content: start; }
.lad-can span { display: block; font-size: .91rem; line-height: 1.5; padding-left: 20px; position: relative; }
.lad-can .yes { color: var(--color-slate); }
.lad-can .yes::before { content: ""; position: absolute; left: 3px; top: .42em; width: 6px; height: 10px; border: solid var(--color-teal-600); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lad-can .no { color: #a2454f; }
.lad-can .no::before { content: ""; position: absolute; left: 0; top: .38em; width: 11px; height: 11px; background: linear-gradient(45deg, transparent 44%, #d1495b 44%, #d1495b 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #d1495b 44%, #d1495b 56%, transparent 56%); }
@media (max-width: 860px) {
  .lad { grid-template-columns: 68px 1fr; }
  .lad-can { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--color-line); background: var(--color-bg-soft); }
  .lad-n { padding: 16px 6px; }
}


/* карточки цен на странице тарифов */
.plans { display: grid; gap: 22px; }
.plans-1 { grid-template-columns: 1fr; }
.plans-3 { grid-template-columns: repeat(3, 1fr); }
.plans-2 { grid-template-columns: repeat(2, 1fr); }
.plan { display: flex; flex-direction: column; padding: 30px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-lg); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan--wide { grid-column: 1 / -1; }
.plan--hi { border-color: var(--a-darker); }
.plan h3 { font-size: 1.14rem; margin: 0 0 6px; }
.plan-for { margin: 0 0 22px; color: var(--color-muted); font-size: .93rem; line-height: 1.5; }
.plan-price { font-family: "Outfit", var(--font-sans); font-size: 1.7rem; font-weight: 800; color: var(--color-navy); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price em { display: block; margin-top: 5px; font-size: .82rem; font-weight: 600; font-style: normal; color: var(--color-muted); white-space: normal; }
.plan-term { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 14px; padding: 5px 13px; border-radius: 999px; background: var(--color-teal-050); color: var(--color-teal-600); font-size: .82rem; font-weight: 700; }
.plan-out { margin-top: auto; padding-top: 22px; }
.plan-out::before { content: ""; display: block; height: 1px; background: var(--color-line); margin-bottom: 16px; }
.plan-out b { display: block; margin-bottom: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--color-muted); }
.plan-out p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--color-slate); }
@media (max-width: 980px) { .plans-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .plans-3, .plans-2 { grid-template-columns: 1fr; } .plan { padding: 24px; } }


/* --- правки после сплошной проверки контраста и мобильной вёрстки --- */
/* светлая тема: блок статистики на «о компании» перестал быть тёмным */
html body .section--navy h2, html body .section--navy h3 { color: var(--color-ink); }
html body .section--navy .hero-stats .n { color: var(--color-navy); }
html body .section--navy .hero-stats .l { color: var(--color-muted); }
/* метки в таблице сравнения: держим норму контраста на плашках */
@media (max-width: 860px) {
  html body .compare-them .ctag { color: #a5303f; background: rgba(209,73,91,.14); }
  html body .compare-us .ctag { color: var(--a-darker); background: rgba(11,127,105,.14); }
  html body .compare--plans .compare-them .ctag { color: var(--a-darker); background: rgba(11,127,105,.14); }
}
/* точки слайдера отзывов: видимая точка 8px, палец попадает в 28px */
.tst-dot { position: relative; }
.tst-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; transform: translate(-50%, -50%); }
/* чекбокс согласия: на телефоне 16px слишком мелкая цель */
@media (max-width: 680px) {
  .consent input[type="checkbox"] { width: 22px; height: 22px; }
}


/* --- скорость: не считаем раскладку и отрисовку того, что за экраном ---
   ставим на секции целиком, а не на карточки: у карточек в сетке высота
   зависит от соседей, и подменять её заглушкой нельзя — поедет ряд --- */
main > section:not(.page-hero) { content-visibility: auto; contain-intrinsic-size: auto 620px; }
@media print { main > section { content-visibility: visible; } }

/* без JS содержимое всё равно видно: анимация появления включается только скриптом */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* заголовки колонок подвала: уровень h2 для иерархии, вид прежний */
.site-footer .footer-h { font-weight: 700; line-height: 1.3; }

/* Пагинация блога: те же пилюли, что у .filter-btn, плюс стрелки по бокам */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pager-nums { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pager-num { min-width: 42px; height: 42px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--color-line); background: #fff; font-weight: 700; color: var(--color-slate); transition: all .2s var(--ease); }
.pager-num:hover { border-color: var(--color-navy); }
.pager-num.is-active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); cursor: default; }
.pager-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--color-line); background: #fff; color: var(--color-slate); transition: all .2s var(--ease); }
.pager-arrow svg { width: 18px; height: 18px; }
.pager-arrow:hover:not(:disabled) { border-color: var(--color-navy); color: var(--color-navy); }
.pager-arrow:disabled { opacity: .35; cursor: default; }
html body .pager-num { background: var(--color-surface); border-color: var(--color-line); color: var(--color-text); }
html body .pager-num:hover { border-color: var(--color-line-strong); color: var(--color-ink); }
html body .pager-num.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
html body .pager-arrow { background: var(--color-surface); border-color: var(--color-line); color: var(--color-text); }
html body .pager-arrow:hover:not(:disabled) { border-color: var(--color-line-strong); color: var(--color-ink); }
@media (max-width: 480px) {
  .pager-num, .pager-arrow { min-width: 38px; height: 38px; }
}

/* таблицы внутри статей блога: прокручиваются в своей рамке, страницу вбок не раздвигают */
.art-table { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--color-line); border-radius: 14px; background: var(--color-surface, #fff); }
.art-table table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.art-table th, .art-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-line); line-height: 1.5; }
.art-table th { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); background: var(--color-bg-soft); white-space: nowrap; }
.art-table tr:last-child td { border-bottom: 0; }
.art-table td:first-child { font-weight: 600; color: var(--color-ink); }
.art-table td.num, .art-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.art-note { margin: 1.4em 0; padding: 16px 20px; border-radius: 12px; background: var(--color-bg-soft); border: 1px solid var(--color-line); font-size: .96rem; color: var(--color-slate); line-height: 1.6; }
.art-note b { color: var(--color-ink); }
.art-formula { margin: 1.4em 0; padding: 18px 22px; border-radius: 12px; background: var(--color-teal-050); border: 1px solid var(--color-line); font-family: "Outfit", var(--font-sans); font-size: 1.12rem; font-weight: 600; color: var(--color-ink); line-height: 1.7; overflow-x: auto; }
.art-faq { margin-top: 2.2em; }
.art-faq details { border-bottom: 1px solid var(--color-line); padding: 14px 0; }
.art-faq summary { cursor: pointer; font-weight: 700; color: var(--color-ink); }
.art-faq details p { margin: 10px 0 0; color: var(--color-slate); }
.art-more { margin-top: 2.2em; }
.art-more h2 { font-size: 1.2rem; }
.art-toc { margin: 1.2em 0 1.8em; padding: 16px 22px; border-radius: 12px; background: var(--color-bg-soft); border: 1px solid var(--color-line); font-size: .96rem; }
.art-toc strong { display: block; margin-bottom: 8px; color: var(--color-ink); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.art-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.art-toc a { color: var(--color-slate); text-decoration: none; }
.art-toc a:hover { color: var(--color-teal-700, var(--color-ink)); text-decoration: underline; }
.article-body h2[id] { scroll-margin-top: 90px; }
