:root {
  --bg: #0F172A;
  --surface: #1E293B;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --primary: #F97316;
  --secondary: #64748B;
  --accent: #38BDF8;
  --border: rgba(255, 255, 255, 0.08);
}

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

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  --design-keywords: classic grid-based rational timeless functional;
  background-image:
    linear-gradient(165deg, rgba(56, 189, 248, 0.04) 0%, transparent 42%),
    linear-gradient(345deg, rgba(249, 115, 22, 0.05) 0%, transparent 48%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 79px,
      rgba(255, 255, 255, 0.015) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.015) 79px,
      rgba(255, 255, 255, 0.015) 80px
    );
  pointer-events: none;
  z-index: 0;
}

.disclosure-banner {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(248, 250, 252, 0.92);
  color: #1E293B;
  border-bottom: 1px solid var(--border);
}

.disclosure-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.disclosure-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.trust-signal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #475569;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--bg);
}

.navbar-inner {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.navbar-logo img {
  height: 32px;
  width: auto;
  display: block;
}

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

.navbar-links a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s;
}

.navbar-links a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.burger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px 12px;
  color: var(--text);
  font-size: 18px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-overlay ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
}

.mobile-overlay a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  text-align: center;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-overlay .overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 12px;
}

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

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
}

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

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.85;
}

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

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-partners a {
  display: block;
}

.footer-partners img {
  height: 36px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.footer-partners a:hover img {
  opacity: 1;
}

.footer-disclosure {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-disclosure p {
  margin-bottom: 10px;
}

.footer-requisites {
  font-size: 11px;
  line-height: 1.6;
  color: var(--secondary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-requisites p {
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 11px;
  margin-top: 16px;
  color: var(--secondary);
}

.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.age-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 440px;
  width: 100%;
  padding: 32px;
  text-align: center;
}

.age-modal h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text);
}

.age-modal p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.age-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-actions button {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.age-yes {
  background: var(--primary);
  color: var(--text);
}

.age-no {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border) !important;
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 400;
}

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

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

.cookie-inner p {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

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

.cookie-actions button {
  padding: 8px 18px;
  font-size: 13px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-weight: 600;
}

.cookie-accept {
  background: var(--primary);
  color: var(--text);
}

.cookie-reject {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border) !important;
}

.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}

.legal-page p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal-page ul,
.legal-page ol {
  margin: 12px 0 16px 20px;
  color: var(--muted);
  font-size: 15px;
}

.legal-page li {
  margin-bottom: 6px;
}

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

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

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

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

.contact-form button {
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--text);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.form-error {
  font-size: 13px;
  color: var(--primary);
  display: none;
}

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

.form-success {
  display: none;
  padding: 24px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
}

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

.contact-form.is-hidden {
  display: none;
}

.info-cta {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  background: var(--primary);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
}

.info-cta:hover {
  background: rgba(249, 115, 22, 0.85);
}

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

  .burger-btn {
    display: block;
  }

  .mobile-overlay {
    display: flex;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
