:root {
  --bg: #0d0f14;
  --bg-alt: #14161d;
  --bg-card: #1a1d26;
  --bg-card-hover: #20242f;
  --border: #262a35;
  --text: #e8e9ed;
  --text-dim: #9aa0ad;
  --primary: #f88010;
  --primary-2: #ffc806;
  --grad: linear-gradient(135deg, #f88010, #ffc806);
  --green: #3ecf6e;
  --red: #ff5c5c;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: calc(100% - 32px);
  max-width: 1264px;
  margin: 0 auto;
}
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 15, 20, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #1a1206;
  font-weight: 900;
  font-size: 22px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(248, 128, 16, 0.35);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.logo-text { font-weight: 800; font-size: 22px; letter-spacing: 0.3px; }
.logo-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo-footer .logo-mark { width: 30px; height: 30px; font-size: 17px; }
.logo-footer .logo-text { font-size: 18px; }

.header-nav { display: flex; gap: 24px; }
.header-nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent {
  background: var(--grad);
  color: #1a1206;
  box-shadow: 0 6px 20px rgba(248, 128, 16, 0.35);
}
.btn-accent:hover { filter: brightness(1.08); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-header { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(248,128,16,0.22), transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(255,200,6,0.12), transparent 55%),
    linear-gradient(160deg, #0d0f14 0%, #131420 55%, #0d0f14 100%);
  z-index: -2;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: -3;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}
.hero-inner { text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(26,29,38,0.7);
  font-size: 14px;
  color: var(--text-dim);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-pulse { background: var(--green); animation: pulse 1.6s infinite; }
.dot-off { background: var(--red); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero-title {
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 900;
  letter-spacing: 1px;
  margin: 22px 0 12px;
  line-height: 1.05;
}
.text-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { font-size: clamp(17px, 2.4vw, 21px); color: var(--text-dim); max-width: 620px; margin: 0 auto; }
.hero-address { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chip {
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(26,29,38,0.8);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}
.chip b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 8px 0 40px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-size: 34px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  margin-bottom: 10px;
}
.section-subtitle { color: var(--text-dim); font-size: 16px; margin-bottom: 38px; }

/* ---------- Grids ---------- */
.privileges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.currency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.card.featured { border-color: var(--primary); }
.card.featured::before {
  content: 'ТОП';
  position: absolute;
  top: 14px; right: -26px;
  background: var(--grad);
  color: #1a1206;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
}
.card-name { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.card-sub { color: var(--text-dim); font-size: 13px; min-height: 38px; margin-bottom: 16px; }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-price { font-size: 24px; font-weight: 900; }
.card-price small { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.period-pills { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.pill:hover { border-color: var(--primary); }
.pill.selected { border-color: var(--primary); background: rgba(248,128,16,0.12); }
.pill .pill-badge { font-size: 12px; color: var(--text-dim); }
.pill .pill-price { font-weight: 700; }

/* currency */
.currency-card { text-align: center; }
.currency-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad);
  font-size: 28px;
  box-shadow: 0 6px 18px rgba(248,128,16,0.3);
}
.currency-amount { font-size: 26px; font-weight: 900; }
.currency-desc { color: var(--text-dim); font-size: 13px; margin: 4px 0 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 10px; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step-num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #1a1206;
  font-weight: 900;
  font-size: 18px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.step p { color: var(--text-dim); font-size: 15px; }
.step b { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 44px 0 30px;
  margin-top: 40px;
}
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--primary); }
.footer-pay { display: flex; gap: 12px; flex-wrap: wrap; }
.pay-icon {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-card);
}
.footer-legal p { color: var(--text-dim); font-size: 13px; margin-bottom: 4px; }
.footer-legal a { color: var(--primary); }
.footer-disclaimer { opacity: 0.7; }

/* ---------- Shop page ---------- */
.section-shop { padding-top: 130px; }
.checkout-form { max-width: 980px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--text); }
.input, .form-group input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
  max-width: 480px;
}
.input:focus, .form-group input:focus { outline: none; border-color: var(--primary); }
.form-section-title { font-size: 20px; font-weight: 800; margin: 34px 0 18px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* currency calculator */
.currency-rate-hint { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.currency-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  max-width: 580px;
  margin-bottom: 20px;
}
.calc-field {
  flex: 1;
  min-width: 140px;
}
.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}
.calc-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s;
}
.calc-field input:focus { outline: none; border-color: var(--primary); }
.calc-eq {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-dim);
  padding-bottom: 12px;
  line-height: 1;
}
.calc-add {
  flex-shrink: 0;
  height: 44px;
  margin-bottom: 0;
  padding: 0 24px;
}
.currency-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.pack-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pack-pill:hover, .pack-pill.selected { border-color: var(--primary); color: var(--primary); }
.currency-more { text-align: center; margin-top: 30px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 34px 0 24px; }
.cart-summary {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  margin-bottom: 18px;
}
.cart-summary b { color: var(--primary); }
.payment-redirect { text-align: center; padding: 40px 0; }
.payment-redirect p { margin-bottom: 20px; color: var(--text-dim); }
.notice {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,200,6,0.06);
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ---------- Admin ---------- */
.admin-page .section { padding-top: 130px; }
.admin-login { max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table th { color: var(--text-dim); font-weight: 600; }
.status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending { background: rgba(255,200,6,0.15); color: var(--primary-2); }
.status-paid { background: rgba(62,207,110,0.15); color: var(--green); }
.status-delivered { background: rgba(62,207,110,0.22); color: var(--green); }
.status-cancelled { background: rgba(255,92,92,0.15); color: var(--red); }

/* ---------- Legal ---------- */
.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.legal-box h2 { color: var(--text); margin: 20px 0 8px; font-size: 18px; }
.legal-box h2:first-child { margin-top: 0; }
.legal-box p { margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .header-nav { display: none; }
  .section { padding: 48px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 28px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}