/* ══════════════════════════════════════════════════════════════════════════
   Сайт-сателлит «Скачать ВПН» → siberian.uk
   Кластер: «бесплатно / скачать / без регистрации».

   Направление: ВИТРИНА МАГАЗИНА ПРИЛОЖЕНИЙ. Человек пришёл «скачать», поэтому
   страница собрана как прилавок: плитки устройств, карточка приложения,
   таблица «что качать», полки с шагами установки.

   Смысл цвета (декоративно не используется НИКОГДА):
     --sand (песочный) = бесплатно: приложение, пробные дни, обновления
     --sky  (стальной голубой) = платно: подписка 89 ₽
   На этой паре держится главный честный разворот сайта: что бесплатно, а что нет.

   Отличия от соседних сателлитов: самый светлый фон из пяти (сине-стальной,
   не чёрный), без сеток и точек на фоне, полки с толстой песочной кромкой,
   радиусы 8px, метки-ярлыки с вырезом слева, шаги на ступенях.
   Цвета записаны классическим rgba() — «скачать впн» ищут и со старых телефонов.
   ══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --steel:   #1c2938;
  --steel-2: #243447;
  --steel-3: #2d4057;
  --line:    rgba(190, 205, 222, .22);
  --line-2:  rgba(190, 205, 222, .11);
  --paper:   #f3efe6;
  --mute:    #b9c5d3;
  --sand:    #e8c88f;
  --sand-2:  #f4dfb6;
  --sky:     #93bde3;

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

  --gut: clamp(16px, 4.4vw, 36px);
  --gap: clamp(52px, 8vw, 100px);
  --r: 8px;
}

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

body {
  margin: 0;
  background: var(--steel);
  background-image: linear-gradient(180deg, #25374c 0, var(--steel) 720px);
  background-repeat: no-repeat;
  color: var(--mute);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.66;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--paper); margin: 0; line-height: 1.16; letter-spacing: -.015em; }
h1 { font-size: clamp(31px, 5.6vw, 54px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
strong, b { color: var(--paper); font-weight: 650; }
code { font-family: var(--code); font-size: .9em; color: var(--sand-2); word-break: break-all; }
img, svg { max-width: 100%; }

a:focus-visible, summary:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 4px; }

.sand { color: var(--sand); }
.sky  { color: var(--sky); }
a.sand, a.sky { text-underline-offset: 3px; }

/* ── Контейнер ─────────────────────────────────────────────────────────── */
.lane { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ── Ярлык: строчный поток, маркер через ::before (на flex рвётся при переносе) */
.chip {
  display: inline;
  padding: 4px 10px 4px 9px;
  border-left: 3px solid var(--mute);
  background: rgba(190, 205, 222, .1);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 2.1;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.chip-sand { border-left-color: var(--sand); color: var(--sand-2); background: rgba(232, 200, 143, .12); }
.chip-sky  { border-left-color: var(--sky);  color: #cfe3f5;       background: rgba(147, 189, 227, .13); }

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.buy {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  border-radius: var(--r);
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.buy:hover { transform: translateY(-2px); }
.buy-solid { background: var(--sand); color: #1b2633; }
.buy-solid:hover { background: var(--sand-2); }
.buy-thin { border-color: var(--line); color: var(--paper); }
.buy-thin:hover { border-color: var(--sand); }
.buy-big { padding: 14px 24px; font-size: 16px; }
.buy-small { padding: 8px 15px; font-size: 14px; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(28, 41, 56, .94);
  border-bottom: 1px solid var(--line-2);
}
.bar-in { display: flex; align-items: center; gap: 22px; padding-top: 11px; padding-bottom: 11px; }
.sign { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.sign svg { width: 32px; height: 32px; display: block; }
.sign-a { color: var(--paper); font-weight: 800; font-size: 17px; }
.sign-b { color: var(--sand); font-weight: 600; font-size: 17px; }
.tabs { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; min-width: 0; }
.tabs a { text-decoration: none; color: var(--mute); white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.tabs a:hover, .tabs a[aria-current] { color: var(--paper); border-bottom-color: var(--sand); }

/* ── Крошки ────────────────────────────────────────────────────────────── */
.way { padding-top: 18px; font-size: 13.5px; color: var(--mute); }
.way a { text-decoration: none; color: var(--mute); border-bottom: 1px solid var(--line); }
.way a:hover { color: var(--paper); }
.way i { font-style: normal; margin: 0 8px; color: var(--mute); }

/* ── Первый экран ──────────────────────────────────────────────────────── */
.front { padding-top: clamp(30px, 5vw, 58px); padding-bottom: clamp(40px, 6vw, 72px); }
.front-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 4.4vw, 58px); align-items: center; }
.front-grid > * { min-width: 0; }
.front h1 { margin-top: 16px; }
.front-text { margin-top: 20px; font-size: 17.5px; max-width: 610px; }
.front-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.front-small { margin-top: 13px; font-size: 13.5px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 30px; max-width: 560px; }
.trio div { border-top: 3px solid var(--sand); background: var(--steel-2); border-radius: 0 0 var(--r) var(--r); padding: 11px 12px 12px; min-width: 0; }
.trio b { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; }
.trio span { display: block; font-size: 12.5px; line-height: 1.4; margin-top: 3px; }

.pop { animation: pop .6s ease both; }
.pop-2 { animation-delay: .07s; } .pop-3 { animation-delay: .14s; }
.pop-4 { animation-delay: .21s; } .pop-5 { animation-delay: .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Сигнатурный блок 1: плитки выбора устройства ──────────────────────── */
.picker { margin: 0; background: var(--steel-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.picker-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.picker-cap b { font-size: 15px; }
.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dev {
  display: block; text-decoration: none; min-width: 0;
  background: var(--steel-3); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 13px 13px 12px;
  transition: border-color .18s ease, transform .18s ease;
}
a.dev:hover { border-color: var(--sand); transform: translateY(-2px); }
.dev svg { width: 26px; height: 26px; display: block; color: var(--sand); }
.dev b { display: block; margin-top: 9px; font-size: 15.5px; line-height: 1.25; }
.dev span { display: block; font-size: 12.5px; line-height: 1.4; margin-top: 3px; }
.dev-wide { grid-column: 1 / -1; }
.picker-foot { margin-top: 13px; font-size: 12.5px; line-height: 1.5; }

/* ── Сигнатурный блок 2: карточка приложения, как в магазине ───────────── */
.app { margin: 0; background: var(--steel-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; min-width: 0; }
.app-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 15px; align-items: center; }
.app-ico { width: 64px; height: 64px; border-radius: 15px; background: var(--steel-3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.app-ico svg { width: 34px; height: 34px; color: var(--sand); }
.app-name { font-size: 20px; font-weight: 800; color: var(--paper); line-height: 1.2; }
.app-by { font-size: 13px; margin-top: 2px; }
.app-rows { margin-top: 16px; border-top: 1px solid var(--line-2); }
.app-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; line-height: 1.45; }
.app-row span:first-child { color: var(--mute); }
.app-row span:last-child { color: var(--paper); }
.app-note { margin-top: 14px; font-size: 13px; line-height: 1.55; }

/* ── Полка (секция) ────────────────────────────────────────────────────── */
.shelf { padding-top: var(--gap); }
.shelf-cap { max-width: 800px; margin-bottom: 30px; }
.shelf-cap h2 { margin-top: 14px; }
.shelf-cap h2::after { content: ""; display: block; width: 62px; height: 4px; background: var(--sand); border-radius: 2px; margin-top: 16px; }
.shelf-cap .big { margin-top: 16px; }
.big { font-size: 17px; }
.copy { max-width: 820px; }
.copy p + p { margin-top: 15px; }

.fade { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade.seen { opacity: 1; transform: none; }

/* ── Товары на полке (карточки) ────────────────────────────────────────── */
.goods { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 13px; }
.goods > * { min-width: 0; background: var(--steel-2); border: 1px solid var(--line-2); border-bottom: 3px solid var(--line); border-radius: var(--r); padding: 18px 18px 17px; }
.goods h3 { margin-bottom: 8px; }
.goods p { font-size: 15px; }
.goods a { text-decoration: none; display: block; }
a.good { text-decoration: none; display: block; transition: border-color .18s ease, transform .18s ease; }
a.good:hover { border-bottom-color: var(--sand); transform: translateY(-2px); }
a.good b { display: block; font-size: 16.5px; margin-bottom: 6px; }
a.good span { display: block; font-size: 14.5px; line-height: 1.55; }

/* ── Две стороны: бесплатно / платно ───────────────────────────────────── */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.side { min-width: 0; background: var(--steel-2); border-radius: var(--r); padding: 22px; border: 1px solid var(--line-2); border-top-width: 4px; }
.side-free { border-top-color: var(--sand); }
.side-paid { border-top-color: var(--sky); }
.side h3 { margin-top: 13px; font-size: 20px; }
.side p { margin-top: 9px; font-size: 15px; }
.side ul { list-style: none; margin: 14px 0 0; padding: 0; }
.side li { position: relative; padding: 8px 0 8px 24px; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.5; }
.side li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border-radius: 2px; background: var(--mute); }
.side-free li::before { background: var(--sand); }
.side-paid li::before { background: var(--sky); }

/* ── Таблица «что качать» — скроллится внутри своей рамки, не страница ── */
.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--steel-2); -webkit-overflow-scrolling: touch; }
.getit { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.getit th, .getit td { text-align: left; padding: 13px 15px; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.getit thead th { color: var(--paper); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; background: var(--steel-3); }
.getit tbody th { color: var(--paper); font-weight: 700; white-space: nowrap; }
.getit tr:last-child th, .getit tr:last-child td { border-bottom: 0; }
.store { display: inline-block; padding: 1px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--paper); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.store-free { border-color: rgba(232, 200, 143, .55); color: var(--sand-2); }

/* ── Ступени установки ─────────────────────────────────────────────────── */
.stairs { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 13px; }
.stairs li { counter-increment: st; min-width: 0; background: var(--steel-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 50px 18px 18px; position: relative; }
.stairs li::before { content: counter(st); position: absolute; left: 0; top: 0; min-width: 38px; height: 34px; padding: 0 12px; background: var(--sand); color: #1b2633; font-weight: 800; font-size: 16px; line-height: 34px; text-align: center; border-radius: var(--r) 0 var(--r) 0; }
.stairs h3 { margin-bottom: 7px; }
.stairs p { font-size: 15px; }
.stairs-tall { grid-template-columns: minmax(0, 1fr); max-width: 820px; }

/* ── Цена ──────────────────────────────────────────────────────────────── */
.cost { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(22px, 4vw, 48px); background: var(--steel-2); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3.4vw, 36px); }
.cost > * { min-width: 0; }
.cost-sum { font-size: clamp(54px, 9vw, 84px); font-weight: 800; color: var(--sky); line-height: 1; letter-spacing: -.03em; }
.cost-sum small { font-size: 17px; font-weight: 600; color: var(--mute); letter-spacing: 0; margin-left: 8px; }
.cost-note { margin: 15px 0 22px; font-size: 15px; }
.cost-row { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.5; }
.cost-row:first-child { border-top: 0; padding-top: 0; }

/* ── Предупреждение ────────────────────────────────────────────────────── */
.heads-up { border-left: 4px solid var(--sky); background: var(--steel-2); border-radius: 0 var(--r) var(--r) 0; padding: 17px 20px; max-width: 860px; font-size: 15.5px; }

/* ── Вопросы ───────────────────────────────────────────────────────────── */
.help { max-width: 880px; }
.help details { background: var(--steel-2); border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 9px; }
.help summary { cursor: pointer; list-style: none; padding: 15px 46px 15px 18px; position: relative; color: var(--paper); font-weight: 650; font-size: 16px; line-height: 1.4; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--sand); font-size: 22px; font-weight: 400; line-height: 1; }
.help details[open] summary::after { content: "−"; }
.help-a { padding: 0 18px 17px; font-size: 15.5px; }

/* ── Города ────────────────────────────────────────────────────────────── */
.map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.map-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.map a { min-width: 0; text-decoration: none; background: var(--steel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--line); border-radius: 0 var(--r) var(--r) 0; padding: 12px 14px; transition: border-color .18s ease; }
.map a:hover { border-left-color: var(--sand); }
.map b { display: block; font-size: 16px; }
.map span { display: block; font-size: 13px; margin-top: 2px; }
.more { margin-top: 16px; font-size: 14.5px; }

/* ── Часы: строка «местное время — Москва» на городских страницах ─────── */
.clock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.clock div { background: var(--steel-3); border-radius: var(--r); padding: 12px 13px; min-width: 0; }
.clock b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.clock span { display: block; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }

/* ── Финальный блок ────────────────────────────────────────────────────── */
.last { background: var(--steel-2); border: 1px solid var(--line); border-top: 4px solid var(--sand); border-radius: var(--r); padding: clamp(24px, 4.4vw, 46px); text-align: center; }
.last h2 { margin: 14px auto 0; max-width: 700px; }
.last .big { margin: 14px auto 24px; max-width: 600px; }

/* ── Подвал ────────────────────────────────────────────────────────────── */
.floor { margin-top: var(--gap); border-top: 1px solid var(--line-2); background: #18232f; padding-top: 30px; padding-bottom: 38px; font-size: 14px; }
.floor-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 22px; }
.floor-nav a { color: var(--mute); text-decoration: none; border-bottom: 1px solid var(--line); }
.floor-nav a:hover { color: var(--paper); }
.floor-in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 26px; }
.floor-in p + p { margin-top: 6px; }
.floor-small { font-size: 12.5px; line-height: 1.6; color: var(--mute); }

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .map, .map-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-grid, .cost, .floor-in { grid-template-columns: minmax(0, 1fr); }
  .bar-in { flex-wrap: wrap; gap: 8px 14px; }
  .bar-in .buy { margin-left: auto; }
  .tabs { order: 3; width: 100%; margin-left: 0; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .versus { grid-template-columns: minmax(0, 1fr); }
  .front-text { font-size: 16.5px; }
  .front-btns .buy { width: 100%; }
  .trio b { font-size: 18px; }
  .trio span { font-size: 11.5px; }
  .cost-row, .app-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .side { padding: 18px; }
}
@media (max-width: 380px) {
  .map, .map-4 { grid-template-columns: minmax(0, 1fr); }
  .picker-grid { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .pop { animation: none; }
  .buy, .dev, a.good { transition: none; }
}
