:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --text: #1C1917;
  --muted: #78716C;
  --primary: #D4AF37;
  --secondary: #0F172A;
  --accent: #92400E;
  --border: rgba(28, 25, 23, 0.12);
  --ui-style: claymorphism 3d soft friendly tactile;
  --font: "Avenir Next", "Segoe UI", "Trebuchet MS", "Gill Sans", sans-serif;
  --max: 1200px;
  --radius-clay: 32px;
  --shadow-fluffy: 0 18px 40px rgba(28, 25, 23, 0.08), 0 4px 12px rgba(28, 25, 23, 0.04);
  --shadow-inner: inset 0 2px 6px rgba(255, 255, 255, 0.65), inset 0 -4px 10px rgba(28, 25, 23, 0.06);
}

*,
*::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);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(165deg, rgba(251, 248, 243, 1) 0%, rgba(255, 255, 255, 0.92) 42%, rgba(251, 248, 243, 1) 100%),
    radial-gradient(ellipse at 12% 8%, rgba(212, 175, 55, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse at 88% 20%, rgba(146, 64, 14, 0.08) 0%, transparent 42%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      125deg,
      transparent,
      transparent 28px,
      rgba(28, 25, 23, 0.015) 28px,
      rgba(28, 25, 23, 0.015) 29px
    );
  opacity: 0.9;
}

body::after {
  content: var(--ui-style);
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

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

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

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

ul {
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.disclosure-banner {
  position: relative;
  width: 100%;
  background: linear-gradient(90deg, var(--primary) 0 50%, var(--surface) 50% 100%);
  padding: 8px 16px;
  border: none;
}

.disclosure-light,
.disclosure-dark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin: 0;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

.disclosure-light {
  color: var(--surface);
  clip-path: inset(0 50% 0 0);
}

.disclosure-dark {
  color: var(--text);
  clip-path: inset(0 0 0 50%);
}

.disclosure-spacer {
  font-size: 12px;
  line-height: 1.4;
  visibility: hidden;
  text-align: center;
  margin: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 58px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--surface);
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--surface);
  white-space: nowrap;
}

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

.navbar-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
  text-decoration: none;
}

.navbar-links a::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

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

.navbar-links a:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
  box-shadow: var(--shadow-inner);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.burger:hover {
  transform: scale(1.06);
}

.burger:active {
  transform: scale(0.92);
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--surface);
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.burger span {
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-backdrop.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 86vw);
  height: 100vh;
  background: var(--secondary);
  z-index: 450;
  padding: 80px 0 32px;
  transform: translateX(-105%);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  box-shadow: var(--shadow-fluffy);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-nav a:hover {
  border-left-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface);
}

.age-gate,
.cookie-banner {
  display: none;
  position: fixed;
  z-index: 1000;
}

.age-gate.active {
  display: flex;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  padding: 24px;
}

.age-gate-card {
  background: var(--surface);
  border-radius: var(--radius-clay);
  padding: 36px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-fluffy), var(--shadow-inner);
}

.age-gate-card h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.age-gate-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.age-gate-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;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow: var(--shadow-fluffy);
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn:active {
  transform: scale(0.94);
}

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

.btn-secondary {
  background: rgba(28, 25, 23, 0.08);
  color: var(--text);
}

.cookie-banner.active {
  display: block;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin: 0 auto;
}

.cookie-card {
  background: var(--surface);
  border-radius: var(--radius-clay);
  padding: 22px 20px;
  box-shadow: var(--shadow-fluffy), var(--shadow-inner);
  border: 1px solid var(--border);
}

.cookie-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.site-footer {
  margin-top: 64px;
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 32px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

.footer-brand span {
  font-size: 18px;
  font-weight: 800;
  color: var(--surface);
}

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

.footer-links a {
  font-size: 13px;
  font-weight: 600;
}

.footer-requisites {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  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-au-disclosure {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  max-width: 920px;
  margin-top: 8px;
}

.legal-page {
  padding: 48px 0 64px;
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--secondary);
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 72ch;
}

.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-shell {
  background: var(--surface);
  border-radius: var(--radius-clay);
  padding: 36px 28px;
  box-shadow: var(--shadow-fluffy), var(--shadow-inner);
  border: 1px solid var(--border);
}

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

.contact-form label {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(251, 248, 243, 0.9);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  box-shadow: var(--shadow-inner);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  transform: scale(1.01);
}

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

.email-error {
  display: none;
  color: var(--accent);
  font-size: 13px;
  margin-top: 6px;
}

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

.form-success {
  display: none;
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-clay);
  background: rgba(212, 175, 55, 0.15);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-inner);
}

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

.page-404 {
  padding: 80px 0;
  text-align: center;
}

.page-404 h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.decor-img {
  max-width: min(500px, 100%);
  max-height: 320px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-clay);
  box-shadow: var(--shadow-fluffy);
}

.decor-wrap {
  overflow: hidden;
  max-width: 100%;
  border-radius: var(--radius-clay);
}

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

  .burger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .disclosure-banner {
    padding: 10px 12px;
  }

  .footer-badges img {
    height: 36px;
  }

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

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

  .wrap {
    padding: 0 16px;
  }
}

.topic-hero {
  padding: 56px 0 40px;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(146, 64, 14, 0.75)),
    url("/images/decorative/decor_5.jpg") center/cover;
  color: #fff;
}

.topic-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.topic-hero p {
  max-width: 40em;
  opacity: 0.92;
  font-size: 17px;
}

.topic-body {
  padding: 48px 0 64px;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}

.topic-prose h2 {
  font-size: 24px;
  font-weight: 900;
  margin: 28px 0 12px;
  color: var(--secondary);
}

.topic-prose p {
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 70ch;
}

.topic-prose ul {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0 20px;
  color: var(--muted);
}

.topic-prose li {
  margin-bottom: 8px;
}

.topic-rail {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border-radius: var(--radius-clay);
  padding: 22px;
  box-shadow: var(--shadow-fluffy), var(--shadow-inner);
  border: 1px solid var(--border);
}

.topic-rail h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--accent);
}

.topic-rail ol {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.topic-rail li {
  margin-bottom: 8px;
}

.topic-band {
  margin-top: 36px;
  border-radius: var(--radius-clay);
  overflow: hidden;
  max-width: 100%;
  background-image: url("/images/decorative/decor_6.jpg");
  background-size: cover;
  background-position: center;
  min-height: 200px;
  box-shadow: var(--shadow-fluffy);
  position: relative;
}

.topic-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.75), transparent);
}

.topic-band-inner {
  position: relative;
  z-index: 1;
  padding: 36px 28px;
  color: #fff;
  max-width: 28em;
  font-weight: 700;
  font-size: 18px;
}

@media (max-width: 860px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .topic-rail {
    position: static;
  }

  .topic-hero,
  .topic-band {
    max-width: 100%;
    overflow: hidden;
  }

  .topic-band {
    min-height: 160px;
  }
}
