:root {
  --bg: #f7f3ea;
  --card: #ffffff;
  --ink: #1f2a24;
  --muted: #66736b;
  --line: #e1dacd;
  --accent: #7f2f2b;
  --accent-dark: #5f211e;
  --soft: #f0e7d7;
  --ok: #1f6f52;
  --warn: #a15b00;
  --blue: #123a63;
  --orange: #d75a22;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(215,90,34,.13) 0, transparent 30%),
    radial-gradient(circle at top left, #fff7e8 0, var(--bg) 44%, #edf2ed 100%);
  min-height: 100vh;
}
a { color: var(--accent); }
.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  align-items: center;
  padding: 20px 8px 26px;
}
.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(127,47,43,.1);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(44px, 7vw, 82px);
  margin: 0;
  letter-spacing: -0.055em;
  line-height: .95;
}
.subtitle {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.55;
}
.hero-image-wrap {
  justify-self: end;
  width: min(240px, 34vw);
  aspect-ratio: 1 / 1.25;
  display: grid;
  place-items: center;
  border-radius: 38px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 28px 70px rgba(58,45,32,.12);
  overflow: hidden;
}
.hero-stork {
  width: 92%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(18,58,99,.16));
}
.advisor-card, .note-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(225,218,205,.9);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(58,45,32,.12);
  padding: clamp(22px, 4vw, 36px);
  backdrop-filter: blur(10px);
}
.advisor-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.avatar-img {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18,58,99,.06), rgba(215,90,34,.09));
  box-shadow: 0 14px 30px rgba(127,47,43,.15);
  padding: 5px;
}
h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.02em; }
.advisor-head p, .note-card p { color: var(--muted); line-height: 1.55; margin: 0; font-size: 17px; }
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin: 20px 0 14px;
}
input {
  width: 100%;
  padding: 18px 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  font-size: 18px;
  outline: none;
  background: #fff;
}
input:focus { border-color: rgba(127,47,43,.55); box-shadow: 0 0 0 4px rgba(127,47,43,.08); }
button {
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: white;
  font-weight: 850;
  padding: 0 28px;
  font-size: 17px;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }
.quick-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
.quick-tests button {
  background: var(--soft);
  color: var(--accent-dark);
  padding: 10px 14px;
  font-size: 15px;
}
.quick-tests button:hover { background: #e4d4bd; }
.answer-box {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf9;
  padding: 24px;
}
.answer-box p { line-height: 1.65; font-size: 17px; }
.placeholder { color: var(--muted); margin: 0; }
.result-label {
  font-size: 13px;
  font-weight: 850;
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
.intent-box {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f3ea;
  border: 1px solid #eadfcd;
  font-size: 14px;
  color: var(--muted);
}
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 13px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 850;
}
.link-button:hover { background: var(--accent-dark); }
.warn { color: var(--warn); font-weight: 850; }
.note-card { margin-top: 22px; padding: 18px 24px; }
@media (max-width: 760px) {
  .page-shell { width: min(100% - 22px, 1080px); padding-top: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .subtitle { margin-left: auto; margin-right: auto; }
  .hero-image-wrap { justify-self: center; width: min(190px, 62vw); }
  .advisor-head { align-items: flex-start; }
  .input-row { grid-template-columns: 1fr; }
  button { padding: 15px 18px; }
}
.language-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(225,218,205,.9);
  box-shadow: 0 12px 28px rgba(58,45,32,.12);
  backdrop-filter: blur(10px);
}
.language-switch button {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
}
.language-switch button.active {
  color: #fff;
  background: var(--ok);
}
.language-switch button:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 760px) {
  .language-switch { position: static; margin: 0 0 10px auto; width: fit-content; }
}
