@charset "UTF-8";

/* ---------- Шрифты (лицензия SIL OFL, файлы в папке fonts) ---------- */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --ink: #0B1220;
  --text: #384152;
  --muted: #687284;
  --faint: #9AA3B2;
  --line: #E3E7ED;
  --line-strong: #CDD4DE;
  --bg: #FFFFFF;
  --bg-alt: #F3F5F8;

  --dark: #08111E;
  --dark-2: #0B1727;
  --dark-line: rgba(255, 255, 255, .1);
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(226, 234, 245, .74);
  --on-dark-3: rgba(226, 234, 245, .52);

  --accent: #1F6FDB;
  --accent-hover: #175BB9;
  --accent-ink: #1764C8;
  --accent-light: #6CB0FF;
  --warm: #FFB000;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1240px;
  --gutter: 20px;
  --header-h: 68px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; --header-h: 80px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(31, 111, 219, .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.nw { white-space: nowrap; }

/* Данные, которые ещё нужно заполнить */
.todo { border-bottom: 1px dashed currentColor; opacity: .7; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 16px; line-height: 1.2; text-align: center;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-light:hover { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .04); color: #fff; }
.btn-line { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 15px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.link-arrow .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.header-inner > .btn { margin-left: auto; }
.menu-open .site-header { background: #fff; }
.logo { display: block; flex: none; }
.logo img { height: 28px; width: auto; }
.logo .logo-light { display: none; }
.main-nav { display: none; }
.main-nav a { padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--accent-ink); }
.header-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-mail { display: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Прозрачная шапка поверх тёмного первого экрана */
.site-header.is-overlay { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-overlay .logo-dark { display: none; }
.site-header.is-overlay .logo-light { display: block; }
.site-header.is-overlay .main-nav a,
.site-header.is-overlay .header-mail,
.site-header.is-overlay .nav-toggle { color: #fff; }
.site-header.is-overlay .main-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-header.is-overlay .header-mail:hover { color: var(--accent-light); }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1100px) {
  .logo img { height: 32px; }
  .main-nav { display: flex; gap: 2px; margin-left: 24px; }
  .header-mail { display: inline; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  overflow-y: auto; background: #fff; border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav .container { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 32px; }
.m-link { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.m-link .icon { width: 18px; height: 18px; color: var(--faint); }
.m-contacts { display: grid; gap: 6px; padding: 28px 0; }
.m-contacts .label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.m-contacts a { color: var(--ink); font-size: 18px; font-weight: 500; }
.m-contacts a + .label { margin-top: 14px; }
@media (min-width: 1100px) { .mobile-nav { display: none !important; } }

/* ---------- Метки разделов ---------- */
.kicker, .sec-index {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.kicker { color: var(--on-dark-3); }
.kicker::before { content: ""; width: 28px; height: 2px; flex: none; background: var(--warm); }
.sec-index { color: var(--muted); }
.sec-index b { color: var(--accent-ink); font-weight: 600; }
.sec-index b::after { content: "/"; margin-left: 12px; color: var(--line-strong); font-weight: 400; }
.section-dark .sec-index { color: var(--on-dark-3); }
.section-dark .sec-index b { color: var(--accent-light); }
.section-dark .sec-index b::after { color: rgba(255, 255, 255, .2); }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-top: var(--header-h); background: var(--dark); color: var(--on-dark-2); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 50% at 74% 46%, rgba(42, 139, 234, .26) 0%, rgba(42, 139, 234, 0) 70%),
    radial-gradient(45% 40% at 0% 0%, rgba(42, 139, 234, .10) 0%, rgba(42, 139, 234, 0) 70%),
    linear-gradient(180deg, #0A1628 0%, #08111E 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 65% at 72% 45%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 65% at 72% 45%, #000 0%, transparent 78%);
}
.hero-grid { display: grid; gap: 8px; padding-top: 44px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 22px; color: #fff; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.hero-lead { max-width: 540px; margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-actions .btn { flex: 1 1 auto; padding-left: 16px; padding-right: 16px; font-size: 15px; }

.hero-visual { position: relative; margin: 8px calc(var(--gutter) * -1) 0; }
.hero-visual img { position: relative; z-index: 1; width: 100%; height: auto; }
.hero-visual::before {
  content: ""; position: absolute; left: 16%; right: 10%; bottom: 6%; height: 18%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.callout, .callout-lines { display: none; }

.hero-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 16px; border-top: 1px solid var(--dark-line); }
.fact { padding: 22px 0 24px; border-bottom: 1px solid var(--dark-line); }
.fact:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--dark-line); }
.fact:nth-child(even) { padding-left: 16px; }
.fact:nth-last-child(-n + 2) { border-bottom: 0; }
.fact-value { color: #fff; font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.fact-label { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--on-dark-3); }

@media (max-width: 420px) { .hero-actions .btn .icon { display: none; } }
@media (min-width: 640px) {
  .hero-actions .btn { flex: 0 0 auto; padding-left: 26px; padding-right: 26px; font-size: 16px; }
  .hero-lead { font-size: 18px; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 24px; }
  .hero-visual { margin: 0 -96px 0 0; }
  /* Выноски к изображению, как на чертеже */
  .callout-lines { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .callout-lines polyline { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1; vector-effect: non-scaling-stroke; }
  .callout-lines circle { fill: var(--dark); stroke: #fff; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
  .callout {
    position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px;
    font-family: var(--mono); font-size: 11px; line-height: 1.45; letter-spacing: .04em; white-space: nowrap; color: var(--on-dark-3);
  }
  .callout b { color: #fff; font-weight: 500; }
  .callout-a { right: 1.7%; bottom: 86.8%; align-items: flex-end; text-align: right; }
  .callout-b { left: 2.9%; top: 77.2%; }
  .hero-facts { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
  .fact, .fact:nth-child(odd), .fact:nth-child(even) { padding: 28px 28px 44px; border-bottom: 0; border-right: 1px solid var(--dark-line); }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
}

/* ---------- Разделы ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark-2); color: var(--on-dark-2); }
.section-dark h2, .section-dark h3 { color: #fff; }
.sec-head { display: grid; gap: 20px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.032em; }
.sec-lead { max-width: 620px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.section-dark .sec-lead { color: var(--on-dark-3); }
@media (min-width: 1100px) {
  .section { padding: 120px 0; }
  .sec-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; margin-bottom: 64px; }
  .sec-head .sec-index { grid-column: 1 / -1; }
  .sec-head h2 { grid-column: 1 / 8; }
  .sec-head .sec-lead { grid-column: 8 / 13; font-size: 18px; }
}

/* ---------- О компании ---------- */
.statement { max-width: 1080px; margin-top: 28px; color: var(--ink); font-size: clamp(23px, 2.8vw, 36px); font-weight: 500; line-height: 1.28; letter-spacing: -.026em; }
.statement .dim { color: #858FA1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 500; }

.directions { display: grid; margin-top: 64px; border-top: 1px solid var(--line); }
.direction { display: flex; flex-direction: column; gap: 14px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.dir-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dir-num { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); }
.dir-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.direction h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.dash-list { display: grid; gap: 8px; }
.dash-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 10px; height: 1px; background: var(--muted); }
.direction .link-arrow { margin-top: auto; padding-top: 6px; }
@media (min-width: 700px) {
  .directions { grid-template-columns: repeat(2, 1fr); }
  .direction { padding: 32px 32px 36px 0; }
  .direction:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .directions { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .direction, .direction:nth-child(even) { padding: 36px 28px 40px; border-bottom: 0; }
  .direction + .direction { border-left: 1px solid var(--line); }
  .direction:first-child { padding-left: 0; }
  .direction:last-child { padding-right: 0; }
}

/* ---------- Номенклатура ---------- */
.catalog { display: grid; gap: 20px; }
.cat-side { display: grid; gap: 16px; align-content: start; }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 50px; padding: 12px 16px 12px 46px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 219, .12); }

.filters {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; flex: none;
  min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: #fff;
  color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-align: left; cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.filter .count { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.filter.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter.is-active .count { color: rgba(255, 255, 255, .6); }
.cat-note { font-size: 14px; line-height: 1.5; color: var(--muted); }

.cat-list {
  display: grid; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.item {
  display: flex; flex-direction: column; gap: 6px;
  margin: 0 -1px -1px 0; padding: 22px 24px 24px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.item:hover { background: #FAFBFD; }
.item[hidden] { display: none; }
.item-group { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.item h3 { margin-top: 2px; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; }
.item p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

.catalog-more { display: flex; justify-content: center; margin-top: 24px; }
.catalog-more[hidden], .catalog-empty[hidden] { display: none; }
.catalog-empty { padding: 32px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; text-align: center; color: var(--muted); }

@media (min-width: 700px) { .cat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .catalog { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
  .cat-side { position: sticky; top: calc(var(--header-h) + 24px); gap: 24px; }
  .filters { flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
  .filter { width: 100%; min-height: 0; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 15px; }
  .filter:hover { color: var(--accent-ink); }
  .filter.is-active { background: transparent; color: var(--accent-ink); font-weight: 600; }
  .filter.is-active .count { color: var(--accent-ink); }
}

/* ---------- Как мы работаем ---------- */
.steps { display: grid; }
.step { position: relative; padding: 0 0 36px 36px; border-left: 1px solid var(--line-strong); }
.step:last-child { padding-bottom: 0; border-left-color: transparent; }
.step::before { content: ""; position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); }
.step-num { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--accent-ink); }
.step h3 { margin: 10px 0 10px; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .step, .step:last-child { padding: 36px 28px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .step::before { left: 0; top: -6px; }
}

/* ---------- Преимущества ---------- */
.features {
  display: grid; gap: 1px; overflow: hidden;
  border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-line);
}
.feature { display: grid; align-content: start; gap: 14px; padding: 30px 26px 34px; background: var(--dark-2); }
.feature .icon { width: 30px; height: 30px; color: var(--accent-light); stroke-width: 1.4; }
.feature h3 { margin-top: 10px; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--on-dark-3); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } .feature { padding: 40px 36px 44px; } }

/* ---------- Юридические услуги ---------- */
.legal { display: grid; gap: 48px; }
.legal-intro h2 { margin-top: 20px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.032em; }
.legal-intro .sec-lead { margin-top: 20px; }
.approach { display: grid; gap: 14px; margin: 32px 0 36px; }
.approach li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-weight: 500; line-height: 1.45; }
.approach .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }
.services { border-top: 1px solid var(--line-strong); }
.service { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.service-num { padding-top: 7px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.service h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.service p { grid-column: 2; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
@media (min-width: 1100px) {
  .legal { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .legal-intro { position: sticky; top: calc(var(--header-h) + 40px); }
  .service { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 24px; padding: 30px 0; align-items: baseline; }
  .service p { grid-column: auto; margin-top: 0; }
}

/* ---------- Контакты и форма ---------- */
.contact { display: grid; gap: 36px; grid-template-areas: "intro" "form" "details"; }
.contact-intro { grid-area: intro; }
.form-card { grid-area: form; }
.contact-details { grid-area: details; }
.contact-intro h2 { margin-top: 20px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.032em; }
.contact-lead { max-width: 460px; margin-top: 20px; font-size: 17px; color: var(--muted); }

.rows { margin: 0; border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.row dt { padding-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.row dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.row dd a { color: var(--ink); }
.row dd a:hover { color: var(--accent-ink); }
.rows-title { margin: 36px 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rows.small .row dd { font-size: 14.5px; font-weight: 400; color: var(--text); }

.form-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 40px 80px -48px rgba(11, 18, 32, .35); }
.form-slot iframe { display: block; width: 100%; height: 980px; border: 0; }
.form-slot[hidden], .form-fallback[hidden] { display: none; }
.form-fallback { padding: 32px 24px; }
.form-fallback h3 { font-size: 26px; letter-spacing: -.025em; line-height: 1.15; }
.form-fallback > p { margin-top: 12px; color: var(--muted); }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); }
.mailbox-label { width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mailbox a { color: var(--ink); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.mailbox a:hover { color: var(--accent-ink); }
.copy-btn { margin-left: auto; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s; }
.copy-btn:hover { border-color: var(--ink); }
.steps-mini { display: grid; gap: 10px; margin-top: 24px; counter-reset: mini; }
.steps-mini li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--text); counter-increment: mini; }
.steps-mini li::before { content: "0" counter(mini); flex: none; padding-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--accent-ink); }
.fallback-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.form-note { padding: 18px 24px 22px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (min-width: 640px) { .form-slot iframe { height: 880px; } .form-fallback { padding: 44px 40px; } .form-note { padding: 20px 40px 24px; } }
@media (min-width: 1100px) {
  .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro form" "details form"; column-gap: 80px; row-gap: 48px; align-items: start; }
}

/* ---------- Подвал ---------- */
.site-footer { padding: 72px 0 32px; background: var(--dark); color: var(--on-dark-3); font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .86); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.footer-logo { height: 30px; width: auto; }
.footer-about { max-width: 34ch; margin-top: 20px; line-height: 1.55; }
.footer-title { margin-bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }
.footer-links { display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; font-size: 13px; }
@media (min-width: 700px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Страницы документов ---------- */
.doc { padding: calc(var(--header-h) + 48px) 0 96px; }
.doc-inner { max-width: 800px; }
.breadcrumbs { margin-bottom: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-ink); }
.doc h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.doc-meta { margin: 16px 0 40px; color: var(--muted); font-size: 14px; }
.doc h2 { margin: 44px 0 14px; font-size: 22px; letter-spacing: -.02em; }
.doc p { margin: 0 0 12px; }
.doc ol, .doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc ul { list-style: disc; }
.doc li { margin-bottom: 6px; }
.doc-card { margin: 0 0 12px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); }
.doc-card p { margin: 0 0 4px; }
.doc-footer { padding: 32px 0; }

/* ---------- 404 ---------- */
.not-found { display: grid; place-items: center; min-height: 100vh; padding: calc(var(--header-h) + 48px) 0 64px; text-align: center; }
.not-found .code { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.not-found h1 { margin: 16px 0 14px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.03em; }
.not-found p { margin-bottom: 32px; color: var(--muted); }

/* ---------- Черновик: бейдж МСП ---------- */
.msp-badge {
  display: inline-flex; align-items: center; gap: 14px; max-width: 520px; margin-top: 26px; padding: 10px 18px 10px 10px;
  border: 1px solid rgba(255, 176, 0, .35); border-radius: 14px; background: rgba(255, 176, 0, .06);
  color: var(--on-dark-2); font-size: 13.5px; line-height: 1.4; transition: border-color .2s, background-color .2s;
}
.msp-badge:hover { border-color: rgba(255, 176, 0, .75); background: rgba(255, 176, 0, .1); color: var(--on-dark-2); }
.msp-badge b { display: block; margin-bottom: 2px; color: #fff; font-size: 14.5px; font-weight: 600; }
.msp-mark {
  display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 10px;
  background: var(--warm); color: var(--dark); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em;
}

/* ---------- Черновик: один макет квартала вместо крана ---------- */
.city { position: relative; margin: 14px calc(var(--gutter) * -1) 0; }
.city img { display: block; width: 100%; height: auto; }
.pin { position: absolute; width: 0; height: 0; }
.pin::before {
  content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(31, 111, 219, .5);
}
.pin-label {
  position: absolute; max-width: 130px; padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
  background: rgba(8, 17, 30, .84); color: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.25; text-align: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pin-label::after { content: ""; position: absolute; background: rgba(255, 255, 255, .55); }
.pin.up .pin-label { left: 0; bottom: 26px; transform: translateX(-50%); }
.pin.up .pin-label::after { left: 50%; top: 100%; width: 1px; height: 22px; }
.pin.down .pin-label { left: 0; top: 26px; transform: translateX(-50%); }
.pin.down .pin-label::after { left: 50%; bottom: 100%; width: 1px; height: 22px; }
.pin.left .pin-label { right: 26px; top: 0; transform: translateY(-50%); }
.pin.left .pin-label::after { left: 100%; top: 50%; width: 22px; height: 1px; }
@media (min-width: 640px) {
  .pin-label { max-width: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
  .pin.up .pin-label { bottom: 34px; } .pin.up .pin-label::after { height: 30px; }
  .pin.down .pin-label { top: 34px; } .pin.down .pin-label::after { height: 30px; }
  .pin.left .pin-label { right: 34px; } .pin.left .pin-label::after { width: 30px; }
}
@media (min-width: 1000px) { .city { margin: 0 -90px 0 -20px; } }

/* три пункта в строке цифр */
.hero-facts.three .fact { border-bottom: 0; }
.hero-facts.three .fact:nth-child(3) { grid-column: 1 / -1; padding-left: 0; padding-right: 0; border-right: 0; border-top: 1px solid var(--dark-line); }
@media (min-width: 1000px) {
  .hero-facts.three { grid-template-columns: repeat(3, 1fr); }
  .hero-facts.three .fact:nth-child(3) { grid-column: auto; padding: 28px 28px 44px; border-top: 0; }
}
