/* ЯБХ-ТЕХ · yabh-tech.ru */

/* ---------- Шрифты (локально, OFL) ---------- */
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены ---------- */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe7dd;
  --ink: #1b1d1f;
  --ink-2: #4a4d50;
  --line: #cfc9bc;
  --line-strong: #1b1d1f;
  --accent: #d9480f;      /* графика и крупные элементы */
  --accent-ink: #a8380a;  /* текст на бумаге, контраст 4.5:1+ */

  --font-sans: "Golos Text", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

a:hover {
  color: var(--accent-ink);
}

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

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

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: var(--s-2) var(--s-4);
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: var(--s-2);
  color: var(--paper);
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 56px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--ink);
}

.logo i {
  font-style: normal;
  color: var(--accent);
  margin-inline: 1px;
}

.nav {
  display: flex;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: block;
  padding-block: var(--s-4);
  text-decoration: none;
  white-space: nowrap;
}

.nav a span {
  color: var(--accent-ink);
  margin-right: 6px;
}

/* ---------- Первый экран ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-7);
  align-items: end;
}

.hero__main {
  grid-column: span 8;
}

.hero__spec {
  grid-column: 9 / span 4;
  align-self: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  flex: none;
}

h1 {
  margin-top: var(--s-5);
  font-size: clamp(40px, 6vw, 76px);
  white-space: nowrap;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin-top: var(--s-5);
  max-width: 34em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
}

.hero__list {
  margin-top: var(--s-4);
  max-width: 40em;
  border-top: 1px solid var(--line);
}

.hero__list li {
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--line);
}

.hero__list b {
  font-weight: 600;
}

.hero__note {
  margin-top: var(--s-5);
  max-width: 36em;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 48px;
  padding: 0 var(--s-5);
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
}

.btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
}

.btn svg {
  transition: transform 200ms var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.tel {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* Паспорт продукта */
.spec {
  border-top: 2px solid var(--line-strong);
  font-size: 15px;
}

.spec__title {
  padding-block: var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.spec__row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: 10px;
  border-top: 1px solid var(--line);
}

.spec dt {
  color: var(--ink-2);
}

.spec dd {
  font-weight: 500;
}

/* ---------- Разделы ---------- */
.section {
  padding-block: clamp(48px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-5);
}

.rail {
  grid-column: span 3;
  align-self: start;
  position: sticky;
  top: 88px;
  font-family: var(--font-mono);
}

.rail__num {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 300;
  color: var(--accent);
}

.rail__label {
  display: block;
  margin-top: var(--s-3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.body {
  grid-column: span 9;
  min-width: 0;
}

h2 {
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.intro {
  margin-top: var(--s-5);
  max-width: 40em;
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

.prose {
  max-width: 40em;
}

.section--first {
  border-top: 1px solid var(--line-strong);
}

.spec--product {
  max-width: 560px;
  margin-top: var(--s-7);
}

/* Продукт: вопросы и ответы строками */
.qa {
  margin-top: var(--s-7);
  border-top: 2px solid var(--line-strong);
}

.qa__row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}

.qa__row h3 {
  padding-top: 5px;
}

.qa__row p + p {
  margin-top: var(--s-3);
}

.qa__row p,
.qa__row ul {
  max-width: 36em;
}

.ticks li {
  position: relative;
  padding-left: var(--s-5);
}

.ticks li + li {
  margin-top: var(--s-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* Стоимость */
.price {
  margin-top: var(--s-7);
  border-top: 2px solid var(--line-strong);
}

.price__row {
  display: grid;
  grid-template-columns: 4fr 3fr 5fr;
  gap: var(--s-3) var(--s-5);
  align-items: baseline;
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}

.price__who {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
}

.price__val {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.price__val .rub {
  font-family: var(--font-sans);
  font-weight: 500;
}

.price__how {
  color: var(--ink-2);
}

.callout {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-7);
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--accent);
  background: var(--paper-2);
}

.callout__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
}

/* Стек */
.stack {
  margin-top: var(--s-7);
  border-top: 2px solid var(--line-strong);
}

.stack__row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
}

.chip {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
}

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

.chips__more {
  color: var(--ink-2);
}

/* Компания */
.exp {
  margin-top: var(--s-7);
}

.exp__list {
  margin-top: var(--s-4);
  border-top: 2px solid var(--line-strong);
  counter-reset: exp;
}

.exp__list li {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-5);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 500;
  counter-increment: exp;
}

.exp__list li::before {
  content: "0" counter(exp);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
  padding-top: 5px;
}

.after {
  margin-top: var(--s-5);
  max-width: 40em;
  color: var(--ink-2);
}

/* Реквизиты */
.req {
  margin-top: var(--s-7);
  border-top: 2px solid var(--line-strong);
}

.req__row {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-1) var(--s-5);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.req dt {
  color: var(--ink-2);
}

.req dd {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.req dd.mono {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.contacts {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-7);
  padding: var(--s-5);
  background: var(--ink);
  color: var(--paper);
}

.contacts h3 {
  color: #b9b4a8;
  padding-top: 6px;
}

.contacts a {
  display: block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contacts a + a {
  margin-top: var(--s-2);
}

.contacts a:hover {
  color: #ff8a5b;
}

.contacts p {
  margin-top: var(--s-3);
  color: #b9b4a8;
  font-size: 15px;
}

/* ---------- Подвал ---------- */
.footer {
  padding-block: var(--s-6);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}

.footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero__main,
  .hero__spec,
  .rail,
  .body {
    grid-column: 1 / -1;
  }

  .rail {
    position: static;
    display: flex;
    align-items: baseline;
    gap: var(--s-3);
  }

  .rail__num {
    font-size: 28px;
  }

  .rail__label {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  html {
    scroll-padding-top: 104px;
  }

  .header__in {
    flex-wrap: wrap;
    gap: 0;
    padding-top: var(--s-3);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: var(--s-3);
    font-size: 12.5px;
  }

  .nav a {
    padding-block: var(--s-3);
  }

  .nav a span {
    display: none;
  }

  .qa__row,
  .stack__row,
  .req__row,
  .callout,
  .contacts,
  .price__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .qa__row h3,
  .contacts h3 {
    padding-top: 0;
  }

  .price__row {
    padding-block: var(--s-5);
  }

  .exp__list li {
    grid-template-columns: 2.5em minmax(0, 1fr);
    gap: var(--s-3);
    font-size: 17px;
  }

  .spec__row {
    grid-template-columns: 9.5em minmax(0, 1fr);
  }

  .btn {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
