@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/inter-700.woff2") format("woff2");
}

:root {
  --bg: #020308;
  --bg-elevated: #070a12;
  --surface: #0c1019;
  --surface-2: #121824;
  --surface-hover: #181f2e;
  --border: rgba(148, 163, 184, 0.08);
  --border-strong: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(99, 130, 255, 0.22);
  --text: #e8edf5;
  --text-muted: #7d8da8;
  --text-dim: #4d5c72;
  --accent: #5b7aff;
  --accent-2: #7c6ce0;
  --accent-hover: #7d94ff;
  --accent-glow: rgba(91, 122, 255, 0.22);
  --accent-soft: rgba(91, 122, 255, 0.08);
  --success: #2dd4a8;
  --success-glow: rgba(45, 212, 168, 0.45);
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Фон: сетка + свечение */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 15% -5%, rgba(91, 122, 255, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 45% at 95% 10%, rgba(124, 108, 224, 0.05), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(45, 212, 168, 0.03), transparent 45%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

a { color: var(--accent); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--accent-hover); }

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(2, 3, 8, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.025em;
  z-index: 201;
}
.logo:hover { color: var(--text); }

.logo-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px var(--accent-glow);
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a:not(.btn) {
  color: var(--text-muted);
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s, background 0.18s;
}
.nav a:not(.btn):hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.5rem; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    background: rgba(4, 6, 12, 0.97);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a:not(.btn) {
    font-size: 1.15rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-actions {
    flex-direction: column;
    margin: 1.5rem 0 0;
    gap: 0.75rem;
  }
  .nav-actions .btn { width: 100%; padding: 0.85rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.925rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4a62d8 55%, var(--accent-2) 100%);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 2px 16px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  color: #fff;
  background-position: 100% 0;
  box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border-color: rgba(148,163,184,0.35);
}

.btn-sm { padding: 0.48rem 1rem; font-size: 0.85rem; border-radius: 9px; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ── Typography ── */
.gradient-text {
  background: linear-gradient(135deg, #fff 20%, var(--accent-hover) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}

.page-header {
  margin-bottom: 2rem;
}
.page-header .page-title { margin-bottom: 0.35rem; }
.page-header p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 130, 255, 0.28);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s var(--ease) both;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success-glow);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  font-weight: 800;
  animation: fadeUp 0.6s var(--ease) 0.08s both;
}

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeUp 0.6s var(--ease) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.6s var(--ease) 0.24s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.6s var(--ease) 0.32s both;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.trust-item strong { color: var(--text-muted); font-weight: 600; }

/* VPN Panel (hero visual) */
.hero-visual {
  position: relative;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  opacity: 0.35;
  filter: blur(40px);
  z-index: -1;
}

.vpn-panel {
  background: linear-gradient(165deg, rgba(21,28,44,0.95), rgba(15,21,34,0.98));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.vpn-panel-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}
.vpn-panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4558;
}
.vpn-panel-dot:nth-child(1) { background: #ff5f57; }
.vpn-panel-dot:nth-child(2) { background: #febc2e; }
.vpn-panel-dot:nth-child(3) { background: #28c840; }
.vpn-panel-title {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}

.vpn-panel-body { padding: 1.5rem 1.5rem 1.75rem; }

.vpn-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.vpn-status-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.25rem; }
.vpn-status-value {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vpn-status-value.connected { color: var(--success); }

.vpn-toggle {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 20px var(--success-glow), inset 0 2px 4px rgba(0,0,0,0.15);
  position: relative;
}
.vpn-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.vpn-servers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.vpn-server {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  transition: border-color 0.2s, background 0.2s;
}
.vpn-server.active {
  border-color: var(--border-glow);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(99,130,255,0.15);
}
.vpn-server-flag { font-size: 1.25rem; margin-bottom: 0.25rem; }
.vpn-server-name { font-size: 0.8rem; font-weight: 600; }
.vpn-server-lat { font-size: 0.72rem; color: var(--text-dim); font-family: var(--mono); margin-top: 0.15rem; }

.vpn-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.vpn-metric {
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border);
  text-align: center;
}
.vpn-metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent-hover);
}
.vpn-metric-lbl { font-size: 0.68rem; color: var(--text-dim); margin-top: 0.15rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Sections ── */
section { padding: clamp(3rem, 7vw, 4.5rem) 0; }

.section-head { margin-bottom: 2.5rem; }
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
}
.section-sub {
  color: var(--text-muted);
  margin: 0;
  max-width: 540px;
  font-size: 1.02rem;
}
.section-sub.center { margin-left: auto; margin-right: auto; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(99,130,255,0.2);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  border-left: 2px solid var(--border-strong);
  margin-left: 0.5rem;
}
.step-card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -0.65rem;
  top: 1.35rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.step-card h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* CTA block */
.cta-block {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(145deg, rgba(99,130,255,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,130,255,0.25);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(99,130,255,0.15), transparent 60%);
  pointer-events: none;
}
.cta-block .section-title { position: relative; }
.cta-block .section-sub { position: relative; margin: 0 auto 1.75rem; }
.cta-block .btn { position: relative; }

/* ── Page layout ── */
.page-main {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
  flex: 1;
}

/* ── Cards ── */
.card {
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}
.card-narrow { max-width: 440px; margin: 0 auto; }
.card-wide { max-width: 760px; margin: 0 auto; }

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.card-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(91,122,255,0.15);
  flex-shrink: 0;
}
.card-header-icon .ico { width: 20px; height: 20px; }
.card-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card-header p { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--text-dim); }

/* Auth layout */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

.auth-side {
  padding: 2rem;
}
.auth-side h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.auth-side ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.auth-side li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  color: var(--text-muted);
  font-size: 0.925rem;
  border-bottom: 1px solid var(--border);
}
.auth-side li:last-child { border-bottom: none; }
.auth-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(45,212,168,0.15);
  color: var(--success);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Forms */
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-control:hover { border-color: rgba(148,163,184,0.35); }
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 0 0 3px rgba(99,130,255,0.2);
}
select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b9cb8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Server pills */
.server-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}
.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.2);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.server-pill:hover { color: var(--text); border-color: rgba(148,163,184,0.4); }
.server-pill.active {
  color: var(--text);
  border-color: var(--border-glow);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(99,130,255,0.2);
}

/* Alerts */
.alert {
  padding: 0.9rem 1.1rem;
  border-radius: 11px;
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}
.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #fca5a5;
}
.alert-success {
  background: rgba(45, 212, 168, 0.1);
  border: 1px solid rgba(45, 212, 168, 0.28);
  color: #6ee7b7;
}
.alert-info {
  background: var(--accent-soft);
  border: 1px solid rgba(99, 130, 255, 0.28);
  color: #a5b4fc;
}

/* Tariffs */
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.15rem;
}
.tariff-card {
  position: relative;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.tariff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.tariff-card.featured {
  border-color: rgba(99, 130, 255, 0.45);
  background: linear-gradient(165deg, rgba(99,130,255,0.1), var(--surface));
  box-shadow: 0 0 40px rgba(99,130,255,0.12);
}
.tariff-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tariff-name { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); min-height: 2.6em; }
.tariff-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tariff-price span { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.tariff-per { font-size: 0.8rem; color: var(--text-dim); margin-top: -0.25rem; }
.tariff-card .btn { margin-top: auto; padding-top: 0.85rem; }

/* Dashboard */
.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.35rem;
  align-items: start;
}
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.peer-card {
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.peer-card:last-child { margin-bottom: 0; }
.peer-card:hover { border-color: var(--border-strong); }

.peer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.peer-server {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
}
.peer-flag {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-hover);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  border: 1px solid var(--border);
}

.peer-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.peer-badge.active {
  background: rgba(45,212,168,0.12);
  color: var(--success);
  border: 1px solid rgba(45,212,168,0.3);
}
.peer-badge.expired {
  background: rgba(100,116,139,0.12);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.peer-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--mono);
}
.peer-meta .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.status-dot.active { background: var(--success); box-shadow: 0 0 8px var(--success-glow); }
.status-dot.expired { background: var(--text-dim); }

.qr-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.qr-wrap {
  text-align: center;
  padding: 1rem;
  background: #fff;
  border-radius: var(--radius);
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.qr-wrap img { max-width: 168px; height: auto; display: block; }
.qr-hint { font-size: 0.78rem; color: var(--text-dim); margin: 0.65rem 0 0; }

.actions-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(91,122,255,0.15);
  display: grid;
  place-items: center;
  color: var(--text-dim);
}
.empty-icon .ico { width: 28px; height: 28px; }
.empty-state p { color: var(--text-muted); margin: 0 0 1.25rem; max-width: 280px; margin-left: auto; margin-right: auto; }

.trial-card {
  background: linear-gradient(145deg, rgba(45,212,168,0.08), var(--surface));
  border-color: rgba(45,212,168,0.2);
}

/* Legal */
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 1.35rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
  background: rgba(0,0,0,0.2);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}
.footer-brand { font-weight: 600; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--text-dim); font-weight: 500; }
.footer-links a:hover { color: var(--text-muted); }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

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

/* ── Marketing v2 ── */
.ico { width: 22px; height: 22px; display: block; }

.hero-offer {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
  animation: fadeUp 0.6s var(--ease) both;
}
.hero-offer-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--success), #20b386);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(45,212,168,0.35);
}
.hero-offer-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.friction-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.6s var(--ease) 0.12s both;
}
.friction-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  animation: fadeUp 0.6s var(--ease) 0.28s both;
}

.section-compact { padding: 0 0 clamp(2rem, 5vw, 3rem); }
.section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1.35rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.pricing-preview-item { min-width: 100px; }
.pricing-preview-item.highlight .pricing-preview-val { color: var(--success); }
.pricing-preview-val {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent-hover);
}
.pricing-preview-lbl { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.15rem; }
.pricing-preview-divider {
  width: 1px;
  height: 36px;
  background: var(--border-strong);
}
.pricing-preview-link { margin-left: auto; }

.feature-icon .ico { width: 22px; height: 22px; color: var(--accent-hover); }
.feature-icon-blue { background: rgba(99,130,255,0.12); border-color: rgba(99,130,255,0.25); }
.feature-icon-purple { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.25); }
.feature-icon-purple .ico { color: #a78bfa; }
.feature-icon-green { background: rgba(45,212,168,0.12); border-color: rgba(45,212,168,0.25); }
.feature-icon-green .ico { color: var(--success); }
.feature-icon-amber { background: rgba(251,191,36,0.1); border-color: rgba(251,191,36,0.22); }
.feature-icon-amber .ico { color: #fbbf24; }

.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  margin-bottom: 0.35rem;
}
.country-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.country-nl .country-dot { background: #f97316; box-shadow: 0 0 6px rgba(249,115,22,0.5); }
.country-us .country-dot { background: #3b82f6; box-shadow: 0 0 6px rgba(59,130,246,0.5); }

.panel-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.panel-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-hover);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
}
.panel-step-done .panel-step-num {
  background: var(--accent-soft);
  color: var(--accent-hover);
}
.panel-step-title { font-size: 0.88rem; font-weight: 600; }
.panel-step-sub { font-size: 0.75rem; color: var(--text-dim); }
.panel-step-check {
  margin-left: auto;
  color: var(--success);
  font-weight: 700;
  font-size: 0.9rem;
}

.panel-download {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(99,130,255,0.08);
  border: 1px dashed rgba(99,130,255,0.3);
}
.panel-download-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-family: var(--mono);
  font-weight: 500;
}
.panel-download-row .ico { width: 18px; height: 18px; color: var(--accent-hover); }
.panel-dl-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
}
.panel-qr-mini {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.panel-qr-mini .ico { width: 16px; height: 16px; }

.vpn-servers { margin-bottom: 0; margin-top: 1rem; }

.steps-two {
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
}
@media (max-width: 768px) {
  .steps-two { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}
.step-arrow {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--text-dim);
  padding-top: 2rem;
}
.step-card-large {
  border-left: none;
  margin-left: 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step-card-large::before { display: none; }
.step-visual {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(99,130,255,0.2);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.step-visual .ico { width: 24px; height: 24px; color: var(--accent-hover); }

.cta-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(45,212,168,0.15);
  border: 1px solid rgba(45,212,168,0.35);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

/* Trial registration */
.auth-wrap-trial { max-width: 980px; align-items: start; }
@media (max-width: 768px) {
  .auth-wrap-trial .auth-side { display: block; padding: 0 0 1rem; }
}
.trial-badge-lg {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(45,212,168,0.2), rgba(45,212,168,0.08));
  border: 1px solid rgba(45,212,168,0.35);
  color: var(--success);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.auth-benefits { list-style: none; padding: 0; margin: 1.5rem 0; }
.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  color: var(--text-muted);
  font-size: 0.925rem;
  border-bottom: 1px solid var(--border);
}
.auth-benefits li:last-child { border-bottom: none; }
.auth-benefits .auth-check {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(99,130,255,0.2);
}
.auth-benefits .auth-check .ico { width: 18px; height: 18px; color: var(--accent-hover); }
.auth-side-note { font-size: 0.9rem; color: var(--text-dim); margin-top: 1.5rem; }

.card-trial { padding: 2rem; }
.trial-form-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.trial-form-sub {
  margin: 0.35rem 0 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.label-hint { font-weight: 400; color: var(--text-dim); }

.server-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (max-width: 480px) { .server-picker { grid-template-columns: 1fr; } }
.server-option { cursor: pointer; }
.server-option input { position: absolute; opacity: 0; pointer-events: none; }
.server-option-inner {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.2);
  transition: all 0.2s var(--ease);
}
.server-option input:checked + .server-option-inner {
  border-color: var(--border-glow);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(99,130,255,0.2);
}
.server-option:hover .server-option-inner { border-color: rgba(148,163,184,0.35); }
.server-option-name { display: block; font-weight: 700; font-size: 0.9rem; margin-top: 0.35rem; }
.server-option-desc { display: block; font-size: 0.75rem; color: var(--text-dim); margin-top: 0.2rem; line-height: 1.4; }

.form-disclaimer {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}
.form-disclaimer a { color: var(--text-muted); }

.welcome-banner { font-size: 0.95rem; }
.welcome-banner strong { color: inherit; }
.peer-flag .country-badge { margin-bottom: 0; }

.pricing-preview-divider:last-of-type { display: none; }
@media (max-width: 640px) {
  .pricing-preview-divider { display: none; }
  .pricing-preview { justify-content: center; text-align: center; }
  .pricing-preview-link { margin-left: 0; width: 100%; }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.contact-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-width: 0;
}
.contact-card h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}
.contact-card p { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-link {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.vpn-status-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  background: var(--accent-soft);
}

.hero-card-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card-value {
  font-size: 0.85rem;
  font-weight: 600;
}

.tariff-section-title {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.tariff-section-family { margin-top: 3rem; }

.tariff-family-lead {
  margin: -0.35rem 0 1.25rem;
  font-size: 0.95rem;
}

.tariff-card-family {
  border-color: rgba(124, 108, 224, 0.25);
  background: linear-gradient(160deg, rgba(124, 108, 224, 0.08), var(--surface));
}

.family-group {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.family-group:last-child { border-bottom: none; }

.family-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.family-group-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.family-group-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(124, 108, 224, 0.15);
  color: #c4b5fd;
}

.peer-card-family { margin-top: 0.75rem; }

/* ── Reviews ── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reviews-grid-compact { margin-bottom: 1.25rem; }

.review-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.review-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.review-stars {
  margin-left: auto;
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.review-star.muted { color: var(--text-dim); opacity: 0.45; }

.review-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.reviews-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
}

.reviews-empty h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.reviews-empty-inline {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: rgba(255,255,255,0.02);
  text-align: center;
}

.reviews-empty-inline p { margin: 0 0 1rem; }

.reviews-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.review-form-card {
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
}

.review-form-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.review-form-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.rating-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rating-option {
  cursor: pointer;
}

.rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 600;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.rating-option input:checked + span,
.rating-option span:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ── Blog ── */
.container-narrow { width: min(760px, 92vw); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.blog-grid-compact { margin-bottom: 1rem; }

.blog-card {
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.blog-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.blog-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-tag-habr { color: #7dd3fc; border-color: rgba(125,211,252,0.25); }

.blog-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
}

.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--accent-hover); }

.blog-card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.blog-card-link {
  font-size: 0.875rem;
  font-weight: 600;
}

.blog-card-tags, .blog-article-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-muted);
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.blog-article { padding: 1.75rem 1.85rem; }

.blog-article-title {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
}

.blog-article-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.blog-source-note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(125, 211, 252, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.15);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.blog-prose {
  margin-top: 1.75rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.blog-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
}

.blog-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.blog-prose p { margin: 0 0 1rem; }

.blog-prose ul, .blog-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.blog-prose li { margin-bottom: 0.35rem; }

.blog-prose a { text-decoration: underline; text-underline-offset: 2px; }

.blog-prose blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
}

.blog-prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
}

.blog-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: #05070d;
  border: 1px solid var(--border);
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
}

.blog-prose th, .blog-prose td {
  border: 1px solid var(--border-strong);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.blog-prose th {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.blog-cta {
  margin-top: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.blog-cta h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }

.blog-back {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 820px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--border-glow);
}

.faq-question {
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--accent);
}

.faq-answer {
  padding: 0 1.15rem 1rem;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}
