:root {
  --bg: #2A0E05;
  --surface: #3A1408;
  --text: #FFF7ED;
  --muted: #FDBA74;
  --primary: #F97316;
  --secondary: #FB7185;
  --accent: #FACC15;
  --border: rgba(255,247,237,0.14);
  --pixel: "Courier New", "Lucida Console", Monaco, monospace;
  --ui: Tahoma, "MS Sans Serif", "Segoe UI", sans-serif;
  --style-keywords: "retro" "90s" "operating system" "skeuomorphic" "nostalgic";
  --max: 1200px;
  --nav-h: 54px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ui);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(42, 14, 5, 0.98) 0%, rgba(58, 20, 8, 0.92) 42%, rgba(42, 14, 5, 1) 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(249, 115, 22, 0.035) 2px,
      rgba(249, 115, 22, 0.035) 4px
    ),
    radial-gradient(ellipse at 18% 0%, rgba(250, 204, 21, 0.12), transparent 48%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at 90% 12%, rgba(251, 113, 133, 0.1), transparent 42%),
    radial-gradient(circle at 12% 78%, rgba(249, 115, 22, 0.08), transparent 40%);
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.disclosure-banner {
  position: relative;
  z-index: 2;
  background: none;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 20px;
  max-width: fit-content;
  margin: 6px auto;
  width: calc(100% - 24px);
}

.disclosure-banner p {
  margin: 0 0 4px;
}

.disclosure-banner p:last-child {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  height: var(--nav-h);
}

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

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

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

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

.brand-name {
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: 0.5px;
  image-rendering: pixelated;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li:not(:last-child)::after {
  content: "›";
  color: var(--muted);
  margin: 0 8px;
  font-size: 12px;
  opacity: 0.7;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}

.nav-links a:hover {
  background: rgba(255, 247, 237, 0.08);
  color: var(--accent);
  text-decoration: none;
}

.nav-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 1px solid var(--muted);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}

.burger {
  display: none;
  width: 40px;
  height: 34px;
  background: var(--surface);
  border-top: 2px solid rgba(255, 247, 237, 0.35);
  border-left: 2px solid rgba(255, 247, 237, 0.35);
  border-right: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

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

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 14, 5, 0.72);
  z-index: 1100;
}

.nav-overlay.open {
  display: block;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  height: 100%;
  background: var(--surface);
  border-left: 2px solid rgba(255, 247, 237, 0.2);
  box-shadow: -6px 0 0 rgba(0, 0, 0, 0.35);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--text);
  padding: 12px 10px;
  font-family: var(--pixel);
  font-size: 13px;
  border-top: 2px solid rgba(255, 247, 237, 0.18);
  border-left: 2px solid rgba(255, 247, 237, 0.18);
  border-right: 2px solid rgba(0, 0, 0, 0.45);
  border-bottom: 2px solid rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
}

.mobile-close {
  align-self: flex-end;
  margin-bottom: 12px;
  background: var(--primary);
  color: var(--bg);
  border: none;
  border-top: 2px solid rgba(255, 247, 237, 0.45);
  border-left: 2px solid rgba(255, 247, 237, 0.45);
  border-right: 2px solid rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
  font-family: var(--pixel);
  cursor: pointer;
}

.page-main {
  flex: 1 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.win95-window {
  background: var(--surface);
  border-top: 2px solid rgba(255, 247, 237, 0.28);
  border-left: 2px solid rgba(255, 247, 237, 0.28);
  border-right: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.win95-titlebar {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    rgba(250, 204, 21, 0.55) 25%,
    var(--primary) 50%,
    rgba(251, 113, 133, 0.55) 75%,
    var(--primary) 100%
  );
  background-size: 12px 100%;
  color: var(--bg);
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  image-rendering: pixelated;
  letter-spacing: 0.4px;
}

.win95-titlebar .icon-dot {
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.win95-body {
  padding: 20px;
}

.btn-3d {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--bg);
  background: var(--primary);
  border-top: 3px solid rgba(255, 247, 237, 0.55);
  border-left: 3px solid rgba(255, 247, 237, 0.55);
  border-right: 3px solid rgba(0, 0, 0, 0.55);
  border-bottom: 3px solid rgba(0, 0, 0, 0.55);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
  image-rendering: pixelated;
}

.btn-3d:hover {
  text-decoration: none;
  color: var(--bg);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border-top: 2px solid rgba(255, 247, 237, 0.3);
  border-left: 2px solid rgba(255, 247, 237, 0.3);
  border-right: 2px solid rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  padding: 10px 16px;
  cursor: pointer;
}

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

.info-section {
  position: relative;
}

.info-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.info-section h2 {
  font-family: var(--pixel);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  color: var(--accent);
  margin-bottom: 14px;
  image-rendering: pixelated;
  letter-spacing: 0.5px;
}

.info-section p {
  margin-bottom: 12px;
  color: rgba(255, 247, 237, 0.9);
}

.info-section ul {
  margin: 12px 0 16px 20px;
  color: rgba(255, 247, 237, 0.88);
}

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

.decor-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-top: 2px solid rgba(255, 247, 237, 0.25);
  border-left: 2px solid rgba(255, 247, 237, 0.25);
  border-right: 2px solid rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
}

.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

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

.mini-panel {
  background: rgba(42, 14, 5, 0.55);
  border-top: 2px solid rgba(255, 247, 237, 0.2);
  border-left: 2px solid rgba(255, 247, 237, 0.2);
  border-right: 2px solid rgba(0, 0, 0, 0.45);
  border-bottom: 2px solid rgba(0, 0, 0, 0.45);
  padding: 14px;
}

.mini-panel h3 {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 6px;
  image-rendering: pixelated;
}

.layout-band {
  background: linear-gradient(120deg, rgba(58, 20, 8, 0.9), rgba(42, 14, 5, 0.95));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.layout-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-item {
  background: var(--surface);
  border-top: 2px solid rgba(255, 247, 237, 0.22);
  border-left: 2px solid rgba(255, 247, 237, 0.22);
  border-right: 2px solid rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  padding: 16px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--pixel);
  font-size: 1.4rem;
  color: var(--accent);
  image-rendering: pixelated;
}

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

.layout-mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.mosaic-side > div {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.layout-quote {
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--secondary);
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  margin-bottom: 16px;
  image-rendering: pixelated;
}

.num {
  font-family: var(--pixel);
  font-size: 3rem;
  color: rgba(249, 115, 22, 0.25);
  line-height: 1;
  image-rendering: pixelated;
}

.layout-zigzag {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0,
    var(--primary) 4px,
    transparent 4px,
    transparent 8px
  );
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

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

.footer-brand .brand-name {
  font-family: var(--pixel);
  image-rendering: pixelated;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  margin-bottom: 24px;
}

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

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

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

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

.footer-ca-disclosure {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 900px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

.page-hero-strip {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.page-hero-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(249, 115, 22, 0.04) 10px,
    rgba(249, 115, 22, 0.04) 20px
  );
  pointer-events: none;
}

.page-hero-strip .inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-strip h1 {
  font-family: var(--pixel);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
  image-rendering: pixelated;
}

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

.legal-content h1 {
  font-family: var(--pixel);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--accent);
  margin-bottom: 16px;
  image-rendering: pixelated;
}

.legal-content h2 {
  font-family: var(--pixel);
  font-size: 1.05rem;
  color: var(--primary);
  margin: 24px 0 10px;
  image-rendering: pixelated;
}

.legal-content p,
.legal-content li {
  margin-bottom: 10px;
  color: rgba(255, 247, 237, 0.9);
}

.legal-content ul {
  margin: 8px 0 16px 20px;
}

.contact-form {
  margin-top: 28px;
  max-width: 520px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-family: var(--pixel);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border-top: 2px solid rgba(0, 0, 0, 0.5);
  border-left: 2px solid rgba(0, 0, 0, 0.5);
  border-right: 2px solid rgba(255, 247, 237, 0.25);
  border-bottom: 2px solid rgba(255, 247, 237, 0.25);
  padding: 10px 12px;
  font-family: var(--ui);
  font-size: 15px;
}

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

.email-error {
  display: none;
  color: var(--secondary);
  font-size: 12px;
  margin-top: 6px;
}

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

.form-success {
  display: none;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(250, 204, 21, 0.08);
  color: var(--text);
  margin-top: 20px;
}

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

.form-hidden {
  display: none;
}

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

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

.modal-box {
  width: min(420px, 100%);
}

.modal-box .win95-body p {
  margin-bottom: 16px;
}

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

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 640px;
  margin: 0 auto;
  z-index: 1900;
  background: var(--surface);
  border-top: 2px solid rgba(255, 247, 237, 0.28);
  border-left: 2px solid rgba(255, 247, 237, 0.28);
  border-right: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  padding: 16px 18px;
}

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

.cookie-banner p {
  font-size: 13px;
  margin-bottom: 12px;
  color: rgba(255, 247, 237, 0.92);
}

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

.redirect-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.redirect-box {
  width: min(480px, 100%);
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid rgba(255, 247, 237, 0.2);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: spinRetro 0.8s linear infinite;
}

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

@keyframes bevelPulse {
  0%,
  100% {
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 5px 5px 0 rgba(249, 115, 22, 0.35);
  }
}

@keyframes titleShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.win95-titlebar {
  animation: titleShimmer 4s linear infinite;
}

.error-box {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
}

.error-box h1 {
  font-family: var(--pixel);
  color: var(--accent);
  margin-bottom: 12px;
  image-rendering: pixelated;
}

.retro {
  font-family: var(--pixel);
  image-rendering: pixelated;
}

.ui-90s {
  letter-spacing: 0.3px;
}

.operating-system {
  border-radius: 0;
}

.skeuomorphic {
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
}

.nostalgic {
  image-rendering: pixelated;
}

.nineties-bevel {
  border-top: 2px solid rgba(255, 247, 237, 0.3);
  border-left: 2px solid rgba(255, 247, 237, 0.3);
  border-right: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
}

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

  .burger {
    display: inline-flex;
  }

  .layout-split,
  .layout-band-inner,
  .layout-mosaic,
  .layout-cards,
  .stat-row,
  .layout-zigzag {
    grid-template-columns: 1fr;
  }

  .num {
    display: none;
  }
}

@media (max-width: 640px) {
  .disclosure-banner {
    width: calc(100% - 16px);
    padding: 6px 12px;
  }

  .section-wrap {
    padding: 36px 16px;
  }

  .footer-badges img {
    height: 40px;
  }

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

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

  .layout-band-inner {
    padding: 36px 16px;
    overflow: hidden;
  }

  .page-main {
    overflow-x: hidden;
  }
}

.error-home-wrap {
  margin-top: 18px;
}

