:root {
  --bg: #F0F9FF;
  --surface: #FFFFFF;
  --text: #0C4A6E;
  --muted: #7DD3FC;
  --primary: #0EA5E9;
  --secondary: #BAE6FD;
  --accent: #38BDF8;
  --border: rgba(12,74,110,0.12);
  --grunge: grain;
  --raw: rough;
  --distressed: uneven;
  --texture: noise;
  --imperfect: asymmetric;
  --font: "Trebuchet MS", "Segoe UI", Geneva, Verdana, sans-serif;
  --font-display: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  --max: 1200px;
  --nav-dark: #0C4A6E;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 10%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, #E0F2FE 48%, 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;
  opacity: 0.4;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),
    repeating-linear-gradient(
      -12deg,
      transparent 0,
      transparent 3px,
      rgba(12, 74, 110, 0.018) 3px,
      rgba(12, 74, 110, 0.018) 4px
    );
  mix-blend-mode: multiply;
}

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(--accent);
}

.disclosure-banner {
  position: relative;
  z-index: 40;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(14, 165, 233, 0.15),
    rgba(186, 230, 253, 0.15)
  );
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  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(--nav-dark);
  height: 50px;
  border-bottom: 2px dashed rgba(125, 211, 252, 0.25);
  box-shadow: 0 2px 0 rgba(12, 74, 110, 0.35);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--surface);
}

.logo-link:hover {
  color: var(--secondary);
}

.logo-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-link span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-0.4deg);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-desktop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.6;
  color: var(--secondary);
  position: relative;
  transition: opacity 0.2s ease;
}

.nav-desktop a:hover {
  opacity: 1;
}

.nav-desktop a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}

.nav-desktop a[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  border: 1px solid var(--border);
  z-index: 20;
}

.nav-desktop a[data-tip]:hover::after {
  opacity: 1;
}

.burger-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(186, 230, 253, 0.35);
  width: 40px;
  height: 34px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

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

.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);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 74, 110, 0.97);
  z-index: 999;
  padding: 24px 20px;
  overflow-y: auto;
}

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

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  color: var(--surface);
  padding: 12px 14px;
  font-size: 1rem;
  border-bottom: 1px dashed rgba(125, 211, 252, 0.2);
}

.mobile-nav a:hover {
  color: var(--secondary);
  background: rgba(14, 165, 233, 0.15);
}

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--nav-dark);
  color: var(--secondary);
  padding: 40px 20px 28px;
  margin-top: auto;
  border-top: 3px solid transparent;
  border-image: repeating-linear-gradient(
      90deg,
      var(--primary) 0,
      var(--primary) 8px,
      transparent 8px,
      transparent 14px
    )
    1;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

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

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

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

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin-bottom: 22px;
}

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

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

.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: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-requisites {
  font-size: 12px;
  color: rgba(186, 230, 253, 0.7);
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-ca {
  font-size: 11px;
  color: rgba(186, 230, 253, 0.65);
  line-height: 1.55;
  max-width: 920px;
  padding-top: 12px;
  border-top: 1px dashed rgba(125, 211, 252, 0.25);
}

.age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(12, 74, 110, 0.88);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate.active {
  display: flex;
}

.age-box {
  background: var(--surface);
  color: var(--text);
  max-width: 420px;
  width: 100%;
  padding: 28px 24px;
  border: 2px solid var(--border);
  box-shadow: 6px 6px 0 rgba(14, 165, 233, 0.25);
  transform: rotate(-0.3deg);
}

.age-box h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
  transform: rotate(0.5deg);
}

.age-box p {
  font-size: 0.95rem;
  margin-bottom: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px) rotate(-0.4deg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--surface);
  border-top: 2px dashed rgba(14, 165, 233, 0.35);
  padding: 16px 20px;
  box-shadow: 0 -4px 24px rgba(12, 74, 110, 0.12);
}

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

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

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

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

.page-hero {
  background: var(--nav-dark);
  color: var(--surface);
  padding: 48px 20px 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}

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

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  transform: rotate(-0.5deg);
  text-shadow: 3px 3px 0 rgba(14, 165, 233, 0.35);
}

.page-hero p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 560px;
}

.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.content-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 16px;
  transform: rotate(-0.4deg);
}

.content-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 28px 0 10px;
  transform: rotate(0.3deg);
}

.content-wrap h3 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.content-wrap p {
  margin-bottom: 12px;
}

.content-wrap ul {
  margin: 0 0 14px 1.2rem;
}

.content-wrap li {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 28px;
  max-width: 480px;
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 5px 5px 0 rgba(14, 165, 233, 0.15);
  transform: rotate(-0.2deg);
}

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

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 600;
}

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

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.email-error {
  display: none;
  color: #b91c1c;
  font-size: 12px;
  margin-top: 6px;
}

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

.form-success {
  display: none;
  margin-top: 28px;
  padding: 20px;
  background: rgba(14, 165, 233, 0.1);
  border: 2px dashed rgba(14, 165, 233, 0.4);
}

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

.redirect-box {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: 6px 6px 0 rgba(14, 165, 233, 0.2);
}

.ad-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

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

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

.redirect-box h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.compliance-note {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(12, 74, 110, 0.7);
}

.compliance-note a {
  color: var(--primary);
}

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

.error-page h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  transform: rotate(-1deg);
  margin-bottom: 12px;
}

.error-page p {
  margin-bottom: 20px;
}

.decor-img {
  max-width: 500px;
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

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

  .burger-btn {
    display: flex;
  }
}

@media (max-width: 400px) {
  .decor-img {
    max-width: 100%;
    max-height: 200px;
  }

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

  .disclosure-banner {
    padding: 8px 12px;
    overflow-wrap: anywhere;
  }

  .footer-badges img {
    max-width: 100%;
  }
}
