/* desuper — общий стиль сайта. Повторяет визуальный язык приложения (docs/design.txt):
   ночной градиент, один голубой акцент, стеклянные карточки, мотив уголков прицела. */
:root {
  color-scheme: dark;
  --bg-top: #1b2a55;
  --bg-mid: #0b1020;
  --bg-bottom: #05070f;
  --text: #eef2ff;
  --muted: #b9c2e6;
  --dim: #8d97bf;
  --accent: #33d9ff;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  font-family: -apple-system, system-ui, "SF Pro Text", "SF Pro Rounded", Inter, sans-serif;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-top) 0%, var(--bg-mid) 60%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { width: min(760px, 100%); margin: 0 auto; padding: 28px 20px 72px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(32px, 7vw, 48px); letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.1; }
h2 { font-size: 20px; margin: 36px 0 12px; color: #cfe9ff; letter-spacing: -0.01em; }
p, li { color: var(--muted); font-size: 17px; }
.meta { color: var(--dim); font-size: 14px; }

/* Шапка: знак + имя слева, переключатель языка справа */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 36px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--glass); }
.lang button {
  border: 0; background: transparent; color: var(--dim); font: inherit; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #06121a; }

/* Знак маяка: кольцо с точкой и четыре уголка — как BeaconMark в приложении */
.mark { position: relative; width: 44px; height: 44px; flex: none; }
.mark::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent);
}
.mark i { position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--accent); }
.mark i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 3px; }
.mark i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 3px; }
.mark i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 3px; }
.mark i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 3px; }
.mark.big { width: 96px; height: 96px; margin: 0 auto 24px; }
.mark.big::before { inset: 18px; }
.mark.big::after { width: 18px; height: 18px; margin: -9px; box-shadow: 0 0 28px var(--accent); }
.mark.big i { width: 20px; height: 20px; border-width: 2px; }

/* Стеклянная карточка */
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; margin: 14px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px rgba(0, 0, 0, 0.35);
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid .card { margin: 0; }
.card h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.card p { margin: 0; font-size: 15px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #06121a; background: var(--accent); box-shadow: 0 0 16px rgba(51, 217, 255, 0.5);
}

/* Кнопки — капсулы, как в приложении */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform 0.1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: #06121a; box-shadow: 0 10px 30px rgba(51, 217, 255, 0.35); }
.btn.secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--line); }
.btn.block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero p.lead { font-size: 20px; max-width: 560px; margin: 0 auto; }
.hint { font-size: 13px; color: var(--dim); margin-top: 18px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: rgba(255, 255, 255, 0.08); padding: 2px 6px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0 28px; }
footer { margin-top: 56px; color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Переключение языка: показываем только блоки текущего языка */
html[data-lang="en"] [lang="ru"], html[data-lang="en"] [lang="he"] { display: none; }
html[data-lang="ru"] [lang="en"], html[data-lang="ru"] [lang="he"] { display: none; }
html[data-lang="he"] [lang="en"], html[data-lang="he"] [lang="ru"] { display: none; }
