/* ============================================================
   V2S — Vertex Sales Solutions
   Концепция: инженерная система. Чёрное поле / белый лист,
   сигнальный жёлтый — как промышленная маркировка автоматизации.
   Шрифты: Unbounded (дисплей), Golos Text (текст), JetBrains Mono (данные)
   ============================================================ */

:root {
  --ink: #0B0B0C;
  --ink-panel: #171719;
  --paper: #FFFFFF;
  --signal: #FFD400;
  --signal-dim: #C9A800;
  --graphite: #6E6E70;
  --grid-line: rgba(255, 255, 255, 0.045);
  --hairline-light: rgba(11, 11, 12, 0.14);
  --hairline-dark: rgba(255, 255, 255, 0.14);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

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

/* ---------- Типографика ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 18px;
}

.eyebrow--yellow { color: var(--signal); }
.eyebrow--ink { color: var(--signal-dim); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin-bottom: 20px;
}

.section__lead {
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 56px;
}

.section--paper .section__lead { color: var(--graphite); }
.section--ink .section__lead { color: #A6A6A8; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border-radius: 4px;
  padding: 15px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn--yellow {
  background: var(--signal);
  color: var(--ink);
  box-shadow: 4px 4px 0 0 rgba(255, 212, 0, 0.25);
}

.btn--yellow:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 rgba(255, 212, 0, 0.3); }

.btn--yellow:active { transform: translate(0, 0); box-shadow: 2px 2px 0 0 rgba(255, 212, 0, 0.25); }

.btn--ghost {
  border-color: var(--hairline-dark);
  color: var(--paper);
}

.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }

.btn--lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--hairline-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  background: var(--signal);
  padding: 5px 9px;
  border-radius: 3px;
}

.logo__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A6A6A8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav > a {
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav > a:hover { color: var(--signal); }

.nav__cta { padding: 11px 20px; font-size: 14px; box-shadow: none; }
.nav__cta:hover { box-shadow: none; transform: none; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 3px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger--open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  padding: 96px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.9vw, 44px);
  line-height: 1.24;
  margin-bottom: 26px;
}

.hero__equation {
  display: block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(15px, 1.8vw, 21px);
  letter-spacing: -0.01em;
  color: #A6A6A8;
}

.hero__equation b {
  font-weight: 500;
  color: var(--paper);
  border: 1px solid var(--hairline-dark);
  border-radius: 3px;
  padding: 3px 9px;
  white-space: nowrap;
}

.hero__equation i {
  font-style: normal;
  color: var(--signal);
  padding: 0 4px;
}

.hero__equation u {
  text-decoration: none;
  color: var(--ink);
  background: var(--signal);
  border-radius: 3px;
  padding: 3px 9px;
  white-space: nowrap;
}

.hero__lead {
  font-size: 18px;
  color: #A6A6A8;
  max-width: 560px;
  margin-bottom: 38px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Консоль агента (сигнатура) ---------- */

.console {
  background: var(--ink-panel);
  border: 1px solid var(--hairline-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline-dark);
}

.console__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2E2E30;
}

.console__dot--on { background: var(--signal); }

.console__name {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7C7C7E;
}

.console__log {
  height: 218px;
  overflow: hidden;
  padding: 16px 16px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px);
  mask-image: linear-gradient(180deg, transparent 0, #000 26px);
}

.console__line { color: #C9C9CB; white-space: pre-wrap; overflow-wrap: anywhere; }

.console__line--cmd { color: var(--paper); }
.console__line--ok { color: #9DBA62; }
.console__line--warn { color: var(--signal); }
.console__line--msg { color: #8E8E90; }
.console__line--sum { color: var(--ink); background: var(--signal); border-radius: 2px; padding: 1px 6px; width: fit-content; }

/* ---------- Статы hero ---------- */

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline-dark);
}

.hero__stats li {
  padding: 26px 24px 0 0;
  border-right: 1px solid var(--hairline-dark);
}

.hero__stats li:last-child { border-right: none; }

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--signal);
  display: block;
  margin-bottom: 10px;
}

.hero__stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 6px;
}

.hero__stats em {
  font-style: normal;
  font-size: 14px;
  color: #8E8E90;
}

/* ---------- Сигнальная лента ---------- */

.hazard {
  height: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--signal) 0 14px,
    var(--ink) 14px 28px
  );
}

.hazard--flip {
  background: repeating-linear-gradient(
    45deg,
    var(--signal) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ---------- Секции ---------- */

.section { padding: 100px 0; }

.section--paper { background: var(--paper); color: var(--ink); }

.section--ink { background: var(--ink); color: var(--paper); }

/* ---------- Реестр услуг ---------- */

.catalog {
  list-style: none;
  counter-reset: cat;
}

.catalog__row {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 32px;
  align-items: start;
  padding: 34px 20px;
  border-top: 1px solid var(--hairline-light);
  position: relative;
  transition: background 0.18s ease;
}

.catalog__row:last-child { border-bottom: 1px solid var(--hairline-light); }

.catalog__row:hover { background: var(--ink); }

.catalog__row:hover .catalog__name,
.catalog__row:hover .catalog__desc { color: var(--paper); }

.catalog__row:hover .catalog__spec { color: #8E8E90; }

.catalog__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
  padding-top: 4px;
}

.catalog__row:hover .catalog__num {
  color: var(--signal);
  -webkit-text-stroke: 1.4px var(--signal);
}

.catalog__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 25px);
  margin-bottom: 10px;
  transition: color 0.18s ease;
}

.catalog__desc {
  color: var(--graphite);
  max-width: 640px;
  margin-bottom: 12px;
  transition: color 0.18s ease;
}

.catalog__spec {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: #9A9A9C;
}

.catalog__link {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 11px 18px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.catalog__link:hover { background: var(--signal); border-color: var(--signal); }

.catalog__row:hover .catalog__link { color: var(--paper); border-color: var(--paper); }

.catalog__row:hover .catalog__link:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* ---------- Пайплайн ---------- */

.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
}

.pipeline__step { position: relative; padding-top: 30px; }

.pipeline__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hairline-dark);
}

.pipeline__track::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
}

.pipeline__step:last-child .pipeline__track { background: var(--signal); }

.pipeline__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--signal);
  display: block;
  margin-bottom: 12px;
}

.pipeline__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.pipeline__desc {
  font-size: 14px;
  color: #8E8E90;
}

/* ---------- Контакты ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.contact__list {
  list-style: none;
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: #7C7C7E;
  margin-bottom: 6px;
}

.contact__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 3px;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

.contact__value:hover { color: var(--signal); }

.contact__cta {
  background: var(--ink-panel);
  border: 1px solid var(--hairline-dark);
  border-radius: 8px;
  padding: 40px 36px;
}

.contact__cta-note {
  font-size: 17px;
  color: #A6A6A8;
  margin-bottom: 26px;
  max-width: 360px;
}

/* ---------- Футер ---------- */

.footer {
  background: var(--ink);
  color: #8E8E90;
  border-top: 1px solid var(--hairline-dark);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer__nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #8E8E90;
  text-decoration: none;
}

.footer__nav a:hover { color: var(--signal); }

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* ---------- Политика (privacy.html) ---------- */

.policy {
  background: var(--paper);
  color: var(--ink);
  padding: 72px 0;
}

.policy h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 10px;
}

.policy__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 40px;
}

.policy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 34px 0 12px;
}

.policy p, .policy li {
  font-size: 16px;
  line-height: 1.7;
  color: #333336;
}

.policy ul, .policy ol { padding-left: 22px; margin: 10px 0; }

.policy a { color: var(--ink); font-weight: 600; }

/* ---------- Форма (закомментирована в разметке) ---------- */

.form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 36px;
}

.form__row { margin-bottom: 20px; }

.form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form input[type="text"],
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--hairline-light);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

.form input[type="text"]:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--signal-dim);
}

.form__row--consent { display: flex; align-items: flex-start; gap: 12px; }

.form__row--consent input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; accent-color: var(--signal-dim); flex-shrink: 0;
}

.form__consent-text { font-size: 13px; font-weight: 400; color: var(--graphite); }

.form__status { margin-top: 16px; font-size: 14px; color: var(--graphite); }

/* ---------- Адаптив ---------- */

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .console { max-width: 620px; }
  .pipeline { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .catalog__row { grid-template-columns: 84px 1fr; }
  .catalog__link { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 64px 0 48px; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats li { border-right: none; border-bottom: 1px solid var(--hairline-dark); padding: 20px 0; }
  .hero__stats li:last-child { border-bottom: none; }
  .catalog__row { grid-template-columns: 1fr; padding: 26px 8px; }
  .catalog__link { grid-column: 1; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }

  .burger { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline-dark);
    padding: 12px 24px 24px;
  }

  .nav--open { display: flex; }

  .nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline-dark);
    font-size: 16px;
  }

  .nav__cta {
    margin-top: 18px;
    text-align: center;
    border-bottom: none !important;
  }
}

@media (max-width: 520px) {
  .pipeline { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .logo__text { display: none; }
  .console__log { height: 190px; font-size: 11.5px; }
  .hero__equation b, .hero__equation u { white-space: normal; }
  .catalog__name, .section__title { overflow-wrap: anywhere; }
}
