/* ============================================================
   Тендерный конвейер — Design System
   White B2B landing. Single accent. Hairlines. Air.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:        #ffffff;
  --surface:   #f8fafc;
  --surface-2: #f1f5f9;
  --border:    #e5e7eb;
  --border-2:  #e2e8f0;
  --ink:       #0f172a;
  --ink-2:     #334155;
  --muted:     #64748b;
  --accent:    #2563eb;
  --accent-700:#1d4ed8;
  --accent-50: #eff6ff;
  --success:   #16a34a;
  --success-50:#f0fdf4;
  --danger:    #dc2626;
  --danger-50: #fef2f2;
  --warn:      #d97706;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --maxw:      1280px;
  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.04);
  --shadow-md: 0 4px 12px -2px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 12px 32px -8px rgb(15 23 42 / 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-700); }

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); text-wrap: balance; }

::selection { background: #dbeafe; color: var(--ink); }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section--tight { padding: 48px 0; }
@media (min-width: 768px) { .section--tight { padding: 64px 0; } }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--ink); color: #e2e8f0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: #94a3b8; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) { .grid { gap: 32px; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.logo__mark svg { width: 17px; height: 17px; }
.nav { display: none; align-items: center; gap: 4px; margin-left: 8px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { color: var(--accent); }
.header__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__login { display: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; }
.header__login:hover { color: var(--ink); }
@media (min-width: 1024px) { .header__login { display: block; } }

.burger { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; color: var(--ink); }
@media (min-width: 1024px) { .burger { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; padding: 12px 0 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 24px; color: var(--ink-2); font-weight: 500; }
.mobile-nav a:hover { background: var(--surface); }
.mobile-nav .btn { margin: 12px 24px 0; width: calc(100% - 48px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-700); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface); border-color: #cbd5e1; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e2e8f0; color: var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .6s linear infinite;
}
.btn--ghost.is-loading::after { border-color: rgba(15,23,42,.2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-50); border: 1px solid #dbeafe;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow--plain { background: none; border: none; padding: 0; }
.h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(20px, 2vw, 24px); }
.h4 { font-size: 17px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); font-weight: 400; }
.text-muted { color: var(--muted); }
.text-ink-2 { color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: .92em; }
.prose { max-width: 68ch; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; } .justify-center { justify-content: center; }
.section-head { max-width: 720px; margin-bottom: 48px; }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card--hover:hover { border-color: #cbd5e1; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--flat { background: var(--surface); border-color: var(--border-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-50);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #dbeafe;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.feature-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-row--rev .feature-row__media { order: -1; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
@media (min-width: 768px) { .hero { padding: 80px 0 96px; } }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, #eff6ff 0%, rgba(239,246,255,0) 60%),
    radial-gradient(40% 40% at 12% 0%, #f8fafc 0%, rgba(248,250,252,0) 70%);
  pointer-events: none; z-index: -1;
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero__trust b { color: var(--ink); font-weight: 600; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 768px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: #fff; padding: 26px 24px; }
.metric__num { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.metric__num .unit { font-size: .55em; color: var(--accent); font-weight: 600; }
.metric__label { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- Pipeline ---------- */
.pipeline { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pipeline { grid-template-columns: repeat(6, 1fr); } }
.pipeline__step { background: #fff; padding: 24px 20px; position: relative; }
.pipeline__step:hover { background: var(--surface); }
.pipeline__num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.pipeline__title { font-size: 15px; font-weight: 600; margin-top: 8px; }
.pipeline__desc { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 16.5px; margin-bottom: 5px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.step__meta { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 8px; }

/* ---------- Console mock ---------- */
.console {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.console__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); }
.console__dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.console__title { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.console__body { padding: 18px; display: grid; gap: 12px; }
.console__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.console__row b { font-weight: 600; }
.console__ok { color: var(--success); font-weight: 600; font-size: 13px; white-space: nowrap; }
.console__bar-fill { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.console__bar-fill i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag--success { background: var(--success-50); color: var(--success); }
.tag--accent { background: var(--accent-50); color: var(--accent); }
.tag--warn { background: #fffbeb; color: var(--warn); }

/* ---------- Logos ---------- */
.logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .logos { grid-template-columns: repeat(8, 1fr); } }
.logo-cell { background: #fff; display: grid; place-items: center; padding: 22px 12px; min-height: 84px; color: #94a3b8; font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; text-align: center; }
.logo-cell span { transition: color .2s; }
.logo-cell:hover span { color: var(--ink-2); }

/* ---------- Pain cards ---------- */
.pain { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.pain__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--danger-50); color: var(--danger); display: grid; place-items: center; }
.pain__icon svg { width: 20px; height: 20px; }
.pain h3 { font-size: 16px; margin-bottom: 6px; }
.pain p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.pain__quote { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--border-2); font-style: italic; font-size: 14px; color: var(--ink-2); }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.compare th, table.compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--surface); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.us { background: #f5f9ff; font-weight: 600; }
table.compare thead th.us { background: var(--accent-50); color: var(--accent); }
.yes { color: var(--success); font-weight: 700; }
.no { color: #cbd5e1; font-weight: 700; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing { grid-template-columns: repeat(4, 1fr); } }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.plan__badge { position: absolute; top: -13px; left: 28px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .02em; }
.plan__name { font-size: 17px; font-weight: 700; }
.plan__for { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.plan__price { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 20px 0 4px; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__list { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 11px; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.plan__list svg { width: 20px; height: 20px; color: var(--success); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ---------- Cases ---------- */
.case { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: #fff; display: flex; flex-direction: column; }
.case__seg { font-size: 13px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.case__title { font-size: 18px; font-weight: 600; margin: 10px 0 18px; }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.case__box { padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-2); }
.case__box .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.case__box .v { font-size: 15px; font-weight: 600; margin-top: 4px; }
.case__result { border-top: 1px solid var(--border); padding-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.case__result b { color: var(--ink); }

/* ---------- Testimonials ---------- */
.quote { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: #fff; display: flex; flex-direction: column; }
.quote__text { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.quote__text::before { content: '“'; color: var(--accent); font-size: 32px; line-height: 0; vertical-align: -8px; margin-right: 2px; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; border: 1px solid #dbeafe; }
.quote__name { font-size: 14.5px; font-weight: 600; }
.quote__role { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 16.5px; color: var(--ink); transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq__a { padding: 0 44px 24px 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 68ch; }
.faq details[open] .faq__a { animation: fadeUp .25s ease; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); }
.field__err { font-size: 13px; color: var(--danger); display: none; }
.field.has-error .field__err { display: block; }
.field__hint { font-size: 12.5px; color: var(--muted); }
.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.checkbox input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.form__status { border-radius: 10px; padding: 0; font-size: 14.5px; display: none; }
.form__status.is-visible { display: block; padding: 14px 16px; }
.form__status.is-success { background: var(--success-50); border: 1px solid #bbf7d0; color: #166534; }
.form__status.is-error { background: var(--danger-50); border: 1px solid #fecaca; color: #991b1b; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: 48px 32px; background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; }
@media (min-width: 768px) { .cta-band { padding: 72px 56px; } }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(37,99,235,.35) 0%, rgba(37,99,235,0) 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #94a3b8; position: relative; }
.cta-band .hero__actions { justify-content: center; position: relative; margin-top: 28px; }
.cta-band .micro { color: #64748b; font-size: 13px; margin-top: 18px; position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; } }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14.5px; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--ink); }
.footer__desc { font-size: 14.5px; color: var(--muted); max-width: 34ch; margin-top: 14px; line-height: 1.6; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 7px; color: #cbd5e1; }

/* ---------- Page hero ---------- */
.page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
@media (min-width: 768px) { .page-hero { padding: 64px 0 56px; } }

/* ---------- Integration grid ---------- */
.integrations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .integrations { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .integrations { grid-template-columns: repeat(4, 1fr); } }
.integration { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-size: 14.5px; font-weight: 500; }
.integration__dot { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); flex: none; font-weight: 700; font-size: 13px; }

/* ---------- Pills / badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-secure { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.badge-secure svg { width: 16px; height: 16px; color: var(--success); }

/* ---------- Reveal animation ---------- */
/* Reveal включается только при работающем JS (.js на <html>).
   Без JS контент виден сразу — никаких невидимых блоков. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Blog ---------- */
.post-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card h3 { font-size: 18px; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.post-card .meta { font-size: 13px; color: var(--muted); }
.post-card .more { font-weight: 600; font-size: 14.5px; margin-top: 16px; }
.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: 26px; margin: 40px 0 16px; }
.article h3 { font-size: 19px; margin: 28px 0 12px; }
.article p { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.article ul, .article ol { color: var(--ink-2); font-size: 17px; line-height: 1.75; padding-left: 24px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article blockquote { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--accent-50); border-radius: 0 10px 10px 0; color: var(--ink-2); }

/* ---------- Admin ---------- */
.admin { background: var(--surface); min-height: 100vh; }
.admin table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.admin thead th { text-align: left; padding: 13px 16px; background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin tbody tr:hover { background: var(--surface); }
.admin .empty { padding: 64px 24px; text-align: center; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat .n { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.note { font-size: 13px; color: var(--muted); }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.kbd { font-family: var(--mono); font-size: 12.5px; padding: 2px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }

@media print {
  .header, .footer, .cta-band { display: none; }
}

/* ============================================================
   Overflow guards (fix horizontal scroll on narrow viewports)
   ============================================================ */
.grid > *, .feature-row > *, .pricing > *, .logos > *,
.metrics > *, .pipeline > *, .integrations > *,
.docs-layout > *, .footer__grid > *, .hero__grid > *,
.stat-row > *, .case__grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * {
  min-width: 0;
}

.card, .case, .plan, .post-card, .quote, .step, .pain, .integration, .metric, .pipeline__step {
  min-width: 0;
  overflow-wrap: break-word;
}

.case__box, .case__title, .case__result, .card p, .card h3,
.plan__list li, .post-card h3, .quote__text, .step p, .pain p {
  overflow-wrap: break-word;
  word-break: normal;
}

.case__grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .case__grid { grid-template-columns: 1fr; } }

/* Header: не даём кнопке и бургеру вылезать на узких экранах */
.header__cta { flex: none; }
.logo span:last-child { white-space: nowrap; }
@media (max-width: 560px) {
  .header__cta .btn { display: none; }
  .logo { font-size: 15.5px; }
  .header__inner { gap: 16px; }
}
@media (max-width: 400px) {
  .logo span:last-child { font-size: 14.5px; }
}

/* Docs: длинные строки кода не растягивают сетку */
pre.code { max-width: 100%; }
.docs-layout { min-width: 0; }

/* Таблицы сравнения скроллятся внутри своего контейнера, не растягивая страницу */
.table-wrap { max-width: 100%; }

/* Страховка от любых одиночных вылезаний */
img, svg, video, pre, table { max-width: 100%; }

/* Интеграции: длинные названия не растягивают ячейку */
.integration { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.integration__dot { flex: 0 0 32px; }
@media (max-width: 900px) {
  .integration { padding: 13px 12px; font-size: 13.5px; gap: 10px; }
  .integration__dot { width: 28px; height: 28px; flex: 0 0 28px; font-size: 12px; }
}

/* ---------- Range slider (калькулятор на главной) ---------- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: none;
  padding: 0;
  margin: 10px 0 4px;
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(15,23,42,.25);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(37,99,235,.35); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(15,23,42,.25); cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-2); border: none; }
input[type="range"]:focus { box-shadow: none; }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.field input[type="range"]:focus { border-color: transparent; box-shadow: none; }
