:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --surface-2: #141414;
  --text: #f5f0e6;
  --muted: #b8a88a;
  --accent: #d4af37;
  --accent-light: #f0d878;
  --accent-hover: #c5a028;
  --bronze: #8b6914;
  --border: rgba(212, 175, 55, 0.22);
  --radius: 12px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Palatino Linotype", serif;
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(212, 175, 55, 0.14), transparent),
    radial-gradient(ellipse 40% 30% at 100% 50%, rgba(139, 105, 20, 0.08), transparent),
    linear-gradient(180deg, #000000, #050505);
  min-height: 100vh;
  padding-bottom: 80px;
}

h1,
h2,
h3,
.content-header h1,
.prose h2,
.footer-title,
.mid-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-light);
}

.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1200;
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  flex-shrink: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-light);
  line-height: 1.1;
}

.logo-text small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  font-family: var(--font);
  font-weight: 600;
}

.nav {
  flex: 1;
  min-width: 0;
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-light);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  justify-content: center;
}

.nav-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent-light);
  background: rgba(212, 175, 55, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: linear-gradient(145deg, #f0d878, #d4af37 45%, #a67c00);
  color: #1a1000;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.35);
  border: 1px solid rgba(255, 230, 150, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.06);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}
.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.15rem;
}
.btn-block {
  width: 100%;
}
.btn-header {
  flex-shrink: 0;
}

.cta-bar {
  background: linear-gradient(90deg, #0a0a0a, #121212, #0a0a0a);
  border-bottom: 1px solid var(--border);
}
.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.cta-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.main {
  padding: 2rem 0 3rem;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  opacity: 0.6;
}

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.brand-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand-hero img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: #000;
}

.brand-hero-caption {
  flex: 1;
  min-width: 200px;
  font-size: 0.95rem;
  color: var(--muted);
}

.content-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  min-height: 2.4em;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
  min-height: 3.2em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}
.prose h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin-top: 1.5rem;
}
.prose p,
.prose ul,
.prose ol {
  color: #d4cfc4;
}
.prose a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mid-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #141414, #0a0a0a);
  border: 1px solid var(--border);
  text-align: center;
}
.mid-cta h2 {
  margin-top: 0;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.65rem 4vw;
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  z-index: 90;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #000;
    padding: 1rem 4vw;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
  }
  .nav-list.is-open {
    display: flex;
  }
  .btn-header {
    display: none;
  }
  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }
  .logo-text {
    display: none;
  }
}

.admin-body {
  padding: 2rem 0;
}
.admin-wrap {
  max-width: 520px;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.admin-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.admin-form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
}
.msg-error {
  background: rgba(255, 100, 100, 0.15);
  color: #ffb4b4;
}
.msg-success {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-light);
}
.hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.seo-related,
.seo-keywords,
.seo-trust,
.seo-mega {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.seo-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.seo-related-list a {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.95rem;
}

.seo-keywords p,
.seo-mega p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

.seo-mega,
.seo-keywords,
.seo-trust,
.seo-related {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
