/* ============================================================
   OneTeamEx — дизайн-система
   Токены, светлая/тёмная тема, компоненты лендинга и HelpDesk
   ============================================================ */

/* ---------- Токены ---------- */
:root,
[data-theme="light"] {
  --bg: #f6f8fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #0d1220;
  --muted: #5a6474;
  --border: rgba(13, 18, 32, .10);
  --border-strong: rgba(13, 18, 32, .16);
  --brand: #2f7bf6;
  --brand-strong: #1e63e0;
  --brand-soft: rgba(47, 123, 246, .12);
  --on-brand: #ffffff;
  --glow: rgba(47, 123, 246, .22);
  --ok: #16a34a;
  --warn: #d97706;
  --info: #2f7bf6;
  --done: #64748b;
  --shadow: 0 20px 50px -24px rgba(13, 18, 32, .28);
  --header-bg: color-mix(in srgb, var(--bg) 82%, transparent);
}

[data-theme="dark"] {
  --bg: #0b0e13;
  --bg-alt: #0e1218;
  --surface: #141922;
  --surface-2: #1a2029;
  --text: #eef2f8;
  --muted: #9aa5b5;
  --border: rgba(238, 242, 248, .10);
  --border-strong: rgba(238, 242, 248, .18);
  --brand: #4a8df8;
  --brand-strong: #6ba3ff;
  --brand-soft: rgba(74, 141, 248, .16);
  --on-brand: #06101f;
  --glow: rgba(74, 141, 248, .30);
  --ok: #34d399;
  --warn: #fbbf24;
  --info: #60a5fa;
  --done: #94a3b8;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --header-bg: color-mix(in srgb, var(--bg) 78%, transparent);
}

:root {
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--on-brand);
  padding: .6rem 1rem; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

::selection { background: var(--brand); color: var(--on-brand); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .95rem/1 var(--font-body);
  padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 12px 28px -12px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px var(--glow); }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: #0d1220; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .45); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.brand-mark { display: block; flex: none; color: var(--text); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-link { color: var(--muted); font-weight: 500; font-size: .93rem; position: relative; transition: color .2s ease; }
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: var(--brand);
}
.nav-cta { margin-left: .4rem; }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

.nav-burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s ease, opacity .25s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-page { padding-top: clamp(2.5rem, 6vw, 5rem); }

.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 70%;
  background:
    radial-gradient(45% 55% at 22% 40%, var(--glow), transparent 70%),
    radial-gradient(40% 50% at 78% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%);
  filter: blur(10px); pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-center { grid-template-columns: 1fr; justify-items: center; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: .5rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, .16); }

.hero-title { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 700; letter-spacing: -.03em; }
.grad {
  background: linear-gradient(100deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #8b5cf6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-center .hero-sub { margin-inline: auto; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-center .hero-cta { justify-content: center; }

.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 2.2rem; margin: 0; padding: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* ---------- Макет-дашборд в hero ---------- */
.hero-visual { perspective: 1200px; }
.dash {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotateX(4deg) rotateY(-6deg);
  transition: transform .5s ease;
}
.dash:hover { transform: rotateX(0) rotateY(0); }

.dash-bar { display: flex; align-items: center; gap: .45rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.dash-title { margin-left: .6rem; color: var(--muted); font-size: .8rem; }

.dash-body { display: grid; grid-template-columns: 132px 1fr; }
.dash-body-col { grid-template-columns: 1fr; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }

.dash-side { border-right: 1px solid var(--border); padding: .9rem .6rem; display: flex; flex-direction: column; gap: .3rem; background: var(--surface-2); }
.side-item { font-size: .8rem; color: var(--muted); padding: .45rem .6rem; border-radius: 8px; }
.side-item.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.dash-main { padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.kpi-label { font-size: .72rem; color: var(--muted); }
.kpi-value { font-family: var(--font-display); font-size: 1.05rem; }
.kpi-delta { font-size: .72rem; font-weight: 600; }
.kpi-delta.up { color: var(--ok); }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding: .4rem .2rem 0; }
.chart span {
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 30%, transparent));
  border-radius: 6px 6px 2px 2px;
  animation: grow 1s ease both;
}
@keyframes grow { from { height: 0; } }

.dash-rows { display: flex; flex-direction: column; gap: .5rem; }
.dash-row { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--muted); }

.pill { font-size: .68rem; font-weight: 700; padding: .22rem .55rem; border-radius: 999px; letter-spacing: .02em; }
.pill.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.info { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }
.pill.done { background: color-mix(in srgb, var(--done) 18%, transparent); color: var(--done); }

.ticket { display: flex; gap: .8rem; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; }
.ticket .pill { margin-top: .15rem; flex: none; }
.ticket strong { display: block; font-size: .85rem; }
.ticket span { display: block; color: var(--muted); font-size: .75rem; }

/* ---------- Секции ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow); }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem;
}
.feature-icon svg { width: 24px; height: 24px; }

/* ---------- Systems ---------- */
.systems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.system-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.system-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.system-card p { color: var(--muted); font-size: .95rem; }
.system-card-accent { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); background: linear-gradient(160deg, var(--brand-soft), transparent 55%), var(--surface); }

.tick-list { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tick-list li { position: relative; padding-left: 1.5rem; color: var(--muted); font-size: .9rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7bf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center/10px no-repeat;
}
.tick-list-lg { margin-top: 1.4rem; gap: .8rem; }
.tick-list-lg li { font-size: 1rem; padding-left: 1.8rem; color: var(--text); }

.card-link {
  margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .92rem; color: var(--brand);
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Industry / steps ---------- */
.industry-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.industry-copy p { color: var(--muted); }

.steps { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.steps-title { margin-bottom: 1.4rem; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.3rem; }
.steps-list li { display: flex; gap: 1rem; }
.steps-list p { color: var(--muted); font-size: .9rem; margin: .2rem 0 0; }
.step-num {
  flex: none; font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  color: var(--brand); background: var(--brand-soft);
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
}

/* ---------- Promo band ---------- */
.promo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; align-items: center;
  border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 3.4rem);
  background: linear-gradient(130deg, #123a8f, var(--brand) 55%, #7c5cff);
  color: #fff; box-shadow: 0 30px 60px -30px var(--glow);
}
.promo::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 46%; height: 180%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
  pointer-events: none;
}
.promo h2 { color: #fff; }
.promo p { color: rgba(255, 255, 255, .85); max-width: 34rem; }
.promo-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; position: relative; z-index: 1; }
.promo-stats li { display: flex; flex-direction: column; }
.promo-stats strong { font-family: var(--font-display); font-size: 1.6rem; }
.promo-stats span { color: rgba(255, 255, 255, .8); font-size: .85rem; }

/* ---------- Контакты ---------- */
.contacts-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contacts-copy p { color: var(--muted); }
.contact-lines { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.contact-lines li { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.contact-lines svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.contact-lines a { color: var(--text); font-weight: 600; }

.contacts-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-field input,
.form-field textarea {
  font: 400 .95rem/1.5 var(--font-body); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-field input.is-invalid,
.form-field textarea.is-invalid { border-color: #ef4444; }

/* CAPTCHA поле */
.captcha-field label { color: var(--brand); font-weight: 700; }
.captcha-field input { max-width: 120px; font-size: 1.1rem; text-align: center; }

.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); }
.form-note.is-ok { color: var(--ok); font-weight: 600; }
.form-note.is-err { color: #ef4444; font-weight: 600; }

/* ---------- HelpDesk: каналы ---------- */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.1rem; }
.channel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; text-align: left; transition: transform .25s ease, border-color .25s ease;
}
.channel:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.channel-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem;
}
.channel-icon svg { width: 24px; height: 24px; }
.channel p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- HelpDesk: workflow ---------- */
.workflow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem;
  counter-reset: step;
}
.workflow li {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem;
}
.workflow p { color: var(--muted); font-size: .92rem; margin: 0; }
.workflow .step-num { margin-bottom: 1rem; }

/* ---------- HelpDesk: роли ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.role {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; border-top: 3px solid var(--brand);
}
.role p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .8fr); gap: 2rem; padding-bottom: 2.2rem; }
.footer-tag { color: var(--muted); font-size: .9rem; margin-top: 1rem; max-width: 18rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--muted); font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 0 0 .4rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 1.4rem;
  color: var(--muted); font-size: .85rem;
}

/* ---------- B2B-биржа ---------- */
.band {
  border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border));
  background: linear-gradient(165deg, var(--brand-soft), transparent 42%), var(--bg-alt);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.6rem, 4vw, 3rem);
}
.band .section-head { margin-bottom: 2rem; }

.exch {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 2rem;
}
.exch-col { display: flex; flex-direction: column; gap: .6rem; }
.exch-title { font: 700 .76rem/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.exch-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .7rem .8rem; display: flex; flex-direction: column; gap: .15rem; }
.exch-item strong { font-size: .88rem; }
.exch-item span { font-size: .75rem; color: var(--muted); }
.exch-mid { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; padding: 0 .4rem; }
.exch-match { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .72rem; border-radius: 999px; padding: .35rem .6rem; white-space: nowrap; }
.exch-arrow { color: var(--brand); font-size: 1.2rem; line-height: 1; }

.workflow-tight { margin-bottom: 1.8rem; }
.exch-points { gap: .8rem; margin-bottom: 2rem; }
.exch-points li { color: var(--text); font-size: .98rem; }

/* Интеллектуальный поиск */
.search-demo { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 2rem; }
.search-demo h3 { margin-bottom: .4rem; }
.search-demo > p { color: var(--muted); font-size: .95rem; }
.search-demo > p strong { color: var(--brand); }
.search-bar { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: .75rem 1.1rem; color: var(--muted); }
.search-bar svg { flex: none; color: var(--brand); }
.search-bar .q { flex: 1; font-size: .95rem; }
.search-time { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .76rem; border-radius: 999px; padding: .32rem .7rem; white-space: nowrap; }
.search-results { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.search-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .42rem .85rem; font-size: .8rem; color: var(--muted); }
.search-chip strong { color: var(--text); }

/* Высоконагруженные системы */
.load-title { margin-bottom: .3rem; }
.load-sub { color: var(--muted); margin-bottom: 1.2rem; }
.load-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.load-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem .8rem; text-align: center; }
.load-stat strong { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--brand); line-height: 1.2; }
.load-stat span { color: var(--muted); font-size: .8rem; }

/* Обслуживаемая экосистема */
.ecosystem { background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); border-radius: var(--radius); padding: 1.6rem; }
.ecosystem h3 { margin-bottom: .4rem; }
.ecosystem > p { color: var(--muted); }
.ecosystem .tick-list-lg { margin-top: 1rem; }

/* Индивидуальный подход */
.section-approach { background: linear-gradient(165deg, var(--brand-soft), transparent 48%), var(--bg-alt); border-block: 1px solid var(--border); }
.approach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); }
.strength {
  background: linear-gradient(150deg, #2563eb, #1d4ed8);
  color: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 24px 50px -28px var(--glow);
  display: flex; flex-direction: column; justify-content: space-between;
}
.strength h3 { color: #fff; font-size: 1.25rem; margin-bottom: .6rem; }
.strength .strength-list { margin-top: 1.2rem; }
.strength .strength-list li { color: rgba(255, 255, 255, .95); font-size: 1rem; line-height: 1.5; }
.strength .strength-list li::before { background: #fff; top: .5em; }
.strength-quote {
  margin: 1.6rem 0 0; font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5;
  color: #fff; border-left: 3px solid rgba(255, 255, 255, .55); padding-left: .9rem;
}

/* ---------- Подробные платформы ---------- */
.platform-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.platform-detail .tick-list-lg { margin-top: 0; }

/* ---------- Коммуникации ---------- */
.comm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.comm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; }
.comm p { color: var(--muted); font-size: .95rem; }
.comm-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.comm-list li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .9rem; }
.comm-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- Единый контур ---------- */
.unity-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 2.4rem; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.hub-node {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .95rem .5rem; text-align: center; font-size: .84rem; font-weight: 600; color: var(--muted);
}
.hub-center {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff;
  border-radius: var(--radius-sm); padding: .95rem .5rem; text-align: center;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700; line-height: 1.25;
  display: grid; place-items: center; box-shadow: 0 14px 30px -14px var(--glow);
}

/* ---------- SLA таблица ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; background: var(--surface); }
.sla-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.sla-table th, .sla-table td { padding: .85rem 1.1rem; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--border); }
.sla-table th { background: var(--surface-2); font: 700 .76rem/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sla-table tr:last-child td { border-bottom: none; }
.pill.crit { background: color-mix(in srgb, #ef4444 16%, transparent); color: #ef4444; }

/* ---------- Метрики ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.1rem; }
.metric {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: .3rem;
}
.metric strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--brand); }
.metric span { color: var(--muted); font-size: .85rem; }

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chart span { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero-inner, .industry-inner, .contacts-inner, .unity-inner, .platform-detail, .approach-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .promo { grid-template-columns: 1fr; }
  .promo-stats { flex-direction: row; flex-wrap: wrap; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .exch { grid-template-columns: 1fr; }
  .exch-mid { flex-direction: row; justify-content: center; padding: .2rem 0; }
}

@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 40;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: .7rem .2rem; font-size: 1rem; }
  .nav-link.is-active::after { display: none; }
  .nav-cta { margin: .8rem 0 0; justify-content: center; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}
