:root {
  --bg: #16233d;
  --bg-2: #1b2a48;
  --panel: #1e2e50;
  --card: #223355;
  --accent: #5b9bff;
  --accent-2: #4fc3f7;
  --text: #e2e8f0;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --danger: #f87171;
  --border: #2e4066;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: linear-gradient(160deg, #0d1b2a 0%, #1b263b 45%, #0b1220 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ===== Header / nav ===== */
header {
  background: rgba(13, 20, 38, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--bg);
  color: var(--accent);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger svg {
  width: 26px;
  height: 26px;
  stroke: var(--text-strong);
}

@media (max-width: 720px) {
  .burger {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #101b30;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 10px 20px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 70px 20px 50px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 14px;
  color: var(--text-strong);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-white {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}

.hero-red {
  color: #ef4444;
  -webkit-text-fill-color: #ef4444;
  background: none;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 18px;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: "Consolas", monospace;
  font-size: 16px;
  color: var(--accent);
  cursor: pointer;
  user-select: all;
}

.online-strip {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 15px;
  color: var(--text);
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f87171;
}

.online-dot.on {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.online-count {
  font-weight: 800;
  color: var(--text-strong);
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 28px;
  }
}

/* ===== Cards / shop ===== */
.section {
  padding: 40px 20px;
}

.section-title {
  font-size: 26px;
  margin-bottom: 6px;
  color: var(--text-strong);
}

.section-sub {
  color: var(--muted);
  margin-bottom: 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.promo-grid {
  grid-template-columns: 1fr 1fr;
}

.promo-grid .card {
  border: 2px solid var(--accent-2);
}

.promo-grid .promo-gerzog {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(160deg, #1b263b 0%, #0d1b2a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-icon {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: transparent;
  border: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.card .rank {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-strong);
}

.card .rank small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  margin-top: 2px;
}

.card ul {
  list-style: none;
  margin: 6px 0;
  flex: 1;
}

.card ul li {
  padding: 4px 0;
  color: var(--text);
  font-size: 14px;
}

.card ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 800;
}

.card .perks li::before {
  content: none;
}

.prochee {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.prochee strong {
  display: block;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.prochee ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prochee li {
  padding: 2px 0;
  color: var(--muted);
}

.prochee li::before {
  content: "";
  display: none;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), #1d4ed8);
  color: #ffffff;
  font-weight: 800;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: filter 0.2s, transform 0.1s;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn.secondary {
  background: #2e4066;
  color: var(--text);
}

.btn.small {
  padding: 8px 12px;
  font-size: 13px;
}

/* ===== Promo / spotlight ===== */
.spot {
  background: linear-gradient(160deg, #1b263b 0%, #14243a 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.spot .rank {
  color: var(--accent);
}

.old-price {
  color: var(--danger);
  font-size: 15px;
  text-decoration: line-through;
  margin-right: 8px;
}

.badge {
  display: inline-block;
  background: var(--accent-2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* ===== Info blocks (contacts) ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-box {
  background: var(--card);
  border: 2px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}

.info-box h3 {
  margin-bottom: 8px;
  color: var(--text-strong);
}

.info-box p {
  color: var(--muted);
  margin-bottom: 16px;
}

.email {
  font-family: "Consolas", monospace;
  font-size: 18px;
  color: var(--accent);
}

/* ===== Rules accordion ===== */
.rule-group {
  background: var(--card);
  border: 2px solid var(--accent-2);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.rule-head {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rule-head:hover {
  background: rgba(37, 99, 235, 0.06);
}

.rule-head::before {
  content: "▾";
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.2s;
}

.rule-head::after {
  content: "Развернуть";
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
}

.rule-group.open .rule-head::before {
  transform: rotate(180deg);
}

.rule-group.open .rule-head::after {
  content: "Свернуть";
}

.rule-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.rule-group.open .rule-body {
  max-height: 2000px;
  padding-bottom: 18px;
}

.rule-body ol {
  padding-left: 22px;
  color: var(--text);
}

.rule-body li {
  margin: 6px 0;
}

.rule-body a {
  color: var(--accent);
}

/* ===== Footer ===== */
footer {
  margin-top: auto;
  background: #0d1426;
  border-top: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer .legal {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

footer .logos {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0.8;
}

footer .logos span {
  background: #16233d;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 22, 0.7);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-strong);
}

.modal h2 {
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 20px;
}

.modal .price-line {
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}

.modal label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 14px;
}

.modal input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-strong);
  font-size: 15px;
}

.modal input:focus {
  outline: none;
  border-color: var(--accent);
}

.modal .btn {
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}

.modal .agree {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.5;
}

.modal .server-pick {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.modal .server-pick .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* payment methods */
.methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s;
}

.method:hover,
.method.selected {
  border-color: var(--accent);
}

.method .ico {
  font-size: 20px;
}

.demo-note {
  background: rgba(37, 99, 235, 0.08);
  border: 1px dashed var(--accent);
  color: var(--accent);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.notice {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 30px;
}

/* ===== TG notification ===== */
.tg-notify {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #1b2a48;
  border-top: 2px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 90;
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.tg-notify.show {
  transform: translateY(0);
}

.tg-notify .tg-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
}

.tg-notify .tg-ico {
  font-size: 30px;
  flex-shrink: 0;
}

.tg-notify .tg-text {
  flex: 1;
  min-width: 240px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
}

.tg-notify .tg-text strong {
  display: inline;
  color: var(--text-strong);
  margin-right: 8px;
}

.tg-notify .tg-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ===== Side nav ===== */
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  left: 16px;
  top: 130px;
  z-index: 40;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}

.side-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-2);
  color: var(--text-strong);
  text-decoration: none;
}

.side-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.side-purple {
  background: #7c4dbf;
}

.side-beige {
  background: #c9b18c;
}

.side-orange {
  background: #e07b39;
}

@media (max-width: 900px) {
  .side-nav {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin: 16px 0;
  }
}

/* ===== Token section ===== */
.token-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
}

.token-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: 14px;
}

.token-ico-lg {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
}

.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 6px;
}

.token-ico-inline {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  border-radius: 3px;
  object-fit: contain;
  display: inline-block;
}

.token-row strong {
  color: var(--accent);
  font-size: 15px;
}

.token-cost {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: var(--text-strong);
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  margin: 8px 0;
}

.token-bonus {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #6ee7a0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 7px;
  border-radius: 8px;
  margin: 10px 0;
  transition: background 0.3s, color 0.3s;
}

#token-buy {
  background: linear-gradient(90deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  border: none;
}

#token-range {
  accent-color: #f97316;
  width: 100%;
  margin: 6px 0;
}

/* ===== Currency / Birzha ===== */
.currency-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.currency-grid .birzha-card {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.currency-grid .birzha-card .btn {
  margin-top: auto;
}

.currency-grid input[type="range"] {
  width: 100%;
  margin: 6px 0;
  accent-color: #f97316;
}

.currency-grid .token-quick {
  margin-top: auto;
}

@media (max-width: 720px) {
  .currency-grid {
    grid-template-columns: 1fr;
  }
}

.token-bonus.active {
  background: rgba(76, 175, 80, 0.35);
  border-color: rgba(76, 175, 80, 0.8);
  color: #bbf7d0;
}

.token-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.token-quick .btn {
  width: 100%;
  text-align: center;
}

.token-equiv {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  padding: 10px;
  background: var(--bg-2);
  border-radius: 8px;
  margin-bottom: 12px;
}

.token-equiv strong,
.token-equiv #token-price {
  color: var(--accent);
}

/* ===== Blog ===== */
.blog-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.blog-post {
  background: var(--card);
  border: 2px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 760px;
}

.blog-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.blog-post p {
  color: var(--text);
  margin-top: 12px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
}