:root {
  --site-bg: #0d0d1f;
  --site-card: #161633;
  --site-card-2: #1b1b3d;
  --site-border: #252558;
  --site-text: #e2e8f0;
  --site-muted: #94a3b8;
  --site-soft: #a8bbd6;
  --site-primary: #b79d72;
  --site-shadow: 0 18px 52px rgba(2, 6, 23, 0.28);
}

body.light {
  --site-bg: #ece4d1;
  --site-card: #f6f0e3;
  --site-card-2: #efe6d3;
  --site-border: #d5c8ac;
  --site-text: #332a1f;
  --site-muted: #756754;
  --site-soft: #5f5343;
  --site-primary: #b2873c;
  --site-shadow: 0 18px 42px rgba(143, 116, 65, 0.12);
}

.site-simple *,
.site-simple *::before,
.site-simple *::after {
  box-sizing: border-box;
}

.site-simple body,
body.site-simple {
  min-height: 100vh;
  margin: 0;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(183, 157, 114, 0.09), transparent 24%),
    radial-gradient(circle at top right, rgba(139, 117, 88, 0.08), transparent 28%),
    var(--site-bg);
  color: var(--site-text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  transition: background 0.25s, color 0.25s;
}

body.site-simple.light {
  background: #ece4d1;
}

.site-wrap {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 2.4rem);
  display: flex;
  flex-direction: column;
}

.site-chrome-mount {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 0 auto;
}

.theme-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  background: var(--site-card);
  border: 1px solid var(--site-border);
  border-radius: 12px;
  color: var(--site-muted);
  padding: 0.52rem 0.92rem;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--site-shadow);
}

.theme-btn:hover {
  color: var(--site-text);
  border-color: var(--site-primary);
}

.site-header,
.site-footer,
.site-panel,
.site-hero,
.site-section {
  border: 1px solid var(--site-border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--site-card);
  box-shadow: var(--site-shadow);
}

body.light .site-header,
body.light .site-footer,
body.light .site-panel,
body.light .site-hero,
body.light .site-section {
  background:
    linear-gradient(180deg, rgba(250, 246, 238, 0.99), rgba(242, 233, 217, 0.96)),
    var(--site-card);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
}

.site-brand {
  text-decoration: none;
  color: var(--site-text);
}

.site-brand strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.site-brand span {
  display: block;
  margin-top: 0.18rem;
  color: var(--site-muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(183, 157, 114, 0.18);
  background: rgba(183, 157, 114, 0.07);
  color: var(--site-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--site-text);
  border-color: rgba(183, 157, 114, 0.34);
  background: rgba(183, 157, 114, 0.12);
}

.site-main {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  flex: 1;
}

.site-hero,
.site-panel,
.site-section,
.site-footer {
  padding: 1.25rem;
}

.site-hero h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.site-hero p,
.site-panel p,
.site-section p,
.site-panel li,
.site-section li {
  color: var(--site-soft);
  line-height: 1.78;
  font-size: 0.98rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  background: rgba(183, 157, 114, 0.1);
  border: 1px solid rgba(183, 157, 114, 0.22);
  color: var(--site-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.site-grid-main {
  grid-column: span 8;
}

.site-grid-side {
  grid-column: span 4;
}

.site-stack,
.guide-grid,
.legal-grid,
.faq-grid,
.link-grid {
  display: grid;
  gap: 1rem;
}

.guide-grid,
.faq-grid,
.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-card,
.guide-card,
.faq-card {
  border: 1px solid rgba(183, 157, 114, 0.16);
  border-radius: 22px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--site-card-2);
}

.guide-card {
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  border-color: rgba(183, 157, 114, 0.34);
}

.guide-card h3,
.faq-card h3,
.site-panel h2,
.site-section h2,
.site-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.3;
}

.site-panel h2,
.site-section h2 {
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.site-panel h3,
.site-section h3,
.site-card h4 {
  margin: 1rem 0 0.4rem;
  font-size: 1rem;
  line-height: 1.35;
}

.site-panel a,
.site-section a,
.site-card a {
  color: var(--site-primary);
}

.site-panel ul,
.site-panel ol,
.site-section ul,
.site-section ol,
.site-card ul,
.site-card ol {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.site-panel li + li,
.site-section li + li,
.site-card li + li {
  margin-top: 0.35rem;
}

.cta-box {
  border-left: 4px solid var(--site-primary);
  border-radius: 0 20px 20px 0;
  padding: 1rem 1.05rem;
  background: rgba(183, 157, 114, 0.06);
}

.small-note {
  color: var(--site-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.breadcrumbs a,
.breadcrumbs span {
  color: var(--site-muted);
  text-decoration: none;
  font-size: 0.82rem;
}

.breadcrumbs a:hover {
  color: var(--site-text);
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
}

button.btn-primary,
button.btn-secondary {
  border: none;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(183, 157, 114, 0.95), rgba(139, 117, 88, 0.95));
  color: #1a130c;
}

.btn-secondary {
  background: rgba(183, 157, 114, 0.08);
  border: 1px solid rgba(183, 157, 114, 0.2);
  color: var(--site-primary);
}

.legal-item,
.contact-item {
  border-left: 4px solid var(--site-primary);
  border-radius: 0 18px 18px 0;
  padding: 0.95rem 1rem;
  background: rgba(183, 157, 114, 0.06);
}

.placeholder {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.56rem;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.light .placeholder {
  color: #b91c1c;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(183, 157, 114, 0.18);
  background: rgba(15, 12, 8, 0.22);
  color: var(--site-text);
  font: inherit;
  padding: 0.82rem 0.9rem;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

body.light .field input,
body.light .field textarea {
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(203, 189, 157, 0.9);
}

.site-footer {
  margin-top: 1rem;
}

.site-wrap > [data-site-footer] {
  margin-top: auto;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
}

.site-footer-links a {
  color: var(--site-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.site-footer-note {
  margin-top: 0.6rem;
  color: var(--site-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.ad-slot-note {
  display: none;
}

.ad-slot-note.is-visible {
  display: block;
  border: 1px dashed rgba(183, 157, 114, 0.32);
  border-radius: 18px;
  padding: 0.95rem;
  color: var(--site-muted);
  background: rgba(183, 157, 114, 0.04);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .site-grid,
  .guide-grid,
  .faq-grid,
  .link-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .site-grid-main,
  .site-grid-side {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  body.site-simple {
    padding: 0.8rem;
  }

  .site-header,
  .site-footer,
  .site-panel,
  .site-hero,
  .site-section {
    border-radius: 22px;
    padding: 1rem;
  }
}
