:root {
  --bg: #fffaf2;
  --bg-soft: #f8eddf;
  --text: #22140d;
  --muted: #755f50;
  --primary: #7b3f22;
  --primary-dark: #4d2615;
  --accent: #d99a4e;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(70, 38, 20, 0.14);
  --shadow: 0 24px 70px rgba(86, 46, 24, 0.15);
}

* { 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(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 154, 78, 0.35), transparent 34rem),
    linear-gradient(180deg, #fffaf2 0%, #f8efe3 100%);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 242, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 12px; }

.nav-actions { display: flex; gap: 18px; align-items: center; font-size: 0.94rem; font-weight: 600; }
.nav-actions a { color: var(--muted); }
.nav-actions a:hover { color: var(--primary); }

.lang-toggle, .button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.lang-toggle { padding: 9px 13px; background: var(--text); color: #fff; }

.section { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 42px; align-items: center; min-height: 620px; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.7rem, 8vw, 5.8rem); letter-spacing: -0.07em; max-width: 850px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -0.045em; }
h3 { font-size: 1.1rem; }
.hero-text, .section-heading p, .learn-more p, .page-hero p { color: var(--muted); font-size: 1.06rem; max-width: 820px; }
.hero-actions, .quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: #fff; background: var(--primary); box-shadow: 0 12px 30px rgba(123, 63, 34, 0.25); }
.secondary { color: var(--primary-dark); background: #fff; border: 1px solid var(--line); }

.hero-card, .insight-card, .diagnostic, .results, .learn-more, .page-hero, .research-card, .logic-card {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: 34px;
}
.hero-card { padding: 34px; }
.score-ring { width: 190px; height: 190px; border-radius: 50%; border: 18px solid var(--accent); display: grid; place-items: center; margin: 0 auto 28px; text-align: center; background: #fff; }
.score-ring span { font-size: 2.3rem; font-weight: 800; display: block; }
.score-ring small { color: var(--muted); font-weight: 700; }
.hero-card p { color: var(--muted); }

.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 12px; }
.insight-card { padding: 24px; box-shadow: none; }
.metric { display: block; color: var(--primary); font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.insight-card p { color: var(--muted); margin-bottom: 0; }

.diagnostic, .results { padding: 42px; }
.section-heading { margin-bottom: 30px; }
.quiz-form { display: grid; gap: 22px; }
.question-card { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.66); }
.question-title { margin-bottom: 16px; font-weight: 800; font-size: 1.08rem; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; }
.option:hover { border-color: rgba(123, 63, 34, .45); }
.option input { margin-top: 5px; accent-color: var(--primary); }
.form-message { color: #b4482c; font-weight: 700; min-height: 1.4em; }

.hidden { display: none; }
.result-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.result-score-card, .result-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.fit-score { font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--primary); }
.progress-track { height: 12px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin-top: 18px; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s ease; }
.result-cards { display: grid; gap: 16px; }
.result-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); flex: none; }
.status-dot.risk { background: #c84f36; }
.status-dot.ok { background: #3d9a61; }
.result-card p { color: var(--muted); margin: 8px 0; }
.learn-link { display: inline-block; margin-top: 8px; color: var(--primary); font-weight: 800; }

.learn-more { display: grid; grid-template-columns: .75fr 1.25fr; gap: 28px; padding: 36px; margin-bottom: 70px; }
.footer { display: flex; justify-content: space-between; gap: 16px; width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 46px; color: var(--muted); border-top: 1px solid var(--line); }

.direct-quiz { margin-top: 42px; }
.direct-quiz h1 { font-size: clamp(2.1rem, 5vw, 4.6rem); }
.page-hero { padding: 42px; margin-top: 42px; }
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 0; }
.research-card { padding: 22px; box-shadow: none; overflow: hidden; }
.research-card img { width: 100%; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin-bottom: 18px; }
.research-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.research-card p, .logic-card p { color: var(--muted); }
.logic-list { display: grid; gap: 22px; padding-top: 0; }
.logic-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr); gap: 22px; align-items: center; padding: 24px; box-shadow: none; }
.logic-card h2 { font-size: 1.55rem; margin-bottom: 12px; }
.logic-card img { width: 100%; border-radius: 18px; background: #fff; border: 1px solid var(--line); }

@media (max-width: 860px) {
  .hero, .result-layout, .learn-more, .logic-card { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; gap: 12px; }
  .nav-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 560px) {
  .section { width: min(100% - 22px, 1120px); padding: 46px 0; }
  .insight-grid { grid-template-columns: 1fr; }
  .diagnostic, .results { padding: 22px; border-radius: 24px; }
  h1 { font-size: 2.85rem; }
  .footer { flex-direction: column; }
}