/* ============================================================================
   Личная работа — funnel style (new system, v2)
   Emotional design: the booking + thank-you steps are HIGH-vulnerability moments
   → calm green-LIGHT base (alive but low-arousal, reassuring), NOT the dark cinematic brand.
   "Energy of life": living green is the ambient affordance (dots, labels, selection).
   CORAL (#E0532F) is reserved for the ONE trigger action per screen — it pops
   against the green, never blends.
   Method: numen-landing-designer — OKLCH-minded tokens, quiet premium, AA.
   The video page (index/style.css) stays the dark control. Backup:
   apps/_funnel-baseline-2026-06-18/.
   ============================================================================ */

:root {
  /* alive green-light surfaces — "energy of life" (the green valley) */
  --bg:          #f2f6ec;   /* fresh green-tinted light page */
  --surface:     #ffffff;   /* panels / cards */
  --field:       #eef4e6;   /* inputs / slots */
  --line:        #dde9d0;   /* hairline */
  --line-strong: #cadcb8;

  /* ink text — green-charcoal */
  --ink:    #232a1e;
  --muted:  #57634d;
  --faint:  #87957b;

  /* ambient affordance — living green (dots, labels, selection). NOT the trigger. */
  --accent:      #3f9a55;
  --accent-soft: #e1efd6;

  /* TRIGGER — warm coral, primary action ONLY. Pops against the green, never blends. */
  --trigger:      #e0532f;
  --trigger-deep: #c6431f;
  --on-trigger:   #ffffff;

  /* WhatsApp green — for the WhatsApp action button only (recognizable affordance) */
  --wa:      #1faa53;
  --wa-deep: #1a8f46;
  --tg:      #229ed9;
  --tg-deep: #1c87b8;

  --focus: #e0532f;

  /* type */
  --font-serif: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --t-eyebrow: 11px;
  --t-body: clamp(15px, 0.95rem + 0.2vw, 16.5px);
  --t-h2: clamp(19px, 1.05rem + 0.7vw, 24px);
  --t-h1: clamp(26px, 1.4rem + 1.6vw, 38px);

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 200ms;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden { display: none !important; }

h1, h2 { font-family: var(--font-serif); font-weight: 500; line-height: 1.22; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }

.eyebrow, .host-label, .step-label, .after-eyebrow, .bio-label {
  font-family: var(--font-sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

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

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* THE trigger — one red action per screen */
.confirm-btn, .cta-btn, .msg-btn, .diagnostic-cta {
  font-family: var(--font-sans);
  cursor: pointer;
  border: 0;
  border-radius: var(--r-md);
  background: linear-gradient(165deg, #e9603a 0%, var(--trigger-deep) 100%);
  color: var(--on-trigger);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background var(--dur) var(--ease);
}
.confirm-btn:hover, .cta-btn:hover, .msg-btn:hover, .diagnostic-cta:hover { background: linear-gradient(165deg, #dd552f 0%, #b53c1a 100%); }
.confirm-btn:active, .cta-btn:active, .msg-btn:active, .diagnostic-cta:active { transform: scale(0.99); }
.confirm-btn:disabled { opacity: 0.55; cursor: wait; }

/* WhatsApp action → green (booking «Записаться» stays the red trigger) */
.msg-btn.wa:not(.secondary-wa) { background: linear-gradient(165deg, #28b75d 0%, var(--wa-deep) 100%); }
.msg-btn.wa:not(.secondary-wa):hover { background: linear-gradient(165deg, #20a352 0%, #11823f 100%); }

/* ---------- booking (calm warm-light) ---------- */
.booking-body, .warm-body { background: #e9f0dd; }
.booking-body::before, .warm-body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(165deg, #f6fbe9 0%, #dcedbe 44%, #bcd89a 100%);
}
.booking-shell {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.scheduler {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 340px minmax(340px, 1fr) 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(60, 88, 52, 0.10);
  overflow: hidden;
}
.scheduler-info, .scheduler-calendar, .scheduler-slots { padding: clamp(24px, 2.4vw, 38px); }
.scheduler-info { border-right: 1px solid var(--line); }
.scheduler-calendar { border-right: 1px solid var(--line); }
.scheduler-slots { background: var(--field); }

.back-link { color: var(--faint); text-decoration: none; font-size: 13px; display: inline-block; margin-bottom: 22px; transition: color var(--dur); }
.back-link:hover { color: var(--ink); }
.host-photo { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-md); box-shadow: 0 14px 32px rgba(40, 52, 36, 0.16); }
.host-label { display: block; margin-top: 18px; }
.scheduler h1 { margin-top: 10px; }
.meeting-meta { display: grid; gap: 11px; margin-top: 22px; color: var(--muted); font-size: 14.5px; }
.meeting-meta p { display: flex; gap: 10px; align-items: flex-start; }
.meeting-meta span { color: var(--accent); }
.meta-ic { width: 19px; height: 19px; flex: none; color: var(--accent); margin-top: 1px; }
.host-note {
  margin-top: 22px; padding: 2px 0 2px 16px;
  border-left: 2px solid var(--accent); border-radius: 0;
  color: var(--muted); font-size: 14.5px; line-height: 1.7;
}
.host-note em { font-style: normal; color: var(--ink); font-weight: 500; }
.host-warm { margin-top: 16px; color: var(--ink); font-size: 14.5px; line-height: 1.65; }
.host-creds { margin-top: 14px; color: var(--faint); font-size: 12.5px; line-height: 1.55; }

.calendar-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 18px; flex-wrap: wrap; }
.tz-pick { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; margin-left: auto; }
.tz-pick .tz-label { font-size: 11px; letter-spacing: 0.04em; color: var(--faint); }
.tz-pick select {
  max-width: 180px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 7px 10px; font: inherit; font-size: 13.5px;
}
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 20px; }
.month-nav button {
  width: 38px; height: 38px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--muted); cursor: pointer; font-size: 19px; line-height: 1;
  transition: border-color var(--dur), color var(--dur);
}
.month-nav button:hover { border-color: var(--accent); color: var(--ink); }
.month-title { flex: 1; text-align: center; margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; text-transform: capitalize; }
.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays { margin-top: 18px; color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-align: center; }
.calendar-grid { gap: 6px; margin-top: 12px; }
.day-spacer { aspect-ratio: 1; }
.day-btn {
  aspect-ratio: 1; min-height: 40px; position: relative; border: 0; border-radius: 50%;
  background: transparent; color: #b3c0a6; font: inherit; font-size: 15px; cursor: default;
  transition: background var(--dur), color var(--dur);
}
.day-btn.has-slots { color: var(--ink); cursor: pointer; }
.day-btn.has-slots::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}
.day-btn.has-slots:hover { background: var(--accent-soft); }
.day-btn.selected { background: var(--accent); color: #fff; font-weight: 500; }
.day-btn.selected::after { background: #fff; }

.slot-help { margin-top: 10px; color: var(--faint); font-size: 14px; }
.slot-list { display: grid; gap: 10px; margin-top: 22px; }
.slot-btn {
  width: 100%; min-height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; font-size: 15px;
  font-weight: 500; letter-spacing: 0.02em; transition: border-color var(--dur), background var(--dur), transform var(--dur);
}
.slot-btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.slot-btn.selected { border-color: var(--accent); background: var(--accent); color: #fff; }

.booking-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.selected-slot {
  display: grid; gap: 4px; margin-bottom: 18px; padding: 15px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink);
}
.selected-slot span, .selected-slot small { color: var(--muted); font-size: 14px; }
.booking-form label { display: block; margin: 16px 0 0; font-weight: 500; font-size: 14px; color: var(--ink); }
.booking-form input {
  display: block; width: 100%; margin-top: 7px; min-height: 46px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 11px 13px;
}
.field-hint { display: block; font-size: 13px; color: var(--faint); margin-top: 6px; }
.confirm-btn { width: 100%; min-height: 54px; margin-top: 24px; }
.form-error { color: #b3402e; margin-top: 14px; font-size: 14.5px; }

/* ---------- done / thank-you (calm warm-light) ---------- */
/* .warm-body background + fixed gradient layer defined with .booking-body above */
.page { max-width: 640px; margin: 0 auto; }
.screen { padding: clamp(40px, 8vw, 72px) 22px 80px; }
.screen-head { text-align: center; }
.success-badge {
  width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(circle at 50% 38%, #ebf5e1 0%, #d8ecc9 100%); border: 1px solid var(--line);
  box-shadow: 0 12px 30px -10px rgba(63, 154, 85, 0.45);
}
.screen-head h1 { font-size: var(--t-h1); }
.screen-sub { margin-top: 14px; color: var(--muted); }
.slot-card {
  display: inline-block; margin-top: 18px; padding: 10px 16px;
  background: var(--accent-soft); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: 14.5px; color: var(--ink);
}

.journey { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 4px; }
.journey li { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px 0; color: var(--muted); font-size: 15.5px; }
.journey li:not(:last-child)::after {
  content: ""; position: absolute; left: 16px; top: 50%; width: 2px; height: calc(100% + 4px);
  margin-left: -1px; background: var(--line-strong);
}
.journey li.done::after { background: var(--accent); }
.journey li.active { color: var(--ink); }
.journey li.done { color: var(--muted); }
.j-mark {
  position: relative; z-index: 1; flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 500; background: var(--surface); border: 1px solid var(--line-strong); color: var(--faint);
  transition: background var(--dur), border-color var(--dur), color var(--dur);
}
.journey li.active .j-mark { background: var(--accent); color: #fff; border-color: transparent; }
.journey li.done .j-mark { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.action-card, .after-card {
  margin-top: 34px; padding: 26px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center;
  box-shadow: 0 18px 44px rgba(60, 88, 52, 0.10);
}
.action-lead, .after-lead { color: var(--muted); }
.after-card { text-align: left; }
.after-eyebrow { margin-bottom: 8px; }
.after-card h2 { margin-bottom: 10px; }
.msg-btns.big { display: flex; justify-content: center; margin: 18px 0; }
.msg-btn { display: inline-block; padding: 15px 30px; font-size: 16px; }
.action-hint, .action-after, .quiet-note { margin-top: 14px; color: var(--faint); font-size: 14px; line-height: 1.6; }
.diagnostic-cta { display: inline-block; margin: 18px 0 6px; padding: 14px 26px; }
.secondary-wa {
  display: inline-block; margin-top: 8px; background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); padding: 11px 20px; font-size: 14px;
}
.secondary-wa:hover { background: var(--accent-soft); }

/* post-WhatsApp: warm reassurance + Telegram nurture */
.warm-card, .tg-card { margin-top: 20px; padding: 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-align: center; box-shadow: 0 18px 44px rgba(60, 88, 52, 0.10); }
.warm-card { padding: 32px 26px; background: var(--field); box-shadow: none; }
.warm-relief {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(17px, 1.05rem + 0.3vw, 20px); line-height: 1.5;
  color: var(--ink); max-width: 440px; margin: 0 auto;
}
.warm-sign { margin-top: 18px; color: var(--faint); font-size: 14.5px; letter-spacing: 0.02em; }
.tg-lead { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 440px; margin: 0 auto 16px; }
.tg-btn { display: inline-block; padding: 14px 28px; border-radius: var(--r-md); background: var(--tg); color: #fff; font-weight: 500; text-decoration: none; transition: background var(--dur) var(--ease); }
.tg-btn:hover { background: var(--tg-deep); }
.wa-relink { margin-top: 16px; color: var(--faint); font-size: 13px; }
.wa-relink a { color: var(--muted); }

.bio { margin-top: 56px; padding-top: 40px; text-align: center; }
.bio-label { margin-bottom: 18px; }
.bio-photo { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; }
.bio h2 { margin-top: 16px; }
.bio-lead { max-width: 460px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.6; text-align: left; }
.bio-facts {
  max-width: 460px; margin: 26px auto 0; padding: 18px 20px;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--r-md);
  text-align: left;
}
.bio-facts-label {
  font-family: var(--font-sans); font-size: var(--t-eyebrow); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 9px;
}
.bio-facts-text { color: var(--muted); font-size: 15px; line-height: 1.65; }
.bio-list { list-style: none; padding: 0; margin: 16px auto 0; max-width: 460px; display: grid; gap: 8px; text-align: left; }
.bio-list li { color: var(--muted); font-size: 15px; line-height: 1.55; padding-left: 18px; position: relative; }
.bio-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.bio-list strong { color: var(--ink); font-weight: 500; }
.confirm-line { margin-top: 44px; text-align: center; color: var(--faint); font-size: 16px; }

@media (max-width: 980px) {
  .scheduler { grid-template-columns: 1fr; }
  .scheduler-info, .scheduler-calendar { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
