/* Телефон и кабинет Freedom VPN внутри него.
   Разметка и токены — по web/static/v2/cabinet.css (облик «OLED»): истинный чёрный фон, поверхности с синим
   отливом, синяя кнопка с голубой волной. Размеры — в пикселях настоящего экрана 390×844; телефон целиком
   масштабирует site.js. Всё внутри — картинка (aria-hidden), без фокусируемых элементов. */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "UnboundedText"; src: url("../fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; size-adjust: 90%; }
@font-face { font-family: "Onest"; src: url("../fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.cab {
  --c-bg: #000;
  --c-surface: #0A0E14;
  --c-raised: #0F151E;
  --c-control: #161F2B;
  --c-control-2: #1D2837;
  --c-ring: rgba(170, 200, 255, 0.08);
  --c-ring-strong: rgba(170, 200, 255, 0.14);
  --c-text: #F3F7FF;
  --c-text-2: #A3B1C6;
  --c-text-3: #8591A7;
  --c-blue-800: #1B45D6;
  --c-blue-600: #2566E8;
  --c-blue-500: #2F7CF6;
  --c-blue-300: #8CC4FF;
  --c-cyan: #33CFF5;
  --c-cyan-2: #9BE8FF;
  --c-mint: #4ADE9B;
  --c-accent-soft: rgba(47, 124, 246, 0.16);
  --c-grad: linear-gradient(135deg, #1B45D6 0%, #2566E8 60%, #276FEA 100%);
  --c-ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
  --c-ease-out: cubic-bezier(0.2, 0, 0, 1);
  --c-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --c-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --f-ui: "UnboundedText", "Wix Madefor Text", system-ui, sans-serif;
  --f-display: "Unbounded", "Wix Madefor Display", system-ui, sans-serif;
  --f-2: "Onest", "Wix Madefor Text", system-ui, sans-serif;

}
.device {
  position: absolute; left: 0; top: 0;
  width: 418px; height: 872px;
  transform-origin: 0 0;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
/* С JS телефон ставит site.js; пока он не пришёл (медленная сеть), телефон не виден, а не висит в левом верхнем углу */
.js:not(.placed) .device, .js:not(.placed) .screen-light { visibility: hidden; }
.device { --exit: 0; }
@supports (transition-timing-function: linear(0, 1)) {
  .cab { --c-spring: linear(0, 0.0319, 0.1116, 0.2188, 0.3384, 0.4591, 0.5733, 0.6764, 0.7657, 0.8403, 0.9004, 0.9472, 0.9821, 1.0068, 1.0231, 1.0328, 1.0375, 1.0383, 1.0366, 1.0333, 1.029, 1.0244, 1.0198, 1.0155, 1.0116, 1.0083, 1.0056, 1.0034, 1.0017, 1.0005, 0.9996, 0.999, 1); }
}
.cab svg { display: block; }
.cab .ic, .cab .c-tile-ic svg, .cab .c-banner-ic svg, .cab .c-chev, .cab .c-wave-label svg, .cab .c-card-ic svg, .cab .c-item-ic svg, .cab .c-btn svg,
.cab .c-dock svg, .cab .c-sheet svg:not(.flag), .cab .hp-row svg:not(.flag), .cab .hp-power svg, .cab .gs-lite .lbl svg {
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Корпус: титановая рамка, чёрная окантовка экрана, кнопки на торцах ──
   В космосе тени некуда падать: вместо «тени на столе» — тёмное гало для отделения от освещённой Земли,
   свет солнца на ребре рамки (.ph-rim) и свет экрана вокруг (.screen-light в site.css). */
.phone {
  position: relative; width: 418px; height: 872px;
  padding: 4px; border-radius: 70px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, 0) 94%, rgba(255, 255, 255, 0.22)),
    linear-gradient(160deg, #5A5F68 0%, #2A2D33 22%, #1A1C21 55%, #3B3F47 82%, #6A6F78 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 90px -18px rgba(0, 0, 0, 0.85);
  transform-style: preserve-3d;
}
/* Свет солнца на ребре рамки: сторона, обращённая к солнцу, горит тёплым на закате у края Земли и белым выше.
   site.js пишет прямо в этот элемент (у него нет детей — пересчёт стилей не расползается по кабинету):
   --sun-x, --sun-y — где солнце относительно центра телефона на экране (px), --sun-vis — 0…1 (видно ли солнце
   и насколько оно близко), --sun-warm — 0…1 (закат → белый полдень). --sun-a — тот же угол, посчитанный в JS,
   на случай браузера без atan2() в CSS. */
.ph-rim {
  --rim-a: var(--sun-a, 90deg);
  --rim-c: color-mix(in oklab, rgb(255 190 128) calc(var(--sun-warm, 1) * 100%), rgb(240 246 255));
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 4px; pointer-events: none;
  opacity: var(--sun-vis, 0);
  /* --sun-wrap 0…1: солнце за силуэтом телефона — свет обходит рамку целиком (нижняя граница спада уходит к 0 %) */
  background:
    linear-gradient(var(--rim-a), color-mix(in oklab, var(--rim-c) calc(var(--sun-wrap, 0) * 70%), transparent) calc((1 - var(--sun-wrap, 0)) * 42%),
      color-mix(in oklab, var(--rim-c) calc(55% + var(--sun-wrap, 0) * 30%), transparent) 78%, var(--rim-c) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
@supports (rotate: atan2(1, 1)) {
  .ph-rim { --rim-a: calc(atan2(var(--sun-y, 0px), var(--sun-x, 1px)) + 90deg); }
}
/* Ореол того же света за ребром: элемент позади телефона с тенью, сдвинутой к солнцу, — видна только часть снаружи силуэта.
   --sun-dx, --sun-dy — направление на солнце (единичный вектор) */
.ph-glow {
  --rim-c: color-mix(in oklab, rgb(255 178 110) calc(var(--sun-warm, 1) * 100%), rgb(226 238 255));
  position: absolute; left: 0; top: 0; width: 418px; height: 872px; border-radius: 70px; pointer-events: none;
  opacity: var(--sun-vis, 0);
  box-shadow: calc(var(--sun-dx, 0) * 14px) calc(var(--sun-dy, 0) * 14px) 46px -8px color-mix(in oklab, var(--rim-c) 70%, transparent),
    calc(var(--sun-dx, 0) * 5px) calc(var(--sun-dy, 0) * 5px) 12px -3px color-mix(in oklab, var(--rim-c) 55%, transparent);
}
/* Свет экрана у самой рамки: плотное голубое гало в космосе, 40–90 px за корпусом (большое пятно .screen-light у рамки почти
   не читалось: при «Подключено» у рамки прибавлялось ~13 уровней синего). --halo пишет site.js по экрану: тёмный кабинет 0,3,
   подключено 0,55, синее приложение 1; вспыхивает вместе с дугами на «Подключено». Гаснет первым, когда телефон уходит (--exit) */
.ph-halo {
  position: absolute; left: 0; top: 0; width: 418px; height: 872px; border-radius: 70px; pointer-events: none;
  box-shadow: 0 0 40px 12px rgba(56, 132, 255, 0.55), 0 0 120px 36px rgba(40, 110, 240, 0.22);
  opacity: calc(var(--halo, 0) * (1 - var(--exit, 0))); transition: opacity 900ms var(--c-ease-smooth);
}
.ph-key { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #202328, #555a63 60%, #2a2d33); }
.ph-key-1 { left: -3px; top: 150px; height: 34px; }
.ph-key-2 { left: -3px; top: 204px; height: 62px; }
.ph-key-3 { left: -3px; top: 280px; height: 62px; }
.ph-key-4 { right: -3px; top: 230px; height: 96px; }
.ph-bezel { position: relative; width: 100%; height: 100%; padding: 10px; border-radius: 66px; background: #050505; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.ph-screen {
  position: relative; isolation: isolate; overflow: hidden;
  width: 390px; height: 844px; border-radius: 56px;
  background: var(--c-bg); color: var(--c-text);
  font-family: var(--f-ui); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-align: start;
}
/* Блик стекла — поверх всего, еле заметный; когда солнце рядом, по стеклу со стороны солнца проходит тёплый отсвет
   (site.js пишет --sun-a/--sun-vis/--sun-warm и сюда) */
.ph-glass {
  position: absolute; inset: 0; z-index: 60; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.02) 26%, rgba(255, 255, 255, 0) 40%);
}
.ph-glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(var(--sun-a, 90deg), rgb(255 255 255 / 0) 62%, color-mix(in oklab, rgb(255 196 140) calc(var(--sun-warm, 1) * 100%), rgb(235 243 255)) 150%);
  opacity: calc(var(--sun-vis, 0) * 0.28);
}
.ph-indicator { position: absolute; z-index: 58; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgba(255, 255, 255, 0.82); }
/* Уход телефона: экран гаснет первым (site.js пишет --exit 0 → 1 на первой трети ухода), потом телефон удаляется */
.ph-screen::after { content: ""; position: absolute; inset: 0; z-index: 59; border-radius: inherit; background: #000; opacity: calc(var(--exit, 0) * 0.9); pointer-events: none; }

/* Строка состояния */
.ph-bar {
  position: absolute; z-index: 55; left: 0; right: 0; top: 0; height: 50px;
  display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 40px;
  font-family: -apple-system, "Wix Madefor Text", system-ui, sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.ph-cam { position: absolute; left: 50%; top: 16px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #1c2a44 0 18%, #07090d 42%, #000 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04); }
.ph-sys { display: flex; align-items: center; gap: 6px; }
.ph-sys svg { height: 12px; width: auto; fill: #fff; }

/* ── Сцены: кабинет и приложение ── */
.c-scn { position: absolute; inset: 0; }
.c-home { padding: 0 16px; transition: transform 520ms var(--c-ease-sheet), opacity 420ms var(--c-ease-smooth), filter 420ms var(--c-ease-smooth); transform-origin: 50% 40%; }
.c-app { opacity: 0; visibility: hidden; transform: scale(0.9); transition: transform 560ms var(--c-ease-sheet), opacity 360ms var(--c-ease-smooth), visibility 0s linear 560ms; }
.phone[data-scene="app"] .c-home { transform: scale(1.06); opacity: 0; filter: blur(6px); }
.phone[data-scene="app"] .c-app { opacity: 1; visibility: visible; transform: none; transition: transform 620ms var(--c-ease-sheet), opacity 420ms var(--c-ease-smooth), visibility 0s; }

/* Верх кабинета: логотип и расходящиеся кольца — эхо волны */
.c-top { position: relative; height: 212px; display: grid; place-items: center; padding-top: 44px; }
.c-top::before { content: ""; position: absolute; left: 50%; top: 58%; width: 460px; height: 460px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(37, 102, 232, 0.28), rgba(27, 69, 214, 0.08) 55%, transparent 75%); pointer-events: none; }
.c-logo { position: relative; z-index: 1; width: 92px; height: 92px; filter: drop-shadow(0 8px 24px rgba(47, 124, 246, 0.45)); }
.c-ring { position: absolute; left: 50%; top: calc(50% + 22px); width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(140, 196, 255, 0.28); animation: c-ring 4.2s cubic-bezier(0.22, 1, 0.36, 1) infinite; opacity: 0; }
.c-ring.r2 { animation-delay: 1.4s; }
.c-ring.r3 { animation-delay: 2.8s; }
@keyframes c-ring { 0% { transform: scale(0.8); opacity: 0; } 12% { opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }

/* Карточка статуса */
.c-status {
  position: relative; padding: 18px 14px 14px; border-radius: 26px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(47, 124, 246, 0.09), transparent 60%), var(--c-raised);
  box-shadow: 0 0 0 1px var(--c-ring-strong), 0 18px 48px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.c-status-title { margin: 0 4px; font-family: var(--f-display); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; }
.c-status-title .st-tail { color: var(--c-mint); text-shadow: 0 0 22px rgba(74, 222, 155, 0.32); transition: color 760ms ease, text-shadow 760ms ease; }
.c-status-title .st-head { transition: color 680ms ease; }
.c-days { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 12px 4px 0; }
.c-days-num {
  font-family: var(--f-display); font-size: 60px; font-weight: 700; line-height: 0.95; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFFFFF 30%, #BFD8FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.c-days-label { font-family: var(--f-2); font-size: 15px; font-weight: 500; color: var(--c-text-2); white-space: nowrap; }
/* Трёхзначное число не помещается в строку — подпись уходит под число, «Продлить» остаётся справа (как в кабинете) */
.c-days.is-stacked .c-chip { order: 2; }
.c-days.is-stacked .c-days-label { order: 3; flex-basis: 100%; margin-top: 6px; }
.c-chip {
  margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px 0 9px; border-radius: 999px;
  background: var(--c-accent-soft); color: var(--c-blue-300); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.c-chip svg { width: 16px; height: 16px; stroke-width: 2.25 !important; }
.c-meter { height: 4px; margin: 14px 4px 0; border-radius: 2px; background: var(--c-control); overflow: hidden; }
.c-meter span { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--c-blue-600), var(--c-cyan)); transform-origin: 0 50%; transform: scaleX(var(--v, 0.8)); transition: transform 1200ms var(--c-ease-smooth); }
.c-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.c-tile { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 8px 10px 12px; border-radius: 12px; background: var(--c-control); transition: scale 150ms ease-out; }
.c-tile-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-blue-300); flex: none; }
.c-tile-ic svg { width: 20px; height: 20px; stroke-width: 2.1 !important; }
.c-tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.c-tile-label { font-family: var(--f-2); font-size: 13px; color: var(--c-text-3); }
.c-tile-value { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-chev { width: 18px; height: 18px; color: var(--c-text-3); flex: none; stroke-width: 2.3 !important; }

/* Кнопка с волной */
.c-wave-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 60px; margin-top: 16px; padding: 10px 18px 16px;
  border-radius: 20px; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  background: var(--c-grad);
  box-shadow: inset 0 0 0 1px rgba(155, 232, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px -10px rgba(47, 124, 246, 0.5);
  transition: scale 150ms ease-out, box-shadow 400ms ease;
}
.c-wave { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.c-wave svg { position: absolute; left: 0; bottom: 0; width: 200%; fill: currentColor; transition: height 700ms var(--c-ease-smooth); }
.c-wave .w1 { height: 30px; color: rgba(51, 207, 245, 0.42); animation: c-wave 5.2s linear infinite; }
.c-wave .w2 { height: 26px; color: rgba(155, 232, 255, 0.26); animation: c-wave 8.4s linear infinite reverse; }
@keyframes c-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.c-wave-label { position: relative; display: inline-flex; align-items: center; gap: 8px; text-shadow: 0 1px 3px rgba(8, 24, 80, 0.55); white-space: nowrap; }
.c-wave-label svg { width: 20px; height: 20px; fill: currentColor !important; stroke: none !important; }
/* Нажатие: кнопка чуть проседает, волна взлетает и заливает её */
.is-pressed { scale: 0.96; }
.c-wave-btn.is-surge .w1 { height: 130%; }
.c-wave-btn.is-surge .w2 { height: 118%; }
.c-ripple {
  position: absolute; z-index: -1; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(155, 232, 255, 0.55), rgba(155, 232, 255, 0));
  pointer-events: none; animation: c-ripple 700ms var(--c-ease-out) forwards;
}
@keyframes c-ripple { from { transform: scale(1); opacity: 1; } to { transform: scale(34); opacity: 0; } }
/* «Сюда нажать»: кольцо вокруг кнопки на шаге «Откройте бота» */
.c-wave-btn.is-hint { box-shadow: inset 0 0 0 1px rgba(155, 232, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px -10px rgba(47, 124, 246, 0.5), 0 0 0 0 rgba(51, 207, 245, 0.5); animation: c-hint 1.8s var(--c-ease-out) infinite; }
@keyframes c-hint {
  0% { box-shadow: inset 0 0 0 1px rgba(155, 232, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px -10px rgba(47, 124, 246, 0.5), 0 0 0 0 rgba(51, 207, 245, 0.55); }
  100% { box-shadow: inset 0 0 0 1px rgba(155, 232, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px -10px rgba(47, 124, 246, 0.5), 0 0 0 16px rgba(51, 207, 245, 0); }
}

/* Касание пальцем: светлый круг, который прижимается и отпускает */
.ph-tap {
  position: absolute; z-index: 57; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22) 70%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.5);
  pointer-events: none; animation: ph-tap 720ms var(--c-ease-out) forwards;
}
@keyframes ph-tap {
  0% { transform: scale(1.5); opacity: 0; }
  30% { transform: scale(0.82); opacity: 1; }
  60% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Баннер «Доступен обход глушилок» */
.c-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 24px; padding: 14px 12px 14px 14px; border-radius: 20px; background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-ring); }
.c-banner-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-blue-300); flex: none; }
.c-banner-ic svg { width: 22px; height: 22px; }
.c-banner-text { display: flex; flex-direction: column; gap: 2px; flex: 1; font-family: var(--f-2); font-size: 13px; line-height: 1.4; color: var(--c-text-2); }
.c-banner-text b { font-family: var(--f-ui); font-size: 15px; font-weight: 600; color: var(--c-text); }

/* Док */
.c-dock {
  position: absolute; left: 16px; right: 16px; bottom: 26px; height: 66px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px; border-radius: 26px;
  background: rgba(12, 17, 24, 0.86); box-shadow: 0 0 0 1px var(--c-ring-strong), 0 18px 44px rgba(0, 0, 0, 0.7);
}
.c-dock-lens { position: absolute; top: 8px; bottom: 8px; left: 8px; width: calc((100% - 16px) / 4); border-radius: 18px; background: linear-gradient(180deg, rgba(47, 124, 246, 0.26), rgba(27, 69, 214, 0.12)); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.2); }
.c-dock-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.01em; color: var(--c-text-2); }
.c-dock-item.on { color: var(--c-text); }
.c-dock-item.on svg { color: var(--c-blue-300); }
.c-dock-item svg { width: 24px; height: 24px; }

/* ── Листы ── */
.c-backdrop { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.62); opacity: 0; transition: opacity 420ms ease; pointer-events: none; }
.phone[data-sheet]:not([data-sheet=""]) .c-backdrop { opacity: 1; }
.phone[data-sheet]:not([data-sheet=""]) .c-home { transform: scale(0.94); }
.c-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; flex-direction: column;
  border-radius: 28px 28px 0 0; background: var(--c-raised);
  box-shadow: 0 0 0 1px var(--c-ring-strong), 0 -24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(105%); visibility: hidden;
  transition: transform 340ms var(--c-ease-sheet), visibility 0s linear 340ms;
}
.phone[data-sheet="connect"] #sh-connect,
.phone[data-sheet="devices"] #sh-devices,
.phone[data-sheet="renew"] #sh-renew { transform: none; visibility: visible; transition: transform 460ms var(--c-ease-sheet), visibility 0s; }
.c-grabber { flex: none; width: 38px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.c-sheet-head { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px 6px 20px; }
.c-sheet-head-text { flex: 1; min-width: 0; }
.c-sheet-title { font-family: var(--f-display); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.c-sheet-sub { margin-top: 3px; font-family: var(--f-2); font-size: 13px; color: var(--c-text-2); }
.c-close, .c-back { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--c-control); color: var(--c-text-2); }
.c-close svg, .c-back svg { width: 20px; height: 20px; stroke-width: 2 !important; }
.c-sheet-body { padding: 10px 20px 40px; }

/* Страницы внутри листа: уходящая гаснет и уезжает влево, новая выезжает справа */
.c-panes { position: relative; display: grid; }
.c-pane { grid-area: 1 / 1; transition: transform 460ms var(--c-ease-sheet), opacity 260ms ease 100ms, visibility 0s; }
.c-pane.is-off { opacity: 0; visibility: hidden; transform: translateX(22%); transition: transform 460ms var(--c-ease-sheet), opacity 160ms ease, visibility 0s linear 460ms; }
.c-pane.is-off.is-left { transform: translateX(-22%); }

/* Выбор устройства */
.c-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.c-platform {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 112px; padding: 12px 10px; border-radius: 20px; background: var(--c-control);
  font-size: 14px; font-weight: 600; text-align: center;
  transition: background-color 300ms ease, box-shadow 300ms ease, scale 150ms ease-out;
}
.c-platform .p-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); color: var(--c-text-2); transition: background 300ms ease, color 300ms ease; }
.c-platform .p-ic svg { width: 28px; height: 28px; stroke-width: 1.55 !important; }
.c-platform .p-hint { font-family: var(--f-2); font-size: 11px; font-weight: 600; color: var(--c-blue-300); min-height: 14px; margin-top: -4px; }
.c-platform .p-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-blue-500); color: #fff; opacity: 0; scale: 0.25; filter: blur(4px); transition: opacity 300ms var(--c-ease-out), scale 300ms var(--c-ease-out), filter 300ms var(--c-ease-out); }
.c-platform .p-check svg { width: 14px; height: 14px; stroke-width: 3 !important; }
.c-platform.on { background: linear-gradient(160deg, rgba(47, 124, 246, 0.26), rgba(27, 69, 214, 0.1)), var(--c-control); box-shadow: 0 0 0 1.5px rgba(140, 196, 255, 0.55), 0 12px 30px -14px rgba(47, 124, 246, 0.5); }
.c-platform.on .p-ic { background: var(--c-grad); color: #fff; }
.c-platform.on .p-check { opacity: 1; scale: 1; filter: blur(0); }
.c-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; margin-top: 16px; border-radius: 16px; font-size: 16px; font-weight: 600; transition: scale 150ms ease-out; }
.c-btn-primary { background: var(--c-grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px -12px rgba(47, 124, 246, 0.5); }
.c-btn-secondary { min-height: 46px; margin-top: 10px; background: var(--c-control); color: var(--c-text); font-size: 14px; }
.c-btn svg { width: 20px; height: 20px; stroke-width: 2 !important; }

/* Настройка: платформа, приложение, шаги */
.c-setup { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.c-setup-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--c-accent-soft); color: var(--c-blue-300); box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.24); }
.c-setup-ic svg { width: 28px; height: 28px; stroke-width: 1.55 !important; }
.c-setup-name { font-size: 15px; font-weight: 600; }
.c-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--c-control); }
.c-seg-thumb { position: absolute; top: 4px; left: 4px; width: calc(50% - 6px); height: calc(100% - 8px); border-radius: 12px; background: rgba(47, 124, 246, 0.28); box-shadow: inset 0 0 0 1.5px rgba(140, 196, 255, 0.6); transition: transform 620ms var(--c-spring); }
.c-seg[data-i="1"] .c-seg-thumb { transform: translateX(calc(100% + 4px)); }
.c-seg-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--c-text-2); transition: color 200ms ease; }
.c-seg[data-i="0"] .c-seg-btn:nth-of-type(1), .c-seg[data-i="1"] .c-seg-btn:nth-of-type(2) { color: var(--c-text); }
.c-seg-btn svg { width: 18px; height: 18px; }
.c-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.c-step { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.c-step:last-child { padding-bottom: 0; }
.c-step:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; border-radius: 1px; background: linear-gradient(180deg, rgba(140, 196, 255, 0.35), rgba(140, 196, 255, 0.08)); }
.c-step-num { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--c-accent-soft); color: var(--c-blue-300); font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(140, 196, 255, 0.24); transition: background-color 300ms ease, color 300ms ease; }
.c-step-num b, .c-step-num svg { grid-area: 1 / 1; transition: opacity 260ms var(--c-ease-out), scale 300ms var(--c-ease-out), filter 260ms var(--c-ease-out); }
.c-step-num svg { width: 18px; height: 18px; stroke-width: 2.6 !important; opacity: 0; scale: 0.25; filter: blur(4px); }
.c-step.done .c-step-num { background: rgba(74, 222, 155, 0.14); color: var(--c-mint); box-shadow: inset 0 0 0 1px rgba(74, 222, 155, 0.3); }
.c-step.done .c-step-num b { opacity: 0; scale: 0.25; filter: blur(4px); }
.c-step.done .c-step-num svg { opacity: 1; scale: 1; filter: blur(0); }
.c-step-body { flex: 1; min-width: 0; padding-top: 4px; }
.c-step-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.c-step-sub { margin-top: 2px; font-family: var(--f-2); font-size: 13px; color: var(--c-text-3); }
.c-step .c-wave-btn { min-height: 56px; margin-top: 12px; }

/* ── Приложение (тема Freedom VPN «Тёмная» для Happ, цвета — из кабинета) ── */
.c-app { overflow: hidden; background: linear-gradient(28deg, #04070F 0%, #0A1A72 42%, #1230C8 78%, #53A7EB 100%); font-family: var(--f-display); text-align: center; }
.hp-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(60px); opacity: 0.8; }
.hp-glow.e1 { left: -30px; top: 90px; background: rgba(105, 220, 247, 0.36); }
.hp-glow.e2 { left: 150px; top: 40px; background: rgba(41, 95, 226, 0.29); }
.hp-glow.e3 { left: 60px; top: 250px; background: rgba(226, 118, 50, 0.22); }
.hp-top { position: absolute; top: 62px; right: 22px; display: flex; gap: 12px; }
.hp-top i { width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 2px rgba(247, 251, 255, 0.85); }
.hp-top i:first-child { border-radius: 50%; }
.hp-core { position: absolute; left: 0; right: 0; top: 150px; display: flex; flex-direction: column; align-items: center; transition: transform 620ms var(--c-ease-sheet); }
.hp-power {
  position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%;
  background: rgba(10, 18, 34, 0.95); color: rgba(105, 220, 247, 0.55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  transition: color 500ms ease, box-shadow 700ms ease, scale 150ms ease-out;
}
.hp-power svg { width: 62px; height: 62px; stroke-width: 2.4 !important; }
.hp-power::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(105, 220, 247, 0.0); transition: box-shadow 700ms ease; }
.c-app.is-on .hp-power { color: #69DCF7; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(105, 220, 247, 0.4), 0 0 60px rgba(105, 220, 247, 0.35); }
.c-app.is-on .hp-power::after { box-shadow: 0 0 0 2px rgba(105, 220, 247, 0.35); animation: hp-pulse 2.6s var(--c-ease-out) infinite; }
@keyframes hp-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.hp-state { margin-top: 22px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: #F5FBFF; }
.hp-timer { margin-top: 4px; font-family: var(--f-2); font-size: 16px; color: #CFEFFF; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.hp-list {
  position: absolute; left: 14px; right: 14px; bottom: 40px; overflow: hidden; border-radius: 22px;
  background: rgba(14, 27, 49, 0.9); text-align: start;
  box-shadow: 0 0 0 1px rgba(170, 200, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.35);
  transition: transform 620ms var(--c-ease-sheet);
}
.hp-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px 10px; }
.hp-head b { font-size: 15px; font-weight: 600; color: #F7FBFF; }
.hp-head small { font-family: var(--f-2); font-size: 12px; color: #A9C7EF; }
.hp-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: rgba(13, 22, 39, 0.9); border-top: 1px solid rgba(170, 200, 255, 0.06); transition: background-color 200ms ease; }
.hp-row.sel { background: rgba(22, 58, 116, 0.94); }
.hp-row .flag { width: 26px; height: 18px; border-radius: 4px; flex: none; outline: 1px solid rgba(255, 255, 255, 0.12); outline-offset: -1px; overflow: hidden; }
.hp-auto-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(105, 220, 247, 0.16); color: #69DCF7; flex: none; margin: -4px 0; }
.hp-auto-ic svg { width: 18px; height: 18px; stroke-width: 2 !important; }
.hp-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hp-row-t b { font-size: 14px; font-weight: 600; color: #F7FBFF; }
.hp-row-t small { font-family: var(--f-2); font-size: 12px; color: #A9C7EF; transition: opacity 240ms ease; }
.hp-row-t small.swap { opacity: 0; }
/* Сила сигнала — без чисел: четыре столбика */
.hp-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.hp-bars i { width: 4px; border-radius: 1.5px; background: rgba(169, 199, 239, 0.25); transition: background-color 400ms ease; }
.hp-bars i:nth-child(1) { height: 5px; } .hp-bars i:nth-child(2) { height: 8px; } .hp-bars i:nth-child(3) { height: 12px; } .hp-bars i:nth-child(4) { height: 16px; }
.hp-row[data-q="2"] .hp-bars i:nth-child(-n+2), .hp-row[data-q="3"] .hp-bars i:nth-child(-n+3), .hp-row[data-q="4"] .hp-bars i { background: #69DCF7; }
.hp-pick { width: 8px; height: 8px; border-radius: 50%; background: #69DCF7; box-shadow: 0 0 10px #69DCF7; opacity: 0; scale: 0.25; transition: opacity 300ms var(--c-ease-out), scale 500ms var(--c-spring); flex: none; }
.hp-row.is-pick .hp-pick { opacity: 1; scale: 1; }
/* Проверка серверов: полоса встаёт на строку сервера, держится ~0,4 с и переходит к следующей (шаги задаёт site.js; в тот же
   миг на Земле светится дуга этого сервера) */
.hp-scan { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 56px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(105, 220, 247, 0), rgba(105, 220, 247, 0.16) 50%, rgba(105, 220, 247, 0));
  transition: transform 190ms cubic-bezier(0.3, 0, 0.2, 1), opacity 220ms ease; }
.hp-scan.on { opacity: 1; }
.hp-minute { position: relative; width: 24px; height: 24px; flex: none; }
.hp-minute svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.hp-minute circle { fill: none; stroke-width: 2.5; }
.hp-minute .t { stroke: rgba(169, 199, 239, 0.2); }
.hp-minute .v { stroke: #69DCF7; stroke-linecap: round; stroke-dasharray: 57; stroke-dashoffset: 57; }
.c-app.is-auto .hp-minute .v { animation: hp-minute 4s linear infinite; }
@keyframes hp-minute { to { stroke-dashoffset: 0; } }
/* В главе про «Авто» список поднимается, кнопка отъезжает вверх */
.c-app.is-list .hp-core { transform: translateY(-58px) scale(0.78); }
.c-app.is-list .hp-list { transform: translateY(-14px); }

/* ── Устройства ── */
.c-item { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 12px; border-radius: 20px; background: var(--c-control); }
.c-item + .c-item { margin-top: 8px; }
.c-item-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--c-text-2); flex: none; }
.c-item-ic svg { width: 24px; height: 24px; }
.c-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.c-item-name { font-size: 15px; font-weight: 600; }
.c-item-meta { font-family: var(--f-2); font-size: 13px; color: var(--c-text-3); }
.c-item-meta .on { color: var(--c-mint); }
.c-item-new { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(8px) scale(0.98); transition: grid-template-rows 460ms var(--c-ease-sheet), opacity 300ms ease, transform 460ms var(--c-ease-sheet), margin 460ms var(--c-ease-sheet); margin-top: 0 !important; }
.c-item-new > .c-clip { min-height: 0; overflow: hidden; }
.c-item-new.in { grid-template-rows: 1fr; opacity: 1; transform: none; margin-top: 8px !important; }
.c-label { margin: 20px 0 8px; font-family: var(--f-2); font-size: 13px; font-weight: 500; color: var(--c-text-3); }
.c-stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border-radius: 20px; background: var(--c-control); }
.c-stepper-b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-control-2); color: var(--c-text); transition: scale 150ms ease-out, background-color 200ms ease; }
.c-stepper-b svg { width: 22px; height: 22px; stroke-width: 2.2 !important; }
.c-stepper-b.is-pressed { background: var(--c-blue-600); }
.c-stepper-v { display: flex; flex-direction: column; align-items: center; }
.c-stepper-v > span:first-child { font-family: var(--f-display); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.c-stepper-v small { font-family: var(--f-2); font-size: 12px; color: var(--c-text-3); }
.c-extra-note { margin-top: 10px; font-family: var(--f-2); font-size: 13px; color: var(--c-text-2); }
.c-extra-note b { color: var(--c-blue-300); font-weight: 600; }
.c-roll { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.c-roll > * { grid-area: 1 / 1; transition: transform 460ms var(--c-ease-sheet), opacity 300ms ease; }
.c-roll > .out { transform: translateY(-70%); opacity: 0; }
.c-roll > .pre { transform: translateY(70%); opacity: 0; }

/* ── Продление: сроки, способ оплаты, готово ── */
.c-durs { display: grid; gap: 12px; margin-top: 8px; }
.c-dur {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
  padding: 14px 16px 13px; border-radius: 18px; background: var(--c-control);
  box-shadow: 0 0 0 1px transparent; transition: box-shadow 300ms ease, background-color 300ms ease, scale 150ms ease-out;
}
.c-dur-name { font-size: 16px; font-weight: 600; }
.c-dur-meta { grid-column: 1; font-family: var(--f-2); font-size: 13px; color: var(--c-text-3); }
.c-dur-price { grid-column: 2; grid-row: 1; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.c-dur-old { grid-column: 2; grid-row: 2; font-family: var(--f-2); font-size: 13px; color: var(--c-text-3); text-decoration: line-through; text-align: end; white-space: nowrap; }
.c-dur-pop { position: absolute; top: -9px; left: 14px; padding: 2px 9px; border-radius: 999px; background: linear-gradient(90deg, #1B4FD0, #2361E0); color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(37, 102, 232, 0.8); }
.c-dur-badge { position: absolute; top: -9px; right: 14px; padding: 2px 8px; border-radius: 999px; background: #123A2B; color: var(--c-mint); box-shadow: inset 0 0 0 1px rgba(74, 222, 155, 0.35); font-size: 10px; font-weight: 700; }
.c-dur.popular { background: linear-gradient(180deg, rgba(47, 124, 246, 0.13), rgba(47, 124, 246, 0.03) 72%), var(--c-control); box-shadow: 0 0 0 1.5px rgba(76, 148, 255, 0.7), 0 14px 30px -18px rgba(47, 124, 246, 0.8); }
.c-dur.on { box-shadow: 0 0 0 2px #8CC4FF, 0 14px 30px -14px rgba(47, 124, 246, 0.9); }
.c-summary { padding: 16px; border-radius: 18px; background: var(--c-control); }
.c-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; }
.c-summary-price { font-family: var(--f-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-summary p { margin: 6px 0 0; font-family: var(--f-2); font-size: 13px; color: var(--c-text-2); }
.c-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 0 18px; }
.c-done-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(74, 222, 155, 0.12); color: var(--c-mint); box-shadow: inset 0 0 0 1.5px rgba(74, 222, 155, 0.35); }
.c-done-ic svg { width: 44px; height: 44px; stroke-width: 2.6 !important; }
.c-done-ic path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 600ms var(--c-ease-smooth) 200ms; }
.c-pane:not(.is-off) .c-done-ic path { stroke-dashoffset: 0; }
.c-done-title { margin-top: 16px; font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.c-done p { margin: 6px 0 0; font-family: var(--f-2); font-size: 14px; color: var(--c-text-2); }

/* ── Вход кабинета (как в настоящем: заголовок загорается, дни отсчитываются) ── */
.phone.is-pre .c-enter, .phone.is-pre .c-top { opacity: 0; transform: translateY(18px); }
.phone.is-wake .c-top { animation: c-enter 900ms var(--c-ease-smooth) both; }
.phone.is-wake .c-enter { animation: c-enter 900ms var(--c-ease-smooth) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
@keyframes c-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.phone.is-pre .c-status-title .st-head, .phone.is-pre .c-status-title .st-tail { color: var(--c-text); text-shadow: none; }
.phone.is-lit .c-status-title .st-head { color: var(--c-mint); }
.phone.is-pre .c-meter span { transform: scaleX(0); }

/* ── Уменьшенное движение: ни волн, ни колец, ни пульса ── */
@media (prefers-reduced-motion: reduce) {
  .c-wave svg, .c-ring, .c-wave-btn.is-hint, .c-app.is-on .hp-power::after, .c-app.is-auto .hp-minute .v { animation: none !important; }
  .c-ring { opacity: 0.5; transform: scale(1.6); }
  .ph-tap, .c-ripple { display: none; }
  .hp-scan { transition: none; }
  .c-home, .c-app, .c-sheet, .c-pane, .c-pane.is-off, .hp-core, .hp-list, .c-item-new, .c-meter span { transition-duration: 200ms !important; transition-property: opacity, visibility !important; }
  .phone[data-scene="app"] .c-home { filter: none; }
  .c-sheet { transform: none; opacity: 0; }
  .phone[data-sheet="connect"] #sh-connect, .phone[data-sheet="devices"] #sh-devices, .phone[data-sheet="renew"] #sh-renew { opacity: 1; }
  .c-pane.is-off, .c-pane.is-off.is-left { transform: none; }
}
