:root {
  --bg: #FAF5EE;
  --bg-2: #F2E9DC;
  --ink: #2B1D14;
  --muted: #7A6A5C;
  --accent: #B5651D;
  --accent-2: #8A5A3C;
  --card: #FFFFFF;
  --line: #E8DCCB;
  --shadow: 0 10px 30px rgba(43, 29, 20, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(165deg, #F8F3EC 0%, #F4E7D8 48%, #EAD8C6 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
}

img { border: 0; max-width: 100%; }

a { color: var(--accent); }

p { margin: 0 0 16px; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
}

h1 { font-size: 64px; }

h2 { font-size: 40px; }

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

.muted { color: var(--muted); }

.container {
  width: min(1200px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 245, 238, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.age-slim {
  background: linear-gradient(90deg, #4E3428 0%, #6A4636 100%);
  color: #F7F3EA;
  font-size: 14px;
  font-weight: 500;
}

.age-slim .container { padding-top: 10px; padding-bottom: 10px; }

.age-slim p { margin: 0; font-size: 14px; line-height: 1.45; }

.age-slim a { color: #F7F3EA; font-weight: 500; margin-right: 14px; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #2B1D14;
  color: #F3E6D4;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
  min-width: 0;
}

.logo-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-dom {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.foot-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-right: auto;
}

.nav, .ops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.nav a, .ops a, .foot a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav a.on, .ops a.on { color: var(--accent); }

.nav a:hover, .ops a:hover, .foot a:hover, .mail:hover { color: var(--accent); }

.mail {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  max-width: 260px;
  text-align: right;
}

.ops {
  padding: 14px 0 18px;
}

main { padding: 56px 0 40px; }

main section + section { margin-top: 120px; }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.grid12.pair { align-items: stretch; }

.grid12.pair > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.grid12.pair > div > .btn { align-self: flex-start; }

.s3 { grid-column: span 3; }
.s4 { grid-column: span 4; }
.s5 { grid-column: span 5; }
.s6 { grid-column: span 6; }
.s7 { grid-column: span 7; }
.s8 { grid-column: span 8; }
.s12 { grid-column: span 12; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.28s ease;
}

.card:hover { transform: translateY(-6px); }

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.score {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 8px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 18px 0 22px;
}

.metrics div { display: flex; justify-content: space-between; gap: 8px; }

.metrics dt { color: var(--muted); font-weight: 400; }

.metrics dd { margin: 0; font-weight: 500; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border: 1.5px solid var(--accent);
  transition: transform 0.2s ease;
}

.btn:hover { transform: scale(1.03); color: #fff; }

.btn.line {
  background: transparent;
  color: var(--accent);
}

.btn.line:hover { color: var(--accent); }

.ico {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ico svg { width: 22px; height: 22px; }

.row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.band {
  background: linear-gradient(180deg, #FBF6F0 0%, #F0E2D2 100%);
  border-radius: 20px;
  padding: 36px;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card.tight { padding: 20px 22px 18px; }

.card.tight .headrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.card.tight .mark {
  width: 52px;
  height: 52px;
  margin: 0;
  flex: 0 0 auto;
  font-size: 22px;
}

.card.tight h3 { margin: 0; }

.card.tight .score { font-size: 30px; line-height: 1; margin: 2px 0 0; }

.card.tight p { margin-bottom: 8px; font-size: 15px; }

.card.tight .metrics { margin: 8px 0 14px; }

.sheet {
  flex: 1 1 auto;
  margin: 0;
  padding: 26px 24px 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

  .sheet h2 { font-size: 26px; }

.sheet p:last-child { margin-bottom: 0; }

.facts {
  display: grid;
  gap: 0;
  margin: 0 0 16px;
}

.facts div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child { border-bottom: 0; padding-bottom: 0; }

.facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facts dd { margin: 0; font-weight: 500; }

ul, ol { margin: 0 0 16px; padding-left: 1.2rem; }

li { margin: 0 0 8px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

input, textarea {
  font: 400 17px/1.6 Inter, sans-serif;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 101, 29, 0.25);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .s3, .s4, .s5, .s6, .s7, .s8, .s12 { grid-column: span 12; }
  .duo { grid-template-columns: 1fr; }
  main section + section { margin-top: 72px; }
  .bar { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .mail { max-width: none; text-align: left; }
  .band { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
