:root {
  --bg: #0F140C;
  --surface: #1C2415;
  --text: #ECFDF5;
  --muted: #A7F3D0;
  --primary: #4D7C0F;
  --secondary: #65A30D;
  --accent: #FACC15;
  --border: rgba(236,253,245,0.12);
  --hacker: var(--secondary);
  --code: var(--muted);
  --terminal: var(--primary);
  --matrix: var(--accent);
  --linux: var(--text);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Courier New", Courier, "Lucida Console", Monaco, monospace;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(77, 124, 15, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(250, 204, 21, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0e08 0%, var(--bg) 40%, #121a0e 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(15, 20, 12, 0.15) 2px,
    rgba(15, 20, 12, 0.15) 4px
  );
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9989;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
}

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

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

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

.disclosure-banner {
  display: flex;
  width: 100%;
  border: none;
  font-size: 12px;
  line-height: 1.45;
  position: relative;
}

.disclosure-banner__half {
  flex: 1 1 50%;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}

.disclosure-banner__half--left {
  background: var(--primary);
  color: #ffffff;
}

.disclosure-banner__half--right {
  background: #ffffff;
  color: #0F140C;
}

.disclosure-banner__half span {
  display: block;
  width: 200%;
  text-align: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.disclosure-banner__half--right span {
  margin-left: -100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 58px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

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

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--linux);
}

.brand-name .terminal-cursor {
  display: inline-block;
  width: 0.55em;
  margin-left: 2px;
  border-bottom: 2px solid var(--terminal);
  animation: blink-cursor 1s steps(1) infinite;
  vertical-align: baseline;
  color: var(--terminal);
}

@keyframes blink-cursor {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

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

.nav-links a {
  position: relative;
  color: var(--code);
  font-size: 13px;
  text-decoration: none;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--secondary);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 58px;
  left: 0;
  width: min(82vw, 320px);
  height: calc(100vh - 58px);
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 20px 0;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu .folder-tree {
  list-style: none;
  padding: 0 12px;
}

.mobile-menu .folder-tree li {
  margin: 0;
}

.mobile-menu .folder-tree a {
  display: block;
  padding: 12px 14px;
  color: var(--text);
  border-left: 3px solid var(--accent);
  margin-bottom: 6px;
  background: rgba(77, 124, 15, 0.12);
  font-size: 14px;
}

.mobile-menu .folder-tree a::before {
  content: "> ";
  color: var(--hacker);
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
}

.menu-overlay.active {
  display: block;
}

.no-scroll {
  overflow: hidden;
}

.matrix-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.18;
  font-size: 12px;
  line-height: 1.2;
  color: var(--matrix);
  white-space: pre;
  animation: matrix-scroll 18s linear infinite;
}

@keyframes matrix-scroll {
  from {
    transform: translateY(-40%);
  }
  to {
    transform: translateY(40%);
  }
}

.hero {
  position: relative;
  width: 100%;
  background: var(--primary);
  padding: 64px 24px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title-light {
  color: #ffffff;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.offers {
  position: relative;
  padding: 56px 24px;
  background-image: linear-gradient(rgba(15, 20, 12, 0.82), rgba(15, 20, 12, 0.9)), url("/images/offers_bg/offers_bg.webp");
  background-size: cover;
  background-position: center;
}

.offers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 40px,
    rgba(101, 163, 13, 0.04) 40px,
    rgba(101, 163, 13, 0.04) 41px
  );
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text);
}

.section-heading .code-tag {
  color: var(--hacker);
  font-weight: 400;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 720px;
}

.offer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  max-width: 560px;
}

.offer-card {
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.offer-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.offer-card__top > div:not(.offer-card__logo) {
  min-width: 0;
  flex: 1 1 auto;
}

.offer-card__logo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f4f6;
}

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

.offer-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

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

.offer-card__bonus {
  font-size: 0.95rem;
  font-weight: 600;
  color: #14532d;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  max-width: 100%;
}

.offer-card__terms {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.offer-card__desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.45;
}

.offer-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #14532d;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
}

.offer-card__cta:hover {
  background: #166534;
  color: #ffffff;
}

.info-block {
  padding: 48px 24px;
  position: relative;
}

.info-block .section-inner {
  max-width: 1100px;
}

.info-block h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--accent);
}

.info-block p {
  color: var(--text);
  margin-bottom: 12px;
  max-width: 75ch;
}

.info-block ul,
.info-block ol {
  margin: 12px 0 16px 1.2rem;
  color: var(--muted);
}

.info-block li {
  margin-bottom: 6px;
}

.info-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid var(--secondary);
  color: var(--accent);
  background: rgba(77, 124, 15, 0.2);
  font-weight: 700;
}

.info-cta:hover {
  background: rgba(101, 163, 13, 0.35);
  color: var(--text);
}

.layout-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layout-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.layout-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px;
}

.mini-card h3 {
  color: var(--secondary);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.layout-rail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.rail-ascii {
  background: var(--surface);
  border: 1px dashed var(--border);
  padding: 12px;
  font-size: 11px;
  color: var(--hacker);
  white-space: pre;
  line-height: 1.3;
}

.layout-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.layout-quote {
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 18px;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 16px 0;
}

.layout-zebra {
  display: grid;
  gap: 0;
}

.layout-zebra .zebra-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.layout-zebra .zebra-row:nth-child(odd) {
  background: rgba(77, 124, 15, 0.12);
}

.layout-zebra .zebra-label {
  color: var(--accent);
  font-weight: 700;
}

.layout-steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0;
}

.layout-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 14px;
  color: var(--muted);
}

.layout-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hacker);
  font-weight: 700;
}

.layout-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

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

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

.decor-bg {
  min-height: 180px;
  max-width: 500px;
  width: 100%;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  overflow: hidden;
}

.info-alt {
  background: rgba(28, 36, 21, 0.55);
}

.info-alt::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(101, 163, 13, 0.08));
  pointer-events: none;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
}

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

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

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

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

.footer-requisites {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.footer-nz {
  font-size: 12px;
  color: rgba(167, 243, 208, 0.75);
  line-height: 1.55;
  max-width: 820px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.footer-nz p {
  margin-bottom: 10px;
}

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

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

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
}

.modal-panel h2 {
  margin-bottom: 10px;
  color: var(--accent);
}

.modal-panel p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 14px;
}

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

.modal-actions button {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 10px 16px;
  background: var(--primary);
  color: var(--text);
  font-weight: 700;
}

.modal-actions button[data-age-gate="decline"] {
  background: transparent;
  color: var(--muted);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9995;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  flex: 1 1 280px;
  font-size: 13px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions button {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  padding: 8px 14px;
  background: var(--primary);
  color: var(--text);
}

#cookie-reject {
  background: transparent;
  color: var(--muted);
}

.page-hero {
  background: var(--primary);
  padding: 40px 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
}

.page-hero h1 span {
  color: var(--accent);
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.legal-content h1 {
  margin-bottom: 16px;
  color: var(--accent);
}

.legal-content h2 {
  margin: 24px 0 10px;
  color: var(--secondary);
  font-size: 1.15rem;
}

.legal-content p,
.legal-content li {
  color: var(--text);
  margin-bottom: 10px;
}

.legal-content ul {
  margin: 8px 0 16px 1.2rem;
  color: var(--muted);
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.contact-form button {
  font-family: inherit;
  align-self: flex-start;
  background: var(--primary);
  color: var(--text);
  border: 1px solid var(--secondary);
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.form-error {
  color: var(--accent);
  font-size: 12px;
}

.contact-success {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--secondary);
  background: rgba(77, 124, 15, 0.2);
  color: var(--text);
}

.topic-hero {
  padding: 48px 24px;
  background: linear-gradient(120deg, var(--primary), var(--surface));
  position: relative;
  overflow: hidden;
}

.topic-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.topic-layout h2 {
  color: var(--secondary);
  margin: 28px 0 12px;
}

.topic-layout h3 {
  color: var(--accent);
  margin: 18px 0 8px;
}

.topic-layout p {
  margin-bottom: 12px;
  color: var(--text);
}

.topic-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.stat-band div {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  text-align: center;
}

.stat-band strong {
  display: block;
  color: var(--accent);
  font-size: 1.2rem;
}

.stat-band span {
  color: var(--muted);
  font-size: 12px;
}

.pull-quote {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(250, 204, 21, 0.08);
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-size: 1.05rem;
}

.go-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.go-box {
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px 24px;
}

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

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

.go-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.5;
}

.error-page {
  padding: 80px 24px;
  text-align: center;
}

.error-page h1 {
  font-size: 3rem;
  color: var(--accent);
}

.error-page p {
  color: var(--muted);
  margin: 12px 0 24px;
}

.error-page a {
  display: inline-block;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--text);
  border: 1px solid var(--secondary);
}

.hacker-shell {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  color: var(--hacker);
  font-size: 12px;
}

.linux-prompt::before {
  content: "root@hitstars:~# ";
  color: var(--secondary);
}

@media (max-width: 900px) {
  .layout-split,
  .layout-rail,
  .topic-sidebar,
  .layout-cards {
    grid-template-columns: 1fr;
  }

  .stat-band {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .layout-zebra .zebra-row {
    grid-template-columns: 1fr;
  }

  .layout-mosaic {
    grid-template-columns: 1fr;
  }

  .offer-card__logo {
    width: 72px;
    height: 72px;
  }

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

  .decor-wrap,
  .decor-bg {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-wrap img,
  .decor-inline {
    max-width: 100%;
    max-height: 220px;
  }
}

@media (max-width: 375px) {
  .offers,
  .info-block,
  .hero,
  .topic-layout,
  .topic-hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .offer-card {
    padding: 14px;
  }

  .offer-card__logo {
    width: 64px;
    height: 64px;
  }

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

  .offer-card__bonus {
    font-size: 0.85rem;
  }

  .decor-wrap img,
  .decor-inline {
    max-width: 100%;
    max-height: 180px;
  }

  .decor-bg {
    min-height: 120px;
    max-height: 160px;
    max-width: 100%;
  }

  .rail-ascii {
    overflow-x: auto;
    max-width: 100%;
  }
}
