:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f0f4f8;
  --text: #172033;
  --muted: #5f6f85;
  --line: #d9e1ec;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0f766e;
  --warning: #a16207;
  --danger: #b91c1c;
  --shadow: 0 16px 45px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

.nav a.active,
.nav a:hover {
  color: var(--primary-dark);
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.language-switcher a {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.language-switcher a.active {
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 800;
}

.hero {
  background: #0f172a;
  color: #fff;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 24px 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: #0f172a;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 72px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
}

.sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar h2 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar a {
  display: block;
  padding: 7px 0;
  color: var(--text);
  font-size: 14px;
}

.content {
  min-width: 0;
}

.section {
  margin-bottom: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: 0;
}

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

.section h4 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

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

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card.soft {
  background: var(--surface-soft);
}

.card h3,
.card h4 {
  margin-top: 0;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 16px 16px 16px 54px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 17px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.checklist {
  padding-left: 20px;
}

.checklist li {
  margin: 7px 0;
}

.callout {
  margin: 18px 0;
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: #ecfdf5;
  border-radius: 8px;
}

.callout.warning {
  border-left-color: var(--warning);
  background: #fffbeb;
}

.callout.danger {
  border-left-color: var(--danger);
  background: #fef2f2;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

th {
  background: var(--surface-soft);
  font-size: 13px;
  color: var(--muted);
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  margin: 10px 0;
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 5px;
  background: var(--surface-soft);
  border-radius: 5px;
}

@media (max-width: 860px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
  }

  .hero h1 {
    font-size: 34px;
  }

  .layout {
    display: block;
    padding-top: 22px;
  }

  .sidebar {
    position: static;
    margin-bottom: 22px;
  }

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

  .section {
    padding: 22px;
  }
}
