@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
}

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

:root {
  --backdrop: #080511;
  --canvas: #100820;
  --panel: #1a1030;
  --surface: #251842;
  --surface-strong: #38264e;
  --tint: rgba(255, 255, 255, 0.04);
  --tint-strong: rgba(255, 255, 255, 0.07);
  --text: #f7f2ff;
  --text-secondary: #d8d1e6;
  --muted: #9c93ae;
  --dimmed: #6f677f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --brand-a: #df00c8;
  --brand-b: #8526ff;
  --brand-c: #4f8ef7;
  --success: #22c55e;
  --danger: #ff5c7a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(133, 38, 255, 0.08), transparent 340px),
    radial-gradient(circle at 70% 0%, rgba(79, 142, 247, 0.14), transparent 420px),
    var(--backdrop);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 72%);
}

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

button {
  font: inherit;
}

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

[data-lang="ru"] .en,
[data-lang="en"] .ru {
  display: none !important;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 5, 17, 0.84);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 820;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.nav-links a {
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-download {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--text-secondary);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tint);
}

.language-switch button {
  height: 28px;
  min-width: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.language-switch button[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.hero {
  padding: 84px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: 48px;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-c);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  font-size: 68px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.55;
}

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

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 820;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: transparent;
  color: var(--text);
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  background-clip: padding-box;
  box-shadow: 0 16px 42px rgba(133, 38, 255, 0.28);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text-secondary);
  background: var(--tint);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--tint-strong);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 36px 0 0;
}

.hero-facts div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tint);
}

.hero-facts dt {
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.hero-facts dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
}

.product-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
}

.panel-toolbar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.panel-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.panel-toolbar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.panel-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}

.panel-kpis div,
.panel-actions span {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.panel-kpis div {
  padding: 14px;
}

.panel-kpis b {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.panel-kpis span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.panel-table {
  margin: 0 18px 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.panel-row {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.7fr 0.7fr;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

.panel-row:first-child {
  border-top: 0;
}

.panel-head {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.ok {
  color: var(--success);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.panel-actions span {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.section-block {
  padding: 78px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

.section-block.compact {
  padding-bottom: 88px;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

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

.features-grid,
.pricing-grid,
.steps {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

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

.features-grid article,
.pricing-card,
.steps article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.features-grid article {
  min-height: 218px;
  padding: 22px;
}

.feature-tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand-c);
  background: rgba(79, 142, 247, 0.1);
  font-size: 11px;
  font-weight: 860;
}

.features-grid h3,
.steps h3 {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.2;
}

.features-grid p,
.steps p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

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

.pricing-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 26px;
}

.pricing-card.featured {
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(133, 38, 255, 0.16), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 56px rgba(133, 38, 255, 0.14);
}

.pricing-badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  font-size: 12px;
  font-weight: 860;
}

.pricing-card h3 {
  font-size: 26px;
}

.price {
  margin-top: 20px;
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.period {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 28px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: flex;
  gap: 10px;
  color: var(--text-secondary);
}

.pricing-card li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 9px;
  border-radius: 999px;
  content: "";
  background: var(--success);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

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

.steps article {
  padding: 24px;
}

.steps b {
  color: var(--brand-c);
  font-size: 13px;
  letter-spacing: 0.16em;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(8, 5, 17, 0.72);
}

.footer-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero-grid,
  .features-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .product-panel {
    max-width: 620px;
  }

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

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

  .nav-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero {
    padding: 54px 0 52px;
  }

  h1 {
    font-size: 42px;
  }

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

  .hero-lead,
  .section-heading p {
    font-size: 16px;
  }

  .hero-facts,
  .panel-kpis {
    grid-template-columns: 1fr;
  }

  .panel-row {
    grid-template-columns: 1fr 0.45fr;
  }

  .panel-row span:nth-child(3),
  .panel-row span:nth-child(4) {
    display: none;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}
