:root {
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --border: #27272a;
  --text: #d4d4d8;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.hero {
  border-bottom: 1px solid var(--border);
  padding: 4.5rem clamp(1.5rem, 5vw, 6rem) 3.5rem;
  display: grid;
  grid-template-columns: 1fr min(28rem, 38vw);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  max-width: 90rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: #e8e8ec;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 36rem;
}

.hero-visual {
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.hero-logos,
.hero-logo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-logos img,
.hero-logo img {
  width: auto;
  display: block;
}

.hero-logos .xc,
.hero-logo .xc,
.hero-logos .jb,
.hero-logo .jb {
  background: #ffffff;
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-logos .xc,
.hero-logo .xc {
  height: 2rem;
  filter: invert(1) brightness(1.12) contrast(1.05);
}

.hero-logos .jb,
.hero-logo .jb {
  height: 1.35rem;
  filter: none;
  opacity: 0.98;
}

.layout {
  display: grid;
  grid-template-columns: min(14rem, 28vw) minmax(0, 48rem) 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 90rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 5vw, 6rem) 5rem;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.toc {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .toc {
    position: static;
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    border-radius: 6px;
    background: var(--bg-elevated);
  }
}

.toc-title {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin-bottom: 0.5rem;
}

.toc a {
  color: var(--text-dim);
  display: block;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--text);
  text-decoration: none;
}

.toc .toc-link {
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  margin-left: -0.4rem;
  transition: color 120ms ease, background-color 120ms ease;
}

.toc .toc-link.is-active {
  color: var(--accent);
  background: var(--accent-dim);
}

main {
  min-width: 0;
}

article > section {
  margin-bottom: 3rem;
}

article hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.sec-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sec-label .sec-tag {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  text-transform: none;
}

.sec-label .sec-tag:hover {
  color: var(--accent);
  border-color: rgba(34, 211, 238, 0.35);
  text-decoration: none;
}

article h2 {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 600;
  color: #f3f4f6;
  letter-spacing: -0.02em;
}

article h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #e4e4e7;
}

article p {
  margin: 0 0 1rem;
}

article ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

article li {
  margin-bottom: 0.35rem;
}

article li strong {
  color: #e4e4e7;
  font-weight: 600;
}

article code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--accent-dim);
  color: #a5f3fc;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .compare-row {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.35rem;
}

.compare-card .tag {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.65rem;
}

.compare-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

caption {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #e4e4e7;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

th,
td {
  padding: 0.65rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  width: 2.5rem;
}

tr:last-child td {
  border-bottom: none;
}

td:first-child {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.site-footer {
  max-width: 90rem;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 6rem) 3rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.footer-requisites {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.footer-requisites-title {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.footer-requisites p {
  margin: 0 0 0.35rem;
}

.footer-requisites p:last-child {
  margin-bottom: 0;
}
