/* FindYourSelf — базовые стили. Один файл, без сборки и внешних шрифтов. */

:root {
  --paper: #f6f3ec;
  --paper-2: #efe9dd;
  --paper-3: #e7e0d2;
  --ink: #1b1a17;
  --ink-soft: #46423a;
  --muted: #7b7469;
  --line: rgba(27, 26, 23, 0.13);
  --line-strong: rgba(27, 26, 23, 0.24);
  --accent: #b44a2f;
  --accent-dark: #8e3a24;
  --accent-soft: #f3ddd4;
  --teal: #2d6a61;
  --teal-soft: #dcebe6;
  --gold: #b98b3c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(48, 40, 27, 0.09);
  --shadow-sm: 0 4px 14px rgba(48, 40, 27, 0.07);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.wrap.narrow { width: min(760px, calc(100% - 40px)); }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* ---------- шапка ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.86);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), var(--gold), var(--teal), var(--accent));
  box-shadow: inset 0 0 0 3px var(--paper);
  border: 1px solid var(--line-strong);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--accent-dark); }
.inline-form { display: inline; margin: 0; }
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-button:hover { color: var(--accent-dark); }

/* ---------- кнопки ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-small { padding: 8px 16px; font-size: 0.9rem; }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line-strong); }
.button[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 6vw, 70px);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

.hero-art { position: relative; min-height: 380px; display: grid; place-items: center; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.85;
}
.orb-1 { width: 260px; height: 260px; background: radial-gradient(circle at 35% 30%, #d98b6e, var(--accent)); top: 10px; right: 40px; opacity: 0.55; }
.orb-2 { width: 190px; height: 190px; background: radial-gradient(circle at 40% 35%, #7fb3a8, var(--teal)); bottom: 20px; left: 20px; opacity: 0.5; }
.orb-3 { width: 120px; height: 120px; background: radial-gradient(circle at 40% 35%, #e2c184, var(--gold)); top: 30px; left: 80px; opacity: 0.6; }
.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  max-width: 380px;
  backdrop-filter: blur(6px);
}
.tiny-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 10px; }
.quote { font-family: var(--serif); font-size: 1.15rem; line-height: 1.4; color: var(--ink); margin-bottom: 14px; }
.sources-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- секции ---------- */
.section { padding: clamp(44px, 7vw, 86px) 0; }
.section-tinted { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-cta { background: linear-gradient(160deg, var(--paper-2), #f1e5d4); border-top: 1px solid var(--line); }
.section-lead { max-width: 66ch; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 34px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.step { background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.lens-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lens-card { background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.lens-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.badge-science { background: var(--teal-soft); color: #1f534c; }
.badge-reflect { background: #f2e6cc; color: #7a5a1c; }

.prose { font-size: 1.05rem; color: var(--ink-soft); }
.prose p { margin-bottom: 1.1em; }

/* ---------- формы ---------- */
.form-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  max-width: 560px;
  margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 7px; }
.form-row .hint { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(180, 74, 47, 0.35);
  outline-offset: 2px;
}
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.checkbox-row input { margin-top: 4px; }
.form-error {
  background: #fbe7e2;
  border: 1px solid #e6b3a5;
  color: #7d2d18;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.form-footer { margin-top: 22px; font-size: 0.93rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- кабинет и отчёт ---------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 10px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { color: var(--ink-soft); max-width: 70ch; }

.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--paper-3);
  overflow: hidden;
  margin: 10px 0 6px;
}
.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card h2, .card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.stat-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stat-list li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stat-list li:last-child { border-bottom: 0; }
.stat-list .label { color: var(--muted); }
.stat-list .value { font-weight: 600; text-align: right; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.chip-strong { background: var(--teal-soft); border-color: transparent; color: #1f534c; }

.disclaimer {
  border-left: 3px solid var(--gold);
  background: #fbf4e4;
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: #5f4a1c;
  margin-top: 22px;
}

.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; background: var(--paper-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; align-items: flex-start; }
.footer-links a { color: var(--ink-soft); }
.powered { color: var(--muted); font-size: 0.85rem; }

/* ---------- адаптив ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; order: 2; }
  .steps { grid-template-columns: 1fr; }
  .lens-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 0.9rem; }
  .site-nav a:not(.button) { display: none; }
  .site-nav .button { display: inline-flex; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .hero-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- опросники ---------- */
.quiz { display: grid; gap: 16px; }
.part-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 26px 0 2px;
  font-family: var(--sans);
  font-weight: 700;
}
.q-card {
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.q-legend {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 12px;
}
.q-num {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  flex: none;
}
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale-option {
  flex: 1 1 0;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
}
.scale-option input { position: absolute; opacity: 0; pointer-events: none; }
.scale-option:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.scale-option:focus-within { outline: 3px solid rgba(180, 74, 47, 0.35); outline-offset: 2px; }
.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 8px;
}
.pair-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.pair-option:last-child { margin-bottom: 0; }
.pair-option:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.pair-option input { margin-top: 4px; }

.bar {
  height: 9px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 2px;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.bar-thin { height: 6px; }
.axis { margin-bottom: 6px; }
