/* ============================================================
   ProxyMirron — общий стиль
   Тёмная тема: глубокий сине-фиолетовый градиент
   ============================================================ */

:root {
  --bg: #070b12;
  --bg-2: #0a1019;
  --card: rgba(13, 20, 32, 0.72);
  --card-solid: #111a28;
  --border: #1d2a3a;
  --border-strong: #2a3a52;
  --text: #e8eef6;
  --muted: #8b98a9;
  --muted-2: #6b7689;
  --accent-1: #6366f1;
  --accent-2: #22d3ee;
  --accent-3: #22d3ee;
  --grad: linear-gradient(92deg, #6366f1 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(92deg, rgba(99,102,241,.16), rgba(34,211,238,.16));
  --shadow: 0 10px 30px rgba(3, 6, 18, 0.55);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 10% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent-1); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-group img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

/* ---------- LANG ---------- */
.lang-box { position: relative; }

.lang-btn {
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  user-select: none;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 42px;
  background: var(--card-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 10px;
  gap: 8px;
  box-shadow: var(--shadow);
}

.lang-dropdown img { width: 28px; cursor: pointer; border-radius: 4px; }
.lang-box.active .lang-dropdown { display: flex; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

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

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 10px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: 17px;
}

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

/* ---------- HERO ---------- */
.hero { padding: 90px 0 60px; text-align: center; position: relative; }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero .lead {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 680px;
  margin: 0 auto;
}

.hero-buttons {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.badge-trial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--grad-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
}

/* ---------- CARDS / GRIDS ---------- */
.grid {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card .icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* fade-in */
.fade { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade.visible { opacity: 1; transform: translateY(0); }

/* ---------- STATS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
}

.stat .num {
  font-size: 34px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- STEPS ---------- */
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 14px;
}

/* ---------- PRICING ---------- */
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(6px);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.price-card.popular {
  border-color: rgba(34, 211, 238, 0.55);
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
    var(--card);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.45);
  white-space: nowrap;
}

.price-card h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }

.price {
  font-size: 40px;
  font-weight: 800;
  margin: 8px 0 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price .period { font-size: 15px; color: var(--muted); font-weight: 500; }

.price-features {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}

.price-features li::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- PAYMENTS ---------- */
.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pay-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--border-strong); }

.faq-item .q {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.faq-item .q::after {
  content: "+";
  font-size: 22px;
  color: var(--accent-2);
  font-weight: 400;
  transition: transform 0.25s;
}

.faq-item.open .q::after { content: "–"; }

.faq-item .a {
  display: none;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.faq-item.open .a { display: block; }

.faq-item .a a { color: var(--accent-1); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(34, 211, 238, 0.32), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.cta-banner h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.cta-banner p { color: var(--muted); margin: 0 0 26px; }

/* ---------- INSTRUCTION (инструкция) ---------- */
.inst-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

.step-card h2 { margin: 0 0 6px; font-size: 22px; }
.step-card .step-desc { color: var(--muted); margin-bottom: 18px; }

.img-block {
  background: rgba(10, 16, 25, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.img-block .cap {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
  border-left: 3px solid var(--accent-2);
  padding-left: 12px;
}

.img-block img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.info-note {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

.info-note strong { color: var(--text); }

.flex-images {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.flex-images .img-block { flex: 1; min-width: 280px; margin-bottom: 0; }

/* ---------- CONTACTS ---------- */
.contact-card { text-align: center; }
.contact-card .icon { font-size: 36px; }
.contact-card a { font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 14px;
}

.footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- SEO hidden block (оставлен как в оригинале) ---------- */
.seo-hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- RTL (персидский) ---------- */
.rtl { direction: rtl; }
.rtl .price-features li { flex-direction: row-reverse; }

/* ---------- MOBILE ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .burger { display: inline-block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(7, 11, 18, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; font-size: 16px; }

  .hero { padding-top: 60px; }
  .hero-buttons .btn { width: 100%; text-align: center; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .price-card { margin-top: 24px; }
}

/* Video tutorial */
.video-block { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }
.video-frame { width: min(240px, 100%); aspect-ratio: 876 / 1920; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-cap { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
