:root {
  color-scheme: dark;
  --ink: #08090b;
  --ink-soft: #101217;
  --panel: #15171c;
  --panel-2: #1b1e24;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8fa;
  --muted: #aeb2bc;
  --orange: #ff5a00;
  --orange-2: #ff7b1a;
  --orange-pale: #ffbd8c;
  --max: 1180px;
  --radius: 28px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 83% 7%, rgba(255, 90, 0, 0.12), transparent 27rem),
    radial-gradient(circle at 4% 52%, rgba(255, 90, 0, 0.05), transparent 28rem),
    var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(255, 123, 26, 0.75);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 9, 11, 0.83);
  backdrop-filter: blur(20px);
}

.nav,
.section,
.document,
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 9px 26px rgba(255, 90, 0, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #c5c8cf;
  font-size: 14px;
  font-weight: 680;
}

.nav-menu > a {
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-menu > a:hover,
.nav-menu > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.nav-menu .language {
  margin-left: 8px;
  border: 1px solid var(--line);
  color: #fff;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: none;
  background: var(--panel);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 10px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  width: min(calc(100% - 40px), 1280px);
  min-height: 610px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  background: linear-gradient(145deg, #15171c, #0b0c0f);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 6vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker,
.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-pale);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.document h1,
.document h2,
.document h3,
.cta-panel h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(48px, 6vw, 78px);
}

.accent {
  color: var(--orange-2);
}

.hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: #c3c6cd;
  font-size: clamp(17px, 1.7vw, 21px);
}

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

.button {
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, background 160ms ease;
}

.button::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
}

.button.primary {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 14px 30px rgba(255, 90, 0, 0.22);
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hero-proof {
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #d6d8dd;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.hero-proof li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--orange-2);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, #111319 0%, rgba(17, 19, 25, 0.15) 28%, transparent 62%);
  pointer-events: none;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.app-badge {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 26px;
  max-width: 260px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 13px;
  background: rgba(8, 9, 11, 0.78);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.app-badge img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
}

.app-badge strong,
.app-badge span {
  display: block;
}

.app-badge strong {
  font-size: 17px;
}

.app-badge span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding: 104px 0;
}

.section.compact {
  padding-top: 18px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.section h2,
.cta-panel h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.section-head > p:last-child {
  max-width: 680px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.feature-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 55%),
    var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  border-color: rgba(255, 123, 26, 0.42);
  transform: translateY(-4px);
}

.feature-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 52px;
  border: 1px solid rgba(255, 123, 26, 0.3);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 0, 0.1);
  color: var(--orange-pale);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.feature-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.feature-card p {
  margin: 11px 0 0;
  color: var(--muted);
}

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

.step {
  position: relative;
  padding: 30px 34px 30px 0;
  border-top: 1px solid var(--line);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 25px;
  width: 74px;
  height: 1px;
  background: var(--orange);
}

.step-number {
  color: var(--orange-2);
  font-size: 13px;
  font-weight: 900;
}

.step h3 {
  margin: 18px 0 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.step p {
  max-width: 320px;
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-panel {
  width: min(calc(100% - 40px), var(--max));
  margin: 12px auto 100px;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid rgba(255, 123, 26, 0.32);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 90, 0, 0.25), transparent 22rem),
    linear-gradient(135deg, #191511, var(--panel) 58%);
}

.cta-panel > div {
  max-width: 760px;
}

.cta-panel p {
  margin: 16px 0 0;
  color: #c8cbd2;
  font-size: 17px;
}

.cta-panel .actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.document {
  max-width: 900px;
  padding: 80px 0 110px;
}

.document-header {
  margin-bottom: 50px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.document-header h1 {
  max-width: 800px;
  font-size: clamp(42px, 7vw, 72px);
}

.document-header > p:not(.eyebrow) {
  max-width: 790px;
  color: #c7cad1;
}

.document section {
  margin-top: 44px;
}

.document h2 {
  font-size: clamp(25px, 4vw, 32px);
}

.document h3 {
  margin-top: 28px;
  font-size: 20px;
}

.document p,
.document li {
  color: #c4c7ce;
}

.document ul {
  padding-left: 23px;
}

.document li + li {
  margin-top: 8px;
}

.document a:not(.button) {
  color: #ff9a55;
}

.notice {
  padding: 20px 22px;
  border: 1px solid rgba(255, 123, 26, 0.24);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: rgba(255, 90, 0, 0.07);
}

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

.support-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.support-card h2 {
  font-size: 23px;
}

.support-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.44);
}

.footer-inner {
  min-height: 190px;
  padding-block: 36px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.footer-brand p {
  max-width: 460px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #777c87;
  font-size: 12px;
}

/* Keep the opening composition identical in both languages on desktop. */
@media (min-width: 1100px) {
  .hero {
    height: 714px;
    min-height: 714px;
  }

  html[lang="ru"] .hero-copy {
    padding: 58px 56px 58px 64px;
  }

  html[lang="ru"] .hero h1 {
    font-size: clamp(54px, 4.55vw, 64px);
  }

  html[lang="ru"] .hero-lead {
    margin-top: 20px;
    font-size: 18px;
  }

  html[lang="ru"] .hero-copy .actions {
    margin-top: 26px;
    flex-wrap: nowrap;
  }

  html[lang="ru"] .hero-copy .button {
    padding-inline: 15px;
    font-size: 13px;
    white-space: nowrap;
  }

  html[lang="ru"] .hero-proof {
    margin-top: 26px;
    gap: 10px 14px;
    font-size: 12px;
  }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  }

  .hero-copy {
    padding: 52px 44px;
  }

  .hero h1 {
    font-size: clamp(46px, 6vw, 66px);
  }
}

@media (max-width: 860px) {
  body.menu-open::after {
    content: "";
    position: fixed;
    z-index: 35;
    inset: 76px 0 0;
    background: rgba(0, 0, 0, 0.48);
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    z-index: 45;
    top: 76px;
    right: 18px;
    left: 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: rgba(17, 18, 23, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu > a {
    padding: 13px 14px;
  }

  .nav-menu .language {
    margin: 5px 0 0;
    text-align: center;
  }

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

  .hero-visual {
    height: min(56vw, 470px);
    min-height: 330px;
    order: -1;
  }

  .hero-visual::before {
    background: linear-gradient(0deg, #111319 0%, rgba(17, 19, 25, 0) 42%);
  }

  .hero-copy {
    padding-top: 30px;
  }

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

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

  .step:not(:last-child)::after {
    right: 0;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-panel .actions {
    width: 100%;
  }

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

@media (max-width: 620px) {
  .nav,
  .section,
  .document,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    min-height: 68px;
  }

  body.menu-open::after,
  .nav-menu {
    top: 68px;
  }

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

  .hero {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 24px;
  }

  .hero-visual {
    min-height: 265px;
    height: 74vw;
  }

  .hero-visual > img {
    object-position: 64% center;
  }

  .app-badge {
    right: 14px;
    bottom: 14px;
    max-width: 235px;
    grid-template-columns: 54px 1fr;
  }

  .app-badge img {
    width: 54px;
    height: 54px;
  }

  .hero-copy {
    padding: 36px 24px 42px;
  }

  .hero h1 {
    font-size: clamp(41px, 12.5vw, 57px);
  }

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

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 78px 0;
  }

  .section h2,
  .cta-panel h2 {
    font-size: clamp(32px, 10vw, 43px);
  }

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

  .feature-card {
    min-height: 215px;
  }

  .feature-icon {
    margin-bottom: 38px;
  }

  .cta-panel {
    width: calc(100% - 20px);
    margin-bottom: 72px;
    padding: 32px 24px;
    border-radius: 22px;
  }

  .document {
    padding-top: 62px;
  }

  .document-header h1 {
    font-size: clamp(39px, 12vw, 55px);
  }

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

  .footer-nav {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
