/* Exchange Solutions — site styles. No framework; mobile-first. */

:root {
  --ink: #24303d;
  --ink-2: #3a4756;
  --muted: #5d6977;
  --line: #e3e8ee;
  --line-2: #d3dae3;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-dark: #1d2733;

  --gold: #f4c542;
  --gold-hover: #eab727;
  --gold-soft: #fef7de;
  --gold-line: #f2dc92;
  --gold-ink: #7f5c00;

  --blue: #4da3e3;
  --blue-soft: #eaf4fc;
  --blue-line: #bcdcf4;
  --blue-ink: #1a6bab;
  --blue-strong: #1f78bf;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(36, 48, 61, 0.05), 0 1px 3px rgba(36, 48, 61, 0.07);
  --shadow: 0 12px 32px -14px rgba(36, 48, 61, 0.2), 0 2px 6px rgba(36, 48, 61, 0.05);
  --shadow-lg: 0 32px 64px -24px rgba(36, 48, 61, 0.32), 0 4px 12px rgba(36, 48, 61, 0.06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 64px;
  --container: 1200px;
  --section-y: clamp(64px, 9vw, 112px);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}

h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { margin: 0; padding: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: calc(880px + 48px); }
.container--reading { max-width: calc(760px + 48px); }

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }

.section--dark {
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(244, 197, 66, 0.14), transparent 60%),
    radial-gradient(60% 80% at 90% 100%, rgba(77, 163, 227, 0.18), transparent 60%),
    var(--bg-dark);
  color: #fff;
}
.section--dark .section-head__lead { color: #c5cfda; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__lead {
  margin-top: 14px;
  font-size: 1.125rem;
  color: var(--muted);
}

.lead { font-size: 1.125rem; color: var(--ink-2); }

.section-more { margin-top: 36px; text-align: center; }
.section-more + .section-more { margin-top: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform 0.2s; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 6px 16px -8px rgba(234, 183, 39, 0.8);
}
.btn--primary:hover { background: var(--gold-hover); color: var(--ink); }

.btn--secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--secondary:hover { border-color: var(--ink-2); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink); }

.btn--blue { background: var(--blue-strong); color: #fff; }
.btn--blue:hover { background: var(--blue-ink); color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(12px); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }

.site-nav { margin-inline: auto; }
.site-nav__list { display: flex; gap: 4px; list-style: none; }
.site-nav__link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav__link:hover, .site-nav__link.is-active { background: var(--bg-soft); color: var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* Mobile menu (native <details>, works without JavaScript) */
.mobile-menu { display: none; }
.mobile-menu__toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.mobile-menu__toggle::-webkit-details-marker { display: none; }
.mobile-menu__toggle .icon { width: 22px; height: 22px; }
.mobile-menu__icon-close { display: none; }
.mobile-menu[open] .mobile-menu__icon-open { display: none; }
.mobile-menu[open] .mobile-menu__icon-close { display: block; }

.mobile-menu__panel {
  position: absolute;
  left: 0; right: 0;
  top: var(--header-h);
  padding: 8px 18px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu__list { list-style: none; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}
.mobile-menu__link .icon { color: var(--muted); }
.mobile-menu__link.is-active { color: var(--blue-ink); }
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 18px; }

@media (max-width: 1279px) {
  .site-nav, .site-header__ask { display: none; }
  .mobile-menu { display: block; }
  .site-header__actions { margin-left: auto; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 1rem; }
  .brand__mark { width: 30px; height: 30px; }
  .site-header__inner { gap: 12px; }
}

/* ---------- Dev banner ---------- */

.dev-banner {
  padding: 10px 0;
  background: #fff4cc;
  border-bottom: 1px solid var(--gold-line);
  font-size: 0.875rem;
  color: var(--gold-ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(40% 55% at 0% 0%, rgba(244, 197, 66, 0.16), transparent 70%),
    radial-gradient(45% 60% at 100% 20%, rgba(77, 163, 227, 0.16), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); gap: 56px; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.925rem;
  color: var(--ink-2);
}
.hero__eyebrow img { width: 28px; height: 28px; }

.hero__title {
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.hero__title::after {
  content: "";
  display: block;
  width: 88px;
  height: 5px;
  margin-top: 22px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold) 0 50%, var(--blue) 50% 100%);
}

.hero__subtitle {
  margin-top: 22px;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.hero__audience {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  max-width: 34em;
}
.hero__audience .icon { margin-top: 2px; color: var(--blue-ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 30px;
  list-style: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}
.badge .icon { width: 16px; height: 16px; color: var(--blue-ink); }

@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Screenshots ---------- */

.shot { margin: 0; }

.shot__link {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shot__link:hover { transform: translateY(-2px); }

.shot__bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.shot__bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-2);
}
.shot__bar i:first-child { background: var(--gold); }
.shot__bar i:nth-child(2) { background: var(--blue); }

.shot__img { width: 100%; }

.shot__zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(36, 48, 61, 0.86);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}
.shot__zoom .icon { width: 16px; height: 16px; }

.shot__caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Lightbox (created by site.js) ---------- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 24, 32, 0.96);
  color: #fff;
}
.lightbox::backdrop { background: rgba(17, 24, 32, 0.7); }
html:has(.lightbox[open]) { overflow: hidden; }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 12px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox__caption {
  flex: 1;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  color: #d6dde5;
}
.lightbox__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.1); }

.lightbox__body {
  height: calc(100% - 56px);
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 16px;
  overscroll-behavior: contain;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 56px - 32px);
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 6px;
  cursor: zoom-in;
}
.lightbox.is-actual .lightbox__body { place-items: start; }
.lightbox.is-actual .lightbox__img { max-width: none; max-height: none; cursor: zoom-out; }

/* ---------- Solution ---------- */

.solution {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .solution { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
}
.solution__text { display: grid; gap: 16px; }

.callout {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.callout p { color: var(--ink-2); font-size: 1.05rem; }
.callout--problem .callout__title { color: var(--muted); }
.callout--solution { border-color: var(--blue-line); background: var(--blue-soft); }
.callout--solution .callout__title { color: var(--blue-ink); }

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: clamp(20px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.flow__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 12px;
  border-radius: 16px;
  text-align: center;
}
.flow__node--source { background: var(--gold-soft); border: 1px solid var(--gold-line); }
.flow__node--target { background: var(--blue-soft); border: 1px solid var(--blue-line); }

.flow__mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
}
.flow__node--source .flow__mark { background: var(--gold); color: var(--ink); }
.flow__node--target .flow__mark { background: var(--blue); color: #fff; }
.flow__mark .icon { width: 26px; height: 26px; }

.flow__label { font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.flow__node--source .flow__label { font-size: 1.6rem; }
.flow__caption { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }

.flow__lanes { display: grid; gap: 34px; }
.flow__lane { display: grid; justify-items: center; gap: 22px; text-align: center; }
.flow__lane-caption { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }

.flow__track {
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
.flow__track::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.flow__lane--export .flow__track::after { right: -2px; border-left: 10px solid var(--blue); }
.flow__lane--import .flow__track::after { left: -2px; border-right: 10px solid var(--gold); }

.flow__chip {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 719px) {
  .flow { grid-template-columns: 1fr; }
  .flow__node { flex-direction: row; justify-content: center; padding: 16px; text-align: left; }
  .flow__node .flow__caption { display: none; }
  .flow__node--source .flow__label { font-size: 1.3rem; }
  .flow__lanes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow__lane { grid-template-rows: 96px auto; gap: 10px; }
  .flow__track {
    width: 2px;
    height: 100%;
    margin-top: 0;
    background: linear-gradient(180deg, var(--gold), var(--blue));
  }
  .flow__lane--export .flow__track::after,
  .flow__lane--import .flow__track::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
  }
  .flow__lane--export .flow__track::after { top: auto; bottom: -2px; border-top: 10px solid var(--blue); border-bottom: 0; }
  .flow__lane--import .flow__track::after { top: -2px; bottom: auto; border-bottom: 10px solid var(--gold); border-top: 0; }
}

/* ---------- Scenarios ---------- */

.scenarios { display: grid; gap: clamp(56px, 8vw, 96px); }

.scenario {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 1024px) {
  .scenario { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
  .scenario--reverse { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .scenario--reverse .scenario__text { order: 2; }
}

.scenario__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 18px; }

.direction-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}
.direction-label .icon { width: 16px; height: 16px; }
.direction-label--export { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold-line); }
.direction-label--import { background: var(--blue-soft); color: var(--blue-ink); border: 1px solid var(--blue-line); }

.checklist { display: grid; gap: 12px; list-style: none; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 1.05rem; }
.checklist .icon {
  width: 22px; height: 22px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.scenario--export .checklist .icon { background: var(--gold-soft); color: var(--gold-ink); }
.checklist--compact li { font-size: 1rem; }

/* ---------- Cards / features ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
}
.feature { padding: 24px; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.feature:nth-child(3n + 1) .feature__icon { background: var(--gold-soft); color: var(--gold-ink); }
.feature__title { font-size: 1.05rem; margin-bottom: 8px; }
.feature__text { font-size: 0.95rem; color: var(--muted); }

/* ---------- Split (requisites) ---------- */

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
}
.split__text h2 { margin-bottom: 18px; }
.split__text .checklist { margin-bottom: 20px; }
.split__text .checklist .icon { background: var(--gold-soft); color: var(--gold-ink); }

.pill-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  color: var(--blue-ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.pill-note .icon { margin-top: 2px; }

/* ---------- Steps ---------- */

.steps-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.steps { padding: clamp(24px, 3vw, 36px); border-top: 4px solid var(--gold); }
.steps--import { border-top-color: var(--blue); }

.steps__title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 1.3rem; }
.steps__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.steps--import .steps__icon { background: var(--blue-soft); color: var(--blue-ink); }

.steps__list { list-style: none; counter-reset: step; display: grid; gap: 4px; }
.steps__list li {
  position: relative;
  counter-increment: step;
  padding: 10px 0 10px 48px;
  color: var(--ink-2);
}
.steps__list li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14px; top: 40px; bottom: -6px;
  width: 2px;
  background: var(--line);
}
.steps__list li:last-child::before { background: var(--gold); color: var(--ink); }
.steps--import .steps__list li:last-child::before { background: var(--blue-strong); color: #fff; }

/* ---------- Video ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #0f151c;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.video__frame, .video__card { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video__card { display: block; color: #fff; text-decoration: none; }
.video__card:hover { color: #fff; }
.video__card picture { position: absolute; inset: 0; }
.video__preview {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left top;
  opacity: 0.5;
  filter: saturate(0.8);
  transition: opacity 0.2s, transform 0.4s;
}
.video__card:hover .video__preview { opacity: 0.4; transform: scale(1.02); }

.video__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(29, 39, 51, 0.35), rgba(29, 39, 51, 0.8));
  text-align: center;
}
.video__play {
  display: grid;
  place-items: center;
  width: clamp(64px, 10vw, 88px);
  height: clamp(64px, 10vw, 88px);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 10px rgba(244, 197, 66, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.video__play .icon { width: 40%; height: 40%; margin-left: 6%; }
.video__card:hover .video__play { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(244, 197, 66, 0.22); }
.video__cta { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-weight: 700; }

.video__external { margin-top: 18px; text-align: center; font-size: 0.95rem; }
.video__external a { display: inline-flex; align-items: center; gap: 6px; color: #c5d7e8; }
.video__external a:hover { color: #fff; }
.video__external .icon { width: 16px; height: 16px; }

/* ---------- Compatibility ---------- */

.compat {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
@media (min-width: 1024px) {
  .compat { grid-template-columns: repeat(4, 1fr); }
  .compat__card--configs { grid-column: span 2; }
  .compat__card--platform { grid-column: span 2; }
}

.compat__card { padding: 24px; }
.compat__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.compat__title .icon { color: var(--blue-ink); }

.compat__configs { display: grid; gap: 12px; margin: 0; }
.compat__config {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-soft);
}
.compat__config dt { font-weight: 700; }
.compat__config dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.compat__version {
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.compat__hint { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}
.chip--ok { background: #eaf7ef; border-color: #bfe3cc; color: #1f6b3b; }
.chip .icon { width: 16px; height: 16px; }

.notice {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-left: 6px solid var(--gold);
}
.notice__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}
.notice__title { font-size: 1.35rem; margin-bottom: 10px; }
.notice p { color: var(--ink-2); margin-bottom: 0.5em; }

@media (max-width: 520px) {
  .notice { flex-direction: column; gap: 12px; }
}

/* ---------- Installation ---------- */

.install { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .install { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.install__option { padding: clamp(24px, 3vw, 32px); }
.install__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-ink);
}
.install__title { font-size: 1.3rem; margin-bottom: 14px; }
.install__option p { color: var(--ink-2); }

.menu-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  list-style: none;
}
.menu-path { gap: 8px 22px; }
.menu-path li {
  position: relative;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.menu-path li + li::before {
  content: "";
  position: absolute;
  left: -15px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -4px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: rotate(45deg);
}

.benefits {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  list-style: none;
}
@media (min-width: 900px) {
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-weight: 600;
}
.benefit__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-ink);
}

.install__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  text-align: center;
  color: var(--ink);
}
.install__note .icon { color: var(--blue-ink); }

/* ---------- Trust ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  list-style: none;
}
@media (min-width: 960px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}
.trust__item { padding: 28px; }
.trust__item--highlight {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.trust__item--highlight .trust__text { color: #c5cfda; }
.trust__highlight {
  margin: 0 0 6px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--gold), #ffd96b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.trust__title { font-size: 1.1rem; margin-bottom: 8px; }
.trust__text { color: var(--muted); font-size: 0.95rem; }

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  gap: 20px;
  max-width: 1000px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .pricing { grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: stretch; }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
}
.price-card__logo { width: 260px; max-width: 80%; height: auto; }
.price-card__price {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-card__price--request {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-2);
}
.price-card .btn { margin-top: auto; }
.price-card__unavailable {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
}
.price-card__hint { font-size: 0.9rem; color: var(--muted); text-align: center; }

.question-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--blue-soft);
  border-color: var(--blue-line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.question-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--blue-strong);
  color: #fff;
}
.question-card__title { font-size: 1.4rem; }
.question-card p { color: var(--ink-2); }
.question-card__email { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.question-card__faq { margin-top: auto; font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.faq__question:hover h3 { color: var(--blue-ink); }
.faq__chevron { color: var(--muted); transition: transform 0.2s; }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }

.faq__answer { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Simple pages ---------- */

.page { min-height: 50vh; }
.page__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 24px; }
.page__code { font-size: 1rem; font-weight: 700; color: var(--blue-ink); margin-bottom: 8px; }
.page__placeholder {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-2);
  color: var(--muted);
}
.prose { max-width: 70ch; color: var(--ink-2); }
.legal-doc h2 {
  margin: 1.6em 0 0.7em;
  font-size: 1.15rem;
  color: var(--ink);
}
.legal-doc p { margin: 0 0 0.9em; }
.legal-doc ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.legal-doc li { margin: 0.35em 0; }
.legal-doc__lead {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.consent input { margin-top: 0.35em; }
.form-legal { margin: 0; font-size: 0.92rem; color: var(--muted); font-weight: 400; }
.field--consent { font-weight: 400; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 20px; font-size: 0.9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }

.seo-note { max-width: 68ch; margin-bottom: 40px; color: var(--ink-2); font-size: 1.05rem; }
.materials__title { margin-bottom: 20px; }
.seo-note p { margin: 0 0 0.9em; }

.blog-list { display: grid; gap: 16px; list-style: none; margin-top: 8px; }
.blog-card {
  display: block;
  padding: 22px 24px;
  color: inherit;
  text-decoration: none;
}
.blog-card:hover { border-color: var(--blue-line); color: inherit; }
.blog-card__date { margin: 0 0 8px; font-size: 0.875rem; color: var(--muted); }
.blog-card__title { margin: 0 0 8px; font-size: 1.2rem; color: var(--ink); letter-spacing: 0; }
.blog-card:hover .blog-card__title { color: var(--blue-ink); }
.blog-card__excerpt { margin: 0; color: var(--ink-2); }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: -8px 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}
.article__meta span::before { content: "·"; margin-right: 18px; }

.article { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.article h2 {
  margin: 1.85em 0 0.65em;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.article h3 {
  margin: 1.45em 0 0.45em;
  font-size: 1.08rem;
  color: var(--ink);
}
.article p { margin: 0 0 0.95em; }
.article ul, .article ol { margin: 0 0 1em; padding-left: 1.25em; }
.article li { margin: 0.35em 0; }
.article li::marker { color: var(--blue-ink); }
.article strong { color: var(--ink); font-weight: 700; }
.article a { font-weight: 600; }

.note {
  margin: 1.1em 0 1.25em;
  padding: 14px 16px;
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--ink);
}
.note p { margin: 0 0 0.55em; }
.note p:last-child { margin-bottom: 0; }
.note--warn { border-color: var(--gold-line); background: var(--gold-soft); }

.article-example {
  margin: 0.4em 0 1.15em;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--bg-soft);
  color: var(--ink);
}

.requisite-list { list-style: none; padding-left: 0; }
.requisite-list li {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.requisite-list li::marker { content: none; }

.table-scroll { overflow-x: auto; margin: 0.4em 0 1.4em; -webkit-overflow-scrolling: touch; }
.account-compare {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.account-compare thead th:first-child { width: 36%; }
.account-compare .col-41,
.account-compare .col-71 { width: 32%; }
.account-compare caption {
  caption-side: bottom;
  padding-top: 8px;
  text-align: left;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}
.account-compare th,
.account-compare td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
}
.account-compare thead th { background: var(--bg-soft); color: var(--ink); }
.account-compare .col-41 { background: var(--gold-soft); }
.account-compare .col-71 { background: var(--blue-soft); color: var(--blue-ink); }
.account-compare tbody th { background: #fff; color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .account-compare,
  .account-compare thead,
  .account-compare tbody,
  .account-compare tr,
  .account-compare th,
  .account-compare td { display: block; width: auto; }
  .account-compare { table-layout: auto; font-size: 0.95rem; }
  .account-compare thead { display: none; }
  .account-compare tr {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }
  .account-compare tbody th {
    width: auto;
    padding: 10px 12px 6px;
    border: 0;
    background: var(--bg-soft);
  }
  .account-compare td { padding: 8px 12px 10px; border: 0; }
  .account-compare td + td { padding-top: 0; }
  .account-compare td::before {
    content: attr(data-account);
    display: block;
    margin-bottom: 2px;
    font-weight: 700;
    color: var(--ink);
  }
  .account-compare td[data-account="41"]::before { color: var(--gold-ink); }
  .account-compare td[data-account="71"]::before { color: var(--blue-ink); }
  .account-compare caption { display: block; width: 100%; padding: 0 0 10px; }
}

.article-product {
  margin-top: 2.75rem;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.article-product__kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-product__title { margin: 0 0 8px; font-size: 1.25rem; }
.article-product__title a { text-decoration: none; }
.article-product p { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 56px;
  background: var(--bg-dark);
  color: #c5cfda;
  font-size: 0.95rem;
}
.site-footer a { color: #e3e9f0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.site-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

.brand--footer { color: #fff; margin-bottom: 14px; }
.brand--footer:hover { color: #fff; }
.site-footer__text { max-width: 34ch; }
.site-footer__title { margin-bottom: 12px; font-weight: 700; color: #fff; }
.site-footer__list { display: grid; gap: 8px; list-style: none; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #95a3b3;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Order form ---------- */

.order-form { display: grid; gap: 18px; margin-top: 28px; max-width: 560px; }
.order-form .field { display: grid; gap: 6px; font-weight: 600; }
.order-form .field em { font-weight: 400; color: var(--muted); font-style: normal; }
.order-form input,
.order-form select,
.order-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.order-form__product { margin: 0; font-weight: 400; }
.form-errors, .field-error { color: #b42318; font-weight: 500; }
.order-success__number { font-size: 1.15rem; }

