/* ==========================================================================
   Эксперты здоровья: тёплая палитра, стекло, плавные появления
   ========================================================================== */

@font-face { font-family: "Cormorant"; src: url("../fonts/Cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/Cormorant-Italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --bg: #e7e2d7;
  --bg-2: #ddd7ca;
  --ink: #1d1b17;
  --ink-2: #5b564c;
  --ink-3: #8b8578;
  --line: rgba(29, 27, 23, .12);
  --dark: #17191d;
  --cream: #faf7f0;
  --red: #c8202e;
  --blue: #1d3e8c;
  --glass: rgba(255, 252, 246, .44);
  --glass-strong: rgba(255, 252, 246, .72);
  --glass-border: rgba(255, 255, 255, .6);
  --serif: "Cormorant", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --r: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html.is-loading body { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(200, 32, 46, .16); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Типографика ---------- */
.display {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(38px, 5.6vw, 84px); line-height: .98; letter-spacing: .004em;
  margin: 0; text-wrap: balance;
}
.kicker {
  margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 860px; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 54ch; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

/* ---------- Стекло ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 30px 60px -42px rgba(58, 46, 24, .5);
  border-radius: var(--r);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

/* ---------- Фон с «облаками» ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Пятна неподвижны и без filter: под стеклом движущийся или размытый фон заставляет Safari
   пересчитывать каждый стеклянный блок, и страница начинает тормозить на кликах. */
.blob { position: absolute; border-radius: 50%; opacity: .85; }
.blob--1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -16vmax; background: radial-gradient(circle, #f6f1e7 0%, rgba(246, 241, 231, 0) 70%); }
.blob--2 { width: 46vmax; height: 46vmax; right: -12vmax; top: 18vh; background: radial-gradient(circle, rgba(170, 182, 150, .75) 0%, rgba(170, 182, 150, 0) 70%); }
.blob--3 { width: 40vmax; height: 40vmax; left: 18vw; bottom: -18vmax; background: radial-gradient(circle, rgba(232, 190, 165, .7) 0%, rgba(232, 190, 165, 0) 70%); }
.blob--4 { width: 34vmax; height: 34vmax; left: 46vw; top: -10vmax; background: radial-gradient(circle, rgba(184, 202, 214, .7) 0%, rgba(184, 202, 214, 0) 70%); }
.grain {
  position: absolute; inset: 0; opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .27  0 0 0 0 .2  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 14px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--dark { background: var(--dark); color: var(--cream); box-shadow: 0 14px 30px -16px rgba(23, 25, 29, .7); }
.btn--dark:hover { background: #2a2d33; }
.btn--glass {
  background: rgba(255, 252, 246, .5); color: var(--ink);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 14px 30px -22px rgba(58, 46, 24, .5);
}
.btn--glass:hover { background: rgba(255, 252, 246, .8); }
.btn--light { background: var(--cream); color: var(--dark); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }
.btn.is-busy { pointer-events: none; opacity: .7; }
.link-arrow, .link-more {
  display: inline-flex; gap: 8px; align-items: center; padding: 0; background: none; border: 0; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--ink); border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s, gap .3s var(--ease);
}
.link-arrow:hover, .link-more:hover { color: var(--red); gap: 12px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; font-size: 18px;
  background: rgba(255, 252, 246, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s, transform .3s var(--ease);
}
.round-btn:hover { background: var(--dark); color: var(--cream); transform: scale(1.05); }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg);
  transition: transform 1s var(--ease) .1s, border-radius 1s var(--ease) .1s;
}
.preloader.is-done { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18% 18%; }
html.pl-skip .preloader { display: none; }
html.pl-skip.is-loading body { overflow: auto; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; }
.preloader__heart { width: 150px; height: 125px; overflow: visible; }
.heart-outline { fill: none; stroke: var(--red); stroke-width: 9; stroke-linejoin: round; stroke-dasharray: 640; stroke-dashoffset: 640; animation: draw 1.4s var(--ease) forwards; }
.heart-pulse { fill: none; stroke: var(--blue); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 90 400; stroke-dashoffset: 490; animation: beat 1.3s linear infinite .5s; }
.preloader__count { font: 500 15px/1 var(--sans); letter-spacing: .2em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beat { to { stroke-dashoffset: 0; } }

/* ---------- Шапка ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px var(--gutter) 0; transition: transform .5s var(--ease); }
@media (min-width: 641px) { .site-header.is-hidden { transform: translateY(-120%); } }
.site-header__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  padding: 10px 12px 10px 26px; border-radius: 999px; max-width: 1460px; margin: 0 auto;
  transition: background .4s, box-shadow .4s;
}
.site-header:not(.is-scrolled) .site-header__bar { background: rgba(255, 252, 246, .22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 14px; font-weight: 500; }
.site-nav--right { justify-content: flex-end; gap: 16px; }
.site-nav a:not(.btn) { position: relative; padding: 6px 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.brand img { height: 42px; width: auto; }
.phone-link { font-weight: 600; font-variant-numeric: tabular-nums; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--dark); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--cream); transition: transform .35s var(--ease), top .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); }
.mobile-menu[hidden] { display: none; }
.mobile-menu {
  margin: 10px auto 0; max-width: 520px; padding: 18px; display: grid; gap: 2px;
  background: var(--glass-strong); animation: menu-in .45s var(--ease);
}
.mobile-menu a { padding: 14px 16px; border-radius: 16px; font: 500 22px/1.2 var(--serif); text-transform: uppercase; }
.mobile-menu a:hover { background: rgba(255, 255, 255, .6); }
.mobile-menu__phone { font-family: var(--sans) !important; font-size: 17px !important; font-weight: 600 !important; text-transform: none !important; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@media (max-width: 640px) { @keyframes menu-in { from { opacity: 0; transform: translateY(14px) scale(.98); } } }

/* ---------- Главный экран ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 140px var(--gutter) 150px; text-align: center; overflow: hidden; }
.hero__pulse { position: absolute; left: 0; width: 100%; bottom: 112px; height: 110px; opacity: .5; pointer-events: none; }
.hero__pulse polyline { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 520 2400; stroke-dashoffset: 520; }
html.is-ready .hero__pulse polyline { animation: sweep 5.5s cubic-bezier(.45, 0, .2, 1) .6s infinite; }
@keyframes sweep { 0% { stroke-dashoffset: 520; opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 100% { stroke-dashoffset: -2400; opacity: 0; } }
.hero__content { position: relative; max-width: 1200px; display: grid; justify-items: center; }
.hero__title { font-size: clamp(54px, 11.5vw, 190px); line-height: .9; letter-spacing: -.005em; }
.hero__subtitle { margin: 26px 0 0; max-width: 34ch; font: italic 400 clamp(22px, 2.4vw, 34px)/1.25 var(--serif); color: var(--ink-2); }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__team {
  position: absolute; left: 0; right: 0; bottom: 34px; margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 16px; padding: 10px 22px 10px 10px; border-radius: 999px; font-size: 14px; text-align: left;
  transition: transform .4s var(--ease), background .3s;
}
.hero__team:hover { background: rgba(255, 252, 246, .7); }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.hero__team .arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: var(--cream); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- Вступление ---------- */
.intro { padding: clamp(80px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); text-align: center; display: grid; justify-items: center; }
.intro__text { margin: 0; font: 400 clamp(28px, 3.7vw, 56px)/1.16 var(--serif); max-width: 30ch; letter-spacing: -.005em; text-wrap: balance; }
.intro__text .w { opacity: .18; transition: opacity .5s; }
.intro__text .w.is-lit { opacity: 1; }

/* ---------- Эксперты ---------- */
.experts { padding: clamp(40px, 6vw, 80px) 0; }
.experts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.expert-card { position: relative; display: block; isolation: isolate; }
.expert-card__photo { display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.expert-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.expert-card:hover .expert-card__photo img { transform: scale(1.05); }
.expert-card__body { position: relative; display: grid; gap: 8px; margin: -96px 12px 0; padding: 20px 20px 22px; border-radius: 22px; transition: transform .5s var(--ease); }
.expert-card:hover .expert-card__body { transform: translateY(-6px); }
.expert-card__role { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.expert-card__name { font: 500 23px/1.08 var(--serif); }
.expert-card__name b { font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.expert-card__short { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.expert-card__more { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Форматы ---------- */
.formats { padding: clamp(80px, 10vw, 150px) 0; }
.formats__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.formats__list .display { margin-bottom: clamp(28px, 4vw, 48px); font-size: clamp(34px, 4.4vw, 66px); }
.accordion { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.accordion__item { border-radius: 22px; background: rgba(255, 252, 246, .4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background .4s; }
.accordion__item.is-open { background: rgba(255, 252, 246, .74); }
.accordion__head { width: 100%; display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 12px; padding: 24px 26px; background: none; border: 0; cursor: pointer; text-align: left; }
.accordion__num { font: 500 22px/1 var(--serif); color: var(--ink-3); }
.accordion__title { font: 500 clamp(20px, 2vw, 27px)/1.15 var(--serif); text-transform: uppercase; }
.accordion__plus { position: relative; width: 22px; height: 22px; }
.accordion__plus::before, .accordion__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease); }
.accordion__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-open .accordion__plus::after { transform: translate(-50%, -50%) rotate(0); }
.accordion__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.is-open .accordion__body { grid-template-rows: 1fr; }
.accordion__body > div { overflow: hidden; padding: 0 26px 0 82px; }
.is-open .accordion__body > div { padding-bottom: 26px; }
.accordion__body p { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; }
.formats__visual { position: sticky; top: 110px; aspect-ratio: 1 / 1.05; padding: 14px; overflow: hidden; }
.formats__image { position: absolute; inset: 14px; margin: 0; border-radius: 20px; overflow: hidden; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.formats__image.is-active { opacity: 1; transform: none; }
/* картинка целиком; пустое место вокруг заполняет её размытая копия */
.formats__blur { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) saturate(1.2); transform: scale(1.15); opacity: .75; }
.formats__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.formats__image figcaption { position: absolute; left: 14px; bottom: 14px; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 252, 246, .7); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ---------- Консультации ---------- */
.consult { padding: clamp(40px, 6vw, 80px) 0; }
.consult__card { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 5vw, 72px); }
.consult__copy p:not(.kicker) { color: var(--ink-2); font-size: 17px; margin: 22px 0 30px; max-width: 46ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; row-gap: 4px; padding: 22px 24px; border-radius: 22px; background: rgba(255, 252, 246, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.steps__num { grid-row: span 2; font: 500 34px/1 var(--serif); color: var(--red); }
.steps b { font-size: 17px; }
.steps li > span:last-child { color: var(--ink-2); font-size: 15px; }

/* ---------- Школа ---------- */
.school { padding: clamp(80px, 10vw, 150px) 0 clamp(40px, 6vw, 80px); }
.school__card { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 60px); padding: 14px; align-items: center; }
.school__image { border-radius: 20px; overflow: hidden; align-self: center; }
.school__image img { width: 100%; height: auto; }
.school__copy { padding: clamp(14px, 3vw, 40px) clamp(14px, 3vw, 40px) clamp(14px, 3vw, 40px) 0; }
.school__copy .display { font-size: clamp(34px, 4.2vw, 62px); }
.school__name { margin: 18px 0 22px; font-size: 17px; color: var(--ink-2); }
.school__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.school__facts div { padding: 12px 18px; border-radius: 16px; background: rgba(255, 252, 246, .65); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.school__facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.school__facts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.school__note { color: var(--red); font-weight: 600; font-size: 14px; margin: 0 0 24px; }
.school__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Отзывы ---------- */
.reviews { padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.reviews__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px max(var(--gutter), (100vw - var(--wrap)) / 2) 30px; scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(400px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.review__head { display: flex; gap: 14px; align-items: center; }
.review__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
.review__avatar--letter { display: grid; place-items: center; background: var(--dark); color: var(--cream); font: 500 24px/1 var(--serif); }
.review__name { margin: 0; font: 600 22px/1.1 var(--serif); }
.review__about { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.review__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.review .link-more { align-self: flex-start; }
.slider-nav { display: flex; gap: 10px; }

/* ---------- Контакты и форма ---------- */
.contacts { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); }
.contacts__layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contacts__copy .display { font-size: clamp(34px, 4.2vw, 62px); }
.contacts__phone { display: inline-block; margin: 30px 0 22px; font: 500 clamp(30px, 3.4vw, 46px)/1 var(--serif); border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .2s; }
.contacts__phone:hover { color: var(--red); }
.contacts__messengers { display: flex; flex-wrap: wrap; gap: 12px; }
.lead-form { padding: clamp(22px, 3vw, 36px); }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(29, 27, 23, .1);
  background: rgba(255, 255, 255, .62); font: 400 16px/1.4 var(--sans); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1b17' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(29, 27, 23, .4); background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 4px rgba(255, 255, 255, .55); }
.field.is-invalid input { border-color: var(--red); background: rgba(255, 244, 242, .85); }
.field__error { display: block; min-height: 0; font-size: 12.5px; line-height: 1.35; font-weight: 500; color: var(--red); }
.field__error:empty { display: none; }
.field__error--consent { margin: -14px 0 16px 32px; }
.lead-form.is-sent .field__error { display: none; }
.consent.is-invalid input { outline: 2px solid var(--red); outline-offset: 2px; }
.lead-form button[disabled] { opacity: .7; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(29, 27, 23, .1); transition: background .2s, color .2s; }
.chip input:checked + span { background: var(--dark); color: var(--cream); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 22px; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dark); flex: none; }
.lead-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lead-form__status { margin: 0; font-size: 14px; font-weight: 600; }
.lead-form__status.is-error { color: var(--red); }
.lead-form.is-sent .lead-form__grid, .lead-form.is-sent .consent, .lead-form.is-sent .btn { display: none; }
.lead-form.is-sent .lead-form__status { font: 500 26px/1.25 var(--serif); }

/* ---------- Страница эксперта ---------- */
.expert-hero { padding: 140px 0 clamp(40px, 6vw, 80px); }
.back-link { display: inline-block; margin-bottom: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.back-link:hover { color: var(--ink); }
.expert-hero__layout { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.expert-hero__photo { padding: 12px; }
.expert-hero__photo img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.expert-hero__name { font-size: clamp(46px, 6.4vw, 104px); }
.expert-hero__short { margin: 26px 0 0; font: italic 400 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); color: var(--ink-2); max-width: 30ch; }
.expert-hero .hero__actions { justify-content: flex-start; }
.expert-bio__card { padding: clamp(28px, 5vw, 72px); max-width: 980px; margin: 0 auto; }
.rich { font-size: 17px; line-height: 1.7; color: var(--ink); }
.rich p { margin: 0 0 16px; }
.rich h3 { margin: 34px 0 14px; font: 600 clamp(22px, 2vw, 28px)/1.2 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.rich h3:first-child { margin-top: 0; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200, 32, 46, .14); }
.experts--others { padding-bottom: clamp(80px, 10vw, 140px); }
.experts--others .experts__grid { grid-template-columns: repeat(3, 1fr); }
.page { padding: 140px 0 100px; }
.page__card { padding: clamp(28px, 5vw, 72px); max-width: 980px; margin: 0 auto; }
.page__card .display { margin-bottom: 30px; }

/* ---------- Окно отзыва ---------- */
.modal { width: min(680px, calc(100vw - 32px)); max-height: 86vh; padding: clamp(28px, 4vw, 48px); border: 0; background: var(--glass-strong); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(29, 27, 23, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .5s var(--ease); }
.modal h3 { margin: 0 0 16px; font: 600 34px/1.1 var(--serif); }
.modal__body { color: var(--ink-2); line-height: 1.7; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; background: var(--dark); color: var(--cream); }
@keyframes modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ---------- Подвал ---------- */
.site-footer { margin: 0 var(--gutter) var(--gutter); padding: clamp(40px, 6vw, 72px) 0 28px; border-radius: var(--r); background: var(--dark); color: rgba(250, 247, 240, .82); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__brand img { width: 120px; padding: 12px; border-radius: 22px; background: var(--cream); }
.site-footer__brand p { max-width: 34ch; margin: 18px 0 0; font-size: 15px; }
.site-footer__nav, .site-footer__contacts { display: grid; gap: 10px; align-content: start; font-size: 15px; }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer__phone { font: 500 28px/1.1 var(--serif); color: var(--cream); margin-bottom: 6px; }
.site-footer__contacts .btn { justify-self: start; margin-top: 10px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(250, 247, 240, .14); font-size: 13px; color: rgba(250, 247, 240, .55); }
.site-footer__note { max-width: 60ch; }

/* ---------- Скелетон: мерцающая заглушка, пока грузится картинка ---------- */
.sk, .sk-inner, .sk-img {
  background-color: var(--bg-2);
  background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 70%);
  background-size: 220% 100%; background-repeat: no-repeat;
  animation: shimmer 1.3s linear infinite;
}
.sk-inner { background-clip: content-box; }
.sk.is-loaded, .sk-inner.is-loaded, .sk-img.is-loaded { animation: none; background-image: none; }
.sk-inner.is-loaded { background-color: transparent; }
html.js .sk img, html.js .sk-inner img, html.js img.sk-img { opacity: 0; transition: opacity .7s var(--ease); }
html.js .is-loaded img, html.js img.sk-img.is-loaded { opacity: 1; }
html.js .formats__image.is-loaded .formats__blur { opacity: .75; }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }

/* ---------- Переключатель языка ---------- */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font: 700 12px/1 var(--sans); letter-spacing: .12em; background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px rgba(29, 27, 23, .1); cursor: pointer; color: var(--ink); }
.lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__btn svg { transition: transform .25s var(--ease); }
.lang__list { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 190px; margin: 0; padding: 8px; list-style: none; border-radius: 20px; background: rgba(250, 247, 240, .92); }
.lang__list[hidden] { display: none; }
.lang__list a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--ink); text-decoration: none; }
.lang__list a b { width: 22px; font-size: 11px; letter-spacing: .1em; color: var(--ink-3); }
.lang__list a:hover { background: rgba(29, 27, 23, .06); }
.lang__list a[aria-current] { background: var(--dark); color: var(--cream); }
.lang__list a[aria-current] b { color: inherit; }
.mobile-menu__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 4px; }
.mobile-menu__langs a { display: inline-grid; place-items: center; min-width: 48px; height: 40px; padding: 0 10px; border-radius: 999px; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: none; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(29, 27, 23, .1); }
.mobile-menu__langs a[aria-current] { background: var(--dark); color: var(--cream); box-shadow: none; }
@media (max-width: 640px) { .lang { display: none; } }

/* ---------- Переход между страницами ---------- */
.nav-loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; pointer-events: none;
  background: rgba(231, 226, 215, .86);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
html.is-leaving .nav-loader { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.nav-loader__heart { width: 84px; height: 70px; overflow: visible; transform: scale(.85); transition: transform .3s var(--ease); }
html.is-leaving .nav-loader__heart { transform: none; animation: navbeat 1.1s ease-in-out infinite .3s; }
.nav-loader__heart path { fill: none; stroke: var(--red); stroke-width: 10; stroke-linejoin: round; }
.nav-loader__heart polyline { fill: none; stroke: var(--blue); stroke-width: 8; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 90 400; stroke-dashoffset: 490; }
html.is-leaving .nav-loader__heart polyline { animation: beat 1.1s linear infinite; }
@keyframes navbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(.98); } }

/* ---------- Анимации появления ---------- */
html.js .reveal { opacity: 0; transform: translateY(34px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
html.js [data-in] { opacity: 0; transform: translateY(24px); }
html.js.is-ready [data-in] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.split-char { display: inline-block; transform: translateY(105%); }
html.is-ready .split-char { transform: none; transition: transform 1.2s var(--ease); transition-delay: calc(200ms + var(--i) * 35ms); }
html:not(.js) .split-char { transform: none; }

/* Повторные переходы по сайту: тот же эффект, но короче, чтобы страница не казалась зависшей */
html.pl-skip.is-ready [data-in] { transition-duration: .55s, .6s; transition-delay: calc(var(--d, 0) * .25ms); }
html.pl-skip.is-ready .split-char { transition-duration: .7s; transition-delay: calc(var(--i) * 14ms); }

/* Отклик на касание: карточка и ссылки реагируют сразу, без задержки браузера */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.expert-card__photo { transition: transform .15s ease, opacity .15s ease; }
.expert-card:active .expert-card__photo { transform: scale(.97); opacity: .85; }
@media (hover: none) {
  .expert-card:hover .expert-card__photo img, .expert-card:hover .expert-card__body { transform: none; }
}

/* На телефоне стекло легче: меньше радиус размытия, без усиления цвета */
@media (max-width: 640px) {
  .glass { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* Длинные слова на других языках: кнопки переносят текст, заголовки не вылезают за край */
.display { overflow-wrap: break-word; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding: 14px 24px; }
  .kicker { white-space: normal; overflow-wrap: anywhere; }
  .site-header .btn { white-space: nowrap; padding: 0 16px; font-size: 11px; letter-spacing: .02em; }
  .site-header .burger { flex: none; }
  .site-nav--right { min-width: 0; flex-wrap: nowrap; }
  .section-head, .section-head > div, .formats__layout > *, .contacts__layout > *, .school__card > *, .expert-hero__layout > * { min-width: 0; max-width: 100%; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .experts__grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav--left { display: none; }
  .site-header__bar { grid-template-columns: auto 1fr; padding-left: 20px; }
  .site-nav--right { justify-content: flex-end; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  .formats__layout, .consult__card, .school__card, .contacts__layout, .expert-hero__layout { grid-template-columns: 1fr; }
  .formats__visual { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; }
  .school__copy { padding: 4px 14px 18px; }
  .school__actions .btn { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .expert-hero__photo { max-width: 420px; }
  .experts--others .experts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .phone-link { display: none; }
  .brand img { height: 30px; }
  /* Телефон: шапка и меню внизу экрана, под большой палец */
  html { scroll-padding-top: 20px; }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .site-header {
    top: auto; bottom: 0; padding: 0 10px calc(10px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column-reverse;
  }
  .site-header__bar { padding: 8px 8px 8px 16px; grid-template-columns: minmax(0, 1fr) auto; background: var(--glass-strong) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 -10px 40px -20px rgba(58, 46, 24, .45) !important; }
  .site-nav--right { gap: 8px; }
  .site-header .brand { min-width: 0; }
  .site-header .brand img { width: 100%; max-width: 150px; height: auto; }
  .site-nav--right .btn { min-height: 46px; padding: 0 16px; font-size: 11px; }
  .mobile-menu { margin: 0 0 10px; width: 100%; max-height: calc(100svh - 120px); overflow: auto; background: rgba(250, 247, 240, .95); }
  .hero { min-height: calc(100svh - 86px); padding-top: 70px; padding-bottom: 120px; }
  .hero__team { bottom: 24px; }
  .expert-hero, .page { padding-top: 40px; }
  .site-footer { margin-bottom: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__team { font-size: 13px; padding-right: 14px; gap: 10px; bottom: 22px; }
  .avatars img { width: 36px; height: 36px; }
  .hero__team-text b { display: block; }
  .hero__team-text span { display: none; }
  .hero .kicker::before { display: none; }
  .hero__pulse { bottom: 86px; height: 70px; }
  .experts__grid, .experts--others .experts__grid { grid-template-columns: 1fr; gap: 26px; }
  .expert-card__photo { aspect-ratio: 1 / 1; }
  .lead-form__grid { grid-template-columns: 1fr; }
  .accordion__head { padding: 20px; grid-template-columns: 34px 1fr 24px; }
  .accordion__body > div { padding: 0 20px 0 66px; }
  .section-head--row { align-items: flex-start; flex-direction: column; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer { margin: 0 10px 10px; }
  .contacts__messengers .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  html.js .reveal, html.js [data-in] { opacity: 1; transform: none; filter: none; }
  .split-char { transform: none !important; }
  .sk, .sk-inner, .sk-img { animation: none; }
  .intro__text .w { opacity: 1; }
}
