/* ВекторМетр — свидетельство / сертификат об утверждении типа СИ */
:root {
  --bg: #ffffff;
  --bg-alt: #f0f4f5;
  --bg-mist: #e4ebef;
  --ink: #181818;
  --muted: #5a656c;
  --line: #cfd8dd;
  --accent: #1a5f7a;
  --accent-2: #134a60;
  --accent-soft: #d9eaf0;
  --warn: #8a1f1f;
  --ok: #1a5f7a;
  --font: "Poppins", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --max: 1120px;
  --s50: 4px;
  --s75: 8px;
  --s100: 12px;
  --s200: 16px;
  --s300: 24px;
  --s400: 32px;
  --s500: 40px;
  --s600: 48px;
  --s700: 64px;
  --s800: 80px;
  --s900: 96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 24px;
  text-wrap: pretty;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
ul { list-style: none; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: var(--s200);
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: var(--s75) var(--s100);
  border-radius: var(--r-sm);
}
.skip:focus { top: var(--s200); }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

h1, h2, h3, h4 {
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: 48px; line-height: 1; }
h2 { font-size: 36px; line-height: 40px; margin-bottom: var(--s200); }
h3 { font-size: 20px; line-height: 28px; }
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  max-width: 680px;
}
.kicker {
  display: inline-block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s100);
}
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s75);
  min-height: 40px;
  padding: var(--s75) var(--s100);
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-2); color: #fff; }
.btn-line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-line:hover { background: var(--bg-alt); color: var(--ink); }
.btn-sm { font-size: 14px; line-height: 20px; min-height: 36px; }

/* Floating nav */
.topbar {
  position: sticky;
  top: var(--s200);
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 var(--s200);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s300);
  width: max-content;
  max-width: 100%;
  padding: var(--s75) var(--s75) var(--s75) var(--s200);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(207, 216, 221, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.05);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s75);
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.brand-name { font-size: 16px; font-weight: 700; line-height: 1.1; }
.brand-name small {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links { display: flex; gap: var(--s200); }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition: color 300ms var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-side { display: flex; align-items: center; gap: var(--s100); }
.nav-tel {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  place-items: center;
}
.burger .i {
  width: 18px;
  height: 12px;
  position: relative;
}
.burger .i span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 500ms var(--ease), opacity 300ms var(--ease), top 500ms var(--ease);
}
.burger .i span:nth-child(1) { top: 0; }
.burger .i span:nth-child(2) { top: 5px; }
.burger .i span:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .i span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .i span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .i span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  padding: var(--s900) var(--s300) var(--s400);
}
.drawer.open { display: block; }
.drawer nav { display: grid; gap: var(--s200); }
.drawer a {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
}
.drawer.open a { animation: rise 500ms var(--ease) forwards; }
.drawer.open a:nth-child(1) { animation-delay: 0ms; }
.drawer.open a:nth-child(2) { animation-delay: 60ms; }
.drawer.open a:nth-child(3) { animation-delay: 120ms; }
.drawer.open a:nth-child(4) { animation-delay: 180ms; }
.drawer.open a:nth-child(5) { animation-delay: 240ms; }
.drawer.open a:nth-child(6) { animation-delay: 300ms; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* Hero asymmetric */
.hero {
  padding: var(--s800) 0 var(--s700);
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s500);
  align-items: center;
}
.hero-copy { max-width: 680px; }
.hero-brand {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s200);
}
.hero h1 {
  max-width: 680px;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin-top: var(--s200); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s100);
  margin-top: var(--s300);
}
.hero-proof {
  margin-top: var(--s200);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.hero-proof strong { color: var(--ink); }

.hero-visual {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s400);
  min-height: 360px;
  display: grid;
  gap: var(--s200);
}
.viz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s300);
}
.viz-card .label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s75);
}
.viz-card h3 { margin-bottom: var(--s75); }
.viz-card p { color: var(--muted); font-size: 14px; line-height: 20px; }
.viz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s200);
}
.viz-stat {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s300);
}
.viz-stat b {
  display: block;
  font-size: 30px;
  line-height: 36px;
}
.viz-stat span {
  display: block;
  margin-top: var(--s50);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.85;
}

/* Proof strip */
.proof {
  background: var(--ink);
  color: #fff;
  padding: var(--s400) 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s300);
}
.proof-grid b {
  display: block;
  font-size: 30px;
  line-height: 36px;
  color: #fff;
}
.proof-grid span {
  display: block;
  margin-top: var(--s50);
  font-size: 14px;
  line-height: 20px;
  color: #9b9b9b;
}

.block { padding: var(--s800) 0; }
.block-alt { background: var(--bg-alt); }
.block-mist { background: var(--bg-mist); }
.block-ink { background: #1f1f1f; color: #fff; }
.block-ink h2, .block-ink h3 { color: #fff; }
.block-ink .lead, .block-ink .kicker { color: #9b9b9b; }
.block-ink .kicker { color: #7eb6c9; }

/* Tagline */
.tagline { padding: var(--s900) 0; background: var(--bg); }
.tagline p {
  max-width: 680px;
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.tagline .w {
  color: rgba(24, 24, 24, 0.28);
  transition: color 500ms var(--ease);
}
.tagline .w.on { color: #181818; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s300);
  margin-top: var(--s400);
}
.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s300);
}
.tile h3 { margin-bottom: var(--s100); }
.tile p, .tile li {
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}
.tile ul { display: grid; gap: var(--s75); margin-top: var(--s100); }
.tile li {
  padding-left: var(--s200);
  position: relative;
}
.tile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.tile-tall { grid-row: span 2; }
.tile-soft { background: var(--accent-soft); border-color: transparent; }
.tile-warn { border-color: #e5c0c0; }
.tile-ok { border-color: #b7d0d9; }

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s300);
  margin-top: var(--s400);
}
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s300);
}
.benefit .ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--s200);
}
.benefit h3 { margin-bottom: var(--s75); }
.benefit p { color: var(--muted); font-size: 16px; line-height: 24px; }

/* 3 steps horizontal */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s300);
  margin-top: var(--s400);
  counter-reset: flow;
}
.flow-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s400) var(--s300) var(--s300);
}
.flow-item::before {
  counter-increment: flow;
  content: "0" counter(flow);
  position: absolute;
  top: var(--s200);
  right: var(--s200);
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: var(--accent-soft);
}
.flow-item h3 { margin-bottom: var(--s75); padding-right: var(--s500); }
.flow-item p { color: var(--muted); font-size: 16px; line-height: 24px; }

.table-box {
  margin-top: var(--s400);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td {
  text-align: left;
  padding: var(--s200);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  vertical-align: top;
}
th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
td { color: var(--muted); }
td strong { color: var(--ink); }
tr:last-child td { border-bottom: none; }
.note {
  margin-top: var(--s200);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s300);
  margin-top: var(--s400);
}
.cmp {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cmp-h {
  padding: var(--s200) var(--s300);
  background: var(--bg-alt);
}
.cmp-h.hot { background: var(--accent); color: #fff; }
.cmp-h h3 { font-size: 18px; line-height: 28px; }
.cmp-h small {
  display: block;
  margin-top: var(--s50);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.75;
  font-weight: 500;
}
.cmp-b { padding: var(--s300); }
.cmp-b li {
  position: relative;
  padding-left: var(--s200);
  margin-bottom: var(--s100);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.cmp-b li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s300);
  margin-top: var(--s400);
}
.quote {
  background: #272727;
  border: 1px solid #313131;
  border-radius: var(--r-lg);
  padding: var(--s300);
}
.quote p {
  font-size: 18px;
  line-height: 28px;
  color: #fff;
  margin-bottom: var(--s200);
}
.quote footer {
  font-size: 14px;
  line-height: 20px;
  color: #9b9b9b;
}
.quote strong { color: #fff; font-weight: 600; }

.faq {
  max-width: 800px;
  margin: var(--s400) auto 0;
  display: grid;
  gap: var(--s100);
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s200) var(--s300);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  display: flex;
  justify-content: space-between;
  gap: var(--s200);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq-a {
  margin-top: var(--s100);
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.cta {
  padding: var(--s800) 0;
  background: var(--accent-soft);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s500);
  align-items: start;
}
.checks {
  margin-top: var(--s300);
  display: grid;
  gap: var(--s100);
}
.checks li {
  display: flex;
  gap: var(--s100);
  align-items: flex-start;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}
.checks svg { flex: none; margin-top: 2px; color: var(--accent); }
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s400);
}
.form h3 { margin-bottom: var(--s75); }
.form .sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  margin-bottom: var(--s200);
}
.fields { display: grid; gap: var(--s100); }
.fields label {
  display: grid;
  gap: var(--s50);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.fields input,
.fields textarea {
  width: 100%;
  padding: var(--s75) var(--s100);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 300ms var(--ease);
}
.fields input:focus,
.fields textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
}
.fields .bad { border-color: var(--warn); }
.err {
  display: none;
  font-size: 12px;
  line-height: 16px;
  color: var(--warn);
  font-weight: 500;
}
.err.show { display: block; }
.fields textarea { min-height: 96px; resize: vertical; }
.fields .btn { width: 100%; margin-top: var(--s50); }
.fine {
  margin-top: var(--s100);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.okmsg {
  display: none;
  margin-bottom: var(--s100);
  padding: var(--s100);
  background: var(--accent-soft);
  border: 1px solid #b7d0d9;
  border-radius: var(--r-sm);
  color: var(--accent-2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.okmsg.show { display: block; }

.site-foot {
  background: #181818;
  color: #9b9b9b;
  padding: var(--s700) 0 var(--s400);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s400);
}
.site-foot .brand-name { color: #fff; }
.site-foot .brand-name small { color: #9b9b9b; }
.about {
  margin-top: var(--s200);
  font-size: 14px;
  line-height: 20px;
  max-width: 280px;
}
.site-foot h4 {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: var(--s200);
}
.col { display: grid; gap: var(--s100); }
.col a {
  color: #9b9b9b;
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
}
.col a:hover { color: #fff; }
.col span { font-size: 14px; line-height: 20px; }
.foot-bottom {
  margin-top: var(--s500);
  padding-top: var(--s300);
  border-top: 1px solid #313131;
  display: flex;
  justify-content: space-between;
  gap: var(--s200);
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 16px;
}
.legal-links { display: flex; gap: var(--s200); flex-wrap: wrap; }
.legal-links a { color: #9b9b9b; text-decoration: none; }
.legal-links a:hover { color: #fff; }

.legal-top {
  padding: var(--s800) 0 var(--s500);
  background: var(--bg-alt);
}
.legal-top h1 {
  font-size: 36px;
  line-height: 40px;
  max-width: 680px;
  background: linear-gradient(90deg, #000, #666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-top p {
  margin-top: var(--s100);
  color: var(--muted);
  max-width: 680px;
}
.legal-body { padding: var(--s600) 0 var(--s800); }
.updated {
  display: inline-block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--s300);
}
.legal-body h2 {
  font-size: 24px;
  line-height: 32px;
  margin: var(--s400) 0 var(--s200);
}
.legal-body p,
.legal-body li {
  color: var(--muted);
  margin-bottom: var(--s100);
  font-size: 16px;
  line-height: 24px;
}
.legal-body ul {
  margin: var(--s100) 0 var(--s200);
  display: grid;
  gap: var(--s75);
}
.legal-body li {
  padding-left: var(--s200);
  position: relative;
}
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-body b { color: var(--ink); font-weight: 700; }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 200ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tagline .w { color: #181818; }
  .drawer a { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 960px) {
  h1 { font-size: 36px; line-height: 40px; }
  h2 { font-size: 30px; line-height: 36px; }
  .tagline p { font-size: 30px; line-height: 36px; }
  .nav-links, .nav-tel { display: none; }
  .burger { display: grid; }
  .nav-pill { width: 100%; justify-content: space-between; }
  .hero-grid,
  .bento,
  .benefits,
  .flow,
  .compare,
  .quotes,
  .cta-grid,
  .foot-grid,
  .proof-grid { grid-template-columns: 1fr; }
  .tile-tall { grid-row: auto; }
  .flow { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: var(--s700); }
  .block, .cta { padding: var(--s600) 0; }
  .viz-row { grid-template-columns: 1fr; }
  .nav-side .btn { display: none; }
}
