/* Manifest-Anima — стили по макету v3.
   Токены: тёплая бумага #f7f6f3, чернила #1d1c1a, тёмные секции #161511,
   оранжевый акцент #c96f22 (на светлом) / #e08a3c (на тёмном).
   Шрифты: Spectral (антиква), Quicksand+Nunito (гротеск, кириллица — Nunito). */

:root {
  --paper: #f7f6f3;
  --ink: #1d1c1a;
  --dark: #161511;
  --on-dark: #e9e7e1;
  --muted: #55524c;
  --soft: #8a8781;
  --faint: #b3aea6;
  --line-strong: #dedbd5;
  --line-card: #e5e2dc;
  --hairline: #eceae5;
  --accent: #c96f22;
  --accent-dark: #e08a3c;
  --sans: 'Quicksand', 'Nunito', system-ui, sans-serif;
  --serif: 'Spectral', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration: none; }

img { max-width: 100%; }

.wrap { width: min(880px, 100%); margin: 0 auto; }

/* --- Шапка --------------------------------------------------------------- */
.site-header {
  height: 76px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-strong);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 34px; height: 34px; display: block; }
.wordmark {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* --- Кнопки-пилюли ------------------------------------------------------- */
.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--paper);
  transition: opacity 0.15s;
}
.pill:hover { opacity: 0.85; }
.pill-sm { font-size: 13px; padding: 9px 18px; }
.pill-light { background: var(--on-dark); color: var(--dark); }
.pill-wide { width: 100%; text-align: center; }
.pill[disabled] { opacity: 0.4; cursor: default; }

.link-soft {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid #cbc6bd;
  padding-bottom: 2px;
}
.link-soft:hover { color: var(--ink); border-color: var(--soft); }

.pill:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Типографика --------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--soft);
}
.serif { font-family: var(--serif); }

/* --- Флэш-сообщения и ошибки форм ---------------------------------------- */
.flash {
  width: min(880px, calc(100% - 96px));
  margin: 22px auto 0;
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 14.5px;
  color: var(--muted);
}
.form-error {
  background: #f9edea;
  border: 1px solid #e6c4bc;
  border-radius: 8px;
  padding: 11px 15px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #96453a;
}

/* --- Герой --------------------------------------------------------------- */
.hero {
  padding: 96px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 640px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(31px, 5vw, 46px);
  line-height: 1.15;
  text-wrap: pretty;
}
.hero-sub {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--soft);
}
.hero-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-shot {
  width: min(860px, 92vw);
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 70px rgba(22, 21, 17, 0.22), 0 4px 14px rgba(22, 21, 17, 0.1);
}

/* --- Тёмная секция «Путь» ------------------------------------------------- */
.path {
  background: var(--dark);
  padding: 96px 48px;
}
.path .wrap { display: flex; flex-direction: column; gap: 36px; }
.path-line { display: flex; align-items: baseline; gap: 20px; }
.path-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent-dark); flex: none;
}
.path-line p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.45;
  color: var(--on-dark);
  text-wrap: pretty;
}

/* --- «Как это происходит» -------------------------------------------------- */
.how { padding: 120px 48px; }
.how .wrap { display: flex; flex-direction: column; gap: 56px; }
.how-intro {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 640px;
  margin-top: -24px;
  text-wrap: pretty;
}
.steps { display: flex; flex-direction: column; gap: 36px; max-width: 640px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  width: 34px; flex: none;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-top: 5px;
}
.step p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}

/* --- «Образец ответа» ------------------------------------------------------ */
.sample { padding: 0 48px 120px; }
.sample .wrap { display: flex; flex-direction: column; gap: 44px; }
.answer-card {
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-radius: 12px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.qa-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.qa-question {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 680px;
  text-wrap: pretty;
  margin-top: 12px;
}
.answer-card hr { border: none; height: 1px; background: var(--hairline); }
.qa-answer { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.qa-answer p {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}
.qa-answer p strong { color: var(--ink); font-weight: 400; }
.qa-note { font-family: var(--sans); font-size: 13px; color: var(--faint); }

/* --- «Требуемое количество сессий» ---------------------------------------- */
.depth { padding: 0 48px 140px; }
.depth .wrap { display: flex; flex-direction: column; gap: 44px; }
.depth-labels { position: relative; height: 40px; }
.depth-labels div {
  position: absolute; top: 0;
  white-space: nowrap;
  font-size: 15px;
  color: #3c3a36;
}
.depth-dots {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.depth-dots .col {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; width: 8px;
}
.depth-dots .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink); flex: none; }
.depth-dots .tick { font-size: 12px; color: var(--soft); white-space: nowrap; }
.depth-unit { font-size: 13px; color: var(--soft); margin-top: 6px; }

/* --- Подвал ---------------------------------------------------------------- */
.site-footer { background: var(--dark); padding: 88px 48px 40px; margin-top: auto; }
.site-footer .inner {
  max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.site-footer .inner img { width: 64px; height: 64px; }
.site-footer .wordmark { color: var(--on-dark); }
.foot-legal {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.foot-legal, .foot-legal a { font-size: 12.5px; color: rgba(233, 231, 225, 0.45); }
.foot-legal a:hover { color: rgba(233, 231, 225, 0.8); }
.foot-legal .disclaimer { max-width: 56em; }

/* --- Формы (вход, регистрация) --------------------------------------------- */
.auth-wrap { flex: 1; display: flex; justify-content: center; padding: 72px 20px; }
.auth-card {
  width: 100%;
  max-width: 440px;
  height: fit-content;
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-radius: 14px;
  padding: 40px;
}
.auth-card h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.field input:focus { border-color: var(--accent); outline: none; }
.field .hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 22px; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--muted); text-decoration: underline; }
.auth-links {
  margin-top: 22px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--soft);
}
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--ink); }
.resend-box { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); }

/* --- Личный кабинет --------------------------------------------------------- */
.cabinet { flex: 1; padding: 64px 48px 90px; }
.cabinet .wrap { display: flex; flex-direction: column; gap: 34px; }
.cabinet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.cabinet-head h1 { font-family: var(--serif); font-weight: 300; font-size: 32px; }
.cabinet-head .sub { color: var(--soft); font-size: 14.5px; margin-top: 6px; }

.sessions-card {
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-radius: 12px;
  padding: 8px 28px 14px;
  overflow-x: auto;
}
.sessions-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sessions-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  padding: 16px 12px 10px;
  border-bottom: 1px solid var(--hairline);
}
.sessions-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.sessions-table tr:last-child td { border-bottom: none; }
.sessions-table td.dim { color: var(--soft); font-variant-numeric: tabular-nums; }
.sessions-table a { color: var(--accent); }
.sessions-table a:hover { text-decoration: underline; }

.empty-state {
  background: #ffffff;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 48px 30px;
  text-align: center;
  color: var(--muted);
}
.empty-state p { max-width: 34em; margin: 0 auto 22px; }

.analysis-card {
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.analysis-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.soon-chip {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201, 111, 34, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
}
.analysis-card p { color: var(--muted); font-size: 14.5px; max-width: 42em; }

/* --- Текстовые страницы (политика) ------------------------------------------ */
.doc { flex: 1; padding: 64px 48px 100px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--serif); font-weight: 300; font-size: 34px; margin-bottom: 8px; }
.doc .doc-updated { color: var(--faint); font-size: 13.5px; margin-bottom: 36px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc .placeholder { color: var(--accent); }

/* --- Адаптив ----------------------------------------------------------------- */
@media (max-width: 860px) {
  .site-header { padding: 0 20px; }
  .nav { gap: 18px; }
  .nav .anchor { display: none; }
  .hero { padding: 64px 20px; gap: 36px; }
  .path, .how, .cabinet { padding-left: 20px; padding-right: 20px; }
  .how { padding-top: 84px; padding-bottom: 84px; }
  .sample, .depth { padding-left: 20px; padding-right: 20px; }
  .answer-card { padding: 30px 22px; }
  .depth-labels div { font-size: 13px; }
  .depth-dots .tick { font-size: 10.5px; }
  .site-footer { padding: 64px 20px 34px; }
  .auth-card { padding: 30px 24px; }
  .sessions-card { padding: 4px 16px 8px; }
  .flash { width: calc(100% - 40px); }
}

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

.vault-note {
  font-size: 13px;
  color: var(--faint);
  max-width: 52em;
  margin-top: -16px;
}

/* --- Заказы и оплата --------------------------------------------------------- */
.field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.15s;
}
.field textarea:focus { border-color: var(--accent); outline: none; }

.order-meta { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.order-meta s { color: var(--faint); }
.price-final { font-weight: 600; color: var(--ink); }
.price-note { color: var(--soft); font-size: 13px; }

.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid;
}
.badge-pending  { color: var(--accent); border-color: rgba(201, 111, 34, 0.45); }
.badge-paid     { color: var(--muted);  border-color: var(--line-strong); }
.badge-done     { color: #4f7d53;       border-color: rgba(79, 125, 83, 0.5); }
.badge-canceled { color: var(--faint);  border-color: var(--hairline); }

.order-card {
  background: #ffffff;
  border: 1px solid var(--line-card);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.order-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.order-head .dim { color: var(--soft); }
.order-amount { font-weight: 600; }
.order-paylink { color: var(--accent); font-size: 14px; margin-left: auto; }
.order-q {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-top: 10px;
  text-wrap: pretty;
}
.order-answer { margin-top: 12px; }
.order-answer summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.answer-text {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-line;
}

.row-del { text-align: right; }
.link-del {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--faint);
  cursor: pointer;
}
.link-del:hover { color: #96453a; }

.pending-box { margin-top: -10px; }
.pending-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 13.5px; padding: 7px 0;
  border-top: 1px solid var(--hairline);
}
.pending-row form.inline { display: inline; }

.code-input {
  font-size: 24px !important;
  letter-spacing: 0.45em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
