:root {
  --bg: #FFF1F2;
  --surface: #FFFFFF;
  --text: #3F1D22;
  --muted: #9F5F68;
  --primary: #FB7185;
  --secondary: #FDBA74;
  --accent: #34D399;
  --border: rgba(63,29,34,0.12);
  --nav-h: 58px;
  --font-ui: "Arial Narrow", "Helvetica Condensed", "Franklin Gothic Medium", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(251, 113, 133, 0.12) 0%, transparent 42%),
    linear-gradient(345deg, rgba(253, 186, 116, 0.14) 0%, transparent 38%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(63, 29, 34, 0.035) 47px,
      rgba(63, 29, 34, 0.035) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(63, 29, 34, 0.035) 47px,
      rgba(63, 29, 34, 0.035) 48px
    );
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  animation:
    military 120s linear infinite,
    tactical 120s linear infinite,
    ops 120s linear infinite,
    secure 120s linear infinite;
}

main {
  flex: 1 0 auto;
  width: 100%;
  padding-bottom: 48px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.military {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tactical {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.ops {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.secure {
  outline: 1px solid rgba(52, 211, 153, 0.35);
  outline-offset: 2px;
}

.disclosure-wrap {
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

.disclosure-banner {
  display: inline-block;
  max-width: fit-content;
  margin: 8px auto;
  padding: 6px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(251, 113, 133, 0.05);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: #1a0a0c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
}

.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 {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(63, 29, 34, 0.45);
  z-index: 998;
}

.nav-overlay.is-open {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 86vw);
    height: 100vh;
    background: #1a0a0c;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 72px 0 24px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    padding: 14px 20px;
    border-left: 3px solid transparent;
    font-size: 13px;
  }

  .nav-links a:hover,
  .nav-links a:focus {
    border-left-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-links a::after {
    display: none;
  }
}

.site-footer {
  background: #1a0a0c;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 24px 32px;
  margin-top: auto;
  position: relative;
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  max-width: 140px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  margin-bottom: 28px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-family: var(--font-mono);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
}

.footer-badges img {
  height: 48px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-requisites {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  line-height: 1.6;
}

.footer-dgoj {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  max-width: 960px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.age-overlay,
.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 10, 12, 0.82);
  padding: 20px;
}

.age-overlay[hidden],
.cookie-overlay[hidden] {
  display: none;
}

.age-modal,
.cookie-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(63, 29, 34, 0.2);
  position: relative;
}

.age-modal::before,
.cookie-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.age-modal h2,
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.age-modal p,
.cookie-modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: #e85a6f;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-accent {
  background: var(--accent);
  color: #064e3b;
  border-color: var(--accent);
}

.page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.page-main h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-main h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.page-main h3 {
  font-size: 1rem;
  margin: 18px 0 8px;
}

.page-main p {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
}

.page-main ul {
  margin: 0 0 16px 1.2rem;
}

.page-main li {
  margin-bottom: 6px;
  font-size: 15px;
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  position: relative;
}

.legal-content::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(63, 29, 34, 0.08);
  pointer-events: none;
}

.contact-form {
  margin-top: 28px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-error {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 24px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--text);
  font-size: 15px;
}

.form-success.is-visible {
  display: block;
}

.contact-form.is-hidden {
  display: none;
}

.decor-img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.decor-wrap {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 480px) {
  .decor-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
  }
}

.go-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.go-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px 28px;
  max-width: 440px;
  width: 100%;
}

.go-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.go-meta {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

#AD {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.error-page {
  text-align: center;
  padding: 80px 24px;
}

.error-page h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes underlineSweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes military {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes tactical {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes ops {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}

@keyframes secure {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
