:root {
  --bg: #06131f;
  --text: #f9fafb;
  --muted: rgba(249,250,251,.68);
  --line: rgba(34,211,238,.24);
}

* {
  box-sizing: border-box;
}

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

body {
  padding: 18px;
  overflow-x: hidden;
}

/* карта-фон без изменения PHP */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(6,19,31,.18), rgba(2,6,23,.62)),
    url("https://tile.openstreetmap.org/12/2613/1543.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: saturate(.9) contrast(1.05);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(34,211,238,.22), transparent 34%),
    linear-gradient(180deg, rgba(6,19,31,.20), rgba(2,6,23,.76));
}

.page {
  width: min(92vw, 880px);
  margin: 0 auto;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(34,211,238,.28);
  background:
    radial-gradient(circle at top left, rgba(34,211,238,.16), transparent 36%),
    linear-gradient(145deg, rgba(15,23,42,.58), rgba(8,47,73,.38));
  box-shadow:
    0 24px 70px rgba(0,0,0,.38),
    0 0 34px rgba(34,211,238,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(24px);
}

.card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

h2 {
  margin: 28px 0 10px;
  font-size: 21px;
  line-height: 1.2;
}

p,
li {
  color: var(--muted);
}

ul {
  padding-left: 20px;
}

a {
  color: #a7f3ff;
}

.back {
  display: inline-flex;
  margin-bottom: 14px;
  color: #a7f3ff;
  text-decoration: none;
  font-weight: 900;
}

/* скрываем MVP version / Last updated */
.doc-meta {
  display: none !important;
}

/* скрываем MVP warning */
.notice {
  display: none !important;
}

/* языки аккуратнее */
.page > a:not(.back) {
  display: inline-flex;
  margin-right: 8px;
  margin-bottom: 12px;
  color: #dffbff;
  font-size: 13px;
  font-weight: 800;
}

/* если где-то pill используется отдельно */
.pill {
  display: none !important;
}

.legal-lang-switcher {
  display: flex;
  gap: 6px;
  margin: 12px 0 20px;
}

.legal-lang-switcher a {
  min-height: 34px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
  border: 1px solid rgba(34,211,238,.28);
  background: rgba(255,255,255,.08);
  color: #dffbff;

  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.back {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 13px;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.18);
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .page {
    width: min(92vw, 390px);
    padding: 18px;
    border-radius: 26px;
  }

  .card {
    padding: 18px;
    border-radius: 26px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 19px;
  }

  p,
  li {
    font-size: 14px;
  }
}