@font-face {
  font-family: "Tilda Sans";
  src: url("../fonts/TildaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tilda Sans";
  src: url("../fonts/TildaSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tilda Sans";
  src: url("../fonts/TildaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #2971f5;
  --blue-dark: #1a52c4;
  --ink: #292929;
  --black: #000;
  --paper: #fff;
  --line: #dbdbdb;
  --muted: #6b6b6b;
  --accent: #f09e7b;
  --navy: #081633;
  --field: #f6f7f9;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Tilda Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; scroll-margin-top: var(--header-h); }
.section--tight { padding: 56px 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 20px;
}
.eyebrow--muted { color: var(--muted); }

h2.section-title {
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  display: block;
  flex: 0 0 auto;
}
.brand__sub { color: var(--muted); font-weight: 600; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.nav a:hover { color: var(--blue); text-decoration: none; }
.header-cta {
  display: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 9px 16px;
  border-radius: 22px;
}
.header-cta:hover { background: var(--blue-dark); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 116px 0 128px;
  max-width: 760px;
}
.hero__eyebrow {
  color: #8fb4ff;
  margin-bottom: 24px;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.hero__descr {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: #c3d2ec;
  max-width: 620px;
  margin: 0 0 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--blue);
  padding: 15px 30px;
  border-radius: 30px;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: #fff; color: var(--blue); text-decoration: none; }
.btn svg { transition: transform 0.18s ease; }
.btn:hover svg { transform: translateX(3px); }

/* Registry (trust signal) */
.registry { background: #f4f7fe; }
.registry__panel {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid #d7e2fb;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 44px 48px;
}
.registry__badge {
  text-align: left;
}
.registry__record-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.registry__number {
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.registry__text {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.registry__text a {
  color: var(--blue);
  border-bottom: 1px solid rgba(41, 113, 245, 0.35);
}
.registry__text a:hover {
  color: #d97a4f;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Functions */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
}
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.feature__num {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.feature__text {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* Purpose */
.purpose { background: var(--navy); color: #fff; }
.purpose__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.purpose__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb4ff;
  margin: 6px 0 0;
}
.purpose__text {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.38;
  font-weight: 400;
  color: #eaf0fb;
  margin: 0;
  letter-spacing: -0.005em;
}

/* Documentation */
.docs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.doc-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(41, 113, 245, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.doc-card__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.doc-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.doc-card__arrow {
  align-self: flex-end;
  color: var(--blue);
}

/* Certificates */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 760px;
}
.cert {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cert:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.cert img { width: 100%; height: auto; }
.certs__hint {
  font-size: 14px;
  color: var(--muted);
  margin: 20px 0 0;
}

/* Pricing */
.pricing { background: var(--ink); color: #fff; }
.pricing__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.pricing__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.01em;
  margin: 0;
}
.pricing__value {
  font-size: clamp(18px, 2vw, 24px);
  color: #cfd6e2;
  margin: 0;
}

/* Form */
.form-section { background: #f4f7fe; }
.form-wrap { max-width: 620px; }
.lead-form {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9a9a9a; }
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 113, 245, 0.15);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-consent {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}
.form-error {
  background: #fdecec;
  border: 1px solid #f3b7b7;
  color: #a12626;
  font-size: 14px;
  border-radius: 6px;
  padding: 12px 15px;
  margin-bottom: 4px;
}

/* Contacts */
.contacts { background: var(--ink); color: #fff; }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.contacts__info {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
}
.contacts__title {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  margin: 0 0 36px;
}
.contacts__lines {
  font-size: 18px;
  line-height: 1.75;
  color: #e4e4e4;
  margin: 0 0 20px;
}
.contacts__lines a { color: #e4e4e4; }
.contacts__lines a:hover { color: #fff; }
.contacts__addr {
  font-size: 15px;
  color: #b3b3b3;
  margin: 0 0 32px;
  max-width: 360px;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.socials a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #454545;
  border-radius: 50%;
  color: #cfcfcf;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.socials a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.contacts__map { position: relative; min-height: 360px; }
.contacts__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05) brightness(0.92);
}

/* Footer */
.site-footer {
  background: #121212;
  color: #8a8a8a;
  padding: 26px 0;
  font-size: 13px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #b3b3b3; }

/* Thanks / 404 pages */
.notice {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.notice__box { max-width: 620px; }
.notice h1 {
  font-weight: 700;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}
.notice p {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
}

@media (max-width: 900px) {
  .registry__panel { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
  .features__grid { grid-template-columns: 1fr; gap: 0; }
  .purpose__inner { grid-template-columns: 1fr; gap: 20px; }
  .docs__grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__inner { grid-template-columns: 1fr; }
  .contacts__info { padding: 48px 28px; }
  .contacts__map { min-height: 340px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav { display: none; }
  .header-cta { display: inline-flex; }
  .hero__inner { padding: 84px 0 92px; }
  .certs__grid { gap: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .docs__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr; max-width: 360px; }
  .pricing__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
