@font-face {
  font-family: "Golos Text";
  src: url("/assets/fonts/GolosText.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #15253b;        /* основной тёмно-синий */
  --ink-2: #2b3e57;
  --slate: #56677d;      /* вторичный текст */
  --line: #d6dce4;
  --mist: #eef2f6;       /* фон секций */
  --paper: #ffffff;
  --accent: #0d5f8a;     /* кнопки, ссылки */
  --accent-dark: #094a6c;
  --ok: #1d7a46;
  --err: #b42318;
  --radius: 6px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

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

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

/* ---------- Шапка ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top__row { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.top__phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }

/* ---------- Первый экран ---------- */
.hero { background: var(--ink); color: #fff; padding: 64px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.hero__place { margin: 0 0 16px; color: #a9b8ca; font-size: 15px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 16ch; }
.lead { font-size: 18px; color: #d3dce7; max-width: 52ch; margin: 0 0 36px; }

.hero__call { border-top: 1px solid #33475f; padding-top: 28px; }
.bigphone { display: inline-block; font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -0.01em; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.bigphone:hover { color: #cfe3f1; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn--ghost { color: #fff; border-color: #4a607b; }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--primary:disabled { opacity: .6; cursor: wait; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Форма ---------- */
.lead-form { background: var(--paper); color: var(--ink); border-radius: 8px; padding: 28px; box-shadow: 0 18px 40px rgba(5, 15, 30, .35); }
.lead-form__title { font-size: 22px; margin: 0 0 4px; }
.lead-form__note { margin: 0 0 20px; color: var(--slate); font-size: 15px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 12px; border: 1px solid #b9c3cf; border-radius: var(--radius); background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 95, 138, .18); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--slate); margin: 6px 0 18px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.lead-form .btn--primary { width: 100%; }
.form-status { margin: 12px 0 0; font-size: 15px; min-height: 1.4em; }
.form-status.is-ok { color: var(--ok); font-weight: 600; }
.form-status.is-err { color: var(--err); }

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--mist); }
.h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 12px; }
.section__intro { color: var(--slate); max-width: 62ch; margin: 0 0 40px; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.svc { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.svc + .svc { padding-left: 28px; border-left: 1px solid var(--line); }
.svc:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.svc__icon { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 14px; }
.svc h3 { font-size: 19px; margin: 0 0 12px; line-height: 1.3; }
.svc ul { margin: 0; padding: 0; list-style: none; }
.svc li { position: relative; padding-left: 16px; margin-bottom: 7px; font-size: 15.5px; color: var(--ink-2); }
.svc li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 2px; background: var(--accent); }
.svc--b2b { background: var(--mist); padding-right: 28px; }
.svc--b2b p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 20px; }

/* Этапы */
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 0 20px 0 0; position: relative; }
.steps li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 18px; left: 36px; right: 0; height: 1px; background: #b9c3cf; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; font-size: 17px; margin-bottom: 4px; }
.steps span { color: var(--slate); font-size: 15px; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-list { margin: 24px 0 0; }
.contact-list dt { color: var(--slate); font-size: 14px; }
.contact-list dd { margin: 2px 0 18px; font-size: 20px; font-weight: 600; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.requisites { border: 1px solid var(--line); border-radius: 8px; padding: 0 24px; margin-top: 8px; }
.requisites summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 18px 0; list-style-position: inside; }
.requisites[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.requisites dl { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; margin: 12px 0 20px; font-size: 15px; }
.requisites dt { color: var(--slate); }
.requisites dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
.copy-req { margin-bottom: 22px; }

/* Подвал */
.foot { background: var(--ink); color: #a9b8ca; font-size: 14px; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
.foot p { margin: 0; }
.foot a { color: #d3dce7; }

/* Политика */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.015em; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--ink-2); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero__grid, .contacts { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .svc:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; padding: 0; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li::after { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .top__phone { margin-left: auto; }
  .hero { padding: 40px 0 48px; }
  .services { grid-template-columns: 1fr; }
  .svc:nth-child(n) { padding: 24px 0; border-left: 0; }
  .svc--b2b:nth-child(n) { padding: 24px 20px; }
  .section { padding: 56px 0; }
  .lead-form { padding: 22px 18px; }
  .requisites { padding: 0 16px; }
  .requisites dl { grid-template-columns: 1fr; gap: 2px; }
  .requisites dd { margin-bottom: 10px; }
}
.top__phone--push { margin-left: auto; }
section[id], form[id] { scroll-margin-top: 72px; }
