@font-face {
  font-family: "Onest";
  src: url("/assets/onest-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/onest-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/onest-extrabold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #191622;
  --muted: #6c6677;
  --purple: #6f1ace;
  --magenta: #bd279b;
  --surface: #ffffff;
  --page: #f8f7fb;
  --tint: #f2edf8;
  --line: #e8e2ee;
  --shadow: 0 24px 70px rgba(52, 29, 78, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.16;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(232, 226, 238, 0.85);
  background: rgba(248, 247, 251, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 32px;
}

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

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: #4f485a;
  font-size: 14px;
}

.main-nav a,
.legal-links a,
.footer-contacts a {
  transition: color 160ms ease;
}

.main-nav a:hover,
.legal-links a:hover,
.footer-contacts a:hover {
  color: var(--purple);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--purple);
  border-radius: 14px;
  padding: 13px 22px;
  color: #ffffff;
  background: var(--purple);
  box-shadow: 0 10px 25px rgba(111, 26, 206, 0.18);
  font-weight: 700;
  line-height: 1.3;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #6014b7;
  box-shadow: 0 14px 32px rgba(111, 26, 206, 0.24);
}

.button-small {
  min-height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  padding: 10px 17px;
  font-size: 13px;
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--purple);
  background: #ffffff;
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
}

.hero::before {
  position: absolute;
  top: -260px;
  right: -140px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 39, 155, 0.1), rgba(111, 26, 206, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 58px;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.eyebrow,
.section-kicker {
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: inline-flex;
  border: 1px solid #e2d5f1;
  border-radius: 999px;
  padding: 7px 13px;
  background: #f3ebfa;
}

h1 {
  max-width: 600px;
  margin: 25px 0 24px;
  font-size: clamp(42px, 4.5vw, 65px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--purple);
}

.hero-lead {
  max-width: 570px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.hero-facts li {
  position: relative;
  padding-left: 17px;
}

.hero-facts li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  content: "";
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 34px;
}

.browser-frame {
  overflow: hidden;
  border: 1px solid rgba(222, 213, 231, 0.9);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.browser-dots {
  position: absolute;
  left: 18px;
  display: flex;
  gap: 5px;
}

.browser-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd4e4;
}

.browser-frame > img {
  width: 100%;
  height: auto;
}

.floating-card {
  position: absolute;
  right: -18px;
  bottom: 0;
  display: grid;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 40px rgba(52, 29, 78, 0.14);
  grid-template-columns: 1fr auto;
}

.floating-card strong {
  font-size: 18px;
  line-height: 1.4;
}

.floating-card > span {
  color: var(--muted);
  font-size: 12px;
  grid-column: 1;
}

.file-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  grid-column: 2;
  grid-row: 1 / 3;
}

.file-badges b {
  border-radius: 6px;
  padding: 4px 6px;
  color: var(--purple);
  background: var(--tint);
  font-size: 10px;
}

.section {
  border-top: 1px solid var(--line);
  padding: 76px 0;
  background: var(--surface);
}

.section-tinted {
  background: var(--tint);
}

.section-kicker {
  margin-bottom: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.split-heading {
  display: grid;
  max-width: none;
  align-items: end;
  gap: 50px;
  grid-template-columns: 1fr 1fr;
}

.split-heading h2 {
  margin-bottom: 0;
}

.about-grid,
.features-grid,
.documents-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid article,
.feature-card,
.document-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  background: var(--surface);
}

.card-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-grid h3,
.feature-card h3,
.document-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.about-grid p,
.feature-card p,
.document-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.registration-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.feature-card {
  border-color: #e1d7eb;
  box-shadow: 0 8px 30px rgba(52, 29, 78, 0.03);
}

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

.price-card .price-value {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.price-value small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  border-bottom: 1px solid currentColor;
  color: var(--purple);
  font-weight: 700;
  line-height: 1.5;
}

.document-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease;
}

.document-card:hover {
  transform: translateY(-3px);
  border-color: #cdb9df;
}

.document-index {
  margin-bottom: 20px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}

.document-links {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 22px;
}

.document-links a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 11px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
}

.document-links a:hover {
  border-color: var(--purple);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 13px;
}

.legal-links a {
  text-decoration: underline;
  text-decoration-color: #d9cfe2;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 58px 0 24px;
  color: #f5f1f8;
  background: #1c1724;
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 0.8fr 1.5fr 0.7fr;
}

.brand-footer small {
  color: #afa5ba;
}

.footer-description {
  max-width: 230px;
  margin: 22px 0 0;
  color: #afa5ba;
  font-size: 13px;
}

.site-footer h2 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.requisites p,
.footer-contacts a {
  color: #b9b0c3;
  font-size: 12px;
  line-height: 1.8;
}

.requisites p {
  margin-bottom: 7px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-bottom {
  margin-top: 42px;
  border-top: 1px solid #342b3f;
  padding-top: 20px;
  color: #8f849b;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .header-inner {
    gap: 20px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a:last-child {
    display: none;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .floating-card {
    right: 12px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 13px 0;
  }

  .header-inner > .button {
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 16px;
    margin-left: 0;
  }

  .main-nav a:last-child {
    display: inline;
  }

  .hero {
    padding: 48px 0 60px;
  }

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

  .hero-copy {
    max-width: 680px;
  }

  h1 {
    max-width: 680px;
  }

  .hero-visual {
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }

  .split-heading {
    align-items: start;
    gap: 20px;
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .footer-contacts {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    min-height: 70px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .header-inner > .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    font-size: 12px;
    white-space: nowrap;
  }

  h1 {
    margin-top: 20px;
    font-size: 39px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    gap: 7px;
  }

  .browser-frame {
    border-radius: 12px;
  }

  .browser-bar {
    height: 32px;
    font-size: 8px;
  }

  .floating-card {
    right: 8px;
    bottom: 0;
    min-width: 178px;
    padding: 12px 14px;
  }

  .floating-card strong {
    font-size: 15px;
  }

  .file-badges {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading p {
    font-size: 15px;
  }

  .about-grid,
  .features-grid,
  .documents-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-grid article,
  .feature-card,
  .document-card {
    padding: 22px;
  }

  .card-number {
    margin-bottom: 18px;
  }

  .document-card {
    min-height: 0;
  }

  .registration-note {
    display: grid;
  }

  .legal-links {
    display: grid;
  }

  .footer-contacts {
    grid-column: auto;
  }
}

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

  .button,
  .document-card,
  .main-nav a {
    transition: none;
  }
}
