/* ============================================================
   Clove VPN — общие стили лендинга и админки
   Системные шрифты, без внешних ресурсов.
   ============================================================ */

:root {
  --bg: #0d0d14;
  --bg-elev: #12121b;
  --card: #161622;
  --card-2: #1a1a28;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f3ff;
  --muted: #a7a1bc;
  --muted-2: #8b85a0;
  --violet: #8b5cf6;
  --violet-light: #c4b5fd;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #8b5cf6 0%, #b06bf6 48%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.14));
  --success: #34d399;
  --danger: #fb7185;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Фон ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 720px at 12% -12%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(900px 620px at 96% 2%, rgba(236, 72, 153, 0.16), transparent 58%),
    radial-gradient(900px 700px at 50% 108%, rgba(139, 92, 246, 0.1), transparent 62%),
    var(--bg);
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 62% at 50% 0%, #000 0%, transparent 76%);
}

.backdrop::after {
  content: "";
  position: absolute;
  top: -440px;
  left: 50%;
  width: 780px;
  height: 780px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 66%);
  filter: blur(30px);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

section[id] {
  scroll-margin-top: 92px;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Контейнер ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 26px;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled],
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
}

.btn-primary {
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--grad);
  color: #fff;
  box-shadow:
    0 14px 34px -14px rgba(236, 72, 153, 0.7),
    0 8px 22px -12px rgba(139, 92, 246, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.3) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}

.btn-primary:hover::after {
  transform: translateX(130%);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 18px 44px -14px rgba(236, 72, 153, 0.78),
    0 10px 28px -12px rgba(139, 92, 246, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #e8e4f5;
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.075);
}

.btn-lg {
  padding: 16px 25px;
  border-radius: 16px;
  font-size: 16px;
}

.btn-sm {
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  border-color: rgba(251, 113, 133, 0.28);
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
}

.btn-danger:hover {
  border-color: rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.16);
}

.btn-loading {
  pointer-events: none;
}

.spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(13, 13, 20, 0.62);
  backdrop-filter: blur(18px);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(13, 13, 20, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  filter: drop-shadow(0 5px 16px rgba(236, 72, 153, 0.38));
}

.brand .brand-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c4b5fd;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 54px;
  align-items: center;
  padding: 74px 0 94px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #cbc5dd;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.13);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero h1 {
  max-width: 680px;
  margin: 22px 0 22px;
  font-size: clamp(43px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet-light);
}

.lead {
  max-width: 540px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-facts .icon {
  width: 16px;
  height: 16px;
  color: #c4b5fd;
}

/* ---------- Телефон в hero ---------- */

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 580px;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(540px, 100%);
  height: min(540px, 100%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(139, 92, 246, 0.4), transparent 52%),
    radial-gradient(circle at 68% 68%, rgba(236, 72, 153, 0.28), transparent 55%);
  filter: blur(38px);
}

.phone {
  position: relative;
  width: 296px;
  max-width: 82%;
  aspect-ratio: 300 / 612;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 43px;
  background: linear-gradient(155deg, #302d43, #111019 40%, #201d30);
  box-shadow:
    0 60px 110px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: rotate(-2.5deg);
}

.phone::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.65), transparent 38%, rgba(236, 72, 153, 0.55));
  filter: blur(24px);
  opacity: 0.48;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 35px;
  background:
    radial-gradient(135% 65% at 50% 0%, #27223f 0%, #15131f 52%, #0d0c14 100%);
}

.phone-notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 82px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 13px 13px;
  background: #09080e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 8px 0;
  color: #cfc9e0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-icons i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cfc9e0;
  opacity: 0.85;
}

.status-icons i:nth-child(2) {
  opacity: 0.65;
}

.status-icons i:nth-child(3) {
  opacity: 0.45;
}

.status-battery {
  width: 16px;
  height: 8px;
  border: 1px solid rgba(207, 201, 224, 0.7);
  border-radius: 2px;
  position: relative;
}

.status-battery::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 9px;
  height: 4px;
  border-radius: 1px;
  background: #cfc9e0;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 25px;
  padding: 0 4px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.app-logo {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.app-top .app-tag {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.13);
  color: #d8ccff;
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.app-status {
  margin: 22px auto 15px;
  text-align: center;
}

.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(236, 72, 153, 0.38), rgba(139, 92, 246, 0.16) 48%, transparent 72%);
}

.orb::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: linear-gradient(155deg, #9c6bff 0%, #8b5cf6 48%, #ec4899 100%);
  box-shadow:
    0 20px 50px -14px rgba(236, 72, 153, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.orb::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(196, 181, 253, 0.15);
  border-radius: 50%;
  animation: breathe 4s ease-in-out infinite;
}

.orb .icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.app-status strong {
  display: block;
  margin-top: 20px;
  font-size: 16.5px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.app-status > span {
  display: block;
  margin-top: 2px;
  color: #9891ad;
  font-size: 10.5px;
}

.node-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d8d2e8;
  font-size: 10px;
  font-weight: 600;
}

.node-pill .status-dot {
  width: 5px;
  height: 5px;
}

.phone-card {
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  font-size: 10px;
  color: #9891ad;
}

.phone-row + .phone-row {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.phone-row b {
  color: #e7e2f4;
  font-size: 10.5px;
  font-weight: 650;
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(23, 22, 34, 0.9);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  font-size: 12px;
  line-height: 1.35;
}

.float-card b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}

.float-card small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.float-card .flag {
  font-size: 21px;
  line-height: 1;
}

.float-card .icon {
  width: 20px;
  height: 20px;
  color: #c4b5fd;
}

.float-card--ping {
  top: 16%;
  right: -2%;
  animation: float 6s ease-in-out infinite;
}

.float-card--secure {
  bottom: 17%;
  left: -7%;
  animation: float 7.4s ease-in-out infinite reverse;
}

/* ---------- Секции ---------- */

.section {
  position: relative;
  padding: 86px 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 38px;
}

.section-head--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.15), #c4b5fd);
}

.section-head h2 {
  margin: 0 0 13px;
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---------- Табы «Как подключиться» ---------- */

.how-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 15px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.tab .icon {
  width: 17px;
  height: 17px;
}

.tab:hover:not([aria-selected="true"]) {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tab[aria-selected="true"] {
  background: var(--grad-soft);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(196, 181, 253, 0.25),
    0 10px 24px -18px rgba(139, 92, 246, 0.9);
}

.tab-panel {
  padding: 26px 22px 22px;
  animation: fadeUp 0.32s ease both;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.step {
  position: relative;
  padding: 20px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.027);
}

.step-num {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 13px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 9px;
  background: var(--grad-soft);
  color: #ddd6fe;
  font-size: 12.5px;
  font-weight: 750;
}

.step h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.step-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.step-client {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #c9c2dd;
  font-family: var(--mono);
  font-size: 10.5px;
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 19px;
  border-top: 1px dashed var(--line);
}

.quick-label {
  margin-right: 3px;
  color: var(--muted-2);
  font-size: 12px;
}

.quick-row .btn {
  gap: 7px;
}

.client-letter {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Подписка ---------- */

.subscribe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: stretch;
}

.sub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.18), transparent 46%),
    radial-gradient(120% 120% at 100% 100%, rgba(236, 72, 153, 0.13), transparent 52%),
    rgba(255, 255, 255, 0.024);
}

.sub-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 22%;
  left: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.65), transparent);
}

.sub-card h2 {
  margin: 0 0 7px;
  font-size: clamp(25px, 2.8vw, 33px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.sub-card > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sub-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
}

.sub-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #d9d3e9;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

.sub-url .token {
  color: #f0abfc;
}

.copy-btn {
  flex: 0 0 auto;
}

.client-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.client-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ded9ee;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.client-link:hover {
  border-color: rgba(196, 181, 253, 0.4);
  background: rgba(139, 92, 246, 0.15);
  color: #fff;
}

.client-badge {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.85));
  color: #fff;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.sub-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.sub-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  flex: 0 0 auto;
  color: #9d8fc4;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 20px 22px;
  border-radius: 27px;
  background: #fff;
  color: #17141f;
  text-align: center;
  box-shadow:
    0 34px 80px -34px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.qr-card-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qr-label {
  color: #8b5cf6;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.qr-card h3 {
  margin: 0;
  color: #17141f;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.qr-canvas-wrap {
  width: 100%;
  max-width: 228px;
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid #ece7f8;
  border-radius: 16px;
  background: #fff;
}

.qr-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
}

.qr-caption {
  max-width: 220px;
  margin: 0;
  color: #4c465f;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

.qr-hint {
  margin: 0;
  color: #7b7488;
  font-size: 10px;
}

.qr-card.is-highlighted {
  animation: qrHighlight 1.6s ease;
}

@keyframes qrHighlight {
  0%,
  100% {
    box-shadow:
      0 34px 80px -34px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  30% {
    box-shadow:
      0 0 0 4px rgba(236, 72, 153, 0.55),
      0 0 55px rgba(139, 92, 246, 0.55),
      0 34px 80px -34px rgba(0, 0, 0, 0.95);
  }
}

/* ---------- Ноды ---------- */

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.node-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.node-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 181, 253, 0.28);
  box-shadow: 0 26px 60px -32px rgba(0, 0, 0, 0.9);
}

.node-card--primary {
  border-color: rgba(139, 92, 246, 0.34);
  background:
    radial-gradient(110% 120% at 0% 0%, rgba(139, 92, 246, 0.17), transparent 55%),
    radial-gradient(110% 120% at 100% 100%, rgba(236, 72, 153, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.022);
}

.node-card--primary::before {
  content: "";
  position: absolute;
  top: 0;
  right: 20%;
  left: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
}

.node-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.node-head {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.node-flag {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 26px;
  line-height: 1;
}

.node-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.node-country {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  white-space: nowrap;
}

.badge--primary {
  border-color: rgba(139, 92, 246, 0.38);
  background: rgba(139, 92, 246, 0.15);
  color: #ddd6fe;
}

.badge--reserve {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: #cbc5dc;
}

.badge .status-dot {
  width: 5px;
  height: 5px;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 17px 0 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: #b9b2cc;
  font-size: 10.5px;
  font-weight: 550;
}

.tag .icon {
  width: 12px;
  height: 12px;
  color: #c4b5fd;
}

.node-desc {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.node-metrics {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.metric {
  min-width: 0;
}

.metric-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-value {
  display: block;
  color: #e9e4f5;
  font-size: 13px;
  font-weight: 650;
}

.metric--load {
  flex: 1;
  max-width: 150px;
}

.load-bar {
  width: 100%;
  height: 5px;
  margin: 7px 0 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.load-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.metric--status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--success);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

/* ---------- Футер ---------- */

.site-footer {
  margin-top: 34px;
  padding: 36px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand p {
  max-width: 360px;
  margin: 10px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.footer-meta {
  text-align: right;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  color: #b7b0ca;
  font-size: 12.5px;
  font-weight: 600;
}

.footer-note {
  margin: 2px 0 0;
  color: #7b758f;
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 12px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #1c1a29;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.95);
  color: #f1edfa;
  font-size: 13.5px;
  font-weight: 550;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--success);
}

.toast--error {
  border-color: rgba(251, 113, 133, 0.36);
}

.toast--error .icon {
  color: var(--danger);
}

/* ---------- Поля формы (общие) ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  color: #cfc9e0;
  font-size: 12.5px;
  font-weight: 600;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input::placeholder {
  color: #6f6983;
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.input:focus {
  border-color: rgba(139, 92, 246, 0.65);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.form-error {
  margin: 0;
  color: #fda4af;
  font-size: 12.5px;
  line-height: 1.45;
}

.form-error:empty {
  display: none;
}

.form-hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.45;
}

/* ---------- Анимации ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.025);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.25;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .hero {
    gap: 34px;
    padding-top: 62px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .phone {
    width: 276px;
  }

  .float-card--ping {
    right: 0;
  }

  .float-card--secure {
    left: 0;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 54px 0 70px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-glow {
    width: min(480px, 100%);
    height: min(480px, 100%);
  }

  .float-card {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .subscribe-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .qr-card {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .nodes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-meta {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .nav {
    height: 66px;
  }

  .brand {
    font-size: 17.5px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .tab-panel {
    padding: 18px 12px 16px;
  }

  .how-card {
    padding: 7px;
  }

  .tabs {
    padding: 5px;
  }

  .tab {
    flex: 1 1 calc(50% - 5px);
    padding: 10px 13px;
    font-size: 12.5px;
  }

  .tabs {
    flex-wrap: wrap;
    overflow: visible;
  }

  .sub-card {
    padding: 24px 20px;
  }

  .sub-url-box {
    flex-wrap: wrap;
    padding: 12px;
  }

  .sub-url {
    flex-basis: 100%;
    white-space: normal;
    word-break: break-all;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .node-card {
    padding: 21px 18px;
  }

  .node-metrics {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .metric--status {
    margin-left: 0;
  }

  .float-card {
    transform: scale(0.92);
  }

  .float-card--ping {
    top: 10%;
    right: 0;
  }

  .float-card--secure {
    bottom: 10%;
    left: 0;
  }

  .phone {
    width: 262px;
  }

  .section-head {
    margin-bottom: 28px;
  }
}

@media (max-width: 600px) {
  .float-card {
    display: none;
  }
}

@media (max-width: 460px) {
  .eyebrow {
    font-size: 11.5px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone {
    width: 246px;
  }

  .float-card {
    padding: 9px 11px;
  }

  .float-card--ping {
    right: -8px;
  }

  .float-card--secure {
    left: -8px;
  }

  .node-flag {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .node-head h3 {
    font-size: 18px;
  }

  .badge {
    padding: 3px 7px;
    font-size: 9.5px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }

  .nav {
    gap: 12px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .nav .btn-sm {
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
