@font-face {
  font-family: 'Plex';
  src: url('/fonts/plex-sans-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Plex';
  src: url('/fonts/plex-sans-latin-ext-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Plex';
  src: url('/fonts/plex-sans-cyrillic-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+04A2-04A3, U+04AE-04AF, U+04E8-04E9;
}
@font-face {
  font-family: 'Plex';
  src: url('/fonts/plex-sans-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Plex';
  src: url('/fonts/plex-sans-latin-ext-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: 'Plex';
  src: url('/fonts/plex-sans-cyrillic-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+04A2-04A3, U+04AE-04AF, U+04E8-04E9;
}

:root {
  --bg: #ffffff;
  --alt: #f3f4f6;
  --ink: #1c2430;
  --muted: #536070;
  --line: #dfe3e8;
  --navy: #1c2430;
  --on-navy: #ffffff;
  --gold: #8f6516;
  --red: #b42323;
  --red-bg: #fff0f0;
  --green: #237032;
  --green-bg: #ebfbee;
  --focus: #3b5bdb;
  --shadow: 0 20px 50px rgba(28, 36, 48, 0.1);
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #12171f;
  --alt: #181f29;
  --ink: #e8ebf0;
  --muted: #a3acb9;
  --line: #2c3542;
  --navy: #e8ebf0;
  --on-navy: #12171f;
  --gold: #d4a851;
  --red: #ff8a8a;
  --red-bg: #2a1517;
  --green: #69db7c;
  --green-bg: #13251a;
  --focus: #91a7ff;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font:
    17px/1.6 'Plex',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 19px;
}
p {
  margin: 0 0 12px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
}
.skip:focus {
  left: 8px;
  z-index: 10;
}

.head {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}
.head-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
}
.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 15px;
}
.nav a,
.lang a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover,
.lang a:hover {
  color: var(--ink);
}
.lang {
  display: flex;
  gap: 2px;
  font-size: 14px;
}
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.lang a[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--on-navy);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  border: 2px solid var(--navy);
}
.btn-line {
  background: transparent;
  color: var(--ink);
}
.btn:hover {
  opacity: 0.9;
}
.fine {
  font-size: 14px;
  color: var(--muted);
}
.eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.hero {
  padding: 64px 0 72px;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.demo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--red-bg);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--alt);
  border-bottom: 1px solid var(--line);
}
.demo-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.demo-bar code {
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-body {
  margin: 22px;
  padding: 22px;
  background: var(--bg);
  border-radius: 12px;
  border-top: 5px solid var(--red);
  font-size: 15px;
}
.demo-body svg {
  width: 40px;
  height: 40px;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}
.demo-body strong {
  font-size: 20px;
  display: block;
}
.demo-body ul {
  padding-left: 18px;
  color: var(--muted);
}
.demo-real {
  background: var(--green-bg);
  color: var(--green);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}
.demo-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--on-navy);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.band {
  padding: 72px 0;
}
.band-alt {
  background: var(--alt);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.band-alt .card {
  background: var(--bg);
}
.card p {
  color: var(--muted);
  font-size: 16px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  padding-left: 30px;
  position: relative;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 10px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}
.dl {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.howto {
  margin: 8px 0 12px;
}
.howto summary,
.faq summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.faq details p {
  margin-top: 10px;
  color: var(--muted);
}
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 15px;
}
.foot-in p {
  margin: 4px 0;
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  overflow-wrap: break-word;
}
.doc h1 {
  font-size: 34px;
}
.doc h2 {
  font-size: 22px;
  margin-top: 32px;
}
.doc section + section {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 32px;
}
.doc li {
  margin: 6px 0;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 12px 0;
}
.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--alt);
  flex: none;
}
.theme-switch button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch button:hover {
  color: var(--ink);
}
.theme-switch button[aria-checked='true'] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.theme-switch svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand + .lang,
.brand + .theme-switch {
  margin-left: auto;
}

@media (max-width: 900px) {
  .hero-in,
  .two {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .doc table,
  .doc tbody,
  .doc tr,
  .doc td {
    display: block;
    width: 100%;
  }
  .doc thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .doc tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 14px;
    margin: 12px 0;
  }
  .doc td {
    border: 0;
    padding: 8px 0;
  }
  .doc td + td {
    border-top: 1px solid var(--line);
  }
  .doc td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
}
@media (max-width: 560px) {
  .head-in {
    gap: 8px;
  }
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lang {
    margin-left: auto;
    font-size: 13px;
  }
  .lang a {
    min-width: 40px;
  }
  .cards,
  .cards-2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 48px;
  }
  .band {
    padding: 52px 0;
  }
}
