/* Стили статических страниц Wored VPN (ext.wored.shop) */
:root {
  --bg: #0c1018;
  --surface: #141b26;
  --surface-hover: #1b2332;
  --surface-active: #222c3f;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.16);
  --text: #edf2f9;
  --muted: #8e9bb0;
  --teal: #2dd4bf;
  --teal-light: #5eead4;
  --teal-dim: rgba(45, 212, 191, 0.14);
  --teal-glow: rgba(45, 212, 191, 0.28);
  --blue: #3f8cff;
  --blue-dim: rgba(63, 140, 255, 0.15);
  --green: #34d399;
  --warn: #fbbf24;
  --warn-dim: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-hover: #f2f5fa;
    --surface-active: #e8edf4;
    --line: rgba(12, 16, 24, 0.09);
    --line-bright: rgba(12, 16, 24, 0.16);
    --text: #0c1018;
    --muted: #4b5563;
    --teal: #0f766e;
    --teal-light: #0d9488;
    --teal-dim: rgba(15, 118, 110, 0.12);
    --teal-glow: rgba(15, 118, 110, 0.25);
    --blue: #1d4ed8;
    --blue-dim: rgba(29, 78, 216, 0.12);
    --green: #047857;
    --warn: #b45309;
    --warn-dim: rgba(180, 83, 9, 0.12);
    --danger: #b91c1c;
    color-scheme: light;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--teal-light); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка сайта */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand-link:hover { text-decoration: none; }
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line-bright), 0 0 12px var(--teal-glow);
}
.brand-text { font-size: 17px; font-weight: 800; letter-spacing: 0.03em; }
.brand-text span { color: var(--teal); margin-left: 2px; }
.brand-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--teal); text-decoration: none; }

/* Герой */
.hero {
  padding: 48px 0 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.hero-store-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 6px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn.primary {
  background: var(--teal);
  color: #0c1018;
  box-shadow: 0 4px 20px var(--teal-glow);
}
.btn.primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  text-decoration: none;
  color: #0c1018;
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-bright);
}
.btn.secondary:hover {
  background: var(--surface-hover);
  text-decoration: none;
  color: var(--text);
}

/* Сетки карточек */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--line-bright); }
.card-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: inline-block;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Секции контента */
.section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-of-type { border-bottom: 0; }
.section-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Пошаговая инструкция (Steps) */
.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 24px 0;
}
.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-dim);
  color: var(--teal);
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(45, 212, 191, 0.35);
  margin-top: 2px;
}
.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-title {
  font-size: 17px;
  font-weight: 700;
}
.step-desc {
  font-size: 14.5px;
  color: var(--muted);
}
.step-code {
  display: inline-block;
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text);
}

/* Заглушки скриншотов (16:9) */
.mockup-shot {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 600px;
  background: var(--surface);
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  padding: 16px;
  text-align: center;
}
.mockup-shot-icon {
  font-size: 22px;
  opacity: 0.7;
}

/* Callout инфоблоки */
.callout {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  margin: 18px 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.callout.info {
  background: var(--teal-dim);
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.callout.warn {
  background: var(--warn-dim);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--text);
}
.callout-title {
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Списки и пункты политики */
.bullet-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  margin: 12px 0;
}
.bullet-list li { color: var(--text); }
.bullet-list li span { color: var(--muted); }

/* Таблица разрешений */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--surface-hover);
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
tr:last-child td { border-bottom: 0; }
td code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 2px 6px;
  border-radius: 4px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.faq-a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Заглушки [ЗАПОЛНИТЬ: ...] */
.placeholder-fill {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  color: var(--warn);
  border: 1px dashed var(--warn);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

/* Подвал */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 600px) {
  .hero-title { font-size: 26px; }
  .grid-2 { grid-template-columns: 1fr; }
  .step-item { gap: 12px; }
  .step-num { width: 30px; height: 30px; font-size: 14px; }
}

/* Скриншоты шагов установки */
.step-shot {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-bright);
  margin-top: 10px;
}

/* Увеличение картинок шагов по клику (лайтбокс) */
.step-shot { cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.step-shot:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(5, 8, 12, .92); cursor: zoom-out;
}
.lightbox.open { display: flex; animation: lb-in .18s ease; }
.lightbox img {
  max-width: min(96vw, 2560px); max-height: 92vh; width: auto; height: auto;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 26px; line-height: 44px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox.open, .step-shot { animation: none; transition: none; } }
