:root {
  --bg: #030712;
  --surface: #020617;
  --text: #ECFEFF;
  --muted: #67E8F9;
  --primary: #22D3EE;
  --secondary: #A3E635;
  --accent: #F97316;
  --border: rgba(236,254,255,0.14);
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1200px;
  --neo-gradient-style: gradient vibrant neo mesh gradient colorful modern;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 5%, rgba(163, 230, 53, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(249, 115, 22, 0.1), transparent 55%),
    linear-gradient(165deg, var(--bg) 0%, #07101f 45%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.06), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(163, 230, 53, 0.05), transparent 40%),
    repeating-linear-gradient(125deg, transparent 0, transparent 46px, rgba(236, 254, 255, 0.012) 46px, rgba(236, 254, 255, 0.012) 47px);
  opacity: 0.95;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

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

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

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

.disclosure-banner {
  position: relative;
  z-index: 30;
  width: 100%;
  background-color: #e8f7fa;
  background-image: repeating-linear-gradient(
    45deg,
    #e8f7fa 0,
    #e8f7fa 8px,
    rgba(3, 7, 18, 0.04) 8px,
    rgba(3, 7, 18, 0.04) 16px
  );
  color: #0c4a5c;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  padding: 8px 16px;
  border: none;
}

.disclosure-banner .aff-block {
  display: block;
  margin-top: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom: none;
  height: 60px;
}

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

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.logo-link span {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1002;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.nav-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--primary);
  transform: scale(1.05);
}

.page-main {
  padding: 48px 24px 72px;
}

.page-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 211, 238, 0.08);
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 40%),
    linear-gradient(315deg, rgba(163, 230, 53, 0.06), transparent 45%);
  pointer-events: none;
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.page-shell h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-shell h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--secondary);
}

.page-shell p,
.page-shell li {
  color: rgba(236, 254, 255, 0.88);
  margin-bottom: 12px;
}

.page-shell ul {
  margin: 0 0 16px 1.25rem;
}

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

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), transparent 40%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-brand span {
  font-weight: 700;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

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

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

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

.footer-requisites {
  font-size: 12px;
  color: rgba(236, 254, 255, 0.55);
  line-height: 1.6;
}

.footer-ca-disclosure {
  font-size: 12px;
  color: rgba(236, 254, 255, 0.55);
  line-height: 1.55;
  max-width: 900px;
}

.cookie-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 16px;
  background: linear-gradient(135deg, rgba(2, 6, 23, 0.97), rgba(3, 7, 18, 0.98));
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
}

.cookie-toggle:not(:checked) ~ .cookie-banner {
  display: block;
}

.cookie-toggle:checked ~ .cookie-banner {
  display: none;
}

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

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

.cookie-accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--bg);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35);
  transition: background-position 0.4s ease, transform 0.15s ease;
  background-size: 200% 200%;
}

.cookie-accept:hover {
  background-position: 100% 50%;
  transform: scale(1.03);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.8);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
}

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

.contact-form button {
  align-self: flex-start;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--bg);
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35);
  transition: background-position 0.45s ease, transform 0.15s ease;
}

.contact-form button:hover {
  background-position: 100% 0;
  transform: scale(1.03);
}

.field-error {
  display: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

#form-success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(163, 230, 53, 0.35);
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.12), rgba(34, 211, 238, 0.08));
}

#form-success p {
  color: var(--secondary);
  font-weight: 600;
  margin: 0;
}

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

.error-page h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.error-page a {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35);
  transition: background-position 0.4s ease, transform 0.15s ease;
  background-size: 180% 180%;
}

.error-page a:hover {
  background-position: 100% 50%;
  transform: scale(1.04);
  color: var(--bg);
}

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

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(2, 6, 23, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
  }

  .nav-links a {
    font-size: 22px;
    padding: 8px 16px;
  }

  .nav-toggle:checked ~ .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-toggle:checked + .nav-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .page-shell {
    padding: 28px 20px;
  }
}
