/* ============================================================
   TechWise Solutions — вариант Б: «дата-терминал»
   Почти чёрный, кислотный акцент, конденсированные капсы,
   жёсткая сетка, острые углы, всё как приборная панель.
   ============================================================ */

@import url('../fonts/fonts2.css');

:root {
  --bg: #08090a;
  --bg-2: #0e1012;
  --bg-3: #141719;
  --line: #22262a;
  --line-2: #2f353a;
  --txt: #e8ebed;
  --txt-2: #8b9399;
  --txt-3: #5d666c;
  --acid: #c6f24e;
  --acid-dim: #8fae2f;
  --hot: #ff5c38;
  --cool: #4ec9f2;
  --ok: #4ade80;
  --warn: #fbbf24;
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Onest', -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --w: min(1320px, calc(100vw - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, transparent 30%, rgba(8,9,10,0.85) 100%);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acid); text-decoration: none; }
::selection { background: var(--acid); color: #000; }

.wrap { width: var(--w); margin-inline: auto; position: relative; z-index: 2; }

h1, h2, h3 {
  font-family: var(--f-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: -0.005em;
  line-height: 1.02; margin: 0 0 0.4em;
}
p { margin: 0 0 1em; }

.mono { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-3); }
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--acid);
  border: 1px solid var(--line-2); padding: 6px 12px; margin-bottom: 26px;
}
.tag::before { content: ''; width: 6px; height: 6px; background: var(--acid); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--txt-2); line-height: 1.55; }
.dim { color: var(--txt-2); }

/* ---------- Шапка ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(8,9,10,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 26px; height: 64px; }
.logo { display: flex; align-items: baseline; gap: 9px; font-family: var(--f-display); font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; color: var(--txt); }
.logo b { color: var(--acid); font-weight: 600; }
.logo span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.22em; color: var(--txt-3); text-transform: uppercase; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--txt-2); font-size: 13.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; transition: 0.18s; }
.nav a:hover { color: var(--acid); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 24px; border: 1px solid var(--acid); background: var(--acid); color: #000;
  cursor: pointer; transition: 0.2s; white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--acid); }
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); background: transparent; }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn-lg { padding: 18px 34px; font-size: 13px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); width: 42px; height: 38px; cursor: pointer; padding: 9px 10px; }
.burger span { display: block; height: 1.5px; background: var(--txt); margin: 5px 0; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { padding: 128px 0 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.28fr 1fr; gap: 54px; align-items: center; padding-bottom: 52px; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 76px); font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.hero h1 i { font-style: normal; color: var(--acid); }
.hero h1 u { text-decoration: none; display: inline-block; border-bottom: 4px solid var(--hot); line-height: 0.86; padding-bottom: 2px; }
.hero .lead { max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* Приборная панель в hero */
.gauges { border-left: 1px solid var(--line); padding-left: 30px; display: grid; gap: 0; }
.gauge { padding: 16px 0; border-bottom: 1px solid var(--line); }
.gauge:last-child { border-bottom: 0; }
.gauge b { display: block; font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; line-height: 1; color: var(--txt); }
.gauge b em { font-style: normal; color: var(--acid); }
.gauge .mono { display: block; margin-top: 7px; letter-spacing: 0.1em; }

/* Бегущая строка */
.ticker { border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.ticker-in {
  display: flex; gap: 44px; padding: 13px 0; width: max-content;
  animation: slide 42s linear infinite;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-3);
}
.ticker-in span { display: flex; align-items: center; gap: 44px; white-space: nowrap; }
.ticker-in b { color: var(--acid); font-weight: 500; }
.ticker-in i { color: var(--line-2); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.sec { padding: clamp(64px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 50px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 600; }
.sec-head h2 em { font-style: normal; color: var(--acid); }
.sec-head .lead { margin: 0; }
.sec-narrow { max-width: 900px; }

/* ---------- Карточки-модули ---------- */
.mods { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.mod {
  padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: 0.22s; position: relative; background: transparent;
}
.mod:hover { background: var(--bg-2); }
.mod:hover .mod-n { color: var(--acid); }
.mods .mod:nth-child(3n) { border-right: 0; }
.mods .mod:nth-last-child(-n+3) { border-bottom: 0; }
.mod-n { font-family: var(--f-mono); font-size: 11px; color: var(--txt-3); letter-spacing: 0.14em; transition: 0.22s; }
.mod h3 { font-size: 19px; font-weight: 600; margin: 14px 0 8px; letter-spacing: 0; }
.mod p { margin: 0; font-size: 14.5px; color: var(--txt-2); }
.mod.risk { border-left: 2px solid var(--hot); }
.mod.risk h3 { color: var(--hot); }

/* ---------- Кейс: большие цифры ---------- */
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fig { padding: 40px 30px 34px; border-right: 1px solid var(--line); position: relative; }
.fig:last-child { border-right: 0; }
.fig b {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(56px, 8.6vw, 128px); line-height: 0.86; letter-spacing: -0.03em;
  color: var(--txt);
}
.fig.win b { color: var(--acid); }
.fig .mono { margin-top: 16px; display: block; color: var(--txt-2); letter-spacing: 0.08em; }
.fig-bar { height: 3px; background: var(--line-2); margin-top: 22px; position: relative; overflow: hidden; }
.fig-bar i { position: absolute; inset: 0 auto 0 0; background: var(--acid); }
.quote {
  border-left: 2px solid var(--acid); padding: 4px 0 4px 26px; margin: 46px 0 0;
  font-size: clamp(17px, 1.9vw, 22px); line-height: 1.5; color: var(--txt); max-width: 900px;
}
.quote b { color: var(--acid); }

/* ---------- Шкала спроса ---------- */
.scale { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); }
.scale-c { padding: 26px 20px 24px; border-right: 1px solid var(--line); position: relative; }
.scale-c:last-child { border-right: 0; background: rgba(198,242,78,0.05); }
.scale-c .mono { color: var(--txt-3); }
.scale-c b { display: block; font-family: var(--f-display); font-size: 21px; font-weight: 600; text-transform: uppercase; margin: 12px 0 6px; }
.scale-c:last-child b { color: var(--acid); }
.scale-c p { margin: 0; font-size: 13px; color: var(--txt-3); }
.scale-c .dots { display: flex; gap: 3px; margin-bottom: 4px; }
.scale-c .dots i { width: 100%; height: 4px; background: var(--line-2); }
.scale-c .dots i.on { background: var(--acid); }

/* ---------- Процесс ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 76px 200px 1fr auto; gap: 26px; align-items: baseline;
  padding: 24px 0; border-bottom: 1px solid var(--line); transition: 0.2s;
}
.step:hover { background: var(--bg-2); }
.step .n { font-family: var(--f-mono); font-size: 12px; color: var(--acid); letter-spacing: 0.1em; }
.step h3 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: 0; }
.step p { margin: 0; font-size: 14.5px; color: var(--txt-2); }
.step .when { font-family: var(--f-mono); font-size: 11.5px; color: var(--txt-3); letter-spacing: 0.08em; white-space: nowrap; }

/* Светофор решения */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 46px; }
.vd { padding: 28px 26px; border-right: 1px solid var(--line); }
.vd:last-child { border-right: 0; }
.vd b { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 24px; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.vd i { width: 10px; height: 10px; flex: none; }
.vd.go b { color: var(--ok); } .vd.go i { background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.vd.pv b { color: var(--warn); } .vd.pv i { background: var(--warn); box-shadow: 0 0 14px var(--warn); }
.vd.no b { color: var(--hot); } .vd.no i { background: var(--hot); box-shadow: 0 0 14px var(--hot); }
.vd p { margin: 0; font-size: 14px; color: var(--txt-2); }

/* ---------- Услуги: список-таблица ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px 1fr 1.1fr 28px; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: 0.2s;
}
.row:hover { background: var(--bg-2); padding-left: 12px; }
.row .n { font-family: var(--f-mono); font-size: 12px; color: var(--txt-3); }
.row h3 { margin: 0; font-size: clamp(19px, 2vw, 26px); font-weight: 600; letter-spacing: 0; }
.row p { margin: 0; font-size: 14px; color: var(--txt-2); }
.row .arw { color: var(--txt-3); font-family: var(--f-mono); transition: 0.2s; }
.row:hover .arw { color: var(--acid); transform: translateX(4px); }
.row:hover h3 { color: var(--acid); }

/* ---------- Метрики инфраструктуры ---------- */
.grid-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.met { padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-metrics .met:nth-child(4n) { border-right: 0; }
.grid-metrics .met:nth-last-child(-n+4) { border-bottom: 0; }
.met b { display: block; font-family: var(--f-display); font-size: clamp(26px, 2.9vw, 38px); font-weight: 700; line-height: 1; }
.met b em { font-style: normal; color: var(--acid); }
.met .mono { display: block; margin-top: 10px; color: var(--txt-3); letter-spacing: 0.07em; line-height: 1.5; }
.pipeline { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; border: 1px solid var(--line); }
.pipeline span {
  flex: 1; min-width: 120px; padding: 15px 12px; text-align: center;
  border-right: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--txt-2);
}
.pipeline span:last-child { border-right: 0; color: var(--acid); background: rgba(198,242,78,0.06); }

/* ---------- Форма ---------- */
.form-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
form.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 8px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-3); }
.fld label i { font-style: normal; color: var(--hot); }
.fld input, .fld select, .fld textarea {
  font: inherit; font-size: 15px; color: var(--txt); background: var(--bg-2);
  border: 1px solid var(--line-2); padding: 13px 14px; width: 100%; transition: 0.2s;
  border-radius: 0;
}
.fld textarea { min-height: 100px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--acid); background: var(--bg-3); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--txt-3); }
.fld .err { display: none; font-family: var(--f-mono); font-size: 10.5px; color: var(--hot); letter-spacing: 0.08em; }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--hot); }
.fld.bad .err { display: block; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--txt-2); grid-column: 1 / -1; }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--acid); flex: none; }
.consent.bad { color: var(--hot); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Футер ---------- */
.ftr { padding: 56px 0 30px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.ftr h4 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-3); margin: 0 0 16px; }
.ftr a { display: block; color: var(--txt-2); font-size: 14px; padding: 4px 0; }
.ftr a:hover { color: var(--acid); }
.ftr .fine { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--txt-3); text-transform: uppercase; }

/* ---------- Переключатель вариантов ---------- */
.vbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 60;
  display: flex; gap: 2px; background: rgba(14,16,18,0.94); border: 1px solid var(--line-2);
  padding: 5px; backdrop-filter: blur(10px);
}
.vbar a {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; color: var(--txt-2);
}
.vbar a:hover { color: var(--txt); }
.vbar a.on { background: var(--acid); color: #000; }

/* ---------- Появление ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
.no-anim .rv { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker-in { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav, .hdr .btn { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .gauges { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .grid-metrics { grid-template-columns: repeat(2, 1fr); }
  .grid-metrics .met:nth-child(4n) { border-right: 1px solid var(--line); }
  .grid-metrics .met:nth-child(2n) { border-right: 0; }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .mods .mod:nth-child(3n) { border-right: 1px solid var(--line); }
  .mods .mod:nth-child(2n) { border-right: 0; }
  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .form-sec { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  body { background-size: 56px 56px; }
  .figs, .scale, .verdicts, .mods { grid-template-columns: 1fr; }
  .fig, .scale-c, .vd, .mod { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .figs .fig:last-child, .scale .scale-c:last-child, .verdicts .vd:last-child { border-bottom: 0; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step .when { order: -1; }
  .row { grid-template-columns: 1fr 26px; gap: 10px; }
  .row .n, .row p { display: none; }
  form.lead-form { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .pipeline span { min-width: 50%; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 118px; }
  .vbar { bottom: 12px; }
}

/* Мобильное меню */
.mm {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: 96px 24px 30px;
  transform: translateY(-101%); transition: transform .35s cubic-bezier(.6,0,.2,1);
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
}
body.mopen .mm { transform: none; }
body.mopen .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.mopen .burger span:nth-child(2) { opacity: 0; }
body.mopen .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mm a { font-family: var(--f-display); font-size: 27px; font-weight: 600; text-transform: uppercase; color: var(--txt); padding: 12px 0; border-bottom: 1px solid var(--line); }
.mm a:hover { color: var(--acid); }
.mm .btn { margin-top: 22px; border-bottom: 0; }
