/* ============================================================
   Альона Сохань — психологиня. Calm editorial landing.
   Tweakable via CSS variables set on :root by the app.
   ============================================================ */

:root {
  /* set/overridden from JS tweaks */
  --accent: #c08a82;
  --accent-2: #d8b6a8;
  --paper: #faf6f3;
  --ink: #4a3b38;
  --r: 16px;
  --font-head: "Lora", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --sp: 1;            /* density multiplier */

  /* derived */
  --ink-soft: color-mix(in oklch, var(--ink) 66%, var(--paper));
  --ink-faint: color-mix(in oklch, var(--ink) 42%, var(--paper));
  --line: color-mix(in oklch, var(--ink) 14%, var(--paper));
  --tint: color-mix(in oklch, var(--accent) 9%, var(--paper));
  --tint-2: color-mix(in oklch, var(--accent) 16%, var(--paper));
  --card: color-mix(in oklch, #ffffff 70%, var(--paper));
  --section-y: calc(108px * var(--sp));
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-y) 0; }
.kicker {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); display: inline-block; }
.h-sec { font-size: clamp(30px, 4vw, 46px); max-width: 18ch; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  line-height: 1; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); background: color-mix(in oklch, var(--ink) 88%, var(--accent)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-2px); background: color-mix(in oklch, var(--accent) 86%, black); }

/* ── Header ───────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 19px; font-weight: 500; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 600;
  font-family: var(--font-body); letter-spacing: 0.02em; flex-shrink: 0;
}
.nav { display: flex; gap: 26px; }
.nav a { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; transition: color .15s; position: relative; white-space: nowrap; }
.nav { flex-shrink: 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--accent); transition: width .2s; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.hdr-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
}
.lang button { border: 0; background: transparent; color: var(--ink-faint); padding: 7px 11px; cursor: pointer; font: inherit; transition: background .15s, color .15s; }
.lang button.on { background: var(--ink); color: var(--paper); }
.hdr .btn { padding: 11px 19px; font-size: 14px; }
.menu-toggle { display: none; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding: calc(64px * var(--sp)) 0 calc(84px * var(--sp)); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.02em; margin: 22px 0 0; }
.hero-sub { margin-top: 26px; font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.stat { min-width: 0; padding: 14px 18px; background: var(--tint); border-radius: var(--r); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); white-space: nowrap; }
.stat b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.stat span { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .hero-stats { grid-template-columns: 1fr; } }

/* placeholder image */
.ph {
  position: relative; border-radius: var(--r); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--tint) 0 14px, var(--tint-2) 14px 28px);
  border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 200px;
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink-faint);
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  padding: 7px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.hero-ph { aspect-ratio: 4/5; min-height: 420px; }
.ph-img { background: var(--tint); }
.ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-ph::after {
  content: ""; position: absolute; inset: auto -40px -40px auto; width: 180px; height: 180px;
  background: var(--accent); opacity: 0.16; border-radius: 50%; filter: blur(8px);
}

/* ── About ────────────────────────────────────────────── */
.about { background: var(--tint); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.about-ph { aspect-ratio: 3/4; position: sticky; top: 100px; }
.about-name { font-size: clamp(28px, 3.4vw, 40px); margin-top: 16px; }
.about-role { color: var(--accent); font-weight: 600; font-size: 15px; margin: 10px 0 26px; letter-spacing: 0.01em; }
.about-paras p + p { margin-top: 18px; }
.about-paras p { font-size: 18.5px; color: var(--ink-soft); }

/* ── Focus ────────────────────────────────────────────── */
.focus-title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 34px; }
.focus-list { columns: 2; column-gap: 48px; }
@media (max-width: 720px) { .focus-list { columns: 1; } }
.focus-list li {
  break-inside: avoid; list-style: none; padding: 14px 0 14px 34px; position: relative;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 17px;
}
.focus-list { margin: 0; padding: 0; }
.focus-list li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
}
.focus-note {
  margin-top: 38px; padding: 26px 30px; background: var(--tint);
  border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-head); font-style: italic; font-size: 20px; color: var(--ink-soft);
  max-width: 70ch;
}

/* ── Services ─────────────────────────────────────────── */
.services { background: var(--tint); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 18px; margin-top: 38px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -28px color-mix(in oklch, var(--ink) 60%, transparent); }
.card-meta { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 21px; margin: 14px 0 10px; }
.card p { color: var(--ink-soft); font-size: 16.5px; }
.card-num { font-family: var(--font-head); font-size: 15px; color: var(--ink-faint); }

/* ── Pricing ──────────────────────────────────────────── */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.price-card {
  background: var(--ink); color: var(--paper); border-radius: calc(var(--r) + 6px);
  padding: 46px 44px; position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: var(--accent); opacity: 0.3; border-radius: 50%; filter: blur(10px);
}
.price-amt { font-family: var(--font-head); font-size: 60px; line-height: 1; position: relative; }
.price-per { color: color-mix(in oklch, var(--paper) 70%, var(--accent)); margin-top: 10px; font-size: 15px; }
.price-inc { list-style: none; margin: 30px 0; padding: 0; position: relative; }
.price-inc li { padding: 11px 0 11px 30px; position: relative; border-top: 1px solid color-mix(in oklch, var(--paper) 22%, transparent); font-size: 16px; }
.price-inc li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 13px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price-foot { color: var(--ink-soft); font-size: 16px; max-width: 34ch; }
.price-side h2 { margin-bottom: 18px; }

/* ── Credentials ──────────────────────────────────────── */
.credentials { background: var(--tint); }
.cred-intro { font-size: 20px; color: var(--ink-soft); max-width: 60ch; margin-bottom: 40px; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.cred-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.cred-block h4 { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cred-block ul { list-style: none; margin: 0; padding: 0; }
.cred-block li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); }
.cred-block li:last-child { border-bottom: 0; }
/* ── Education timeline ── */
.cred-timeline { margin-top: 40px; }
.cred-tl-toggle {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: transparent; border: 0; cursor: pointer; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left;
}
.cred-tl-title { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.cred-tl-count {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--tint-2); border-radius: 999px; min-width: 24px; height: 22px;
  display: inline-grid; place-items: center; padding: 0 7px;
}
.cred-tl-chev { margin-left: auto; width: 11px; height: 11px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .25s ease; }
.cred-timeline.open .cred-tl-chev { transform: rotate(-135deg); }
.tl-wrap { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.timeline { list-style: none; margin: 24px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 116px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 36px; padding: 14px 0; align-items: baseline; }
.tl-year { font-family: var(--font-head); font-size: 17px; color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-text { font-size: 16.5px; color: var(--ink-soft); position: relative; }
.tl-text::before { content: ""; position: absolute; left: -25px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--tint); border: 2px solid var(--accent); box-sizing: border-box; }
@media (max-width: 600px) {
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
  .tl-year { text-align: left; font-size: 15px; }
  .tl-text::before { left: -23px; top: 7px; }
}
.cred-docs { margin-top: 22px; }
.cred-docs-title { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.cred-docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.doc:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 32px -24px color-mix(in oklch, var(--ink) 60%, transparent); }
.doc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tint-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.doc-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; margin-right: auto; }
.doc-txt b { font-family: var(--font-body); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.doc-txt span { font-size: 12.5px; color: var(--ink-faint); }
.doc-arr { color: var(--ink-faint); flex-shrink: 0; transition: color .18s, transform .18s; }
.doc:hover .doc-arr { color: var(--accent); transform: translate(2px, -2px); }

/* ── FAQ ──────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin: 38px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-head); font-size: 21px; color: var(--ink); font-weight: 500;
  padding: 24px 44px 24px 0; position: relative; line-height: 1.3;
}
.faq-q::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg); transition: transform .25s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-25%) rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 60px 26px 0; color: var(--ink-soft); font-size: 17px; }

/* ── Contact ──────────────────────────────────────────── */
.contact { background: var(--tint); }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 8px);
  padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.contact-card h2 { font-size: clamp(28px, 3.6vw, 42px); }
.contact-sub { color: var(--ink-soft); margin: 18px 0 30px; font-size: 18px; }
.contact-loc { font-size: 14.5px; color: var(--ink-faint); margin-top: 18px; display: flex; align-items: center; gap: 9px; }
.contact-loc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.channels { display: flex; flex-direction: column; gap: 14px; }
.channel {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  transition: transform .18s, border-color .18s;
}
.channel:hover { transform: translateX(4px); border-color: var(--accent); }
.channel-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--tint-2); display: grid; place-items: center; flex-shrink: 0; color: var(--accent); }
.channel b { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.channel span { font-size: 17px; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────── */
.footer { background: var(--ink); color: color-mix(in oklch, var(--paper) 78%, var(--accent)); padding: 64px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; padding-bottom: 36px; border-bottom: 1px solid color-mix(in oklch, var(--paper) 18%, transparent); }
.footer .brand { color: var(--paper); }
.footer-tag { font-size: 14px; max-width: 30ch; margin-top: 14px; }
.footer-disc { font-size: 13px; max-width: 52ch; line-height: 1.6; opacity: 0.8; }
.footer-bot { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; padding-top: 26px; font-size: 13px; opacity: 0.7; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid, .about-grid, .price-wrap, .contact-card { grid-template-columns: 1fr; }
  .about-ph { position: relative; top: auto; max-width: 420px; }
  .hero { padding-top: calc(24px * var(--sp)); }
  .hero-grid { gap: 22px; }
  /* compact centered portrait leading the hero on mobile, headline right below */
  .hero-grid > .reveal { order: -1; }
  .hero-ph { aspect-ratio: 4/5; max-width: 280px; margin: 0 auto; min-height: 0; }
  .cards, .cred-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  :root { --section-y: calc(72px * var(--sp)); }
  body { font-size: 17px; }
  .hero h1 { font-size: clamp(33px, 9vw, 44px); }
  .hero-stats { gap: 10px; }
  .stat { min-width: 0; padding: 14px 16px; }
  .stat b { font-size: 19px; }
}
