:root {
  color-scheme: light;
  --ink: #18202b;
  --muted: #617082;
  --line: #d8e0e7;
  --paper: #f8fafc;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --gold: #b37b18;
  --blue: #355c8a;
  --red: #b4232b;
  --shadow: 0 20px 60px rgba(24, 32, 43, .12);
}

html.night-theme {
  color-scheme: dark;
  --ink: #e8eefc;
  --muted: #b6c2e2;
  --line: rgba(255, 255, 255, .12);
  --paper: #0b1220;
  --panel: #111a30;
  --teal: #2dd4bf;
  --teal-dark: #79ffd2;
  --gold: #ffd36a;
  --blue: #6aa9ff;
  --red: #ff8a8a;
  --shadow: 0 22px 55px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(244, 250, 249, .94)),
    rgba(248, 250, 252, .92);
  border-bottom: 1px solid rgba(15, 118, 110, .18);
  box-shadow: 0 10px 30px rgba(24, 32, 43, .06);
  backdrop-filter: blur(16px);
}

.topbar::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--teal-dark), var(--gold), var(--blue));
}

html.night-theme .topbar {
  background:
    linear-gradient(90deg, rgba(11, 18, 32, .94), rgba(17, 26, 48, .9)),
    rgba(11, 18, 32, .88);
  border-bottom-color: var(--line);
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: white;
  background: linear-gradient(135deg, var(--teal-dark), var(--blue));
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px rgba(15, 118, 110, .22);
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}

.nav a:hover {
  color: var(--teal-dark);
  border-color: rgba(179, 123, 24, .45);
}

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

html.night-theme .language-switch {
  background: rgba(255, 255, 255, .06);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.is-active {
  color: #06111f;
  background: var(--teal);
}

.hero {
  position: relative;
  display: block;
  min-height: auto;
  padding: 180px 0 58px;
  overflow: hidden;
}

.ornament {
  position: absolute;
  inset: 0 0 auto;
  height: 190px;
  opacity: .96;
  mask-image: linear-gradient(#000 62%, rgba(0, 0, 0, .72) 82%, transparent 100%);
  pointer-events: none;
}

.ornament img,
.ornament svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  max-width: 720px;
  min-width: 0;
  margin: 0 clamp(18px, 5vw, 72px);
  text-align: left;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(46px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: normal !important;
  word-break: keep-all;
  hyphens: none;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--teal);
}

.button.secondary {
  color: var(--teal-dark);
  background: white;
  border: 1px solid var(--line);
}

html.night-theme .button.secondary {
  background: rgba(255, 255, 255, .06);
}

.hero-screen {
  position: relative;
  width: auto;
  margin: 48px clamp(18px, 4vw, 64px) 0;
  min-width: 0;
}

.hero-screen img,
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-screen img {
  aspect-ratio: 1920 / 400;
  object-fit: cover;
  object-position: left top;
}

.section {
  padding: 84px clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 4vw, 64px);
}

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

.feature-grid article,
.price-card,
.demo-limits {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid p,
.price-card p,
.demo-limits li,
.note,
figcaption {
  color: var(--muted);
  line-height: 1.55;
}

.pricing {
  background: #eef5f4;
}

html.night-theme .pricing,
html.night-theme .other-products {
  background: #0f172a;
}

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

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

.price {
  margin: 18px 0 8px;
  color: var(--teal-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 900;
}

.note {
  margin: 18px 0 0;
}

.demo {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: start;
}

.demo .button {
  margin-top: 28px;
}

.demo .button + .button {
  margin-left: 12px;
}

[hidden] {
  display: none !important;
}

.demo-limits ul {
  margin: 0;
  padding-left: 20px;
}

.screenshot-grid {
  display: grid;
  gap: 24px;
}

.screenshot {
  margin: 0;
}

figcaption {
  margin-top: 16px;
}

.lang-en {
  display: none;
}

html[lang="en"] .lang-ru {
  display: none;
}

html[lang="en"] .lang-en {
  display: initial;
}

html[lang="en"] .button.lang-en {
  display: inline-flex;
}

.other-products {
  background: #f7fbff;
}

.other-products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.other-product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.other-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
}

.other-product-card img.lang-en {
  display: none;
}

html[lang="en"] .other-product-card img.lang-ru {
  display: none;
}

html[lang="en"] .other-product-card img.lang-en {
  display: block;
}

.other-product-body {
  padding: 22px;
}

.other-product-body h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.other-product-body p {
  color: var(--muted);
  margin: 0 0 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    margin-left: 0;
    padding-bottom: 4px;
  }

  .language-switch {
    margin-left: auto;
  }

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

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .price-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .other-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-text {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .demo .button + .button {
    margin-left: 0;
  }
}
