/* ============================================================
   CVS — Computer Vision Software
   Visual system: «Мудрец» — спокойный, инженерный, точный.
   ============================================================ */

:root {
  --bg:            #070912;
  --bg-alt:        #0B0E1C;
  --surface:       #10142A;
  --surface-2:     #161B36;
  --line:          rgba(140, 150, 200, .16);
  --line-strong:   rgba(140, 150, 200, .30);

  --text:          #EEF0FA;
  --text-mid:      #B4BAD6;
  --text-dim:      #7E86A8;

  --brand:         #453A8C;   /* фирменный фиолетовый из логотипа */
  --accent:        #6C5CE7;   /* осветлённый вариант для тёмного фона */
  --accent-2:      #8E7BFF;
  --accent-soft:   rgba(108, 92, 231, .14);
  --danger-dim:    #5A6180;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --wrap: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* Якорь останавливает секцию почти у самого верха окна: под шапку её подводить
   не нужно — 110px собственного верхнего отступа секции уже перекрывают шапку
   и дают воздух. Большое значение здесь складывалось с этим отступом в двойной разрыв. */
html { scroll-behavior: smooth; scroll-padding-top: 12px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------------- brand mark ---------------- */

.brand__mark {
  display: block;
  width: 32px; height: 32px;
  background: currentColor;
  -webkit-mask: url("../img/logo-mark.svg") center / contain no-repeat;
          mask: url("../img/logo-mark.svg") center / contain no-repeat;
  color: var(--accent-2);
  flex: none;
}
.brand__mark--sm { width: 26px; height: 26px; }

/* ---------------- header ---------------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(7, 9, 18, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__in { display: flex; align-items: center; gap: 28px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: .07em; }
.brand__sub { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--text-mid); }
.nav a { position: relative; padding: 6px 0; white-space: nowrap; transition: color .2s; }
/* Виден только в раскрытом меню на телефоне: там кнопка «Бесплатный PoC»
   из шапки спрятана, и без этого пункта до контактов пришлось бы листать в подвал. */
.nav__cta { display: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent-2); transition: right .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { right: 0; }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { right: 0; }

.header__cta { flex: none; }

.burger { display: none; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 100px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; font-family: inherit; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s;
}
.btn--sm { padding: 9px 18px; font-size: 14.5px; }
.btn--wide { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7E6BFF 100%);
  color: #fff;
  box-shadow: 0 8px 30px -12px rgba(108, 92, 231, .9);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(108, 92, 231, 1); }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-2); background: var(--accent-soft); }

/* ---------------- hero ---------------- */

/* Верхний отступ считается от высоты фиксированной шапки (74px) плюс зазор,
   который сжимается на невысоких экранах: иначе первый экран не помещается
   в ноутбучную высоту и кнопки уезжают под сгиб. */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(118px, 6vh + 76px, 168px) 0 clamp(72px, 8vh, 110px);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 150, 200, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 200, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(circle, rgba(108, 92, 231, .30) 0%, transparent 62%);
  filter: blur(20px);
}
.hero__in { position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--accent-soft);
}

/* Переносы в заголовке расставлены вручную тегом <br>, поэтому ширина не ограничивается:
   на десктопе каждая строка должна умещаться целиком. */
.hero__title { font-size: clamp(34px, 6vw, 72px); font-weight: 600; max-width: none; text-wrap: balance; }
.grad {
  background: linear-gradient(100deg, #fff 10%, var(--accent-2) 60%, #6C5CE7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lead {
  margin-top: 28px; max-width: 62ch;
  font-size: clamp(17px, 1.5vw, 20px); color: var(--text-mid);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 4vh, 40px); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: clamp(48px, 6vh, 84px) 0 0; padding: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--bg); padding: 26px 24px; }
.stat__num {
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.03em;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.stat__cap { margin: 8px 0 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.45; }

/* ---------------- sections ---------------- */

.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.shead { max-width: 780px; margin-bottom: 40px; }
.shead__title { font-size: clamp(28px, 3.6vw, 44px); margin-top: 6px; }
.shead__lead { margin-top: 20px; font-size: 18px; color: var(--text-mid); }

.note {
  margin-top: 44px; padding: 22px 26px;
  border-left: 2px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-mid); font-size: 17px; max-width: 900px;
}

/* ---------------- compare ---------------- */

.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 26px; align-items: center;
}
.compare__col {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px;
  background: var(--surface);
}
.compare__col--new {
  border-color: rgba(108, 92, 231, .45);
  background: linear-gradient(180deg, rgba(108, 92, 231, .10), var(--surface) 60%);
}
.compare__title { font-size: 22px; margin-bottom: 22px; }
.compare__col--old .compare__title { color: var(--text-dim); }

.compare__arrow { width: 42px; height: 42px; color: var(--accent-2); }
.compare__arrow svg { width: 100%; height: 100%; }

.ticks li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
  color: var(--text-mid); font-size: 16px;
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  top: 3px;
}
.ticks--minus li::before { content: "–"; background: rgba(140, 150, 200, .14); color: var(--danger-dim); }
.ticks--plus  li::before { content: "✓"; background: rgba(108, 92, 231, .22); color: var(--accent-2); font-size: 11px; }

/* ---------------- products ---------------- */

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.pcard {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px 34px; background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: 0; transition: opacity .3s;
}
.pcard:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pcard:hover::before { opacity: 1; }

.pcard__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pcard__logo {
  width: 56px; height: 56px; flex: none; display: block;
  transition: transform .3s var(--ease);
}
.pcard:hover .pcard__logo { transform: scale(1.06); }
.pcard__name { font-size: 30px; letter-spacing: .01em; font-weight: 700; }
.pcard__full { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-top: 6px; }
.pcard__desc { color: var(--text-mid); margin-bottom: 24px; }

.mods li {
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 15.5px; color: var(--text-dim); line-height: 1.55;
}
.mods li b { color: var(--text); font-weight: 600; }

.pcard__link {
  display: inline-block; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line); width: 100%;
  color: var(--accent-2); font-size: 15px; transition: color .2s;
}
.pcard__link::after { content: " →"; }
.pcard__link:hover { color: var(--text); }

/* ---------------- cards ---------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px;
  background: var(--surface); transition: border-color .3s, background .3s;
}
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card__title { font-size: 19px; margin-bottom: 14px; }
.card p { color: var(--text-dim); font-size: 15.5px; }

/* ---------------- steps ---------------- */

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 24px 0 0; }
.step::after {
  content: ""; position: absolute; left: 0; top: 15px; right: 0; height: 1px;
  background: var(--line);
}
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--accent);
  color: var(--accent-2); font-size: 12px; font-weight: 600;
  margin-bottom: 22px;
}
.step__title { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--text-dim); padding-right: 8px; }

/* ---------------- rtb ---------------- */

.rtb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
       border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rtb__item { background: var(--bg); padding: 32px 28px; transition: background .3s; }
.rtb__item:hover { background: var(--surface); }
.rtb__item h3 { font-size: 18px; margin-bottom: 12px; }
.rtb__item p { color: var(--text-dim); font-size: 15.5px; }

.clients { margin-top: 72px; }
.clients__cap {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 22px;
}
/* Логотипы заказчиков перенесены из презентации о компании: пропорции и относительный
   размер сохранены, поэтому у каждого своя ширина, а выравниваются они по средней линии. */
.clients__list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 30px 52px;
}
/* Знак рисуется маской, а не картинкой: так он красится через currentColor
   и на наведении подхватывает фирменный фиолетовый, как остальные элементы.
   Свечение висит на li — фильтр применяется до маски и внутри знака был бы срезан. */
.clients__list li {
  display: flex; align-items: center;
  transition: filter .3s var(--ease);
}
.clients__logo {
  display: block; width: var(--w); height: var(--h); max-width: 100%;
  background: currentColor; color: var(--text-mid); opacity: .7;
  -webkit-mask: var(--logo) center / contain no-repeat;
          mask: var(--logo) center / contain no-repeat;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.clients__list li:hover { filter: drop-shadow(0 0 14px rgba(142, 123, 255, .45)); }
.clients__list li:hover .clients__logo { color: var(--accent-2); opacity: 1; }

/* Адреса масок живут здесь, а не в разметке: Chrome разрешает относительный url()
   из пользовательского свойства относительно файла стилей, а не документа.
   Размеры повторяют пропорции логотипов на слайде презентации. */
.cl-sibur         { --logo: url(../img/clients/sibur.svg);         --w: 124px; --h: 23px; }
.cl-transneft     { --logo: url(../img/clients/transneft.svg);     --w: 280px; --h: 28px; }
.cl-medsi         { --logo: url(../img/clients/medsi.svg);         --w: 160px; --h: 29px; }
.cl-genoanalitika { --logo: url(../img/clients/genoanalitika.svg); --w: 126px; --h: 41px; }
.cl-rgt           { --logo: url(../img/clients/rgt.svg);           --w: 140px; --h: 39px; }
.cl-inline        { --logo: url(../img/clients/inline-group.svg);  --w:  92px; --h: 35px; }
.cl-utair         { --logo: url(../img/clients/utair.svg);         --w:  74px; --h: 27px; }
.cl-kfc           { --logo: url(../img/clients/kfc.svg);           --w:  80px; --h: 25px; }
.cl-rost          { --logo: url(../img/clients/rost.png);          --w:  75px; --h: 42px; }
.cl-ifcm          { --logo: url(../img/clients/ifcm.svg);          --w:  75px; --h: 23px; }
.cl-biosmart      { --logo: url(../img/clients/biosmart.svg);      --w: 169px; --h: 23px; }
.cl-mvideo        { --logo: url(../img/clients/mvideo.svg);        --w: 161px; --h: 27px; }
.cl-detmir        { --logo: url(../img/clients/detmir.png);        --w: 260px; --h: 26px; }
.cl-reo           { --logo: url(../img/clients/reo.svg);           --w: 130px; --h: 30px; }
.cl-imperator     { --logo: url(../img/clients/imperator.png);     --w: 162px; --h: 28px; }

/* ---------------- contacts ---------------- */

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contacts__list { margin-top: 44px; }
.contacts__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contacts__label { font-size: 14px; color: var(--text-dim); }
.contacts__value { font-size: 19px; font-weight: 500; transition: color .2s; }
a.contacts__value:hover { color: var(--accent-2); }

.form {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 32px; background: var(--surface);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font-family: inherit; font-size: 16px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: rgba(255, 120, 120, .55); }
.form__note { margin-top: 16px; font-size: 13px; color: var(--text-dim); line-height: 1.5; }

/* ---------------- footer ---------------- */

.footer { border-top: 1px solid var(--line); padding: 54px 0; background: var(--bg); }
.footer__in { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer__brand { display: flex; gap: 14px; align-items: center; color: var(--accent-2); }
.footer__name { line-height: 1; color: var(--text); font-weight: 600; }
.footer__tag { color: var(--text-dim); font-size: 14.5px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; color: var(--text-mid); font-size: 15px; }
.footer__nav a:hover { color: var(--text); }
.footer__meta { display: flex; flex-direction: column; gap: 8px; text-align: right; color: var(--text-mid); font-size: 15px; }
.footer__meta a:hover { color: var(--accent-2); }
.footer__copy { color: var(--text-dim); font-size: 13.5px; margin-top: 8px; }

/* ================= страницы продуктов ================= */

.subpage { padding-top: 74px; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 14px; color: var(--text-dim); margin-bottom: 30px;
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--accent-2); }
.crumbs b { color: var(--text-mid); font-weight: 500; }

.phero { position: relative; padding: 56px 0 20px; overflow: hidden; }
.phero .hero__glow { top: -420px; opacity: .6; }
.phero .wrap { position: relative; }
.phero__in { display: flex; align-items: flex-start; gap: 26px; }
.phero__logo { width: 88px; height: 88px; flex: none; display: block; }
.phero__title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 600; }
.phero__title--wide { max-width: 18ch; }
.phero__full {
  margin-top: 10px; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-2);
}
.phero__tagline { margin-top: 18px; font-size: 19px; color: var(--text-mid); max-width: 62ch; }
.phero__tagline--wide { margin-top: 22px; font-size: 18px; max-width: 70ch; }

.badge {
  display: inline-block; margin-top: 20px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--accent-soft); color: var(--text-mid); font-size: 14px;
}

/* ---- проза ---- */

.prose { max-width: 900px; }
.prose > * + * { margin-top: 22px; }
.prose__lead { font-size: 19px; color: var(--text-mid); }
.prose__h {
  font-size: clamp(22px, 2.4vw, 28px); margin-top: 56px !important;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.prose > .prose__h:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.prose p { color: var(--text-mid); }

.numlist { counter-reset: nl; }
.numlist > li {
  counter-increment: nl; position: relative; padding-left: 38px;
  margin-bottom: 14px; color: var(--text-mid);
}
.numlist > li::before {
  content: counter(nl); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  color: var(--accent-2); font-size: 12px; font-weight: 600;
}
.numlist__sub { margin: 10px 0 0; }
.numlist__sub li {
  position: relative; padding-left: 18px; margin-bottom: 6px;
  color: var(--text-dim); font-size: 15.5px;
}
.numlist__sub li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 6px; height: 1px; background: var(--line-strong);
}

.cols { columns: 2; column-gap: 40px; }
.cols li {
  break-inside: avoid; padding-left: 18px; position: relative;
  margin-bottom: 10px; color: var(--text-mid); font-size: 15.5px;
}
.cols li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 7px; height: 1px; background: var(--accent);
}

.tagrow li { font-size: 14.5px; }

/* ---- иконки возможностей ---- */

.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
         border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px; background: var(--bg); }
.feat--empty { padding: 0; }
.feat__icon { width: 44px; height: 44px; flex: none; }
.feat__text { color: var(--text-mid); font-size: 15.5px; margin: 0; }

/* ---- скриншоты ---- */

.shot { margin: 0; }
.shot img, .shot video {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.shot a { display: block; transition: border-color .3s; }
.shot a:hover img { border-color: var(--line-strong); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--text-dim); }
.shot--video video { background: #000; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery .shot img {
  aspect-ratio: 16 / 10; object-fit: contain;
  background: var(--bg); padding: 10px;
}

.plogos { display: flex; flex-wrap: wrap; gap: 18px; }
.plogo {
  margin: 0; flex: 1 1 190px; max-width: 240px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 24px 20px; background: #fff; border-radius: var(--r);
}
.plogo img { max-width: 100%; height: 46px; object-fit: contain; }
.plogo figcaption { color: #1a1c2a; font-size: 14px; font-weight: 500; text-align: center; }

/* ---- документы ---- */

.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.docs a {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.docs a:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.docs__ext {
  flex: none; padding: 5px 9px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
}
.docs__name { font-size: 15px; color: var(--text-mid); }
.docs a:hover .docs__name { color: var(--text); }

.linkout { margin-top: 26px !important; }
.smallnote { font-size: 14px; color: var(--text-dim); }

/* ---- связанные продукты ---- */

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.related__item {
  display: block; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease);
}
.related__item:hover { border-color: var(--accent); transform: translateY(-2px); }
.related__name { display: block; font-weight: 600; margin-bottom: 6px; }
.related__desc { display: block; font-size: 14.5px; color: var(--text-dim); }

/* ---- подпродукты ---- */

.subs { display: grid; gap: 22px; }
.subp {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 32px 30px; background: var(--surface);
}
.subp__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.subp__code {
  padding: 6px 12px; border-radius: 6px;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  color: var(--accent-2); font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.subp__title { font-size: 20px; }
.subp__desc { color: var(--text-mid); margin-bottom: 20px; }
.subp .shot { margin-top: 22px; }

/* ---- список продуктов ---- */

.plist { display: grid; gap: 18px; }
.pitem {
  display: flex; align-items: center; gap: 24px;
  padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); transition: border-color .3s, transform .3s var(--ease);
}
.pitem:hover { border-color: var(--accent); transform: translateY(-3px); }
.pitem__logo { width: 64px; height: 64px; flex: none; }
.pitem__body { flex: 1 1 auto; }
.pitem__name { font-size: 26px; font-weight: 700; }
.pitem__full { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-top: 4px; }
.pitem__desc { margin-top: 12px; color: var(--text-dim); font-size: 15.5px; }
.pitem__more { flex: none; color: var(--accent-2); font-size: 15px; white-space: nowrap; }
.pitem__more::after { content: " →"; }

.olist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.oitem {
  display: block; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.oitem:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-3px); }
.oitem__name { font-size: 18px; }
.oitem__full { margin-top: 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.oitem__desc { margin-top: 12px; font-size: 15px; color: var(--text-dim); }
.oitem__badge { margin-top: 14px; font-size: 13px; color: var(--accent-2); }

/* ---- CTA внизу подстраниц ---- */

.cta { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: center; }
.cta__title { font-size: clamp(24px, 3vw, 34px); }
.cta__text { margin-top: 14px; color: var(--text-mid); max-width: 56ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- кнопка «все продукты» на главной ---- */

.products__more { display: flex; justify-content: center; margin-top: 44px; }

/* ================= новости ================= */

.section--tight { padding-top: 46px; }
.phero--news { padding-bottom: 6px; }

.ndate {
  display: block; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px;
}

.narticle__title { font-size: clamp(28px, 4vw, 44px); font-weight: 600; max-width: 24ch; }
.narticle__lead { margin-top: 20px; font-size: 19px; color: var(--text-mid); max-width: 62ch; }

/* в новостях галерея — фотографии, их лучше кадрировать, а не вписывать */
.section--tight .gallery .shot img { object-fit: cover; padding: 0; }

.ncover { margin-bottom: 8px; }
.ncover img {
  max-height: 520px; object-fit: contain;
  background: var(--bg); padding: 8px;
}

/* список новостей */

.nlist { display: grid; gap: 20px; }
.ncard {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); transition: border-color .3s, transform .3s var(--ease);
}
.ncard:hover { border-color: var(--accent); transform: translateY(-3px); }
.ncard__media { display: block; background: var(--bg); }
.ncard__media img {
  display: block; width: 100%; height: 100%; min-height: 190px;
  object-fit: cover; transition: transform .5s var(--ease);
}
.ncard:hover .ncard__media img { transform: scale(1.04); }
.ncard__body { display: flex; flex-direction: column; padding: 26px 28px 26px 0; }
.ncard__title { display: block; font-size: 21px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.ncard__lead { display: block; margin-top: 12px; color: var(--text-dim); font-size: 15.5px; }
.ncard__more { display: block; margin-top: auto; padding-top: 18px; color: var(--accent-2); font-size: 15px; }
.ncard__more::after { content: " →"; }

.related__date {
  display: block; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px;
}
.related__item .related__name { font-size: 15.5px; line-height: 1.35; }

/* ---------------- reveal ---------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .products, .contacts { grid-template-columns: 1fr; }
  .cards, .rtb { grid-template-columns: repeat(2, 1fr); }
  .olist { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .step::after { display: none; }
  .contacts { gap: 44px; }
}

/* с шестью пунктами меню строка перестаёт помещаться раньше 900px */
/* Порог считается по фактической ширине меню: шесть пунктов с «Как мы работаем»
   и «Почему СИВИЭС» требуют ~1093px вместе с логотипом и кнопкой. */
@media (max-width: 1140px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 74px; left: 0; right: 0;
    background: rgba(7, 9, 18, .97); backdrop-filter: blur(14px);
    border-block: 1px solid var(--line); padding: 8px 28px 20px;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav.is-open a::after { display: none; }
  .header__in { position: relative; }
  .header__cta { margin-left: auto; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px;
    background: none; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
  }
  .burger span { display: block; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  html { scroll-padding-top: 28px; }   /* секции здесь ниже — компенсируем */
  .hero { padding: 108px 0 72px; }
  .section { padding: 78px 0; }
  .cards, .rtb, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .header__cta { display: none; }
  .nav.is-open .nav__cta { display: block; color: var(--accent-2); border-bottom: 0; }
  .pcard, .compare__col, .form { padding: 28px 22px; }
  .pcard__logo { width: 46px; height: 46px; }
  .pcard__name { font-size: 26px; }

  .feats, .docs, .gallery, .related, .olist { grid-template-columns: 1fr; }
  .ncard { grid-template-columns: 1fr; gap: 0; }
  .ncard__media img { min-height: 200px; max-height: 220px; }
  .ncard__body { padding: 24px 22px; }
  .cols { columns: 1; }
  .phero__in { flex-direction: column; gap: 18px; }
  .phero__logo { width: 68px; height: 68px; }
  .pitem { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 22px; }
  .pitem__more { align-self: flex-end; }
  .subp { padding: 26px 22px; }
  .prose__h { margin-top: 44px !important; }
  .footer__in { flex-direction: column; gap: 30px; }
  .footer__meta { text-align: left; }
}

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