/* ==========================================================================
   Алсу Мухаметзянова — психолог. Основные стили.
   Палитра: Vanilla Silk / Alpine Oat / Warm Greige / Cherry Velvet / Bordeaux Noir
   ========================================================================== */

:root {
  --vanilla: #F2E9DF;      /* основной фон */
  --oat: #DED4C9;          /* вторичный фон, линии */
  --greige: #B4A698;       /* разделители, акценты */
  --cherry: #4B1B1F;       /* акцент, кнопки */
  --noir: #321A1F;         /* текст, тёмные секции */
  --text-soft: #4A3A38;    /* основной второстепенный текст */
  --text-muted: #6B5652;   /* подписи на светлом фоне */
  --text-muted-2: #5E4A47; /* подписи на oat-фоне */
  --line-dark: #6B3A3E;    /* линии на cherry-фоне */
  --line-noir: #6B4A4C;    /* линии на noir-фоне */

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--vanilla);
  color: var(--noir);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

button { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

::selection { background: var(--cherry); color: var(--vanilla); }

:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--vanilla); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--cherry);
  color: var(--vanilla);
  border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--vanilla); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.bg-oat { background: var(--oat); }
.bg-noir { background: var(--noir); color: var(--vanilla); }
.bg-cherry { background: var(--cherry); color: var(--vanilla); }

/* ---------- Typography helpers ---------- */
.serif { font-family: var(--serif); }
.em { font-style: italic; color: var(--cherry); }
.on-dark .em { color: var(--oat); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.bg-oat .eyebrow { color: var(--text-muted-2); }
.on-dark .eyebrow { color: var(--oat); }

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 340px;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 16px 28px;
  border: 1px solid var(--cherry);
  border-radius: 999px;
  background: transparent;
  color: var(--cherry);
  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--solid { background: var(--cherry); color: var(--vanilla); }
.btn--light { background: var(--vanilla); border-color: var(--vanilla); color: var(--cherry); }
.btn--ghost-light { border-color: var(--oat); color: var(--vanilla); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--cherry);
  border-bottom: 1px solid currentColor;
  transition: color .25s;
}

@media (hover: hover) {
  .btn:hover { background: var(--cherry); color: var(--vanilla); }
  .btn--solid:hover { background: var(--noir); border-color: var(--noir); }
  .btn--light:hover { background: var(--oat); border-color: var(--oat); color: var(--noir); }
  .btn--ghost-light:hover { background: var(--vanilla); border-color: var(--vanilla); color: var(--noir); }
  .link-arrow:hover { color: var(--noir); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 233, 223, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--oat);
  transition: box-shadow .4s ease;
}
.header.is-scrolled { box-shadow: 0 12px 32px -24px rgba(50, 26, 31, .35); }
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--noir);
  white-space: nowrap;
}
.logo .em { color: var(--cherry); }

.nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--noir);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--cherry);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
@media (hover: hover) {
  .nav a:hover { color: var(--cherry); }
  .nav a:hover::after { transform: scaleX(1); }
}

.header__cta { padding: 12px 22px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--cherry);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1px;
  background: var(--cherry);
  transition: transform .3s, opacity .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 21.5px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .logo { font-size: 20px; }
  .burger { display: block; order: 3; }
  .header__cta { margin-left: auto; padding: 10px 18px; font-size: 12px; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--vanilla);
    border-bottom: 1px solid var(--oat);
    box-shadow: 0 24px 40px -24px rgba(50, 26, 31, .25);
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s, transform .25s;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--oat); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}
@media (max-width: 400px) {
  .header__inner { gap: 10px; }
  .logo { font-size: 18px; }
  .header__cta { padding: 10px 14px; letter-spacing: 0.04em; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.hero__text { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.hero__heading {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
  font-size: inherit;
  font-weight: inherit;
}
.hero__title {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero__title .em { white-space: nowrap; }
.hero__role {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__role::before { content: ''; width: 40px; height: 1px; background: var(--cherry); }
.hero__role span { color: var(--cherry); }
.hero__desc {
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3;
  line-height: 1.65;
  color: var(--text-soft);
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px 24px; flex-wrap: wrap; align-items: center; }
.hero__actions .btn { padding: 18px 32px; }

.hero__media { display: flex; justify-content: center; }
.hero__photo-wrap { position: relative; width: 100%; max-width: 480px; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--oat);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 20%; }

@media (max-width: 600px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--cherry);
  color: var(--vanilla);
  padding: clamp(18px, 2.4vw, 26px) 0;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 48px);
  white-space: nowrap;
}
.marquee__item:nth-child(even) { font-style: italic; }
.marquee__item::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--greige);
  transform: rotate(45deg);
  flex-shrink: 0;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas:
    "label text"
    "mood  text";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 28px;
  align-items: start;
}
.about__label { grid-area: label; }
.about__text { grid-area: text; display: flex; flex-direction: column; gap: 32px; padding-top: clamp(0px, 4vw, 48px); }
.about__mood { grid-area: mood; }

.about__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.15;
  text-wrap: pretty;
}
.about__desc { display: flex; flex-direction: column; gap: 16px; max-width: 600px; font-size: 16px; line-height: 1.75; color: var(--text-soft); text-wrap: pretty; }


.mood {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 460px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--oat);
}
.mood__title { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.mood__hint { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.mood__options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--cherry);
  border-radius: 999px;
  background: transparent;
  color: var(--cherry);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.chip[aria-pressed="true"] { background: var(--cherry); color: var(--vanilla); }
@media (hover: hover) {
  .chip:hover { background: rgba(75, 27, 31, .08); }
  .chip[aria-pressed="true"]:hover { background: var(--noir); }
}
.mood__answer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--greige);
  animation: fade-in .35s ease;
}
.mood__answer[hidden] { display: none; }
.mood__answer p { font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.mood__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mood__format { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted-2); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "text" "mood";
    grid-template-rows: auto;
    row-gap: 28px;
  }
  .about__text { padding-top: 0; }
  .about__mood { margin-top: 12px; }
  .mood { max-width: none; }
}

/* ---------- Requests ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__title { display: flex; flex-direction: column; gap: 20px; }

.req-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--greige); }
.req-list li {
  display: grid;
  grid-template-columns: clamp(32px, 9vw, 120px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: baseline;
  padding: clamp(20px, 2.4vw, 28px) 16px;
  border-bottom: 1px solid var(--greige);
  transition: background .3s, padding .3s;
}
.req-list__num { font-size: 13px; letter-spacing: 0.1em; color: var(--cherry); }
.req-list__text { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 38px); line-height: 1.2; text-wrap: pretty; }
@media (hover: hover) {
  .req-list li:hover { background: var(--vanilla); padding-left: 28px; }
}
@media (max-width: 600px) {
  .req-list li { padding-left: 0; padding-right: 0; }
}

/* ---------- Onco ---------- */
.onco__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(80px, 11vw, 160px);
  padding-bottom: clamp(80px, 11vw, 160px);
}
.onco__left { display: flex; flex-direction: column; gap: 24px; }
.breath { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.breath__hint { max-width: 320px; font-size: 15px; line-height: 1.6; color: var(--oat); }
.breath__circle {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--line-noir);
  display: flex;
  align-items: center;
  justify-content: center;
}
.breath__fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cherry);
  transform: scale(0.5);
  transition: transform 1s ease;
}
.breath__label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.breath__phase { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 40px); }
.breath__sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oat); }

.onco__right { display: flex; flex-direction: column; gap: 36px; }
.onco__quote { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.8vw, 56px); line-height: 1.15; text-wrap: pretty; }
.onco__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-noir);
}
.onco__steps li { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.6; }
.onco__steps span { font-size: 12px; letter-spacing: 0.12em; color: var(--greige); }

/* ---------- How I work ---------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(48px, 6vw, 96px);
  margin-top: 24px;
}
.work__col { display: flex; flex-direction: column; gap: 28px; }
.h-sub { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; }

.principles { margin: 0; padding: 0; list-style: none; }
.principles li {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--oat);
  font-size: 16px;
  line-height: 1.45;
}
.principles li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--cherry);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.formats li {
  min-height: clamp(150px, 16vw, 200px);
  padding: clamp(18px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: var(--oat);
  transition: background .3s, color .3s;
}
.formats span { font-size: 12px; letter-spacing: 0.12em; }
.formats strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (hover: hover) {
  .formats li:hover { background: var(--cherry); color: var(--vanilla); }
}
@media (max-width: 420px) {
  .formats li { min-height: 132px; padding: 14px; }
  .formats strong { font-size: 19px; }
}

.methods { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-direction: column; gap: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 11px 22px; border: 1px solid var(--greige); border-radius: 999px; font-size: 15px; }

/* ---------- Education: кнопка ---------- */
.edu-btn {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 20px);
  width: 100%;
  max-width: 600px;
  margin-top: 8px;
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 24px);
  border: 1px solid var(--greige);
  border-radius: 999px;
  background: transparent;
  color: var(--noir);
  text-align: left;
  cursor: pointer;
  transition: background .4s var(--ease-soft), border-color .4s, color .4s;
}
.edu-btn__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cherry);
  color: var(--vanilla);
  transition: background .4s, color .4s, transform .6s var(--ease-soft);
}
.edu-btn__icon svg { width: 26px; height: 26px; }
.edu-btn__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.edu-btn__label { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.1; }
.edu-btn__sub { font-size: 13px; line-height: 1.4; color: var(--text-muted); transition: color .4s; }
.edu-btn__arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--greige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cherry);
  transition: transform .4s var(--ease-soft), border-color .4s, color .4s;
}
@media (hover: hover) {
  .edu-btn:hover { background: var(--cherry); border-color: var(--cherry); color: var(--vanilla); }
  .edu-btn:hover .edu-btn__icon { background: var(--vanilla); color: var(--cherry); transform: rotate(-8deg); }
  .edu-btn:hover .edu-btn__sub { color: var(--oat); }
  .edu-btn:hover .edu-btn__arrow { border-color: var(--vanilla); color: var(--vanilla); transform: translateX(4px); }
}
@media (max-width: 420px) {
  .edu-btn { border-radius: 28px; }
  .edu-btn__icon { width: 44px; height: 44px; }
  .edu-btn__arrow { display: none; }
}

/* ---------- Education: панель ---------- */
html:has(.edu-dialog[open]) { overflow: hidden; }

.edu-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(640px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--vanilla);
  color: var(--noir);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .6s var(--ease-soft);
}
.edu-dialog.is-open { transform: none; }
.edu-dialog::backdrop {
  background: rgba(50, 26, 31, 0);
  transition: background .6s ease;
}
.edu-dialog.is-open::backdrop {
  background: rgba(50, 26, 31, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.edu-dialog__inner { min-height: 100%; display: flex; flex-direction: column; }
.edu-dialog__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px) 24px;
  background: var(--vanilla);
  border-bottom: 1px solid var(--oat);
}
.edu-dialog__head > div { display: flex; flex-direction: column; gap: 12px; }
.edu-dialog__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.edu-dialog__close {
  position: relative;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border: 1px solid var(--cherry);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .3s, transform .5s var(--ease-soft);
}
.edu-dialog__close::before,
.edu-dialog__close::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; top: 50%;
  height: 1px;
  background: var(--cherry);
  transition: background .3s;
}
.edu-dialog__close::before { transform: rotate(45deg); }
.edu-dialog__close::after { transform: rotate(-45deg); }
@media (hover: hover) {
  .edu-dialog__close:hover { background: var(--cherry); transform: rotate(90deg); }
  .edu-dialog__close:hover::before,
  .edu-dialog__close:hover::after { background: var(--vanilla); }
}

.edu__list { flex: 1; margin: 0; padding: 8px clamp(20px, 4vw, 48px) 16px; list-style: none; }
.edu__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--oat);
}
.edu__item:last-child { border-bottom: 0; }
.edu__num { padding-top: 7px; font-size: 13px; letter-spacing: 0.1em; color: var(--cherry); }
.edu__body { display: flex; flex-direction: column; gap: 12px; }
.edu__title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; text-wrap: pretty; }
.edu__meta { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.edu__meta div { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.edu__meta dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.edu__meta dd { margin: 0; font-size: 15px; line-height: 1.5; }
.edu__inst {
  padding-left: 14px;
  border-left: 1px solid var(--greige);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.edu-dialog__foot {
  position: sticky;
  bottom: 0;
  padding: 20px clamp(20px, 4vw, 48px) clamp(20px, 3vw, 32px);
  background: linear-gradient(to bottom, rgba(242, 233, 223, 0), var(--vanilla) 35%);
}
.edu-dialog__foot .btn { width: 100%; }

/* Пункты списка проявляются по очереди при открытии */
.edu-dialog.is-open .edu__item { animation: reveal-up .8s var(--ease-soft) backwards; animation-delay: calc(var(--i, 0) * 60ms + 250ms); }

@media (max-width: 600px) {
  .edu-dialog {
    inset: auto 0 0 0;
    width: 100%;
    height: 92%;
    height: 92dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .edu-dialog__head { padding-top: 28px; }
  .edu-dialog__head::before {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    width: 40px; height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: var(--oat);
  }
  .edu__item { grid-template-columns: 28px minmax(0, 1fr); }
}

/* ---------- Prices ---------- */
.prices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.price-card {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--vanilla);
}
.price-card--dark { background: var(--cherry); color: var(--vanilla); }
.price-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price-card__title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(32px, 3.4vw, 44px); color: var(--cherry); }
.price-card--dark .price-card__title { color: var(--vanilla); }
.price-card__tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.price-card--dark .price-card__tag { color: var(--oat); }
.price-rows { margin: 0; padding: 0; list-style: none; }
.price-rows li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding: 22px 0;
  border-top: 1px solid var(--oat);
}
.price-card--dark .price-rows li { border-top-color: var(--line-dark); }
.price-rows__name { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.price-rows__name small { font-size: 13px; color: var(--text-muted); }
.price-card--dark .price-rows__name small { color: var(--oat); }
.price-rows__value { font-family: var(--serif); font-size: clamp(34px, 3.6vw, 52px); line-height: 1; white-space: nowrap; }
.price-card .btn { align-self: flex-start; }

/* ---------- Contacts ---------- */
.contacts__inner { padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(48px, 5vw, 64px); }
.contacts__title {
  margin: 28px 0 clamp(48px, 6vw, 88px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 8.5vw, 136px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
.contacts__person { display: flex; flex-direction: column; gap: 14px; }
.contacts__name { font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.contacts__place { font-size: 15px; color: var(--oat); }

.messengers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.messengers li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.messengers a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: clamp(20px, 2.4vw, 28px) clamp(16px, 2vw, 24px);
  background: var(--cherry);
  color: var(--vanilla);
  font-size: 17px;
  transition: background .3s, color .3s;
}
@media (hover: hover) {
  .messengers a:hover { background: var(--vanilla); color: var(--cherry); }
}

.footer { background: var(--noir); color: var(--oat); }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 28px;
  font-size: 13px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__links a,
.footer__cookie {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--vanilla);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  border-bottom: 1px solid rgba(242, 233, 223, .25);
  transition: border-color .3s, color .3s;
}
@media (hover: hover) {
  .footer__links a:hover,
  .footer__cookie:hover { border-bottom-color: var(--vanilla); }
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line-noir);
}

/* ---------- Страницы документов ---------- */
.header__back { padding: 11px 20px; font-size: 13px; letter-spacing: 0.04em; }

.legal { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); }
.legal__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1) clamp(40px, 6vw, 72px);
  padding: 2px var(--gutter);
  scrollbar-width: none;
}
.legal__tabs::-webkit-scrollbar { display: none; }
.legal__tabs a {
  flex-shrink: 0;
  padding: 10px 18px;
  border: 1px solid var(--greige);
  border-radius: 999px;
  color: var(--noir);
  font-size: 14px;
  white-space: nowrap;
  transition: background .3s, border-color .3s, color .3s;
}
.legal__tabs a[aria-current="page"] { background: var(--cherry); border-color: var(--cherry); color: var(--vanilla); }
@media (hover: hover) {
  .legal__tabs a:not([aria-current]):hover { border-color: var(--cherry); color: var(--cherry); }
}

.legal__doc { max-width: 780px; }
.legal__place { margin-bottom: 20px; font-size: 14px; letter-spacing: 0.04em; text-transform: none; }
.legal__title {
  margin-bottom: clamp(32px, 4vw, 48px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.legal__doc > p,
.legal__list li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
  text-wrap: pretty;
}
.legal__doc > p + p { margin-top: 12px; }
.legal__sub {
  margin: calc(clamp(32px, 4vw, 48px) * -1 + 12px) 0 clamp(28px, 3.5vw, 40px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px) !important;
  line-height: 1.25 !important;
  color: var(--cherry) !important;
}
.legal__note { margin-top: 32px !important; font-size: 14px !important; color: var(--text-muted) !important; }
.legal__req-intro { margin: -6px 0 18px; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.legal__doc a { border-bottom: 1px solid rgba(75, 27, 31, .3); white-space: nowrap; }
.legal__clause { color: var(--cherry); font-weight: 500; font-variant-numeric: tabular-nums; }
.legal__h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: clamp(40px, 5vw, 56px) 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--oat);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  color: var(--noir);
}
.legal__n {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cherry);
}
.legal__list { margin: 12px 0 16px; padding: 0; list-style: none; }
.legal__list li { position: relative; padding-left: 26px; }
.legal__list li + li { margin-top: 6px; }
.legal__list li::before {
  content: '';
  position: absolute;
  left: 4px; top: .7em;
  width: 6px; height: 6px;
  background: var(--cherry);
  transform: rotate(45deg);
}
.legal__req {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--oat);
}
.legal__req .legal__h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.legal__req dl { display: grid; gap: 1px; margin: 0; background: var(--greige); border: 1px solid var(--greige); }
.legal__req dl div { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 16px; padding: 14px 18px; background: var(--vanilla); }
.legal__req dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); padding-top: 3px; }
.legal__req dd { margin: 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 480px) {
  .legal__req dl div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .header__back { padding: 10px 16px; }
}

/* ---------- Cookie ---------- */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(440px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 22px;
  background: var(--vanilla);
  color: var(--noir);
  border: 1px solid var(--oat);
  box-shadow: 0 24px 48px -24px rgba(50, 26, 31, .35);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform .7s var(--ease-soft), opacity .5s;
}
.cookie.is-shown { transform: none; opacity: 1; }
.cookie__text { font-size: 13px; line-height: 1.6; color: var(--text-soft); }
.cookie__text a { border-bottom: 1px solid rgba(75, 27, 31, .3); }
.cookie__actions { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.cookie__actions .btn { min-height: 40px; padding: 10px 22px; font-size: 13px; }
.cookie__more {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--cherry);
  font-size: 13px;
  cursor: pointer;
}

.cookie-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: var(--vanilla);
  color: var(--noir);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .4s, transform .5s var(--ease-soft);
}
.cookie-dialog.is-open { opacity: 1; transform: none; }
.cookie-dialog::backdrop { background: rgba(50, 26, 31, 0); transition: background .4s; }
.cookie-dialog.is-open::backdrop { background: rgba(50, 26, 31, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cookie-dialog__inner { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 4vw, 36px); }
.cookie-dialog__title { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.cookie-dialog p,
.cookie-dialog li { font-size: 15px; line-height: 1.7; color: var(--text-soft); }
.cookie-dialog a { border-bottom: 1px solid rgba(75, 27, 31, .3); }
.cookie-dialog .legal__list { margin: 0; }
.cookie-dialog__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.cookie-dialog__actions .btn { min-height: 44px; padding: 12px 22px; font-size: 13px; }
.cookie-dialog [hidden] { display: none !important; }
.cookie-dialog__body { display: flex; flex-direction: column; gap: 12px; }

.cookie-opts { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--oat); }
.cookie-opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--oat);
}
.cookie-opt__title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.cookie-opt__desc { grid-column: 1; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.cookie-opt .switch { grid-row: 1 / span 2; grid-column: 2; }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch input:disabled { cursor: not-allowed; }
.switch span {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid var(--greige);
  background: var(--oat);
  transition: background .3s, border-color .3s;
}
.switch span::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--vanilla);
  box-shadow: 0 1px 3px rgba(50, 26, 31, .25);
  transition: transform .35s var(--ease-soft);
}
.switch input:checked + span { background: var(--cherry); border-color: var(--cherry); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 2px solid var(--cherry); outline-offset: 3px; }

/* ---------- Анимации ---------- */
:root { --ease-soft: cubic-bezier(.2, .7, .2, 1); }

/* Появление при прокрутке (включается только при работающем JS — класс .js на <html>) */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible {
  animation: reveal-up 1s var(--ease-soft) backwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* Фото в арке раскрывается снизу вверх, снимок мягко «оседает» */
.js .hero__photo[data-reveal].is-visible {
  animation: arch-reveal 1.5s cubic-bezier(.7, 0, .2, 1) .15s backwards;
}
.js .hero__photo[data-reveal].is-visible img {
  animation: photo-settle 2.2s var(--ease-soft) .15s backwards;
}
@keyframes arch-reveal {
  from { opacity: 1; clip-path: inset(100% 0 0 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
@keyframes photo-settle {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* Линия перед «Психолог • Супервизор» прочерчивается */
.js .hero__role.is-visible::before { animation: line-grow 1.1s var(--ease-soft) .5s backwards; }
@keyframes line-grow { from { width: 0; } }

/* Разделители списков прорисовываются слева направо */
.js .req-list li,
.js .principles li { position: relative; border-bottom-color: transparent; }
.js .req-list li::after,
.js .principles li::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--greige);
  transform-origin: left;
}
.js .principles li::after { background: var(--oat); }
.js .req-list li.is-visible::after,
.js .principles li.is-visible::after {
  animation: line-draw 1.4s var(--ease-soft) backwards;
  animation-delay: calc(var(--i, 0) * 110ms + 200ms);
}
@keyframes line-draw { from { transform: scaleX(0); } }

/* Дыхательный круг в покое мягко «зовёт» начать */
.breath__circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--greige);
  opacity: 0;
  pointer-events: none;
}
.breath[data-state="idle"] .breath__circle::after { animation: ripple 3.6s ease-out infinite; }
@keyframes ripple {
  0%   { opacity: .7; transform: scale(.5); }
  100% { opacity: 0;  transform: scale(1); }
}

/* Стрелки слегка смещаются при наведении */
.link-arrow span,
.messengers a span { display: inline-block; transition: transform .35s var(--ease-soft); }
@media (hover: hover) {
  .link-arrow:hover span { transform: translateX(4px); }
  .messengers a:hover span { transform: translate(3px, -3px); }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1 !important; animation: none !important; }
  .breath__circle::after { display: none; }
}
