/* ==========================================================================
   Анна Любомировна — детский и семейный нейропсихолог
   Описание палитры и правил: docs/brand/visual-style.md
   ========================================================================== */

:root {
  /* Палитра */
  --milk: #FCF9F3;
  --cream: #F6EFE3;
  --cream-deep: #EFE4D2;
  --beige: #E6D6BE;
  --butter: #F2D98A;
  --butter-soft: #F8EBC3;
  --butter-pale: #FBF3DA;
  --sage: #A9B79C;
  --sage-soft: #DDE3D4;
  --sage-deep: #5D6C55;
  --ink: #2F2A26;
  --ink-soft: #5B524A;
  --ink-mute: #857A6F;
  --line: rgba(47, 42, 38, 0.12);
  --paper: #FFFDF9;

  /* Шрифты */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Формы и тени */
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 36px;
  --radius-panel: clamp(28px, 4vw, 56px);
  --shadow-soft: 0 1px 2px rgba(70, 52, 34, 0.04), 0 18px 40px -20px rgba(70, 52, 34, 0.22);
  --shadow-lift: 0 2px 4px rgba(70, 52, 34, 0.04), 0 28px 56px -24px rgba(70, 52, 34, 0.3);

  /* Сетка */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 136px);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- База ---------- */

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

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

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

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

h1 em, h2 em, blockquote em {
  font-style: italic;
  color: var(--sage-deep);
}

[hidden] { display: none !important; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--butter); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--milk);
  border-radius: 12px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографика ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 10px 0 0 -1px var(--butter);
}

.h2 {
  font-size: clamp(2.15rem, 1.5rem + 2.5vw, 3.6rem);
  line-height: 1.06;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- Кнопки ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--milk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 1em 1.6em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }

.btn--primary { box-shadow: 0 14px 28px -14px rgba(47, 42, 38, 0.6); }
.btn--primary:hover {
  --btn-bg: #463D35;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(47, 42, 38, 0.6);
}
.btn--primary:active { transform: translateY(0); }

.btn--light { --btn-bg: var(--milk); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--butter-soft); }

.btn--sm { padding: 0.75em 1.3em; font-size: 0.92rem; }
.btn--lg { padding: 1.15em 1.9em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Ссылка еще не заполнена в config.js */
[data-link][aria-disabled="true"] { cursor: not-allowed; }

/* Кнопка записи + строка «Онлайн · 60 минут · 4000 ₽» ровно под ней, по ширине кнопки */
.cta {
  display: inline-grid;
  justify-items: stretch;
  gap: 14px;
}
.cta--center { margin-inline: auto; }
.cta__meta {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.cta__meta span + span::before {
  content: "·";
  margin: 0 0.55em;
  font-weight: 700;
  color: var(--sage-deep);
}

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.35s, box-shadow 0.35s;
}
.header.is-scrolled {
  background: rgba(252, 249, 243, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}
.logo__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--milk);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  /* backdrop-filter создает контейнер для position: fixed — отключаем, пока меню открыто */
  .menu-open .header { -webkit-backdrop-filter: none; backdrop-filter: none; }

  .nav__list { flex-direction: column; gap: 18px; }
  .nav__list a {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 2.6rem);
    color: var(--ink);
  }
  .nav__list a::after { display: none; }
  .nav__cta { font-size: 1rem; padding: 1.1em 1.8em; }
}

/* ---------- Секции ---------- */

.section { padding-block: var(--section-y); }

.section--panel {
  margin-inline: clamp(8px, 1.4vw, 24px);
  border-radius: var(--radius-panel);
  background: var(--cream);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head__lead {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  color: var(--ink-soft);
}

/* ---------- Фото (общие стили) ---------- */

.photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow-lift);
}
.photo img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
.photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding-bottom: 16%;
  text-align: center;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 50% 36%, var(--paper) 0 17%, transparent 17.5%),
    radial-gradient(ellipse 46% 34% at 50% 86%, var(--paper) 0 99%, transparent 100%),
    radial-gradient(circle at 18% 18%, var(--butter-soft), transparent 55%),
    radial-gradient(circle at 85% 70%, var(--sage-soft), transparent 55%),
    var(--cream-deep);
}
.photo__placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
}
.photo__placeholder-hint {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}

/* Арка (первый экран) */
.photo--arch { border-radius: 50% 50% 34px 34px / 40% 40% 34px 34px; }
/* Мягкий прямоугольник (личный блок) */
.photo--soft { border-radius: var(--radius-lg); }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(16px, 3vw, 40px) 0 clamp(72px, 8vw, 120px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hero__eyebrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding-left: 18px;
  border-left: 2px solid var(--sage);
}
.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
}
.hero__role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.hero__title {
  margin-bottom: clamp(22px, 2.5vw, 32px);
  font-size: clamp(2.45rem, 1.45rem + 3.5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 32em;
  margin-bottom: 20px;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
}

/* «Мама двух детей» — спокойная плашка, отделенная от кнопки */
.hero__mom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(36px, 4.5vw, 52px);
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}
.hero__mom svg { width: 26px; height: 18px; flex: none; }
.hero__mom circle:first-child { fill: var(--butter); }
.hero__mom circle:last-child { fill: var(--sage); }

.hero__content .cta { display: grid; width: fit-content; }

.hero__visual {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 500px;
  padding-left: 24px;
}

.hero__blob {
  position: absolute;
  z-index: -1;
  width: 118%;
  left: -14%;
  bottom: -10%;
  fill: var(--butter-soft);
  animation: blob 18s ease-in-out infinite;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: -18px -18px 18px 42px;
  border: 1.5px solid var(--sage);
  border-radius: 50% 50% 34px 34px / 40% 40% 34px 34px;
  opacity: 0.7;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  background: rgba(255, 253, 249, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}
.hero__badge--years {
  left: -12px;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 18px;
  border-radius: 22px;
  animation: float 7s ease-in-out infinite;
}
.hero__badge--years strong {
  font-family: var(--font-serif);
  font-size: 2.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--sage-deep);
}
.hero__badge--years span {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.hero__badge--tag {
  right: -14px;
  top: 14%;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 8s ease-in-out -3s infinite;
}
.hero__badge--tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--butter);
  vertical-align: 1px;
}

/* Десктоп: фото тянется на всю высоту текстовой колонки, чтобы плашка Яндекса
   под кнопкой не делала первый экран выше фото. Верх фото остается полукругом:
   радиус = половина ширины фото (50cqw), независимо от высоты. */
@media (min-width: 901px) {
  .hero__grid { align-items: stretch; }
  .hero__content { align-self: center; }
  .hero__visual {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
  }
  .photo--arch {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 500px;          /* запасное значение для старых браузеров */
    min-height: 125cqw;         /* не ниже исходной пропорции 4:5 */
    border-radius: 999px 999px 34px 34px;
    border-radius: 50cqw 50cqw 34px 34px;
  }
  .hero__visual::before {
    border-radius: 999px 999px 34px 34px;
    border-radius: 50cqw 50cqw 34px 34px;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes blob {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.03); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual {
    order: -1;
    justify-self: center;
    max-width: 440px;
    padding: 0;
  }
  .photo--arch {
    aspect-ratio: 1 / 1;
    border-radius: 50% 50% 30px 30px / 50% 50% 30px 30px;
  }
  .hero__visual::before {
    inset: -12px -12px 12px 12px;
    border-radius: 50% 50% 30px 30px / 50% 50% 30px 30px;
  }
  .hero__badge--years { left: -8px; bottom: 8%; padding: 12px 16px; }
  .hero__badge--years strong { font-size: 2.1rem; }
  .hero__badge--tag { right: -8px; top: 10%; }
}

@media (max-width: 480px) {
  .hero__blob { width: 108%; left: -4%; bottom: -6%; }
  .hero__visual { max-width: 340px; }
  .hero__badge--years span { font-size: 0.78rem; }
  .hero__badge--tag { font-size: 0.78rem; padding: 8px 14px; }
  .hero__content .cta { width: 100%; }
}

/* ---------- Обо мне ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about__head { position: sticky; top: calc(var(--header-h) + 32px); }

.about__text { color: var(--ink-soft); }
.about__text .lead { color: var(--ink); margin-bottom: 1.2em; }

.note {
  position: relative;
  margin: 2rem 0 0;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.45;
}
.note::before {
  content: "";
  position: absolute;
  top: -14px;
  left: clamp(24px, 3vw, 40px);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--butter);
  box-shadow: 16px 0 0 -6px var(--sage);
}

.pillars { margin-top: clamp(64px, 8vw, 112px); }
.pillars__title {
  margin-bottom: 28px;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}
.pillars__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 40px);
}

.pillar {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.pillar:not(:last-child)::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: calc(clamp(28px, 3vw, 40px) / -2);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--milk);
  font: 500 1.3rem/1 var(--font-sans);
  transform: translate(50%, -50%);
}
.pillar__num {
  position: absolute;
  top: clamp(28px, 3vw, 40px);
  right: clamp(28px, 3vw, 40px);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink-mute);
}
.pillar__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--butter-soft);
}
.pillar:nth-child(2) .pillar__icon { background: var(--sage-soft); }
.pillar:nth-child(3) .pillar__icon { background: var(--cream-deep); }
.pillar__icon svg,
.card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pillar__title {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 1.35rem + 0.6vw, 1.9rem);
}
.pillar p { color: var(--ink-soft); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__head { position: static; }
  .pillars__list { grid-template-columns: minmax(0, 1fr); }
  .pillar:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: calc(clamp(28px, 3vw, 40px) / -2);
    left: 50%;
    transform: translate(-50%, 50%);
  }
}

/* ---------- Мой подход ---------- */

.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.venn {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  margin-inline: auto;
  container-type: inline-size;
}
.venn__circle {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  mix-blend-mode: multiply;
  box-shadow: inset 0 0 0 1px rgba(47, 42, 38, 0.06);
}
.venn__circle--child   { left: 20%; top: 5%;  background: #F7E3A2; animation: drift-a 11s ease-in-out infinite; }
.venn__circle--parents { left: 3%;  top: 35%; background: #D2DBC6; animation: drift-b 13s ease-in-out infinite; }
.venn__circle--family  { left: 37%; top: 35%; background: #EEDCC3; animation: drift-c 12s ease-in-out infinite; }

.venn__label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 13px;
  font-size: max(11px, 2.7cqw);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.venn__label--child   { left: 50%; top: 18%; }
.venn__label--parents { left: 22%; top: 76%; }
.venn__label--family  { left: 78%; top: 76%; }

.venn__center {
  position: absolute;
  left: 50%;
  top: 55%;
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 1;
  padding: 3%;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 16px 40px -14px rgba(70, 52, 34, 0.35), 0 0 0 6px rgba(255, 253, 249, 0.5);
  font-family: var(--font-serif);
  font-size: 17px;
  font-size: max(13px, 3.5cqw);
  font-style: italic;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  transform: translate(-50%, -50%);
}

.venn__caption {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.venn__caption span { margin: 0 0.35em; color: var(--sage-deep); }

@keyframes drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(0, -2%); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2%, 1.5%); } }
@keyframes drift-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2%, 1.5%); } }

.approach__text > p:not(.label) { color: var(--ink-soft); }
.approach__text .h2 { margin-bottom: 1.6rem; }
.approach__text .lead { color: var(--ink); }

.layers {
  display: grid;
  gap: 2px;
  margin: 2rem 0;
  border-top: 1px solid var(--line);
}
.layers__item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.layers dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
}
.layers dt::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.layers__item--child dt::before   { background: #EFD27C; }
.layers__item--parents dt::before { background: var(--sage); }
.layers__item--family dt::before  { background: #DCC6A6; }
.layers dd { margin: 0; color: var(--ink-soft); }

.approach__quote {
  margin: 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--butter);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.95rem);
  font-style: italic;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .approach__grid { grid-template-columns: minmax(0, 1fr); }
  .approach__visual { order: 1; }
}
@media (max-width: 480px) {
  .layers__item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- С чем приходят ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 26px 28px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(70, 52, 34, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--butter-pale);
}
.card:nth-child(3n + 2) .card__icon { background: var(--sage-soft); }
.card:nth-child(3n + 3) .card__icon { background: var(--cream); }
.card__icon svg { width: 24px; height: 24px; }
.card__text {
  margin: 0;
  padding-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.2rem + 0.3vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
}

.card--accent {
  grid-column: span 2;
  align-items: center;
  background: var(--butter-soft);
}
.card--accent .card__icon { background: var(--paper); }
.card--accent .card__text {
  padding-top: 0;
  font-size: clamp(1.45rem, 1.3rem + 0.6vw, 1.8rem);
  font-style: italic;
}

.requests__note {
  max-width: 820px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem);
  font-style: italic;
  line-height: 1.35;
  text-wrap: balance;
}

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(n) .card__icon { background: var(--butter-pale); }
  .card:nth-child(4n + 2) .card__icon,
  .card:nth-child(4n + 3) .card__icon { background: var(--sage-soft); }
  .card--accent .card__icon { background: var(--paper); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { padding: 20px; gap: 16px; align-items: center; }
  .card__text { padding-top: 0; }
  .card--accent { grid-column: auto; }
}

/* ---------- Главная мысль ---------- */

.manifesto {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.manifesto::before,
.manifesto::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.manifesto::before {
  width: clamp(280px, 40vw, 560px);
  background: var(--butter-pale);
  transform: translate(-72%, -50%);
}
.manifesto::after {
  width: clamp(240px, 34vw, 480px);
  border: 1.5px solid var(--sage);
  opacity: 0.6;
  transform: translate(-22%, -46%);
}

.manifesto__figure { max-width: 980px; margin: 0 auto; }
.manifesto blockquote { margin: 0; }
.manifesto blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 1.3rem + 2.2vw, 3.3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.manifesto figcaption {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.manifesto figcaption::before {
  content: "";
  width: 36px;
  height: 1.5px;
  background: currentColor;
}

/* ---------- Что вы получите ---------- */

.outcomes { background: var(--sage-soft); }

.outcomes__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.outcome {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius);
  background: var(--paper);
}
.outcome__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 2rem + 1.2vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  color: var(--sage-deep);
}
.outcome p {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
}

.outcomes__note {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  color: var(--ink-soft);
}
.outcomes__note::before {
  content: "";
  flex: none;
  width: 40px;
  height: 1.5px;
  background: var(--sage-deep);
}

@media (max-width: 960px) {
  .outcomes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .outcomes__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .outcome { flex-direction: row; align-items: baseline; gap: 16px; padding: 20px 22px; }
  .outcome__num { font-size: 2rem; min-width: 2.2ch; }
  .outcomes__note { align-items: flex-start; }
  .outcomes__note::before { margin-top: 0.8em; width: 24px; }
}

/* ---------- Отзывы ---------- */

.review {
  margin: 0;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.review blockquote { margin: 0; }
.review blockquote p {
  margin-bottom: 0.8em;
  line-height: 1.6;
}
.review blockquote p:last-child { margin-bottom: 0; }
.review blockquote::before {
  content: "“";
  display: block;
  height: 0.55em;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--sage);
}
.review figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.review--featured {
  margin-bottom: 20px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--butter-pale);
  box-shadow: none;
}
.review--featured blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1.4;
}
.review--featured blockquote::before { font-size: 5.5rem; color: var(--butter); }

/* Карточки разной высоты укладываются «кирпичиками» */
.reviews__grid {
  columns: 3 300px;
  column-gap: 20px;
}
.reviews__grid .review {
  break-inside: avoid;
  margin-bottom: 20px;
}
.reviews__grid .review blockquote p { font-size: 0.98rem; }

@media (max-width: 560px) {
  .reviews__grid { columns: 1; }
  .reviews__grid .review { margin-bottom: 12px; }
}

/* ---------- Карточка Яндекс Карт ----------
   Исключение из палитры: фирменные цвета и шрифт Яндекса, только внутри этой карточки.
   См. docs/brief/visual-style.md#исключение-яндекс-карты */

.yandex-card {
  --ya-red: #FC3F1D;
  --ya-yellow: #FFDB4D;
  --ya-yellow-hover: #FFD21F;
  --ya-text: #000000;
  --ya-muted: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 640px;
  margin: 28px auto 0;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.08);
  font-family: "YS Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ya-text);
}
.yandex-card__pin {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(252, 63, 29, 0.1);
}
.yandex-card__pin svg { width: 26px; height: 26px; }
.yandex-card__pin path { fill: var(--ya-red); }
.yandex-card__pin circle { fill: #FFFFFF; }
.yandex-card__body { flex: 1 1 auto; min-width: 0; }
.yandex-card__brand {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ya-muted);
}
.yandex-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}
.yandex-card__badge { flex: none; width: 150px; height: 50px; }
.yandex-card__badge iframe { display: block; border: 0; }
.yandex-card__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ya-yellow);
  color: var(--ya-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.yandex-card__btn[href]:hover { background: var(--ya-yellow-hover); }

/* Компактный вариант на первом экране, под кнопкой записи */
.yandex-card--hero {
  width: fit-content;
  max-width: 100%;
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  padding: 10px 10px 10px 12px;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.07);
}
.yandex-card--hero .yandex-card__pin { width: 40px; height: 40px; border-radius: 10px; }
.yandex-card--hero .yandex-card__pin svg { width: 22px; height: 22px; }
.yandex-card--hero .yandex-card__body { flex: 0 1 auto; }
.yandex-card--hero .yandex-card__title { font-size: 15px; }
.yandex-card--hero .yandex-card__btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

@media (max-width: 640px) {
  .yandex-card { flex-wrap: wrap; gap: 10px 12px; }
  .yandex-card__body { flex: 1 1 calc(100% - 56px); }
  .yandex-card__badge { order: 3; }
  .yandex-card__btn { order: 4; flex: 1 1 120px; }
  .yandex-card--hero { width: 100%; }
}

/* ---------- Образование и опыт ---------- */

.education__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.education__head { position: sticky; top: calc(var(--header-h) + 32px); }
.education__big {
  display: block;
  font-size: clamp(5rem, 3rem + 7vw, 9rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.education__quote {
  margin-top: 1.8rem;
  padding-left: 22px;
  border-left: 2px solid var(--butter);
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cv { margin: 0; border-top: 1px solid var(--line); }
.cv__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cv dt {
  padding-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.cv dd { margin: 0; }
.cv dd > ul { display: grid; gap: 14px; }
.cv__title {
  display: block;
  font-weight: 600;
  line-height: 1.4;
}
.cv__meta {
  display: block;
  margin-top: 2px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Место для реальных данных — уберите class="todo", когда впишете текст */
.todo {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px dashed rgba(93, 108, 85, 0.45);
  border-radius: 10px;
  color: var(--ink-mute);
  font-size: 0.95rem;
}
.todo::before { content: "+ "; color: var(--sage-deep); font-weight: 700; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sage-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

/* Галерея «Из практики»: широкое фото + три вертикальных */
.practice { margin-top: clamp(56px, 7vw, 96px); }
.practice__list {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
}
.practice__item {
  height: clamp(260px, 28vw, 380px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
}
.practice__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.8s var(--ease);
}
.practice__item:hover img { transform: scale(1.03); }
.practice__item:nth-child(2) img { object-position: 40% 30%; }
.practice__item:nth-child(3) img { object-position: 50% 40%; }

@media (max-width: 760px) {
  /* На телефоне — горизонтальная лента с прокруткой пальцем */
  .practice__list {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .practice__list::-webkit-scrollbar { display: none; }
  .practice__item {
    flex: 0 0 62vw;
    height: 340px;
    scroll-snap-align: start;
  }
  .practice__item--wide { flex-basis: 84vw; }
}

.docs { margin-top: clamp(56px, 7vw, 96px); }
.docs__title {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}
.docs__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.doc {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  overflow: hidden;
}
a.doc {
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
a.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.doc img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.doc--empty {
  border: 1.5px dashed rgba(93, 108, 85, 0.4);
  background: transparent;
  color: var(--ink-mute);
  font-size: 0.88rem;
  text-align: center;
}
.doc--empty span::before {
  content: "";
  display: block;
  width: 28px;
  height: 34px;
  margin: 0 auto 10px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .education__grid { grid-template-columns: minmax(0, 1fr); }
  .education__head { position: static; }
  .docs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cv__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .docs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Как проходит консультация ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 36px;
  right: 30%;
  border-top: 1.5px dashed rgba(93, 108, 85, 0.45);
}

.step { position: relative; }
.step__num {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 10px var(--cream);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
}
.step:last-child .step__num { background: var(--butter); }
.step__text {
  max-width: 15em;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.25rem + 0.7vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
}

.format {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.format__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  margin: 0;
}
.format__list > div { display: flex; flex-direction: column; gap: 4px; }
.format__list > div + div {
  padding-left: clamp(24px, 4vw, 56px);
  border-left: 1px solid var(--line);
}
.format dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.format dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .format { flex-direction: column; align-items: stretch; }
  .format .btn { width: 100%; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .steps::before {
    top: 36px;
    bottom: 36px;
    left: 35px;
    right: auto;
    border-top: 0;
    border-left: 1.5px dashed rgba(93, 108, 85, 0.45);
  }
  .step { display: flex; align-items: center; gap: 22px; }
  .step__num { flex: none; margin-bottom: 0; }
}
@media (max-width: 480px) {
  /* Три значения в ряд равными колонками, без переноса на вторую строку */
  .format__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }
  .format__list > div + div { padding-left: 10px; }
  .format dt { font-size: 0.66rem; letter-spacing: 0.06em; }
  .format dd { font-size: 1.25rem; }
}

/* ---------- Когда не нужно ждать ---------- */

.calm { padding-bottom: 0; }
.calm__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-panel);
}
.calm__art {
  position: relative;
  width: clamp(140px, 16vw, 200px);
  aspect-ratio: 1;
}
.calm__art span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: float 9s ease-in-out infinite;
}
.calm__art span:nth-child(1) { width: 70%; height: 70%; left: 0; top: 0; background: var(--butter-soft); }
.calm__art span:nth-child(2) { width: 55%; height: 55%; right: 0; top: 30%; background: var(--sage-soft); animation-delay: -3s; }
.calm__art span:nth-child(3) { width: 34%; height: 34%; left: 22%; bottom: 0; background: var(--beige); animation-delay: -6s; }

.calm .h2 { margin-bottom: 1.4rem; }
.calm__text {
  max-width: 40em;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .calm__card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .calm__art { width: 110px; }
}

/* ---------- Личный блок ---------- */

.personal { overflow-x: clip; }
.personal__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.personal__visual {
  position: relative;
  isolation: isolate;
  max-width: 520px;
}
.personal__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 62%;
  aspect-ratio: 1;
  right: -10%;
  bottom: -8%;
  border-radius: 50%;
  background: var(--butter-soft);
}
.personal__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34%;
  aspect-ratio: 1;
  left: -7%;
  top: -5%;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
}

.personal .h2 { margin-bottom: 1.8rem; }
.personal .lead { color: var(--ink-soft); }
.personal__accent {
  margin: 1.8rem 0;
  padding: 4px 0 4px 26px;
  border-left: 2px solid var(--butter);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.95rem);
  font-style: italic;
  line-height: 1.3;
}
.personal__sign {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  color: var(--sage-deep);
}

@media (max-width: 900px) {
  .personal__visual::before { right: -4%; }
  .personal__visual::after { left: -3%; }
  .personal__grid { grid-template-columns: minmax(0, 1fr); }
  .personal__visual { width: 100%; max-width: 440px; margin-inline: auto; }
}

/* ---------- Финальный CTA ---------- */

.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, var(--butter-soft) 0%, var(--butter-pale) 60%, var(--cream) 100%);
  text-align: center;
}
.final::before,
.final::after {
  content: "";
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
}
.final::before {
  width: clamp(220px, 30vw, 420px);
  left: -6%;
  bottom: -30%;
  background: var(--butter);
  opacity: 0.45;
}
.final::after {
  width: clamp(200px, 26vw, 360px);
  right: -4%;
  top: -24%;
  border: 1.5px solid var(--sage);
  opacity: 0.7;
}

.final__inner { max-width: 900px; }
.final__title {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem);
  line-height: 1.04;
}
.final__lead {
  max-width: 34em;
  margin: 1.6rem auto 2.6rem;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  color: var(--ink-soft);
}

@media (max-width: 480px) {
  .final .cta { width: 100%; }
}

/* ---------- Соцсети ---------- */

.social__inner { text-align: center; }
.social__title {
  margin-bottom: 32px;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem);
}
.social__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.social__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid rgba(47, 42, 38, 0.18);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.social__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social__btn sup { margin-left: -6px; font-size: 0.7em; color: var(--ink-mute); }
.social__btn[href]:hover {
  background: var(--paper);
  border-color: transparent;
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.social__footnote {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

@media (max-width: 480px) {
  .social__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social__btn { justify-content: center; width: 100%; padding: 14px 10px; font-size: 0.88rem; gap: 8px; text-align: center; }
  .social__btn svg { width: 18px; height: 18px; flex: none; }
}

/* ---------- Подвал ---------- */

.footer {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  background: var(--ink);
  color: #D9CFC2;
}
.footer a { text-decoration: none; transition: color 0.25s; }
.footer a:not(.btn):hover { color: var(--butter); }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.12);
}
.footer__name {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--milk);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: 420px;
  padding-top: 10px;
}
.footer__bottom {
  padding-top: 24px;
  font-size: 0.85rem;
  color: #A99D90;
}

/* ---------- Плавающая кнопка (мобильные) ---------- */

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  opacity: 0;
  transform: translateY(140%);
  transition: transform 0.45s var(--ease), opacity 0.45s;
}
.sticky-cta.is-visible { opacity: 1; transform: none; }
.sticky-cta .btn { box-shadow: 0 16px 36px -10px rgba(47, 42, 38, 0.55); }

@media (max-width: 760px) {
  .sticky-cta { display: block; }
}

/* ---------- Просмотр дипломов ---------- */

.lightbox {
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(47, 42, 38, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.lightbox__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}
@media (max-width: 560px) {
  .lightbox__close { top: -54px; right: 0; }
}

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js .cards [data-reveal]:nth-child(3n + 2),
.js .outcomes__list [data-reveal]:nth-child(3n + 2),
.js .pillars__list [data-reveal]:nth-child(2),
.js .steps [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.js .cards [data-reveal]:nth-child(3n + 3),
.js .outcomes__list [data-reveal]:nth-child(3n + 3),
.js .pillars__list [data-reveal]:nth-child(3),
.js .steps [data-reveal]:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Телефоны (iPhone 11 Pro и подобные, ~375px) ---------- */

@media (max-width: 420px) {
  :root { --gutter: 18px; --header-h: 68px; }
  .hero__title { font-size: 2.3rem; }
  .final__title { font-size: 2.2rem; }
  .h2 { font-size: 2rem; }
  .btn--lg { padding: 1.05em 1.3em; font-size: 1rem; }
  .cta__meta { font-size: 0.86rem; white-space: normal; }
  .review blockquote p,
  .cv__meta { overflow-wrap: anywhere; }
}

/* Нажимаемые элементы не меньше 44px по рекомендациям Apple; без «залипающих» hover-эффектов */
@media (hover: none) {
  .btn, .social__btn { min-height: 44px; }
  .card:hover, a.doc:hover { transform: none; }
  .practice__item:hover img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
