:root {
  --bg: #050F0A;
  --surface: #0C1A14;
  --text: #D1D5DB;
  --muted: #4B5563;
  --primary: #3A5A40;
  --secondary: #588157;
  --accent: #A3B18A;
  --border: rgba(88,129,87,0.2);
  --max-w: 1280px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-ui: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --kw-legal: legal;
  --kw-contracts: contracts;
  --kw-law: law;
  --kw-documents: documents;
}

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

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

body {
  font-family: var(--font-serif);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(58, 90, 64, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 10%, rgba(88, 129, 87, 0.18) 0%, transparent 50%),
    linear-gradient(175deg, var(--bg) 0%, var(--surface) 45%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "legal contracts law documents";
  position: fixed;
  inset: 0;
  font-size: 0;
  line-height: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(88, 129, 87, 0.04) 31px,
      rgba(88, 129, 87, 0.04) 32px
    );
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: var(--kw-legal) " " var(--kw-contracts) " " var(--kw-law) " " var(--kw-documents);
  position: fixed;
  inset: 0;
  font-size: 0;
  background-image:
    radial-gradient(circle at 15% 80%, rgba(163, 177, 138, 0.06) 0%, transparent 38%),
    radial-gradient(circle at 85% 60%, rgba(58, 90, 64, 0.1) 0%, transparent 42%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.disclosure-banner {
  position: relative;
  z-index: 100;
  background: none;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  border: 1px solid var(--muted);
  border-radius: 4px;
  padding: 6px 20px;
  max-width: fit-content;
  margin: 6px auto;
  font-family: var(--font-serif);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 56px;
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-lockup:hover {
  color: var(--accent);
}

.brand-lockup img {
  width: 28px;
  height: 35px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--text);
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.06em;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px;
}

.page-hero {
  padding: 48px 24px 24px;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  font-size: 1rem;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto 64px;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.legal-content h1 {
  font-size: 1.85rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}

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

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1rem;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: 14px;
}

.legal-content code {
  font-size: 0.9em;
  background: rgba(88, 129, 87, 0.15);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, "Courier New", monospace;
}

.cta-link {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: var(--primary);
  color: var(--text);
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.cta-link:hover {
  background: var(--secondary);
  color: var(--bg);
}

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

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(209, 213, 219, 0.82);
  font-size: 0.9rem;
}

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

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
}

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

.footer-requisites {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.au-disclosure {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 920px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.age-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 15, 10, 0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.age-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.age-dialog h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.age-dialog p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

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

.age-actions button,
.cookie-actions button,
.contact-form button {
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-radius: 4px;
  padding: 11px 18px;
}

.btn-confirm {
  background: var(--primary);
  color: var(--text);
}

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

.age-blocked {
  display: none;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.age-blocked.visible {
  display: block;
}

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

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

.cookie-banner p {
  max-width: var(--max-w);
  margin: 0 auto 12px;
  font-size: 0.9rem;
  color: var(--text);
}

.cookie-actions {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.cookie-actions .reject {
  background: transparent;
  color: var(--text);
}

.contact-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}

.contact-form label {
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  margin-top: 8px;
}

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

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

.contact-form button {
  margin-top: 12px;
  align-self: flex-start;
  background: var(--primary);
  color: var(--text);
}

.form-error {
  display: none;
  color: #c4a484;
  font-size: 0.85rem;
}

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

.form-success {
  display: none;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(88, 129, 87, 0.12);
}

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

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

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
}

@media (max-width: 480px) {
  .decor-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .decor-img {
    max-width: 100%;
    max-height: 200px;
    width: 100%;
    height: auto;
  }

  .image-rail {
    max-width: 100%;
    overflow: hidden;
  }

  .image-rail img {
    max-width: 100%;
    height: auto;
  }
}

.go-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.go-page h1 {
  margin: 18px 0 10px;
  font-size: 1.6rem;
}

.go-page p {
  color: var(--muted);
  max-width: 420px;
}

#AD {
  font-family: var(--font-ui);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.go-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: go-spin 0.8s linear infinite;
}

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

.go-notes {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.go-notes a {
  color: var(--accent);
}

.error-page {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

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

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

  .nav-links {
    display: none;
    position: fixed;
    inset: 56px 0 0 0;
    background: var(--bg);
    padding: 32px 24px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
    justify-items: stretch;
    z-index: 95;
    overflow-y: auto;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    text-align: center;
    padding: 12px 10px;
  }
}

@media print {
  .site-header,
  .disclosure-banner,
  .cookie-banner,
  .age-overlay,
  .nav-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section-wrap,
  .legal-content {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
