/* ============================================================
   Михаил Прасс — психолог. Дизайн-система.
   Светлая, воздушная, типографика во главе.
   Антиква (Spectral) + гротеск (Manrope), кремовый фон, один акцент.
   ============================================================ */

:root {
  /* Палитра — тёплые кремовые тона */
  --cream:      oklch(0.982 0.007 85);
  --paper:      oklch(0.995 0.004 90);
  --cream-deep: oklch(0.955 0.011 80);
  --ink:        oklch(0.265 0.012 70);
  --ink-soft:   oklch(0.435 0.012 72);
  --ink-faint:  oklch(0.60 0.010 75);
  --line:       oklch(0.885 0.010 80);
  --line-soft:  oklch(0.925 0.008 82);

  /* Акцент (переключается в Tweaks) — спокойный шалфейный по умолчанию */
  --accent:      oklch(0.50 0.045 168);
  --accent-deep: oklch(0.40 0.050 168);
  --accent-soft: oklch(0.94 0.022 168);
  --accent-tint: oklch(0.965 0.013 168);
  --accent-ink:  oklch(0.985 0.004 90);

  /* Типографика */
  --serif: "Spectral", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  /* Метрики */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

::selection { background: var(--accent-soft); color: var(--accent-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
  width: 100%;
}

/* Маркер раздела — мелкий моноширинный/трекинговый ярлык */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
#about { padding-top: clamp(32px, 4.5vw, 66px); }

/* ---------- Кнопки ---------- */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px oklch(0.4 0.05 168 / .25);
}
.btn--primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 8px 24px oklch(0.4 0.05 168 / .28);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }

.btn--quiet {
  background: transparent;
  color: var(--accent-deep);
  padding: 0;
  border-radius: 0;
}
.btn--quiet .arrow { transition: transform .2s; }
.btn--quiet:hover .arrow { transform: translateX(4px); }

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Hairline-карточки ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  transition: border-color .25s, box-shadow .3s, transform .3s;
}
.card:hover {
  border-color: var(--line);
  box-shadow: 0 18px 44px -28px oklch(0.3 0.02 70 / .35);
}

/* ---------- Ленточка "Скоро!" ---------- */
.coming-ribbon {
  position: absolute;
  top: 14px;
  right: -28px;
  width: 110px;
  padding: 5px 0;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 2px 6px oklch(0.3 0.05 70 / .25);
}

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--cream) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line-soft); background: color-mix(in oklch, var(--cream) 90%, transparent); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 10px; cursor: pointer; }
.brand__mark {
  font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__sub {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; cursor: pointer; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 16px; }

.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: oklch(0.86 0.008 80);
  padding: clamp(56px, 7vw, 96px) 0 40px;
}
.footer h3 { color: var(--cream); }
.footer a { color: oklch(0.80 0.01 80); transition: color .2s; }
.footer a:hover { color: var(--cream); }

/* ---------- утилиты ---------- */
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.divider { height: 1px; background: var(--line-soft); border: 0; }

.lead {
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__type-foot .lead {
  font-size: clamp(27px, 3vw, 33px);
}

.tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-deep); background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  padding: 5px 11px; border-radius: 999px; display: inline-block; white-space: nowrap;
}

/* Анимации появления */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.in { animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }

/* Дыхательный абстрактный круг */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .9; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* Скрытие на мобиле сделаем в media */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  body { font-size: 16px; }
}
