:root {
  --blue: #3c84ce;
  --violet: #8057a1;
  --mag: #b4337f;
  --grad: linear-gradient(120deg, #3c84ce 0%, #8057a1 52%, #b4337f 100%);
  --bg: #0c1016;
  --bg2: #10151d;
  --panel: #161d27;
  --panel2: #1b232f;
  --line: #27313d;
  --line2: #323e4c;
  --ink: #eef2f6;
  --dim: #9aa7b6;
  --faint: #647281;
  --ok: #3ecf8e;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--violet);
}

.eyebrow.dim {
  color: var(--faint);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(36px, 5.6vw, 64px);
}

h2 {
  font-size: clamp(28px, 3.5vw, 44px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.btn.primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(128, 87, 161, .4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(128, 87, 161, .5);
}

.btn.ghost {
  background: rgba(255, 255, 255, .05);
  border-color: var(--line2);
  color: var(--ink);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, .1);
}

.btn.sm {
  min-height: 38px;
  padding: 9px 15px;
  font-size: 13.5px;
}

.btn svg {
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 22, .78);
  backdrop-filter: blur(14px);
}

.nav-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand .mk {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(128, 87, 161, .4);
}

.brand .mk img {
  display: block;
  width: 30px;
  height: 25px;
}

.brand--facets .mk {
  background: #eef3fb;
  box-shadow: none;
}

.brand--night .mk {
  background: transparent;
  box-shadow: none;
}

.brand .nm {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand .nm .a {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
}

.brand .nm .b {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .3em;
  color: var(--faint);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
}

.nav-burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-burger span::before {
  top: -6px;
}

.nav-burger span::after {
  top: 6px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 24px;
}

.nav-links a {
  color: var(--dim);
  font-size: 14px;
  transition: color .15s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-login {
  color: var(--dim);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}

.nav-login:hover {
  color: var(--ink);
}

.nav-cta .cta-short {
  display: none;
}

.breadcrumbs {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}

.breadcrumbs .crumb-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--faint);
}

.breadcrumbs a {
  color: var(--dim);
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs .crumb-sep {
  color: var(--faint);
}

.breadcrumbs .crumb-current {
  color: var(--ink);
}

.site-main {
  min-height: 55vh;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}

.hero-bg::after,
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(180, 51, 127, .28), transparent 55%),
    linear-gradient(180deg, rgba(12, 16, 22, .5) 0%, rgba(12, 16, 22, .86) 62%, var(--bg) 100%);
}

.hero-in,
.page-hero-in {
  position: relative;
  z-index: 1;
  padding: 88px 0 92px;
}

.hero h1,
.page-hero h1 {
  max-width: 800px;
}

.hero p.lead,
.page-hero p.lead {
  max-width: 660px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.tagpill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.tagpill .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(62, 207, 142, .18);
}

.section {
  padding: 92px 0;
}

.section.tone {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  margin-top: 18px;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}

.card:hover {
  border-color: var(--line2);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.6;
}

.card .card-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
}

.card .card-ic svg {
  width: 22px;
  height: 22px;
}

.card-link {
  display: block;
  height: 100%;
  transition: border-color .16s ease, transform .16s ease;
}

.card-link:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}

.card-link .go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 600;
}

.card-link:hover .go {
  color: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.stat .n {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}

.stat .l {
  margin-top: 12px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.feature-grid + .feature-grid {
  margin-top: 84px;
}

.feature-grid.rev .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 20px;
  background: var(--panel);
}

.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media.contain img {
  object-fit: contain;
  padding: 7%;
}

.feature-media .media-note {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: rgba(12, 16, 22, .82);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.feature-copy h2 {
  margin-bottom: 18px;
}

.feature-copy p {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.65;
}

.list-check {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.list-check svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--ok);
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
}

.split-list h3 {
  margin-bottom: 10px;
}

.split-list p {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.6;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.comparison {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison tr:last-child th,
.comparison tr:last-child td {
  border-bottom: 0;
}

.comparison th {
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
}

.comparison thead th {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison td {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.step .num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.step h3 {
  margin-bottom: 9px;
  font-size: 17px;
}

.step p {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.6;
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line2);
  background: linear-gradient(120deg, rgba(60, 132, 206, .16), rgba(180, 51, 127, .16)), var(--panel);
  padding: 64px 52px;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(90px);
  opacity: .4;
}

.cta-band .in {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.cta-band p {
  margin-top: 18px;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.65;
}

.cta-band .row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  padding: 52px 0 38px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
}

.foot-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.foot-col a,
.foot-col .foot-text {
  display: block;
  margin-bottom: 10px;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.45;
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-col .brand {
  display: inline-flex;
  color: var(--ink);
}

.foot-brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

.foot-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.5;
}

.foot-bot a {
  color: var(--dim);
}

.foot-bot a:hover {
  color: var(--ink);
}

.site-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  user-select: none;
}

.site-hint::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.site-hint:hover,
.site-hint:focus-visible {
  border-color: var(--violet);
  color: var(--ink);
  outline: none;
}

.site-hint::after {
  content: attr(data-hint);
  position: absolute;
  z-index: 60;
  top: calc(100% + 9px);
  left: 50%;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 9px 11px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .18);
  pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.site-hint:hover::after,
.site-hint:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  /* Появление при прокрутке отключено: секции видны всегда (раньше часть
     оставалась прозрачной, если наблюдатель не срабатывал). */
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 12px;
  background: var(--panel);
  color: var(--dim);
  font-size: 14px;
  line-height: 1.6;
}

.muted {
  color: var(--faint);
}

.text-dim {
  color: var(--dim);
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-16 {
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .grid-4,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .wrap {
    padding: 0 22px;
  }

  .nav-burger {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: rgba(16, 21, 29, .98);
  }

  .nav-links a {
    display: block;
    padding: 12px 22px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
  }

  .hero-in,
  .page-hero-in {
    padding: 64px 0 72px;
  }

  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stat-grid,
  .feature-grid,
  .split-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 30px;
  }

  .feature-grid + .feature-grid {
    margin-top: 56px;
  }

  .feature-grid.rev .feature-media {
    order: 0;
  }

  .feature-media {
    min-height: 240px;
  }

  .cta-band {
    padding: 46px 28px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 18px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero p.lead,
  .page-hero p.lead {
    font-size: 17px;
  }

  .section-head p {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-band .row .btn {
    width: auto;
  }

  .cta-band {
    padding: 40px 22px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding: 0 16px;
  }

  .nav-in {
    gap: 8px;
  }

  .nav-in.wrap {
    padding-inline: 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand .mk {
    width: 32px;
    height: 32px;
  }

  .site-header .brand .nm {
    display: none;
  }

  .brand .nm .a {
    font-size: 14px;
  }

  .brand .nm .b {
    display: none;
  }

  .nav-cta {
    gap: 10px;
  }

  .nav-cta .cta-long{display:none;}
  .nav-cta .cta-short{display:inline;}

  .nav-cta .btn.sm {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .hero-actions {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Шапка на телефоне: короткая подпись кнопки уже с 680 px (на 390 px длинная
   вылезала за край), «Войти» уходит в выпадающее меню на самых узких экранах. */
.nav-links .nav-links-login { display: none; }
@media (max-width: 680px) {
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-short { display: inline; }
  .nav-cta { gap: 10px; }
}
@media (max-width: 420px) {
  .nav-cta .nav-login { display: none; }
  .nav-links .nav-links-login { display: block; }
}

/* Подсказка «?» на телефоне: невидимый блок 320 px расширял страницу и давал
   горизонтальную прокрутку. На узком экране — плашка у нижнего края экрана. */
@media (max-width: 680px) {
  .site-hint::after {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    width: auto;
    max-width: none;
    transform: none;
  }
  .site-hint:hover::after,
  .site-hint:focus::after,
  .site-hint:focus-visible::after {
    transform: none;
  }
}

/* Юридические документы: узкая колонка для чтения, нумерованные пункты. */
.legal-doc .narrow-wrap { max-width: 860px; }
.legal-doc h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--dim); line-height: 1.65; margin: 0 0 12px; }
.legal-doc ul { padding-left: 22px; margin: 0 0 14px; }
.legal-doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-doc .comparison-wrap { margin: 8px 0 18px; }
.legal-doc .comparison td, .legal-doc .comparison th { font-size: 14px; vertical-align: top; }
@media (max-width: 680px) {
  .legal-doc .comparison-wrap { overflow-x: auto; }
  .legal-doc .comparison td, .legal-doc .comparison th { overflow-wrap: anywhere; }
}
