/* Teleport — shared styles
   Brand: black tile, white "Tele", grey "port", blue accent. */
:root {
  --black: #000000;
  --ink: #14181f;
  --muted: #5a6472;
  --grey: #8a8a8a;
  --blue: #2f80ed;
  --blue-dark: #1f63c4;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --max: 820px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  color: #fff;
}
.site-header .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: block;
}
.brand .name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .name b { color: #fff; font-weight: 700; }
.brand .name span { color: var(--grey); font-weight: 700; }

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button.active {
  background: var(--blue);
  color: #fff;
}

/* ---------- Layout ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 72px;
}
.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.back:hover { text-decoration: underline; }

h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 6px;
}
h2 {
  font-size: 20px;
  margin: 34px 0 10px;
  padding-top: 6px;
}
h3 { font-size: 17px; margin: 22px 0 8px; }
.updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
p { margin: 0 0 14px; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 7px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }

/* Callout box (contact / steps) */
.note {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
}
.note p:last-child { margin-bottom: 0; }
.note .email { font-weight: 700; }

/* Stepper for deletion instructions */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
  position: relative;
  padding: 2px 0 2px 44px;
  margin-bottom: 14px;
}
ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}

/* ---------- Home hub cards ---------- */
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.cards { display: grid; gap: 14px; }
.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.05s;
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 22px rgba(47, 128, 237, 0.12);
}
.card .card-title { font-weight: 700; font-size: 18px; color: var(--ink); }
.card .card-desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.card .arrow { color: var(--blue); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

/* ---------- Language visibility ---------- */
[data-lang] { display: none; }
html[lang="ru"] [data-lang="ru"] { display: revert; }
html[lang="en"] [data-lang="en"] { display: revert; }
/* No-JS fallback: show everything so content is always reachable */
html.no-js [data-lang] { display: revert; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 24px; }
  .brand .name { font-size: 18px; }
  main { padding: 24px 16px 60px; }
}
