/* armor.tel — номера +999.
   Материал: сталь и воронёная сталь. Номер — гравированная пластина, остальное спокойно.
   Шрифты: Onest (текст), Unbounded (номера и знак), оба SIL OFL — см. /fonts/OFL.txt. */

@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Onest";
  src: url("/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}
@font-face {
  font-family: "Unbounded";
  src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491;
}

:root {
  color-scheme: light dark;

  --steel: #e7eaed;        /* фон */
  --plate: #f7f8f9;        /* поверхности */
  --plate-sunk: #dfe3e7;   /* утопленные поля */
  --ink: #16202b;
  --ink-2: #4f5b67;
  --ink-3: #7c8792;
  --line: #c9cfd5;
  --line-soft: #d8dde2;
  --blued: #27458a;        /* воронёная сталь: действия, выбор */
  --blued-ink: #ffffff;
  --blued-wash: #dde4f3;
  --straw: #8a5a0c;        /* цвет побежалости: время, предупреждения */
  --straw-wash: #f3e7cf;
  --oxide: #a3362b;        /* необратимое */
  --oxide-wash: #f6dfdb;
  --oxide-btn: #a3362b;
  --temper: linear-gradient(90deg, #c9a35a 0%, #b07440 22%, #7d4c86 48%, #3b5ba8 72%, #7ea4d4 100%);
  --brush: rgba(22, 32, 43, 0.018);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 1px 2px rgba(22, 32, 43, 0.08), 0 18px 40px -24px rgba(22, 32, 43, 0.45);

  --text: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --digits: "Unbounded", "Onest", ui-sans-serif, system-ui, sans-serif;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --steel: #121820;
    --plate: #1a222c;
    --plate-sunk: #0e1319;
    --ink: #e4e9ee;
    --ink-2: #a3aeb9;
    --ink-3: #75818d;
    --line: #2e3945;
    --line-soft: #242e39;
    --blued: #3f5eae;
    --blued-ink: #ffffff;
    --blued-wash: #1f2c47;
    --straw: #e3b25c;
    --straw-wash: #2e2617;
    --oxide: #f08a7e;
    --oxide-wash: #351d1c;
    --oxide-btn: #b8443a;
    --temper: linear-gradient(90deg, #d8b46a 0%, #c48550 22%, #9a68a6 48%, #5b7dd0 72%, #9cc0ec 100%);
    --brush: rgba(255, 255, 255, 0.012);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 44px -26px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--steel);
  color: var(--ink);
  font: 400 17px/1.5 var(--text);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 64px max(var(--gutter), env(safe-area-inset-right));
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--blued); outline-offset: 3px; border-radius: 6px; }

h1, h2 { margin: 0; font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(28px, 7.4vw, 40px); line-height: 1.1; margin-bottom: 14px; }
h2 { font-size: 21px; line-height: 1.25; margin-bottom: 16px; }
p { margin: 0; }
.lede { color: var(--ink-2); max-width: 34em; margin-bottom: 24px; text-wrap: pretty; }
.lede.small { font-size: smaller; padding-top: 2em; }
.fine { color: var(--ink-3); font-size: 14px; line-height: 1.45; margin-top: 14px; }

/* ---------- шапка ---------- */

.top, main { max-width: 1040px; margin-inline: auto; }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding-top: env(safe-area-inset-top);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 26px; height: 26px; color: var(--ink); }
.wordmark { font: 500 17px/1 var(--digits); letter-spacing: -0.01em; }

/* ---------- кнопки ---------- */

.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 16px/1.2 var(--text);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn-primary { background: var(--blued); color: var(--blued-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 1px 2px rgba(22, 32, 43, 0.25); }
.btn-primary:hover { background: color-mix(in srgb, var(--blued) 88%, var(--ink)); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--plate); }
.btn-danger { background: var(--oxide-btn); color: #ffffff; }
.btn-wide { width: 100%; max-width: 360px; }
.btn-text {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 8px 2px;
  font: 500 15px/1.2 var(--text);
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  cursor: pointer;
}
.btn-text:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- номер ---------- */

.num {
  font-family: var(--digits);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
  letter-spacing: 0;
}
.num .cc { color: var(--ink-3); }
.num .hit { color: var(--blued); font-weight: 500; }
.num-hero .hit { font-weight: 400; }
@media (prefers-color-scheme: dark) { .num .hit { color: #9db4f0; } }

/* Крупный номер: +999 строкой выше, десять цифр — во всю ширину пластины. */
.num-hero { font-weight: 300; line-height: 1; }
.num-hero .cc {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}
/* 10 цифр с пробелами ≈ 8.5em в Unbounded: размер от ширины пластины. */
.num-hero .body { font-size: min(64px, calc(100cqi / 8.7)); }
.num-hero .settling { color: var(--ink-3); }

/* ---------- пластина ---------- */

.plate {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px 25px 26px;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  /* шлифованная сталь — едва заметная */
  background-image: repeating-linear-gradient(0deg, transparent 0 2px, var(--brush) 2px 3px);
}
/* Кромка: цвета побежалости закалённой стали. */
.plate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--temper);
}
/* Внутренний гравированный контур. */
.plate::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  pointer-events: none;
  z-index: -1;
}

/* ---------- вход ---------- */

.login {
  display: grid;
  gap: 32px;
  padding-top: 12px;
}
.plate-hero { padding-block: 34px 32px; }

/* Пластины слоями: под главной — ещё две, как пластины брони. */
.stack { position: relative; padding-top: 22px; }
.stack::before, .stack::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--plate);
  transform: translateX(-50%);
}
.stack::before { top: 0; width: 84%; opacity: 0.45; }
.stack::after { top: 11px; width: 92%; opacity: 0.75; }
.stack .plate { z-index: 1; }

@media (min-width: 880px) {
  .login {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 72px;
    min-height: min(calc(100vh - 68px - 96px), 560px);
    padding-bottom: 48px;
  }
  .login .stack { order: 2; padding-top: 30px; }
  .stack::after { top: 15px; }
  .plate-hero { padding: 52px 44px 48px; }
  .login h1 { font-size: 46px; margin-bottom: 18px; }
}

/* ---------- передача в бумажник: ссылка и QR ---------- */

.handoff {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.handoff .btn { width: 100%; max-width: 360px; }
.qr {
  width: 132px;
  padding: 10px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--line);
  line-height: 0;
}
.qr svg { width: 100%; height: auto; display: block; }
.qr svg path[fill] { fill: #ffffff; }
.qr svg path[stroke] { stroke: #16202b; }
.handoff figure { margin: 0; display: flex; align-items: center; gap: 14px; }
.handoff figcaption { font-size: 14px; line-height: 1.45; color: var(--ink-3); max-width: 15em; }

/* Компьютер (мышь): QR главный, ссылка вторична. Телефон: наоборот. */
@media (hover: hover) and (pointer: fine) {
  .handoff { grid-template-columns: auto; }
  .handoff figure { order: -1; flex-direction: column; align-items: flex-start; }
  .handoff .qr { width: 232px; padding: 14px; }
  .handoff figcaption { display: none; }
  .handoff .btn {
    width: auto;
    min-height: 0;
    padding: 6px 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 15px;
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 4px;
  }
  .handoff .btn:hover { color: var(--ink); }
}

/* ---------- кабинет ---------- */

.account {
  max-width: 620px;
  margin-inline: auto;
  padding-top: 8px;
}
.block { margin-top: 44px; }
#mine { margin-top: 12px; }
.panel:not([hidden]) + #mine { margin-top: 36px; }

@media (min-width: 880px) {
  .account {
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 72px;
    align-items: start;
    padding-top: 40px;
  }
  .account #pick { margin-top: 12px; }
  .plate-pick { padding: 36px 34px 32px; }
}

.panel {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  margin-top: 12px;
  box-shadow: var(--shadow);
}
.panel:focus { outline: none; }
.panel .lede { margin-bottom: 20px; }
.panel .fine { margin-bottom: 18px; }

.empty { color: var(--ink-2); max-width: 34em; }

.alert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 4px auto 0;
  max-width: 620px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--oxide-wash);
  color: var(--ink);
  border-left: 3px solid var(--oxide);
}
.alert .btn-text { padding: 0; flex: none; }

/* мои номера */
.mine-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mine-list:empty { display: none; }
.mine {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.mine .num { font-size: clamp(18px, 5.2vw, 24px); font-weight: 400; }
.mine-meta { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.mine .release { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.mine-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mine-actions .btn { flex: 1 1 auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (min-width: 560px) { .mine-actions .btn { flex: 0 0 auto; } }

.mine.reserved { border-color: color-mix(in srgb, var(--straw) 45%, var(--line)); }
.clock {
  font-family: var(--digits);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  color: var(--straw);
}
.hold {
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--line-soft);
  overflow: hidden;
}
.hold i { display: block; height: 100%; background: var(--straw); transition: width 1s linear; }

.confirm {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: var(--oxide-wash);
  border-left: 3px solid var(--oxide);
}
.confirm p { font-size: 15px; line-height: 1.5; }
.confirm p + p { margin-top: 8px; }
.confirm strong { font-weight: 650; }

/* подбор */
.search { margin-bottom: 20px; }
.search label { display: block; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.search-row { display: flex; gap: 8px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--plate-sunk);
  color: var(--ink);
  font: 400 19px/1 var(--digits);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  box-shadow: 0 1px 2px rgba(22, 32, 43, 0.12) inset;
}
.search input::placeholder { font: 400 16px/1 var(--text); letter-spacing: 0; color: var(--ink-3); }
.search input:focus-visible { outline-offset: 1px; }

.plate-pick { margin-bottom: 14px; }
.plate-foot { margin-top: 26px; display: grid; gap: 12px; justify-items: start; }
.note { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.note.warn { color: var(--straw); }
.note.bad { color: var(--oxide); }

.options { list-style: none; margin: 0 0 16px; padding: 0; }
.option {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 15px 14px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.options li:first-child .option { border-top: 1px solid var(--line-soft); }
.option .num { font-size: clamp(17px, 4.9vw, 21px); font-weight: 400; }
.option .cc, .loading-row .cc, .mine .cc { font-size: 0.72em; font-weight: 300; }
.option::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.option:hover { background: color-mix(in srgb, var(--plate) 60%, transparent); }
.option[aria-pressed="true"] { background: var(--plate); }
.option[aria-pressed="true"]::after { border: 5.5px solid var(--blued); }
.option.taken { cursor: default; color: var(--ink-3); }
.option.taken .num { text-decoration: line-through; text-decoration-thickness: 1px; }
.option.taken .num .hit, .option.taken .num .cc { color: inherit; }
.option.taken::after { content: "занят"; width: auto; height: auto; border: 0; border-radius: 0; font-size: 14px; }

.loading-row { padding: 15px 14px; border-bottom: 1px solid var(--line-soft); }
.loading-row .num { font-size: clamp(17px, 4.9vw, 21px); color: var(--ink-3); animation: loading 1.4s ease-in-out infinite; }
@keyframes loading { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.75; } }

/* ---------- страница выдачи (отдаёт сервер) ---------- */

.landing { max-width: 520px; margin: 24px auto 0; }
.landing .plate { padding: 32px 26px 28px; }
.landing h1 { font-size: clamp(26px, 7vw, 34px); }
.landing .btn { width: 100%; }

/* ---------- движение ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- о сервисе ---------- */

.about { padding-bottom: 72px; }
.about-block { margin-top: 56px; max-width: 900px; }
.about h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; line-height: 1.3; }
.about p, .about li { color: var(--ink-2); line-height: 1.55; }
.about ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; color: var(--ink); white-space: nowrap; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 64px;
  background: var(--plate);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  font: 400 26px/1 var(--digits);
  color: var(--blued);
}

.reach { display: grid; gap: 14px; }
.reach-col { padding: 20px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--plate); }
.reach-col li { position: relative; padding-left: 26px; }
.reach-col li + li { margin-top: 10px; }
.reach-col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.reach-yes h3 { color: var(--blued); }
.reach-yes li::before { content: "✓"; color: var(--blued); }
.reach-no { border-color: color-mix(in srgb, var(--straw) 40%, var(--line-soft)); }
.reach-no h3 { color: var(--straw); }
.reach-no li::before { content: "✕"; color: var(--straw); }

.facts { display: grid; gap: 12px; }
.facts li { padding-left: 16px; border-left: 2px solid var(--line); }
.facts strong { color: var(--ink); font-weight: 650; }

@media (min-width: 880px) {
  .about-block { margin-top: 72px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 64px 24px 24px; }
  .steps li::before { left: 24px; top: 22px; font-size: 30px; }
  .reach { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 18px 32px; }
}
@media (prefers-color-scheme: dark) {
  .steps li::before, .reach-yes h3, .reach-yes li::before { color: #9db4f0; }
}

/* ---------- страница «обычные сети» ---------- */

.doc { padding-top: 24px; }
.doc-intro { max-width: 760px; margin-bottom: 8px; }
.doc .reach-col p + p { margin-top: 10px; }
.addr { padding: 10px 14px; background: var(--plate-sunk); border-radius: 10px; overflow-x: auto; }
.reach-no li::before { content: "→"; }
.reach-link { margin-top: 14px; }
.reach-link a, .fine a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
.reach-link a:hover, .fine a:hover { text-decoration-color: currentColor; }
.nav { display: flex; align-items: center; gap: 18px; }

.reach > * { min-width: 0; }
.mono { white-space: normal; overflow-wrap: anywhere; }
.addr .mono { white-space: nowrap; }
.nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
.steps + .facts { margin-top: 18px; }
.nav { gap: 14px 18px; }
.about a:not(.btn), .lede a, .facts a, .steps a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line); }
.about a:not(.btn):hover, .lede a:hover { text-decoration-color: currentColor; }

/* ---------- возможности приложения: один блок — один экран ---------- */
.features { max-width: none; }
.features > .lede { margin-bottom: 8px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-block: 48px;
  border-top: 1px solid var(--line-soft);
  min-width: 0;
}
.feature-copy { min-width: 0; align-self: center; }
.feature h3 { margin: 0 0 14px; font: 650 clamp(22px, 5.6vw, 28px)/1.2 var(--text); color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
.feature p { margin: 0; max-width: 31em; color: var(--ink-2); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.feature p + p { margin-top: 12px; }
/* Сцена: утопленная пластина с телефоном; у всех блоков один размер. */
.stage {
  margin: 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 40px 20px 22px;
  border-radius: 28px;
  background: var(--plate-sunk);
  border: 1px solid var(--line-soft);
  display: grid;
  justify-items: center;
  gap: 18px;
}
.phone-frame {
  width: min(272px, 100%);
  aspect-ratio: 9 / 19.5;
  padding: 8px;
  border-radius: 38px;
  background: #0a0d11;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.stage::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--temper); opacity: 0.8; }
.stage figcaption { color: var(--ink-3); font-size: 14px; line-height: 1.4; text-align: center; max-width: 26em; text-wrap: balance; }
@media (min-width: 880px) {
  .feature { grid-template-columns: minmax(0, 1fr) 400px; gap: 80px; padding-block: 64px; }
  .feature:nth-of-type(even) { grid-template-columns: 400px minmax(0, 1fr); }
  .feature:nth-of-type(even) .stage { order: -1; }
  .stage { padding: 48px 28px 26px; }
}
.top, main { max-width: min(1040px, 100%); }
