:root {
  --bg: #f5f1e8;
  --ink: #17130f;
  --muted: #6e675d;
  --line: #ded4c4;
  --dark: #11100e;
  --dark-soft: #1b1916;
  --gold: #b08a43;
  --gold-light: #d8b66e;
  --white: #fffaf1;
  --danger: #8d3327;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(23, 19, 15, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(245, 241, 232, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header.compact {
  position: static;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--ink);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.header-cta {
  color: var(--white);
  background: var(--dark);
  font-size: 14px;
}

.btn.primary {
  color: var(--dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.btn.secondary {
  color: var(--ink);
  background: transparent;
  border-color: rgba(23, 19, 15, .25);
}

.btn.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: clamp(54px, 8vw, 110px) clamp(20px, 6vw, 86px);
  background:
    radial-gradient(circle at 80% 20%, rgba(176, 138, 67, .18), transparent 34%),
    linear-gradient(135deg, #f7f1e6 0%, #e8decd 100%);
}

.hero-inner {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .13em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .96;
  letter-spacing: -.04em;
}

h2 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -.035em;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(42px, 6vw, 72px);
}

.legal-page h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.legal-updated {
  margin-bottom: 36px;
  color: var(--muted);
  font-weight: 700;
}

.legal-block {
  padding: 28px 0;
  border-top: 1px solid rgba(23, 19, 15, .14);
}

.legal-block p,
.legal-block li {
  color: #3e382f;
  font-size: 17px;
}

.legal-block ul {
  margin: 0;
  padding-left: 22px;
}

.legal-block li + li {
  margin-top: 8px;
}

.legal-block.notice {
  margin: 18px 0 28px;
  padding: 24px;
  background: rgba(176, 138, 67, .12);
  border: 1px solid rgba(176, 138, 67, .28);
  border-radius: var(--radius);
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 720px;
  color: #3e382f;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid rgba(23, 19, 15, .14);
  border-radius: 999px;
}

.hero-panel {
  padding: 22px;
  color: var(--white);
  background: linear-gradient(180deg, var(--dark), var(--dark-soft));
  border: 1px solid rgba(255, 250, 241, .12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.score-card {
  padding: 24px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
}

.score-card strong {
  display: block;
  margin: 6px 0 12px;
  color: var(--gold-light);
  font-size: 44px;
  line-height: 1;
}

.score-label,
.panel-grid span {
  color: #c9bca8;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.panel-grid div {
  padding: 18px;
  background: rgba(255, 255, 255, .05);
  border-radius: var(--radius);
}

.panel-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 30px;
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 6vw, 86px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.three-cols,
.steps,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.three-cols article,
.steps article,
.price-card,
.question-card,
.faq-list details {
  background: rgba(255, 250, 241, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.three-cols article,
.steps article {
  padding: 26px;
}

.three-cols p,
.steps p,
.price-card p,
.faq-list p {
  color: var(--muted);
}

.dark {
  color: var(--white);
  background: var(--dark);
}

.dark .section-heading h2 {
  color: var(--white);
}

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

.risk-item {
  min-height: 96px;
  padding: 18px;
  display: flex;
  align-items: end;
  color: var(--white);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  font-weight: 800;
}

.steps span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 34px;
  font-weight: 900;
}

.pricing {
  background: #eee5d6;
}

.price-card {
  position: relative;
  padding: 26px;
}

.price-card.featured {
  color: var(--white);
  background: var(--dark);
  border-color: var(--gold);
  transform: translateY(-10px);
}

.price-card.featured p,
.price-card.featured li {
  color: #d8cdbb;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  color: var(--dark) !important;
  background: var(--gold-light);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.price {
  margin-bottom: 10px;
  color: var(--ink) !important;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.featured .price {
  color: var(--gold-light) !important;
}

.price-card ul {
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.price-card li {
  padding: 10px 0;
  border-top: 1px solid rgba(110, 103, 93, .24);
}

.pricing-note {
  max-width: 900px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.questionnaire {
  background: linear-gradient(180deg, var(--dark) 0 50%, var(--bg) 50% 100%);
}

.question-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.risk-form {
  display: grid;
  gap: 14px;
}

label,
legend {
  color: #383129;
  font-size: 14px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 600;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.result {
  grid-column: 2;
  display: none;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(176, 138, 67, .45);
  background: #fbf3df;
}

.result.show {
  display: block;
}

.result strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 86px);
  color: #d8cdbb;
  background: var(--dark);
}

.footer p {
  margin: 8px 0 0;
  color: #a99f91;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }

  .hero,
  .question-card {
    grid-template-columns: 1fr;
  }

  .three-cols,
  .steps,
  .pricing-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .result {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
  }
}
