/* ══════════════════════════════════════════════════════════════════════════
   Сайт-сателлит «ВПН Замена» → siberian.uk
   Кластер: перехват брендов (Амнезия, Дядя Ваня, Батя, Аво, Медведь).

   Направление: ДИСПЕТЧЕРСКАЯ ПЕРЕНОСА. Человек приходит сюда в момент, когда
   его сервис перестал работать, поэтому главный объект страницы — не витрина,
   а статусная панель: что сломалось, что проверить, куда переехать.

   Смысл цвета (декоративно не используется НИКОГДА):
     --old (янтарь) = прежний доступ: истёк, отозван, не отвечает
     --new (циан)   = рабочая замена: активная подписка
   Пара читается как «было → стало» и держит всю навигацию по смыслу.

   Отличия от соседних сателлитов: у №1 приборная телеметрия на синем, у №2
   стенд совместимости на графите с мятой. Здесь — индиго, точечный фон вместо
   линейного, метки в рамке вместо моно-капса и квадратного маркера, шаги
   номерами в кружке, у FAQ маркер-стрелка. Радиусы средние, 10px.
   ══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --night: #0c0f1c;
  --panel: #151a2e;
  --rise:  #1c2340;
  --edge:  rgba(154 163 194 / 18%);
  --edge-2: rgba(154 163 194 / 9%);
  --dim:   #9aa3c2;
  --ink:   #eaedf8;
  --old:   #f0a63c;
  --new:   #4fd6e8;
  --new-2: #a6ecf6;

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(18px, 4.6vw, 40px);
  --zone: clamp(56px, 8.5vw, 110px);
}

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

body {
  margin: 0;
  background: var(--night);
  color: var(--dim);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Точечная сетка — фон диспетчерского стола. Гаснет к концу первого экрана. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle at 1px 1px, var(--edge-2) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 65%);
  pointer-events: none;
}

a { color: inherit; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--new);
  outline-offset: 3px;
  border-radius: 4px;
}

.frame { width: 100%; max-width: 1150px; margin: 0 auto; padding: 0 var(--pad); }

/* ── Типографика ────────────────────────────────────────────────────────── */
/* Метка — бейдж в рамке. Строчный элемент: длинная метка переносится
   по словам и не распирает колонку на телефоне. */
.badge {
  display: inline;
  padding: 4px 10px;
  border: 1px solid var(--edge);
  border-radius: 20px;
  /* Длинная метка переносится по словам, и без clone рамка обрывалась
     на переносе: вторая строка оставалась без левого края и скруглений. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: normal;
}
.badge-old { color: var(--old); border-color: rgb(240 166 60 / 40%); }
.badge-new { color: var(--new); border-color: rgb(79 214 232 / 40%); }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.12;
}
h1 { font-size: clamp(29px, 5vw, 54px); }
h2 { font-size: clamp(24px, 3.5vw, 39px); line-height: 1.16; }
h3 { font-size: 17.5px; line-height: 1.34; letter-spacing: -.012em; }
p  { margin: 0; }

.say { font-size: clamp(15.5px, 1.6vw, 17.5px); line-height: 1.7; }
.new { color: var(--new); }
.old { color: var(--old); }
.mono { font-family: var(--mono); font-size: .92em; }
strong { color: var(--ink); font-weight: 600; }
.prose p + p { margin-top: 15px; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(12 15 28 / 88%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}
.head-in { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.logo svg { width: 26px; height: 26px; flex: none; }
.logo-txt { color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -.025em; }
.logo-sub { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--new); }
.menu {
  display: flex;
  gap: 19px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menu::-webkit-scrollbar { display: none; }
.menu a { text-decoration: none; font-size: 14px; white-space: nowrap; color: var(--dim); transition: color .18s; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--new); }
.head .go { flex: none; }

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.go-main {
  background: linear-gradient(180deg, var(--new) 0%, #2bb4c8 100%);
  color: #04161b;
  box-shadow: 0 8px 24px -12px rgb(79 214 232 / 80%);
}
.go-main:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px rgb(79 214 232 / 85%); }
.go-line { border-color: var(--edge); background: rgb(154 163 194 / 6%); color: var(--ink); }
.go-line:hover { border-color: rgb(79 214 232 / 45%); background: rgb(79 214 232 / 9%); }
.go-s { padding: 9px 16px; font-size: 14px; }
.go-l { padding: 15px 29px; font-size: 16px; }

/* ── Путь ──────────────────────────────────────────────────────────────── */
.trail {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.trail a { color: var(--dim); text-decoration: none; }
.trail a:hover { color: var(--new); }
/* #8d96b5 на --night даёт 5.6:1 — этим же цветом набрана текущая страница */
.trail span { color: #8d96b5; }

/* ── Первый экран ──────────────────────────────────────────────────────── */
.open { position: relative; padding: clamp(34px, 5.5vw, 68px) 0 clamp(40px, 5.5vw, 64px); }
.open::after {
  content: "";
  position: absolute;
  top: -190px;
  left: 50%;
  width: min(900px, 120vw);
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgb(79 214 232 / 10%) 0%, transparent 66%);
  pointer-events: none;
  z-index: -1;
}
.open-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(30px, 4.6vw, 56px); align-items: center; }
.open h1 { margin: 16px 0 19px; }
.open-say { max-width: 545px; }
.open-go { display: flex; flex-wrap: wrap; gap: 11px; margin: 28px 0 24px; }
.open-fine { font-size: 13px; line-height: 1.6; }

/* Показания: три значения в строку */
.tally { display: flex; flex-wrap: wrap; border-top: 1px solid var(--edge); margin-top: 24px; padding-top: 17px; }
.tally div { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--edge); }
.tally div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.tally b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.03em; }
.tally span { font-size: 12px; }

/* ── Сигнатура: карточка переноса доступа ──────────────────────────────── */
/* Сверху прежний доступ со статусом, снизу новый. Между ними — стрелка.
   Ниже чек-лист: пять проверок, которые человек делает до переезда. */
.board {
  margin: 0;
  min-width: 0;
  padding: 18px;
  background: linear-gradient(180deg, var(--rise) 0%, var(--panel) 100%);
  border: 1px solid var(--edge);
  border-radius: 12px;
  box-shadow: 0 28px 64px -40px #000;
}
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.board-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--new); }
.board-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--new); animation: beat 2.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }

.state {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  background: rgb(154 163 194 / 5%);
}
.state-old { border-left: 3px solid var(--old); }
.state-new { border-left: 3px solid var(--new); }
.state b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 650; margin-bottom: 2px; }
.state span { display: block; font-size: 12.5px; line-height: 1.5; }
.state-dot { flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; }
.state-old .state-dot { background: var(--old); }
.state-new .state-dot { background: var(--new); }

.state-link { display: flex; justify-content: center; padding: 7px 0; }
.state-link svg { width: 20px; height: 26px; color: var(--dim); }

/* Чек-лист внутри карточки */
.checks { margin: 15px 0 0; padding: 14px 0 0; border-top: 1px solid var(--edge); list-style: none; }
.checks li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.5;
}
.checks li:last-child { margin-bottom: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--edge);
  border-radius: 50%;
}
.checks li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--new);
}

/* ── Зоны (секции) ─────────────────────────────────────────────────────── */
.zone { padding: var(--zone) 0; border-top: 1px solid var(--edge); }
.zone-top { max-width: 730px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.zone-top h2 { margin: 13px 0 13px; }

/* ── Заметки (сетка коротких пунктов) ──────────────────────────────────── */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.notes div { background: var(--panel); padding: 20px 19px; transition: background .2s; }
.notes div:hover { background: var(--rise); }
.notes h3 { margin-bottom: 7px; }
.notes p { font-size: 13.5px; line-height: 1.58; }

/* ── Плиты «было / стало» ──────────────────────────────────────────────── */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.plate {
  padding: 24px 24px 26px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 10px;
}
.plate-old { border-top: 2px solid var(--old); }
.plate-new { border-top: 2px solid var(--new); }
.plate h3 { margin: 13px 0 10px; font-size: 19px; }
.plate p { font-size: 14.5px; }
.plate ul { margin: 14px 0 0; padding: 0; list-style: none; }
.plate li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 14px; line-height: 1.55; }
.plate li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}
.plate-old li { color: var(--old); }
.plate-new li { color: var(--new-2); }
.plate li span { color: var(--dim); }

/* ── Цена ──────────────────────────────────────────────────────────────── */
.rate {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 3.6vw, 50px);
  align-items: center;
  padding: clamp(24px, 3.6vw, 42px);
  background: linear-gradient(140deg, var(--rise) 0%, var(--panel) 70%);
  border: 1px solid var(--edge);
  border-radius: 14px;
}
.rate-num { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: clamp(48px, 7.6vw, 76px); font-weight: 600; color: var(--ink); letter-spacing: -.05em; line-height: 1; }
.rate-num small { font-family: var(--text); font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.rate-note { margin-top: 13px; font-size: 14px; }
.rate .go { margin-top: 20px; }
.rate-line { display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--edge); font-size: 14.5px; }
.rate-line:first-child { border-top: 0; padding-top: 0; }
.rate-line b { flex: none; width: 124px; padding-top: 2px; color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* ── Порядок действий: номера в кружке ─────────────────────────────────── */
.order { counter-reset: o; display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 22px; margin: 0; padding: 0; }
.order li { counter-increment: o; list-style: none; }
.order li::before {
  content: counter(o);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 13px;
  border: 1px solid rgb(79 214 232 / 45%);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--new);
}
.order h3 { margin-bottom: 7px; }
.order p { font-size: 14px; line-height: 1.6; }

/* ── Вопросы ───────────────────────────────────────────────────────────── */
.ask { border-top: 1px solid var(--edge); }
.ask details { border-bottom: 1px solid var(--edge); }
.ask summary {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -.015em;
  line-height: 1.4;
  list-style: none;
}
.ask summary::-webkit-details-marker { display: none; }
/* Маркер — стрелка вправо, у раскрытого поворачивается вниз */
.ask summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin: 8px 2px 0 auto;
  border-top: 2px solid var(--new);
  border-right: 2px solid var(--new);
  transform: rotate(45deg);
  transition: transform .22s;
}
.ask details[open] summary::after { transform: rotate(135deg); }
.ask summary:hover { color: var(--new-2); }
.ask-body { padding: 0 38px 20px 0; font-size: 14.5px; line-height: 1.7; }

/* ── Переходы ──────────────────────────────────────────────────────────── */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; }
.links a { display: block; padding: 20px 21px; background: var(--panel); border: 1px solid var(--edge); border-radius: 10px; text-decoration: none; transition: border-color .2s, background .2s, transform .15s; }
.links a:hover { border-color: rgb(79 214 232 / 42%); background: var(--rise); transform: translateY(-2px); }
.links b { display: block; color: var(--ink); font-size: 16px; font-weight: 650; margin-bottom: 5px; }
.links span { font-size: 13.5px; line-height: 1.52; }

/* ── Города ────────────────────────────────────────────────────────────── */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 13px; }
.places a { display: block; padding: 17px 19px; background: var(--panel); border: 1px solid var(--edge); border-radius: 10px; text-decoration: none; transition: border-color .2s, background .2s, transform .15s; }
.places a:hover { border-color: rgb(79 214 232 / 42%); background: var(--rise); transform: translateY(-2px); }
.places b { display: block; color: var(--ink); font-size: 16.5px; font-weight: 650; letter-spacing: -.02em; }
.places span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--dim); }

/* ── Финальный блок ────────────────────────────────────────────────────── */
.final {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 64px) clamp(22px, 3.6vw, 50px);
  text-align: center;
  background: linear-gradient(155deg, var(--rise) 0%, var(--panel) 66%);
  border: 1px solid var(--edge);
  border-radius: 16px;
}
.final::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  width: 640px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgb(79 214 232 / 15%) 0%, transparent 70%);
  pointer-events: none;
}
.final > * { position: relative; }
.final h2 { margin: 14px auto 15px; max-width: 670px; }
.final .say { max-width: 540px; margin: 0 auto 26px; }

/* ── Подвал ────────────────────────────────────────────────────────────── */
.bottom { padding: 32px 0 44px; border-top: 1px solid var(--edge); font-size: 13px; line-height: 1.62; }
.bottom-nav { display: flex; flex-wrap: wrap; gap: 10px 21px; margin-bottom: 20px; }
.bottom-nav a { color: var(--dim); text-decoration: none; }
.bottom-nav a:hover { color: var(--new); }
.bottom-in { display: flex; flex-wrap: wrap; gap: 16px 34px; align-items: baseline; justify-content: space-between; }
.bottom a { color: var(--dim); }
.bottom a:hover { color: var(--new); }
/* #7c85a3 на --night даёт 4.6:1 — мелкий текст остаётся читаемым (AA) */
.bottom-fine { max-width: 650px; font-size: 12px; color: #7c85a3; }

/* ── Появление по скроллу ──────────────────────────────────────────────── */
.show { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1); }
.show.shown { opacity: 1; transform: none; }

/* Вход первого экрана */
.enter { opacity: 0; transform: translateY(16px); animation: enter .7s cubic-bezier(.22,1,.36,1) forwards; }
.enter-1 { animation-delay: .05s; } .enter-2 { animation-delay: .14s; }
.enter-3 { animation-delay: .23s; } .enter-4 { animation-delay: .32s; } .enter-5 { animation-delay: .28s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .menu { gap: 15px; }
}
@media (max-width: 900px) {
  /* minmax(0, 1fr), а не 1fr: одноколоночная сетка тоже должна уметь
     сжиматься ниже min-content своего содержимого */
  .open-grid { grid-template-columns: minmax(0, 1fr); }
  .rate { grid-template-columns: minmax(0, 1fr); }
  .head-in { gap: 13px; }
  .menu { font-size: 13px; }
}
@media (max-width: 680px) {
  /* Ссылки уезжают под логотип отдельной прокручиваемой строкой.
     Правим ТОЛЬКО вертикальные отступы — сокращение `padding: 10px 0`
     стёрло бы боковые поля .frame, и шапка прилипла бы к краям. */
  .head-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 9px; }
  .menu { order: 3; width: 100%; margin-left: 0; padding-bottom: 2px; }
  .logo { margin-right: auto; }
}
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .tally div { padding-right: 18px; margin-right: 18px; }
  .tally b { font-size: 20px; }
  .rate-line { flex-direction: column; gap: 3px; }
  .rate-line b { width: auto; }
  .ask-body { padding-right: 0; }
  .logo-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .show, .enter { opacity: 1; transform: none; }
}
