:root {
  --bg: #0B0B0B;
  --surface: #151515;
  --text: #FAFAFA;
  --muted: #A3A3A3;
  --primary: #DC2626;
  --secondary: #FACC15;
  --accent: #16A34A;
  --border: rgba(250,250,250,0.12);
  --font-sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --offer-bg: #1a1a1a;
  --offer-border: #2a2a2a;
  --offer-bonus: #ffd700;
  --offer-cta-bg: #22c55e;
  --offer-cta-text: #ffffff;
  --crypto: "crypto";
  --dashboard: "dashboard";
  --data-driven: "data-driven";
  --blocks: "blocks";
  --metrics: "metrics";
  --real-time-feel: "real-time feel";
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, var(--bg) 0%, #121212 42%, var(--bg) 100%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(220, 38, 38, 0.12), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: var(--crypto) " " var(--dashboard) " " var(--data-driven) " " var(--blocks) " " var(--metrics) " " var(--real-time-feel);
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(250, 250, 250, 0.018) 47px,
      rgba(250, 250, 250, 0.018) 48px
    ),
    radial-gradient(circle at 10% 90%, rgba(22, 163, 74, 0.06), transparent 45%);
  opacity: 0.85;
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.crypto-dashboard {
  font-variant-numeric: tabular-nums;
}

.data-driven {
  letter-spacing: 0.04em;
}

.blocks {
  display: grid;
  gap: 12px;
}

.metrics {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.real-time-feel {
  position: relative;
}

.real-time-feel::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-live 1.6s ease-out infinite;
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.disclosure-banner {
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  line-height: 1.45;
  border: none;
  color: var(--text);
  background: linear-gradient(
    90deg,
    rgba(220, 38, 38, 0.15),
    rgba(250, 204, 21, 0.15)
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(250, 250, 250, 0.02) 1px,
    rgba(250, 250, 250, 0.02) 2px
  );
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.brand-lockup:hover {
  color: var(--text);
}

.brand-lockup img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
}

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 80px 32px 40px;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent);
}

.nav-drawer a:hover {
  color: var(--secondary);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.4rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

.offers-section {
  padding: 64px 24px;
  background-image:
    linear-gradient(180deg, rgba(11, 11, 11, 0.88), rgba(21, 21, 21, 0.94)),
    url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.offers-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.offers-intro p {
  color: var(--muted);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}

.offer-card {
  background: var(--offer-bg);
  border: 1px solid var(--offer-border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.offer-logo {
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
  background: #0d0d0d;
  padding: 10px;
  box-sizing: border-box;
}

.offer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  max-width: none;
}

.offer-bonus-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.offer-bonus {
  color: var(--offer-bonus);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.offer-terms {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 0;
}

.offer-desc {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.45;
}

.offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--offer-cta-bg);
  color: var(--offer-cta-text);
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: filter 0.2s ease;
}

.offer-cta:hover {
  filter: brightness(1.08);
  color: var(--offer-cta-text);
}

.site-footer {
  margin-top: auto;
  padding: 48px 24px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-note {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 520px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
  align-items: center;
}

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-requisites {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-ar-legal {
  color: rgba(163, 163, 163, 0.85);
  font-size: 11px;
  line-height: 1.55;
  max-width: 960px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

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

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.modal-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.modal-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
}

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

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}

.page-hero {
  padding: 48px 24px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 60ch;
}

.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.content-wrap h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.content-wrap p,
.content-wrap li {
  color: rgba(250, 250, 250, 0.88);
  margin-bottom: 12px;
}

.content-wrap ul {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
  margin-top: 28px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 2px;
}

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

.contact-form input.error,
.contact-form textarea.error {
  border-color: var(--primary);
}

.form-error {
  display: none;
  color: var(--primary);
  font-size: 0.82rem;
  margin: -6px 0 0;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.1);
  color: var(--text);
}

.form-success.visible {
  display: block;
}

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.decor-clip {
  overflow: hidden;
  max-width: 100%;
}

.go-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 24px;
}

.go-card {
  text-align: center;
  max-width: 420px;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.go-card h1 {
  font-size: 1.35rem;
  margin: 16px 0 10px;
}

.ad-flag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-wrap {
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.error-wrap h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.error-wrap p {
  color: var(--muted);
  margin-bottom: 24px;
}

.info-cta {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.info-cta:hover {
  background: rgba(22, 163, 74, 0.12);
  color: var(--accent);
  border-color: rgba(22, 163, 74, 0.35);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .offer-logo {
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: none;
  }

  .decor-clip,
  .decor-band {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
  }

  .decor-band {
    height: 120px;
    max-height: 120px;
  }

  .footer-badges img {
    height: 36px;
    max-width: 100px;
  }

  .offers-section {
    padding: 40px 16px;
  }

  .offer-card {
    padding: 18px;
  }
}

@media (max-width: 375px) {
  .decor-img {
    max-height: 160px;
  }

  .decor-band {
    height: 100px;
    max-height: 100px;
  }

  .offer-logo {
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    max-width: none;
  }
}
