/* ==========================================================================
   МНЕМО-СИСТЕМА — светлая тема
   Только системный шрифтовый стек, чистый CSS, без внешних ресурсов.
   ========================================================================== */

:root {
  --ink: #111827;
  --ink-2: #2A3448;
  --body: #3D4759;
  --muted: #5F6775;
  --accent: #2B4FE0;
  --accent-d: #1C3AC0;
  --accent-soft: #EEF2FE;
  --accent-line: #D8E0FB;
  --line: #E3E7F0;
  --line-strong: #CFD6E6;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --danger: #B42318;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 12px 30px -14px rgba(17, 29, 74, .20);
  --shadow-lg: 0 26px 60px -28px rgba(17, 29, 74, .32);

  --maxw: 1180px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

/* --------------------------------------------------------------- шапка --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: auto; height: 38px; flex: 0 0 auto; }
.brand-name {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.05;
}
.brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 2px;
  background: var(--accent);
  transition: right .25s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--accent); }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 380px at 78% -20%, #E4EBFF 0%, rgba(228, 235, 255, 0) 60%),
    linear-gradient(180deg, #FCFDFF 0%, #F2F6FE 100%);
}
.hero::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 79, 224, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 79, 224, .075) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.hero-logo {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(18px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.hero-logo::before {
  content: "";
  position: absolute;
  left: 24px; top: -2px;
  width: 58px; height: 4px;
  border-radius: 4px;
  background: var(--accent);
}
.hero-logo img { display: block; width: 100%; max-width: 336px; }

.hero-lead {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.62;
  color: var(--ink-2);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-tags li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-d);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ------------------------------------------------------ показатели ------ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(34px, 4vw, 56px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.stat { padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.6vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ------------------------------------------------------ секции ---------- */

.section { padding: clamp(48px, 6vw, 88px) 0; scroll-margin-top: 96px; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 800px; margin-bottom: clamp(28px, 3.4vw, 46px); }

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: var(--accent);
}
.section-sub { margin: 16px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--body); }

/* ------------------------------------------------------- о компании ---- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.prose p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.72; color: var(--body); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }

.feature-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
}
.feature h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.feature p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  animation: dg-dash 2.4s linear infinite;
}
@keyframes dg-dash { to { stroke-dashoffset: -32; } }

/* ------------------------------------------------------- каталог ПО ---- */

.dir { margin-bottom: clamp(34px, 4vw, 56px); }
.dir:last-child { margin-bottom: 0; }

.dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}
.dir-num { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.dir-head h3 { margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.dir-count {
  margin-left: auto;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleY(1); }

.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-block;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent-d);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}
.card-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.card-meta {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.card-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.card-link span { transition: transform .2s ease; }
.card-link:hover span { transform: translateX(4px); }
.card-link:hover { color: var(--accent-d); }

/* ------------------------------------------------------- контакты ------ */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 52px);
  padding: clamp(26px, 3.6vw, 48px);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #2B4FE0 0%, #1B34A8 100%);
}
.contacts .section-title { color: #fff; }
.contacts .section-title::after { background: #fff; }
.contacts .kicker { color: #C9D6FF; }
.contacts-lead { margin: 0 0 18px; max-width: 46ch; font-size: 15.5px; line-height: 1.65; color: #E3E9FF; }
.contact-mail {
  display: inline-block;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .45);
  word-break: break-word;
}
.contact-mail:hover { border-bottom-color: #fff; }

.req { padding: 20px 22px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .28); border-radius: 16px; }
.req-title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #C9D6FF; }
.req dl { display: grid; gap: 12px; margin: 0; }
.req dt { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #C9D6FF; }
.req dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; color: #fff; }

/* ------------------------------------------------------- подвал -------- */

.site-footer {
  margin-top: clamp(44px, 5vw, 76px);
  padding: clamp(34px, 4vw, 56px) 0 26px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.4vw, 48px);
}
.footer-title { margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-legal { margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.footer-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--body); }
.footer-list a { color: var(--body); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-list a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------------------------- страница «Описание» - */

.page-head {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FCFDFF 0%, #F2F6FE 100%);
}
.page-head > .container { position: relative; z-index: 1; }
.page-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.page-lead { max-width: 780px; margin: 16px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--body); }

.toc {
  margin-top: 28px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.toc-title { margin: 0 0 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 0 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--body);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.toc a:hover { color: var(--accent); }

.docs-list { padding: clamp(32px, 4vw, 56px) 0; }

.doc-block {
  margin-bottom: 20px;
  padding: clamp(20px, 2.8vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 96px;
}
.doc-block:last-child { margin-bottom: 0; }
.doc-block h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
}
.doc-num { font-size: 15px; font-weight: 800; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }

.doc-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 26px;
  margin: 18px 0 0;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.doc-meta dt { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.doc-meta dd { margin: 5px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

.doc-sub { margin: 22px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.doc-text { margin: 0; font-size: 15.5px; line-height: 1.72; color: var(--body); }

.files { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.files .doc-sub { margin-top: 0; }
.files ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.files a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.files a:hover { color: var(--accent); background: #fff; border-color: var(--accent); }

.btn-docs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.btn-docs:hover { background: var(--accent-dk); border-color: var(--accent-dk); text-decoration: none; }
.file-ico { flex: 0 0 auto; color: var(--accent); }
.file-ext {
  margin-left: auto;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---------------------------------------------------- страница входа --- */

.auth-main { background: linear-gradient(180deg, #FCFDFF 0%, #F2F6FE 100%); }
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: clamp(34px, 6vw, 70px) 0;
}
.auth-card {
  width: 100%;
  max-width: 470px;
  padding: clamp(26px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.auth-mark { width: auto; height: 52px; flex: 0 0 auto; }
.auth-card h1 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.auth-lead { margin: 12px 0 22px; font-size: 15.5px; color: var(--body); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 79, 224, .16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--accent-d); }

.form-note { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--body); }
.form-note.is-error { color: var(--danger); font-weight: 600; }
.form-note[hidden] { display: none; }

.auth-hint {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
.auth-hint a { color: var(--muted); }

/* ------------------------------------------------------- адаптивность -- */

@media (max-width: 1024px) {
  .contacts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-logo { margin: 0 auto; width: 100%; max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .nav ul { gap: 2px 18px; }
  .nav a { padding: 6px 0; font-size: 14px; }

  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .hero-tags li { font-size: 12.5px; }
  .doc-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
