:root {
  --bg: #0F172A;
  --surface: #1E293B;
  --text: #E5E7EB;
  --muted: #94A3B8;
  --primary: #64748B;
  --secondary: #38BDF8;
  --accent: #22C55E;
  --border: rgba(229,231,235,0.12);
  --font: "Trebuchet MS", "Segoe UI", Candara, Calibri, sans-serif;
  --max: 1200px;
  --organic-soft: rgba(56, 189, 248, 0.12);
  --natural-mist: rgba(34, 197, 94, 0.08);
  --fluid-glow: rgba(100, 116, 139, 0.18);
  --blob-a: 58% 42% 48% 52% / 48% 55% 45% 52%;
  --blob-b: 42% 58% 55% 45% / 52% 42% 58% 48%;
  --style-keywords: organic, natural, blob shapes, fluid, soft gradients, playful;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 8% -5%, var(--organic-soft) 0%, transparent 45%),
    radial-gradient(ellipse at 92% 20%, var(--natural-mist) 0%, transparent 40%),
    linear-gradient(165deg, var(--bg) 0%, var(--surface) 48%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 18% 72%, var(--fluid-glow) 0%, transparent 28%),
    radial-gradient(circle at 78% 38%, rgba(56, 189, 248, 0.1) 0%, transparent 32%),
    radial-gradient(circle at 52% 88%, rgba(34, 197, 94, 0.07) 0%, transparent 30%);
}

body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  top: 12%;
  right: -120px;
  border-radius: var(--blob-a);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  animation: blob-drift 18s ease-in-out infinite alternate;
}

.organic {
  position: relative;
}

.natural {
  isolation: isolate;
}

.blob-shapes {
  border-radius: var(--blob-a);
}

.fluid {
  transition: transform 0.4s ease;
}

.soft-gradients {
  background-image: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(34, 197, 94, 0.06));
}

.playful {
  animation: soft-float 6s ease-in-out infinite alternate;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.disclosure-banner {
  position: relative;
  z-index: 3;
  background: #F1F5F9;
  color: #1E293B;
  padding: 8px 16px;
}

.disclosure-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.disclosure-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #0369A1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 50px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-lockup img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-icon-link:hover,
.nav-icon-link:focus-visible {
  opacity: 1;
  color: var(--secondary);
  transform: translateY(-1px);
}

.nav-icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon-link[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

.nav-icon-link:hover::after,
.nav-icon-link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.burger-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 180;
}

.nav-overlay.open {
  display: block;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 86vw);
  height: 100vh;
  background: var(--surface);
  z-index: 190;
  padding: 72px 24px 32px;
  flex-direction: column;
  gap: 14px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  border-left: 1px solid var(--border);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--text);
  font-size: 1.05rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

body.nav-open {
  overflow: hidden;
}

.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  color: var(--surface);
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.page-shell h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  border-radius: 12px;
}

.page-shell h2 {
  font-size: 1.25rem;
  margin: 28px 0 12px;
  color: var(--secondary);
}

.page-shell h3 {
  font-size: 1.05rem;
  margin: 20px 0 10px;
}

.page-shell p,
.page-shell li {
  color: var(--muted);
  margin-bottom: 12px;
}

.page-shell ul {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

.page-shell strong {
  color: var(--text);
}

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 20px 32px;
  margin-top: auto;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  bottom: -100px;
  left: -60px;
  border-radius: var(--blob-b);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  margin-bottom: 24px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
  align-items: center;
}

.footer-badges img {
  height: 42px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0.95);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-requisites {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-note {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 720px;
}

.footer-note a {
  color: var(--secondary);
}

#age-gate,
#cookie-banner {
  display: none;
  position: fixed;
  z-index: 1000;
}

#age-gate.active,
#cookie-banner.active {
  display: flex;
}

#age-gate {
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.88);
  padding: 20px;
}

.age-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.age-dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.age-dialog p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.age-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #052e16;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

#cookie-banner {
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  padding: 16px;
  background: transparent;
  pointer-events: none;
}

.cookie-dialog {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.cookie-dialog p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1 1 260px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
  border-radius: var(--blob-a);
}

.decor-wrap {
  max-width: 100%;
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin-top: 24px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #f87171;
}

.form-error {
  display: none;
  color: #f87171;
  font-size: 0.85rem;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--text);
}

.form-success.visible {
  display: block;
}

@keyframes blob-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-30px, 40px) scale(1.08);
  }
}

@keyframes soft-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .cookie-dialog {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
  }

  .footer-badges img {
    height: 36px;
  }

  body::after {
    width: 240px;
    height: 240px;
    right: -80px;
  }

  .decor-wrap,
  .decor-frame {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    max-height: 220px;
  }
}

@media (max-width: 375px) {
  .disclosure-inner {
    font-size: 11px;
  }

  .decor-img {
    max-height: 180px;
  }
}

.npg-hero {
  position: relative;
  padding: 56px 20px 40px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface), rgba(56, 189, 248, 0.12));
}

.npg-hero::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: var(--blob-a);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2), transparent 70%);
  top: -100px;
  right: -80px;
  opacity: 0.65;
  pointer-events: none;
}

.npg-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.npg-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 12px;
}

.npg-hero p {
  color: var(--muted);
}

.npg-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 72px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}

.npg-rail {
  position: sticky;
  top: 70px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.npg-rail a {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.npg-content h2 {
  color: var(--secondary);
  margin: 28px 0 12px;
}

.npg-content p {
  color: var(--muted);
  margin-bottom: 14px;
}

.npg-content ul {
  padding-left: 1.2rem;
  color: var(--muted);
  margin-bottom: 16px;
}

@media (max-width: 800px) {
  .npg-hero-inner,
  .npg-body {
    grid-template-columns: 1fr;
  }
  .npg-rail {
    position: static;
  }
}

@media (max-width: 375px) {
  .npg-hero::before {
    width: 200px;
    height: 200px;
    right: -60px;
  }
}
