/* ===== Шрифты (свои файлы, без Google Fonts; лицензия SIL OFL) ===== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-400.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-600.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-700.woff2") format("woff2"); }
/* Запасные шрифты с теми же размерами, что у Inter и Oswald: при подмене на настоящий шрифт текст не «прыгает» */
@font-face { font-family: "Inter Fallback"; font-weight: 400 500; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 106.5%; ascent-override: 91%; descent-override: 22.7%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; font-weight: 600 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 100.7%; ascent-override: 96.2%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Oswald Fallback"; font-weight: 400 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("LiberationSans-Bold"); size-adjust: 81%; ascent-override: 147.3%; descent-override: 35.7%; line-gap-override: 0%; }

/* ===== Переменные ===== */
:root {
  --cream: #f4f0f3;
  --sand: #e9e2e8;
  --card: #faf8fa;
  --emerald: #24152e;
  --ink: #1b1220;
  --muted: #655a68;
  --accent: #4f3270;
  --accent-d: #382250;
  --accent2: #6b4a8c;
  --mint: #e4dbea;
  --rose: #ece4ea;
  --rose-line: #d7c9d3;
  --icon: #e6dde5;
  --line: #d9cfd8;
  --serif: "Oswald", "Oswald Fallback", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 0;
  --hero-img: url("images/hero.jpg");
  --pad: clamp(36px, 4.8vw, 60px);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--cream); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.02; }
.h1__line { display: block; text-wrap: balance; }
.h1__line--accent { color: rgba(244,240,243,.8); margin-top: .14em; font-weight: 400; font-style: normal; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.35rem; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - 40px); }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.eyebrow--light { color: var(--mint); }
.hero .eyebrow--light { color: rgba(244,240,243,.78); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: butt; stroke-linejoin: miter; flex: none; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block; padding: .95em 1.9em;
  background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 0;
  font: 600 .95rem var(--sans); text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-1px); }
.btn--small { padding: .6em 1.3em; font-size: .88rem; }
.btn--light { background: var(--cream); color: var(--emerald); border-color: var(--cream); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(244,240,243,.55); }
.btn--ghost-light:hover { background: rgba(244,240,243,.12); border-color: var(--cream); }
.btn--outline { background: transparent; color: var(--emerald); border-color: var(--emerald); }
.btn--outline:hover { background: var(--emerald); color: var(--cream); border-color: var(--emerald); }

/* ===== Теги ===== */
/* Ряд из 4 плиток всегда в одну строку: размер шрифта подгоняется под ширину карточки */

/* ===== Шапка ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(244,240,243,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; position: relative; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; line-height: 1; text-decoration: none; }
.header__right { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { white-space: nowrap; }
.social { display: flex; gap: 8px; }
.social__link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; border: 1.5px solid var(--line); color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.social__link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social__link .ico { width: 20px; height: 20px; }
.social--light { margin-top: 18px; }
.social--light .social__link { border-color: rgba(244,240,243,.4); color: var(--cream); }
.social--light .social__link:hover { background: var(--cream); border-color: var(--cream); color: var(--emerald); }
.nav a:not(.btn) { text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Фото-блоки ===== */
.media { position: relative; overflow: hidden; background: linear-gradient(160deg, #5e4d54, #22122e); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #1a1020; color: var(--cream); min-height: min(90vh, 860px); display: flex; align-items: center; padding: 56px 0; }
/* Фон: то же фото, сильно размытое, под нейтральным тёмным наложением */
.hero__bg { position: absolute; inset: -40px; z-index: 0; background: var(--hero-img) 50% 22% / cover no-repeat; filter: blur(28px) grayscale(.2); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20,13,25,.6); }
.hero__media { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: min(52%, 780px); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%); }
.hero__media img { object-position: 50% 16%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,13,25,.35), rgba(20,13,25,0) 45%); }
.hero__inner { position: relative; z-index: 3; }
.hero__text { max-width: 700px; }
.lead { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: rgba(244,240,243,.86); margin: 1.4rem 0 2rem; max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Путь ===== */
.path { background: rgba(233,226,232,.88); border-bottom: 1px solid var(--line); }
.path__inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 28px; padding-block: 16px; font-family: var(--serif); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; font-size: clamp(1.35rem, 3.4vw, 2.3rem); line-height: 1.1; }
.path__inner i { display: inline-flex; font-style: normal; color: var(--accent); }
.path__inner i svg { width: 1.15em; height: 1.15em; }

/* ===== Секции ===== */
.section { padding: var(--pad) 0; background: rgba(244,240,243,.84); }
.section--sand { background: rgba(233,226,232,.82); }
.section--dark { background: rgba(36,21,46,.88); color: var(--cream); }
.grid > *, .panel > * { min-width: 0; }
.grid { display: grid; gap: clamp(32px, 6vw, 80px); }
.grid--process { grid-template-columns: 6fr 5fr; align-items: start; }



/* ===== Услуги ===== */

/* ===== Вкладки ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.tab { font: 600 .88rem var(--sans); padding: .75em 1.5em; background: transparent; color: var(--ink); border: 1.5px solid var(--emerald); border-radius: 0; cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { background: rgba(36,21,46,.07); }
.tab[aria-selected="true"] { background: var(--emerald); color: var(--cream); }
.panel { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.gcard { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 52px); color: #f4f0f3; background: linear-gradient(160deg, #4b2f69, #1a0f23); }
.gcard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(138,99,179,.38) 0, rgba(138,99,179,0) 50%); }
.gcard::after { content: ""; position: absolute; right: -8%; bottom: -60%; width: 46%; aspect-ratio: 1; background: rgba(255,255,255,.045); transform: rotate(45deg); }
.gcard > * { position: relative; z-index: 1; }
.gcard__num { position: absolute; right: clamp(16px, 3vw, 44px); top: clamp(8px, 1.6vw, 22px); font: 700 clamp(5rem, 11vw, 9rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 2px rgba(244,240,243,.34); }
.gcard__body { max-width: min(640px, 100%); }
.gcard__body small { display: block; margin-bottom: 12px; font: 600 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #c9b3e0; }
.gcard__body h3 { margin: 0 0 .5em; font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: #fff; text-wrap: balance; }
.gcard__body p { margin: 0; font-size: 1.05rem; color: rgba(244,240,243,.84); }
.gcard__body .ticks { margin: 1.2rem 0 0; font-size: 1.05rem; }
.gcard__body .ticks li { color: #f4f0f3; }
.gcard__body .ticks li::before { color: #b79ad6; }
.panel__text { padding: clamp(22px, 3.4vw, 40px) clamp(24px, 4vw, 52px) clamp(26px, 3.6vw, 44px); }

.ticks { list-style: none; padding: 0; margin: 1.3rem 0 1.4rem; }
.ticks li { position: relative; padding-left: 1.8em; margin-bottom: .55em; }
.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ===== Формат работы ===== */
.section--dark h2 { color: var(--cream); }

/* ===== Шаги ===== */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 24px; }
.steps li { counter-increment: s; }
.steps li::before {
  content: "0" counter(s); display: block;
  font-family: var(--serif); font-weight: 700; font-size: clamp(3.4rem, 6vw, 5.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 14px;
}
.steps strong { display: block; font-family: var(--serif); text-transform: uppercase; font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin-bottom: .4rem; }
.steps span { color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== CTA ===== */
.cta { background: rgba(52,32,72,.92); color: var(--cream); padding: clamp(32px, 4.4vw, 52px) 0; }
.cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; }
.cta h2 { margin: 0; max-width: 760px; font-size: clamp(1.8rem, 4vw, 3rem); }

/* ===== FAQ ===== */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.3rem 2.5rem 1.3rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 1.3rem; margin: 0; }

/* ===== Футер ===== */
.footer { background: rgba(36,21,46,.94); color: var(--cream); padding: 26px 0 14px; }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 32px; }
.footer__motto { font-family: var(--serif); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.05; font-size: clamp(1.2rem, 5.2vw, 4.6rem); margin: 14px 0 10px; color: rgba(244,240,243,.14); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 28px; padding-top: 12px; border-top: 1px solid rgba(244,240,243,.15); font-size: .85rem; color: rgba(244,240,243,.6); }
.footer .social--light { margin: 0; gap: 6px; }
.footer .social__link { display: grid; padding: 0; width: 32px; height: 32px; color: var(--cream); }
.footer .social__link .ico { width: 16px; height: 16px; }
.footer .social__link:hover { text-decoration: none; color: var(--emerald); }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border: 1px solid rgba(244,240,243,.35); border-radius: 0; background: var(--emerald); color: var(--cream); font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* ===== Появление ===== */
.js .reveal { opacity: 0; transform: translateY(20px); filter: blur(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.4, .12, .25, 1), filter .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; filter: none; transition: opacity .5s ease; }
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) { .nav { gap: 18px; } }
@media (max-width: 980px) {
  .burger { display: block; }
  .header__right { margin-left: auto; margin-right: 4px; gap: 0; }
  .nav { position: absolute; top: 70px; left: -20px; right: -20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 4px 20px 20px; display: none; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 1em 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
}
@media (max-width: 900px) {
  .grid--process { grid-template-columns: 1fr; }

  /* Первый экран: фото сверху, текст под ним */
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 32px; }
  .hero__media { position: relative; width: 100%; height: min(120vw, 560px); flex: none; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
  .hero__media img { object-position: 50% 14%; }
  .hero__inner { margin-top: -64px; }
  .hero__text { max-width: none; }

}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 34px 0; }
  .header__inner { height: 62px; }
  .nav { top: 62px; left: -16px; right: -16px; padding-inline: 16px; max-height: calc(100vh - 62px); }
  .logo { font-size: 1.3rem; }

  h2 { font-size: 2rem; }
  .lead { margin: 1.1rem 0 1.5rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .path__inner { padding-block: 12px; gap: 0 8px; font-size: min(1.4rem, 4.6vw); letter-spacing: .03em; }
  .path__inner i svg { width: 1.05em; height: 1.05em; }


  /* Вкладки целей: горизонтальная прокрутка вместо переноса */
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; white-space: nowrap; padding: .8em 1.3em; }
  .panel { border-radius: 0; }
  .panel__text { padding: 20px 16px 22px; }
  .gcard { padding: 22px 18px 26px; }
    .gcard__num { font-size: 4.6rem; right: 14px; top: 6px; }

  .ico { width: 22px; height: 22px; }

  .cta__inner { gap: 22px; }

  .faq summary { padding: 1.1rem 2.2rem 1.1rem 0; }
  .social__link { width: 36px; height: 36px; }
  .social__link .ico { width: 18px; height: 18px; }

  .footer { padding: 20px 0 12px; }
  .footer__motto { margin: 12px 0 8px; }
  .footer__bottom { padding-right: 56px; gap: 8px 16px; }
  .to-top { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* лисы в девизе подвала */
.footer__motto { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: .3em; white-space: nowrap; width: 100%; }
.footer__motto i { display: inline-flex; font-style: normal; color: #4b3563; --fox-light: #8a73a3; --fox-ink: #2a1a38; }
.footer__motto i svg { width: .9em; height: .9em; }

/* подписи на кнопках: прописные, как у заголовков */
.btn { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .88rem; }
.btn--small { font-size: .8rem; }

/* Фото с первого экрана как фон сайта: закреплено при прокрутке */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--hero-img) 62% 18% / cover no-repeat; filter: grayscale(.3);
}
@media (max-width: 900px) { body::before { background-position: 50% 12%; } }

/* ===== Заголовок с управлением и лента карточек (как «Программы») ===== */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.head h2 { margin-bottom: 0; }
/* места для фото */
.media__label { position: absolute; inset: 0; display: grid; place-items: center; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,240,243,.45); }
/* поле-ловушка для спам-ботов */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 360px) { .social__link { width: 32px; height: 32px; } .social__link .ico { width: 16px; height: 16px; } .social { gap: 4px; } }



/* Очень узкие экраны: шапка с четырьмя иконками и бургером помещается целиком */
.burger { flex: none; }
@media (max-width: 360px) {
  .logo { font-size: 1.12rem; }
  .header .social { gap: 3px; }
  .header .social__link { width: 28px; height: 28px; }
  .header .social__link .ico { width: 15px; height: 15px; }
}


/* ===== Оптимизация для телефонов ===== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (hover: none) { .btn:hover { transform: none; } }
@media (max-width: 900px) {
  /* лёгкий фон: без фильтров на фиксированном слое */
  body::before { filter: none; }
  .hero__bg { filter: blur(16px); inset: -24px; }
  /* первый экран: кнопки видны без прокрутки */
  .hero__media { height: min(92vw, 440px); }
  .hero__inner { margin-top: -56px; }
  .hero h1, .eyebrow, .head h2, 
  p, li { text-wrap: pretty; }
}
@media (max-width: 600px) {
  .hero .eyebrow--light { font-size: .75rem; letter-spacing: .08em; }
  /* «Свобода движения · Сила · Форма» всегда в одну строку */
  .path__inner { flex-wrap: nowrap; white-space: nowrap; gap: 0 .35em; font-size: min(1.4rem, 4vw); }
  /* плашки читаемого размера, переносятся на новую строку */
  /* карточки форматов компактнее */
  /* крупные зоны нажатия */
  .footer .social__link { width: 40px; height: 40px; }
  .footer .social__link .ico { width: 18px; height: 18px; }
  .footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .faq summary { min-height: 48px; }
  .tab { min-height: 44px; }
}
@media (max-width: 360px) {
  .footer .social__link { width: 36px; height: 36px; }
}

/* ===== Услуги: главный блок с двумя форматами + карточки услуг ===== */
.badge { display: inline-block; background: #4f3270; color: #fff; font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .5em .85em; }
.offer__icon { position: absolute; z-index: 3; top: 16px; left: 16px; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(244,240,243,.5); color: var(--cream); background: rgba(20,12,28,.25); }
.offer__icon .ico { width: 26px; height: 26px; }
.offer__icon--lg { width: 76px; height: 76px; }
.offer__icon--lg .ico { width: 32px; height: 32px; }
.feature { display: grid; grid-template-columns: 1fr; margin: 28px 0 20px; background: #2b1a3a; color: var(--cream); }
.feature__from small { font: 400 .9rem var(--sans); letter-spacing: 0; color: rgba(244,240,243,.7); }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.offer { position: relative; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.offer--best { border-color: #8a63b3; box-shadow: inset 0 0 0 2px #8a63b3; }
.offer .badge { position: absolute; z-index: 3; top: -1px; right: -1px; }
.offer__media { position: relative; height: 210px; flex: none; }
.offer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.offer__body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.offer__body h3 { font-size: 1.35rem; line-height: 1.1; margin: 0 0 8px; min-height: 2.2em; }
.offer__price { font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 2.1vw, 2rem); letter-spacing: .02em; line-height: 1.1; color: #4f3270; margin: 0 0 14px; }
.offer__price small { font: 400 .9rem var(--sans); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.offer__list { list-style: none; margin: 0 0 22px; padding: 0; }
.offer__list li { position: relative; padding: .5em 0 .5em 1.6em; font-size: .95rem; border-top: 1px solid var(--line); }
.offer__list li::before { content: "✓"; position: absolute; left: 0; color: #4f3270; font-weight: 700; }
.offer__list li.no { color: #9a8f9d; }
.offer__list li.no::before { content: "—"; color: #b9aebb; }
.offer__btn { flex: none; margin-top: auto; width: 100%; height: 54px; padding: 0 1.5em; display: flex; align-items: center; justify-content: center; line-height: 1; background: #4f3270; border-color: #4f3270; color: #fff; cursor: pointer; }
.offer__btn:hover, .offer__btn:focus-visible { background: #382250; border-color: #382250; }
.offer--tier .offer__body h3 { min-height: 0; }

@media (max-width: 1100px) {
  .offer__body { padding: 20px; }
}
@media (max-width: 900px) {
  .offer__media { height: 150px; }
  .offer__body { padding: 18px; }
  .offer__price { font-size: 1.6rem; }
  .offer__body h3 { font-size: 1.15rem; }
}
@media (max-width: 640px) {
  .offers { grid-template-columns: 1fr; }
  .offer__media { height: 190px; }
  .offer__body { padding: 22px 18px; }
  .offer__body h3 { min-height: 0; font-size: 1.35rem; }
  .offer__price { font-size: 1.8rem; }
}
.offer--tier .offer__body { padding-top: 44px; }
@media (max-width: 640px) { .offer--tier .offer__body { padding-top: 44px; } }

/* ===== Карточки форматов: пояснение, группы, «Подходит, если» ===== */
.offer__tag { display: inline-flex; align-items: center; gap: .5em; align-self: flex-start; margin: 0 0 12px; padding: .4em .8em; background: #eee5f0; border: 1px solid #d9cfd8; color: #4f3270; font: 600 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.offer__tag .ico { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.offer--tier .offer__body h3 { margin-bottom: 8px; }
.offer__group { font-family: var(--serif); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #4f3270; margin: 6px 0 2px; padding-top: 12px; border-top: 2px solid #4f3270; }
.offer__group + .offer__list { margin-bottom: 8px; }
.offer__group + .offer__list li:first-child { border-top: 0; }
.offer__for { margin: 8px 0 22px; }
.offer__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.offer__chips span { background: #eee5f0; border: 1px solid #d9cfd8; padding: .4em .8em; font-size: .85rem; line-height: 1.2; }
.offer--tier .offer__list:last-of-type { margin-bottom: 22px; }
.offer--tier .offer__for + .offer__btn, .offer--tier .offer__body > .offer__btn { margin-top: auto; }

/* ===== Мобильная доводка: плотность карточек и минимальный размер шрифта ===== */
@media (max-width: 640px) {
  .badge, .offer__tag { font-size: .75rem; }
  .offer--tier .offer__body { padding: 42px 16px 18px; }
  .offer__chips span { font-size: .82rem; padding: .38em .7em; }
  .offer__group { font-size: .78rem; }
  .offer__list li { padding-top: .55em; padding-bottom: .55em; }
  .offer__btn { width: 100%; }
}

/* ===== Мобильная версия: «Подходит, если у вас» и «Пять шагов» ===== */
@media (max-width: 640px) {
  .offer__for { margin: 14px 0 20px; padding: 14px 14px 16px; background: #f1e9f3; border: 1px solid #d9cfd8; }
  .offer__for .offer__group { margin: 0; padding-top: 0; border-top: 0; font-size: .8rem; }
  .offer__chips { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .offer__chips span { display: block; justify-content: initial; text-align: left; hyphens: none; overflow-wrap: normal; background: #fff; border: 1px solid #d9cfd8; border-left: 3px solid #4f3270; padding: .55em .9em; font-size: .92rem; font-weight: 500; line-height: 1.3; }
  .offer__chips span:last-child:nth-child(odd) { grid-column: auto; }
}
@media (max-width: 700px) {
}
@media (max-width: 640px) {
  .offer--tier:not(.offer--best) .offer__body { padding-top: 18px; }
}

/* ===== Связь «Цели → Форматы» ===== */
/* Рекомендация формата внутри вкладки цели */
.rec { margin-top: 22px; display: grid; gap: 10px; }
.rec__title { margin: 0 0 2px; font-family: var(--serif); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.rec__item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-left: 3px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.rec__item:hover { background: #fff; border-color: var(--accent); transform: translateX(3px); }
.rec__item--main { background: #fff; border-color: var(--accent); border-left-width: 4px; box-shadow: 0 6px 18px rgba(36,21,46,.12); }
.rec__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: #eee5f0; color: var(--accent); }
.rec__item--main .rec__ico { background: var(--accent); color: #fff; }
.rec__ico .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rec__txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.rec__txt b { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; font-weight: 600; }
.rec__txt small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.rec__item--main .rec__txt b::after { content: "Рекомендуем"; margin-left: .7em; padding: .25em .6em; vertical-align: middle; font: 600 .66rem var(--sans); letter-spacing: .1em; background: var(--accent); color: #fff; }
.rec__arrow { flex: none; color: var(--accent); font-size: 1.3rem; }

/* Путь «цель → формат» над карточками услуг */

/* «Для целей» в карточках формата */

/* Подсветка выбранного формата */
.offer--tier.is-rec { outline: 3px solid #b9a0d6; outline-offset: -3px; animation: recpulse 1.2s ease-out 1; }
@keyframes recpulse { 0% { box-shadow: 0 0 0 0 rgba(185,160,214,.9); } 100% { box-shadow: 0 0 0 22px rgba(185,160,214,0); } }

@media (max-width: 700px) {
  .rec__item { padding: 10px 12px; gap: 12px; }
  .rec__item--main .rec__txt b::after { display: block; width: max-content; margin: 4px 0 0; }
  .rec__ico { width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  .offer__list li { line-height: 1.4; }
  .rec__txt small { hyphens: none; }
}
.nb { white-space: nowrap; }
@media (max-width: 640px) {
  .offer--tier .offer__list:last-of-type { margin-bottom: 6px; }
}

/* Кнопки со ссылкой в Telegram */
.btn--tg { display: inline-flex; align-items: center; justify-content: center; gap: .6em; }
.btn--tg .ico { width: 20px; height: 20px; }
a.btn.offer__btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.panel__text .rec { margin-top: 0; }
@media (min-width: 901px) {
  .panel__text .rec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .panel__text .rec__title { grid-column: 1 / -1; }
}

/* Обо мне: тезисы */

/* Заголовок цели на уровне номера слева от него */
.gcard__body { max-width: none; }
.gcard__body small, .gcard__body h3 { padding-right: clamp(96px, 20vw, 220px); }
.gcard__body p, .gcard__body .ticks { max-width: 640px; }
.gcard__num { top: clamp(10px, 2vw, 26px); }
@media (max-width: 640px) {
  .gcard__num { font-size: 3.4rem; right: 14px; top: 10px; }
  .gcard__body small, .gcard__body h3 { padding-right: 78px; }
  .gcard__body h3 { font-size: clamp(1.4rem, 6.2vw, 1.75rem); hyphens: none; overflow-wrap: normal; word-break: normal; }
}

/* ===== Плашка формата — в правом верхнем углу карточки ===== */
.offer--tier .offer__tag { position: absolute; z-index: 3; top: -1px; right: -1px; margin: 0; align-self: auto; border-width: 0 0 1px 1px; }
.offer--tier .offer__body { padding-top: 26px; }
.offer--best .offer__tag { background: #4f3270; border-color: #4f3270; color: #fff; }
.offer--tier .offer__body h3 { margin-bottom: 12px; }
@media (max-width: 640px) {
  .offer--tier .offer__body, .offer--tier:not(.offer--best) .offer__body { padding: 52px 16px 18px; }
  .offer--tier .offer__body h3 { margin-bottom: 10px; }
}

/* ===== Путь «цель → формат» внутри рамки сопровождения; плашки форматов; «Другие услуги» ===== */
.offer--tier .offer__tag, .offer--best .offer__tag { background: #4f3270; border-color: #4f3270; color: #fff; }
.subhead { margin: 44px 0 18px; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 640px) { .subhead { margin: 32px 0 14px; } }

/* ===== Шапка «Индивидуальное онлайн-сопровождение»: полоса + шаги-стрелки ===== */
.feature__lead { background: #1a0f23; }
.feature__top { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 36px); }
.feature__text h3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.1; margin: 0 0 6px; hyphens: none; }
.feature__text .feature__from { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: .03em; color: #d9c8ec; }
.feature__badge { background: #d9c8ec; color: #2b1a3a; font-size: .78rem; padding: .6em 1em; white-space: nowrap; }
.chev__c { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px clamp(20px, 3vw, 36px); color: var(--cream); }
.chev__c--2 { background: #6b4a8c; padding-left: 46px; }
.chev__c i { flex: none; font: 700 3.4rem/1 var(--serif); font-style: normal; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.5); }
.chev__c small { display: block; font: 600 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); line-height: 1.3; }
.chev__c b { display: block; font: 600 1.25rem/1.15 var(--serif); letter-spacing: .02em; text-transform: uppercase; margin: 3px 0 4px; }
@media (max-width: 760px) {
  .chev__c--2 { padding-left: clamp(20px, 3vw, 36px); }
  .chev__c i { font-size: 2.8rem; }
}

/* ===== Карточки услуг: лёгкое увеличение при наведении ===== */
.offer { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .offer:hover, .offer:focus-within { transform: scale(1.025); z-index: 5; box-shadow: 0 18px 40px rgba(20, 8, 32, .35); }
  .offers .offer:hover, .offers .offer:focus-within { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) { .offer { transition: none; } .offer:hover, .offer:focus-within { transform: none; } }
@media (hover: hover) { .offer--best:hover, .offer--best:focus-within { box-shadow: inset 0 0 0 2px #8a63b3, 0 18px 40px rgba(20, 8, 32, .35); } }

/* ===== Шаги 1 и 2 — заголовки-кнопки, под ними плавно раскрываются карточки форматов ===== */
.fsteps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.fstep { min-width: 0; background: rgba(244,240,243,.04); }
.chev__c { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; transition: filter .2s; }
.chev__c:hover { filter: brightness(1.12); }
.chev__c:focus-visible { outline: 3px solid #d9c8ec; outline-offset: -3px; }
.chev__c--1 { background: #4f3270; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); width: calc(100% + 14px); padding-right: 46px; z-index: 2; }
.chev__t { display: block; flex: 1; min-width: 0; }
.chev__t > span { display: block; max-width: 34em; color: #fff; font-weight: 500; font-size: .95rem; line-height: 1.35; }
.chev__more { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 600 .75rem var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.chev__more::after { content: ""; width: 9px; height: 9px; margin-top: -4px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .35s ease, margin .35s ease; }
.chev__c[aria-expanded="true"] .chev__more::after { transform: rotate(225deg); margin-top: 4px; }
.fstep__in > .offer { margin: 16px 20px 20px; }
.js .fstep__panel { display: grid; grid-template-rows: 0fr; opacity: 0; filter: blur(8px); visibility: hidden; transition: grid-template-rows .5s ease, opacity .35s ease, filter .35s ease, visibility 0s linear .5s; }
.js .fstep.is-open .fstep__panel { grid-template-rows: 1fr; opacity: 1; filter: none; visibility: visible; transition: grid-template-rows .5s ease, opacity .4s ease .05s, filter .4s ease .05s, visibility 0s; }
.fstep__in { min-height: 0; overflow: hidden; }
@media (max-width: 760px) {
  .fsteps { grid-template-columns: 1fr; gap: 2px; }
  .chev__c--1 { clip-path: none; width: 100%; padding-right: clamp(20px, 3vw, 36px); }
  .chev__c--2 { padding-left: clamp(20px, 3vw, 36px); }
  .chev__more { font-size: 0; gap: 0; }
  .fstep__in > .offer { margin: 12px 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .chev__more::after { transition: none; }
  .js .fstep__panel { filter: none; transition: opacity .4s ease, visibility 0s linear .4s; }
  .js .fstep.is-open .fstep__panel { filter: none; transition: opacity .4s ease, visibility 0s; }
}


/* ===== «Обо мне»: текст слева, тёмная карточка «Мой подход» справа ===== */

/* ===== Шаги: вертикальный таймлайн на телефоне ===== */
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 1.6rem; }
  .steps li { position: relative; padding: 0 0 24px 68px; min-height: 80px; }
  .steps li:last-child { padding-bottom: 0; min-height: 52px; }
  .steps li::before { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 52px; height: 52px; margin: 0; font-size: 1.35rem; line-height: 1; color: #fff; -webkit-text-stroke: 0; background: #4f3270; letter-spacing: .02em; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 58px; bottom: 6px; width: 2px; background: repeating-linear-gradient(to bottom, #b9a6c9 0 5px, transparent 5px 10px); }
  .steps strong { font-size: 1.12rem; line-height: 1.2; margin: 0; padding-top: 14px; hyphens: none; overflow-wrap: normal; word-break: normal; }
  .steps span { display: block; margin-top: 6px; font-size: .95rem; line-height: 1.4; }
  .steps li:has(span) strong { padding-top: 4px; }
}

/* ===== Мобильная доводка (финальная) ===== */
html { -webkit-tap-highlight-color: rgba(79, 50, 112, .15); }
a, button, summary { touch-action: manipulation; }
@media (max-width: 640px) {
  .offers { gap: 12px; }
  .offers .offer__media { height: 150px; }
  .offers .offer__body { padding: 16px 16px 18px; }
  .gcard__body small { font-size: .75rem; letter-spacing: .08em; }
  .chev__c small, .offer__tag, .badge { font-size: .75rem; }
  .chev__c { gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  .chev__c i { font-size: 2.4rem; }
}

/* ===== Иконки соцсетей в фирменных цветах ===== */
.social__link, .social--light .social__link { border: 0; background: transparent; padding: 3px; transition: transform .2s, filter .2s; }
.social__link:hover, .social--light .social__link:hover { background: transparent; border: 0; transform: translateY(-2px); filter: brightness(1.08) saturate(1.1); }
.social__link .ico--brand, .footer .social__link .ico--brand, .header .social__link .ico--brand { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.ico--brand { stroke: none; fill: none; }

/* ===== Кнопки «Написать в Telegram» — фирменный голубой ===== */
.btn--tg { background: linear-gradient(180deg, #37aee2, #1e96c8); border-color: #1e96c8; color: #fff; }
.btn--tg:hover { background: linear-gradient(180deg, #46b8ea, #2aa3d6); border-color: #2aa3d6; color: #fff; }
.btn--tg .ico { fill: #fff; stroke: #fff; }

/* ===== Доступность: контраст и ссылка «Перейти к содержанию» ===== */
.btn--tg { background: linear-gradient(180deg, #1779ad, #0f6fa0); border-color: #0f6fa0; }
.btn--tg:hover { background: linear-gradient(180deg, #1c86bd, #1478ac); border-color: #1478ac; }
.offer__list li.no { color: #766b79; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: .7em 1.1em; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; transition: top .15s; }
.skip:focus { top: 12px; }

/* Медицинские оговорки */


.footer__links { margin: 8px 0 0; font-size: .85rem; line-height: inherit; }
.footer__links a { color: rgba(244,240,243,.6); font: inherit; letter-spacing: inherit; text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { white-space: nowrap; }

/* ===== Окно «Условия и реквизиты» ===== */
html:has(.terms[open]) { overflow: hidden; }
.terms { border: 0; padding: 0; margin: auto; max-width: none; width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(10, 4, 18, .55); overscroll-behavior: contain; }
.terms[open] { display: flex; flex-direction: column; animation: termsIn .45s cubic-bezier(.4, .12, .25, 1); }
.terms[open]::backdrop, .lb[open]::backdrop { animation: fadeIn .4s ease; }
.terms::backdrop { background: rgba(20, 8, 32, .72); backdrop-filter: blur(3px); }
@keyframes termsIn { from { opacity: 0; filter: blur(10px); transform: translateY(12px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
.terms__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 28px; background: var(--emerald); color: var(--cream); border-bottom: 3px solid var(--accent2); }
.terms__head h2 { margin: 0; font-size: clamp(1.3rem, 4.5vw, 1.8rem); }
.terms__close { flex: none; width: 44px; height: 44px; border: 1px solid rgba(244,240,243,.35); background: transparent; color: var(--cream); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.terms__close:hover, .terms__close:focus-visible { background: rgba(244,240,243,.14); }
.terms__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 28px; }
.terms section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.terms section:last-child { border-bottom: 0; padding-bottom: 0; }
.terms h3 { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; margin: 0 0 10px; color: var(--accent); }
.terms h3 i { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--accent); color: #fff; font: 600 .9rem var(--serif); font-style: normal; }
.terms p { margin: 0 0 10px; line-height: 1.6; color: var(--ink); }
.terms p:last-child { margin-bottom: 0; }
.terms ul { margin: 0 0 10px; padding-left: 1.3em; line-height: 1.6; color: var(--ink); }
.terms li { margin-bottom: 4px; }
.terms a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 560px) {
  .terms { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .terms__head { padding: 14px 12px 14px 18px; }
  .terms__body { padding: 4px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .terms[open], .lb[open] { animation: fadeIn .4s ease; } }


/* ===== Кнопки соцсетей с выезжающей подписью (шапка, компьютер с мышью) =====
   Разметка: .social__link > .social__pill > значок + .social__reveal > .social__word > .social__text.
   Чтобы при переходе с одной кнопки на другую ничего не прыгало:
   1) у .social задана фиксированная ширина с запасом под одну раскрытую плашку (меню не двигается, плашка занимает запас слева);
   2) открытие и закрытие идут одинаково (одна длительность и симметричная кривая), поэтому сворачивающаяся и раскрывающаяся плашки в сумме дают постоянную ширину;
   3) зазор между кнопками закрыт невидимой зоной наведения, и переход с одной на другую без паузы. */
.social__pill { display: contents; }
.social__reveal { display: none; }
@media (min-width: 981px) {
  .header .social { width: 188px; justify-content: flex-end; }
  .header .social__link { position: relative; width: auto; height: 40px; padding: 0; }
  .header .social__link::before { content: ""; position: absolute; inset: 0 -4px; }
  .header .social__pill { display: flex; align-items: center; height: 40px; padding: 3px; border-radius: 13px; background: rgba(255,255,255,0); box-shadow: 0 0 0 1px rgba(217,207,216,0), 0 10px 22px -12px rgba(29,21,32,0); transition: background-color .5s ease, box-shadow .5s ease; }
  .header .social__link[data-social="telegram"] .social__pill { border-radius: 999px; }
  .header .social__pill .ico--brand { width: 34px; height: 34px; aspect-ratio: auto; flex: none; }
  .header .social__reveal { display: grid; grid-template-columns: 0fr; transition: grid-template-columns .6s cubic-bezier(.37,0,.63,1); }
  .header .social__word { display: block; min-width: 0; overflow: hidden; }
  .header .social__text { display: block; margin: 0 14px 0 12px; font-size: .92rem; font-weight: 600; line-height: 1; letter-spacing: .01em; white-space: nowrap; color: var(--ink); opacity: 0; transform: translateX(-8px); filter: blur(5px); transition: opacity .2s ease, transform .3s ease, filter .3s ease; }
  .header .social__link--word:hover, .header .social__link--word:hover .social__pill { transform: none; filter: none; }
}
@media (min-width: 981px) and (hover: hover) {
  .header .social__link--word:hover .social__pill, .header .social__link--word:focus-visible .social__pill { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -12px rgba(29,21,32,.4); }
  .header .social__link--word:hover .social__reveal, .header .social__link--word:focus-visible .social__reveal { grid-template-columns: 1fr; }
  .header .social__link--word:hover .social__text, .header .social__link--word:focus-visible .social__text { opacity: 1; transform: none; filter: none; transition: opacity .45s ease .2s, transform .6s cubic-bezier(.22,.8,.3,1) .12s, filter .5s ease .12s; }
}
@media (min-width: 981px) and (prefers-reduced-motion: reduce) {
  .header .social__reveal { transition: none; }
  .header .social__text, .header .social__link--word:hover .social__text, .header .social__link--word:focus-visible .social__text { transform: none; filter: none; transition: opacity .4s ease; }
  .header .social__pill { transition: none; }
}

/* ===== Мобильная версия: лёгкое фото, первый экран, подсказка прокрутки вкладок ===== */
@media (max-width: 900px) { :root { --hero-img: url("images/hero-900.jpg"); } }

/* Первый экран на низких экранах (iPhone SE, 320×568): заголовок, оффер и кнопка видны сразу */
@media (max-width: 480px) and (max-height: 700px) {
  .hero__media { height: min(54vw, 230px); }
  .hero__inner { margin-top: -44px; }
  .hero h1 { font-size: clamp(1.7rem, 8.6vw, 2rem); line-height: 1.1; }
  .hero .lead { font-size: .95rem; line-height: 1.45; margin-bottom: 18px; }
}

/* Вкладки целей: затухание у края и стрелка «листайте» */
.tabs-wrap { position: relative; }
.tabs-next { display: none; }
@media (max-width: 760px) {
  .tabs-wrap::before, .tabs-wrap::after { content: ""; position: absolute; top: 2px; bottom: 8px; width: 44px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s; }
  .tabs-wrap::before { left: -16px; background: linear-gradient(to right, var(--sand) 15%, rgba(233,226,232,0)); }
  .tabs-wrap::after { right: -16px; width: 56px; background: linear-gradient(to left, var(--sand) 30%, rgba(233,226,232,0)); }
  .tabs-wrap.can-left::before, .tabs-wrap.can-right::after { opacity: 1; }
  .tabs-next { position: absolute; right: -10px; top: 50%; transform: translateY(-58%); z-index: 3; width: 40px; height: 40px; padding: 0 0 3px; display: grid; place-items: center; border: 1.5px solid var(--emerald); background: var(--cream); color: var(--emerald); font: 700 1.5rem/1 var(--sans); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .tabs-wrap.can-right .tabs-next { opacity: 1; pointer-events: auto; animation: nudge 1.6s ease-in-out 2 .8s; }
}
@keyframes nudge { 0%, 100% { transform: translate(0, -58%); } 50% { transform: translate(5px, -58%); } }
@media (prefers-reduced-motion: reduce) { .tabs-wrap.can-right .tabs-next { animation: none; } }

/* Когда раскрыты оба формата: колонки и карточки одной высоты (без «ступеньки») */
@media (min-width: 761px) {
  .fsteps:has(.fstep:nth-child(1).is-open):has(.fstep:nth-child(2).is-open) { align-items: stretch; }
  .fsteps:has(.fstep:nth-child(1).is-open):has(.fstep:nth-child(2).is-open) .fstep { display: flex; flex-direction: column; }
  .fsteps:has(.fstep:nth-child(1).is-open):has(.fstep:nth-child(2).is-open) .fstep__panel { flex: 1 1 auto; }
  .fsteps:has(.fstep:nth-child(1).is-open):has(.fstep:nth-child(2).is-open) .fstep__in { display: flex; flex-direction: column; }
  .fsteps:has(.fstep:nth-child(1).is-open):has(.fstep:nth-child(2).is-open) .fstep__in > .offer { flex: 1 1 auto; }
}

/* ===== «Постоянно учусь»: направления обучения и сертификаты ===== */
.learn-wrap { margin-top: clamp(28px, 4vw, 48px); }
.learn { background: linear-gradient(160deg, #4b2f69, #1a0f23); color: var(--cream); padding: clamp(24px, 3vw, 40px); }
.learn > small { display: block; margin-bottom: 10px; font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #d9c8ec; }
.learn > h3 { margin: 0 0 20px; font: 600 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--serif); text-transform: uppercase; letter-spacing: .02em; }
.learn__docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
.learn__doc { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; font: inherit; }
.learn__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s, transform .2s; }
.learn__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.learn__cap { display: block; margin-top: 8px; font-size: .85rem; line-height: 1.3; color: rgba(244, 240, 243, .92); }
.learn__doc:hover .learn__img, .learn__doc:focus-visible .learn__img { border-color: #d9c8ec; }
@media (hover: hover) and (pointer: fine) { .learn__doc:hover .learn__img { transform: scale(1.03); } }
.learn__doc:focus-visible { outline: 2px solid #d9c8ec; outline-offset: 3px; }

/* Просмотр сертификата */
html:has(.lb[open]) { overflow: hidden; }
.lb { border: 0; padding: 0; margin: auto; max-width: none; width: min(980px, calc(100vw - 16px)); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); background: #14091c; color: var(--cream); overscroll-behavior: contain; }
.lb[open] { display: flex; flex-direction: column; animation: termsIn .45s cubic-bezier(.4, .12, .25, 1); }
.lb::backdrop { background: rgba(10, 4, 18, .82); }
.lb__bar { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.lb__bar strong { font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #d9c8ec; }
.lb__x, .lb__nav { border: 1px solid rgba(255, 255, 255, .35); background: rgba(20, 9, 28, .7); color: #fff; cursor: pointer; }
.lb__x { width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; }
.lb__x:hover, .lb__nav:hover, .lb__x:focus-visible, .lb__nav:focus-visible { background: rgba(255, 255, 255, .16); }
.lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px; background: #0d0613; position: relative; }
.lb__stage img { max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); object-fit: contain; background: #fff; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.lb__prev { left: 8px; } .lb__next { right: 8px; }
.lb__cap { flex: none; padding: 14px 20px 18px; }
.lb__cap h4 { margin: 0 0 4px; font: 600 1.1rem/1.25 var(--serif); text-transform: uppercase; }
.lb__cap p { margin: 0; font-size: .92rem; line-height: 1.45; color: rgba(244, 240, 243, .78); }

/* ===== «Обо мне»: светлый блок (заголовок, фраза, пункты, три шага) ===== */
.about2 { max-width: 1000px; }
.about2 h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); margin: 0 0 14px; }
.about2__lead { margin: 0 0 34px; max-width: 54ch; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink); }
.about2__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.about2__steps li { position: relative; padding: 22px 28px 4px 0; border-top: 2px solid var(--accent); }
.about2__steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.about2__steps li::before { counter-increment: step; content: counter(step); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 600 .95rem var(--serif); }
.about2__steps li + li::before { left: 28px; }
.about2__steps strong { display: block; font: 600 1.15rem/1.2 var(--serif); text-transform: uppercase; letter-spacing: .03em; color: var(--accent); margin-bottom: 6px; }
.about2__steps span { display: block; color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) {
  .about2__steps { grid-template-columns: 1fr; }
  .about2__steps li, .about2__steps li + li { padding: 22px 0 6px; margin-top: 18px; border-left: 0; }
  .about2__steps li + li::before { left: 0; }
}
.learn__note { margin: 22px 0 0; max-width: 62ch; font-size: .92rem; line-height: 1.5; color: rgba(244, 240, 243, .78); }
@media (max-width: 900px) { .learn__docs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .learn__docs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* картинки услуг: композиция нарисована по центру, кадрируем по центру */
.offers .offer__media img { object-position: 50% 50%; }

/* оговорка о здоровье: раскрывается по нажатию на значок */
.health-note { margin: 24px 0 0; max-width: 760px; }
.health-note summary { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; list-style: none; cursor: pointer; background: rgba(244, 240, 243, .92); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; line-height: 1.2; color: var(--ink); transition: border-color .2s, background-color .2s; }
.health-note summary::-webkit-details-marker { display: none; }
.health-note summary:hover { border-color: var(--accent); }
.health-note__ico { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; }
.health-note__ico .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.health-note[open] summary { border-color: var(--accent); }
.health-note__text { margin: 10px 0 0; padding: 16px 18px; background: rgba(244, 240, 243, .92); border-left: 3px solid var(--accent); font-size: .98rem; line-height: 1.5; color: var(--ink); animation: blurIn .5s cubic-bezier(.4, .12, .25, 1) backwards; }
@media (max-width: 640px) { .health-note { margin-top: 18px; } .health-note__text { padding: 14px; font-size: .95rem; } }

/* ===== Мягкое проявление из размытия (общее) ===== */
@keyframes blurIn { from { opacity: 0; filter: blur(12px); transform: translateY(-6px); } to { opacity: 1; filter: blur(0); transform: none; } }
.faq[open] p { animation: blurIn .5s cubic-bezier(.4, .12, .25, 1) backwards; }
.panel:not([hidden]) { animation: blurIn .5s cubic-bezier(.4, .12, .25, 1) backwards; }
.to-top:not([hidden]) { animation: blurIn .4s cubic-bezier(.4, .12, .25, 1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .health-note__text, .faq[open] p, .panel:not([hidden]), .to-top:not([hidden]) { animation: fadeIn .5s ease backwards; }
}

/* ===== Финальный призыв: строка про режим ответа ===== */
.cta__act { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cta__note { margin: 0; font-size: .85rem; line-height: 1.4; text-align: right; color: rgba(244,240,243,.8); }
@media (max-width: 760px) { .cta__act { align-items: flex-start; } .cta__note { text-align: left; } }

.cta__note span { display: block; }

/* ===== Плавающая кнопка «Написать в Telegram» (только телефон) ===== */
.fab-cta { display: none; }
@media (max-width: 760px) {
  .fab-cta:not([hidden]) { position: fixed; left: 14px; right: 74px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; gap: .6em; height: 48px; padding: 0 14px; border: 1px solid #0f6fa0; background: linear-gradient(180deg, #1779ad, #0f6fa0); color: #fff; font: 600 .82rem var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); animation: fabIn .4s cubic-bezier(.4, .12, .25, 1) backwards; }
  .fab-cta .ico { width: 18px; height: 18px; flex: none; fill: #fff; stroke: #fff; }
  body:has(.burger[aria-expanded="true"]) .fab-cta { display: none; }
}
@keyframes fabIn { from { opacity: 0; filter: blur(8px); transform: translateY(10px); } to { opacity: 1; filter: blur(0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .fab-cta:not([hidden]) { animation: fadeIn .4s ease backwards; } }

/* ===== Кнопки «Написать во ВКонтакте» (цвет чуть темнее фирменного #0077FF ради контраста белого текста, как у Telegram) ===== */
.ico--vk { width: 24px; height: 15px; stroke: none; fill: currentColor; flex: none; }
.btn--vk { display: inline-flex; align-items: center; justify-content: center; gap: .6em; background: linear-gradient(180deg, #0e68e4, #085ccc); border-color: #085ccc; color: #fff; }
.btn--vk:hover { background: linear-gradient(180deg, #1573ee, #0a63d8); border-color: #0a63d8; color: #fff; }
.offer__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.offer__actions .offer__btn, .offer--tier .offer__actions > .offer__btn { margin-top: 0; }
a.btn.offer__btn.offer__btn--vk { height: 46px; gap: .6em; background: #fff; border-color: #0062cc; color: #0062cc; font-size: .8rem; }
a.btn.offer__btn.offer__btn--vk:hover, a.btn.offer__btn.offer__btn--vk:focus-visible { background: #0062cc; border-color: #0062cc; color: #fff; }
.cta__btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta__btns .btn { width: 100%; }
@media (max-width: 760px) { .cta__act { width: 100%; } .cta__btns { width: 100%; } }
@media (max-width: 760px) { .hero__actions { gap: 8px; } .hero__actions .btn { padding-top: .8em; padding-bottom: .8em; } }
.footer__bottom a.footer__mail { color: inherit; text-decoration: none; }
.footer__bottom a.footer__mail:hover, .footer__bottom a.footer__mail:focus-visible { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* Акции: цена для новых клиентов и бесплатная первая консультация */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.offer__price s { font: 400 1rem var(--sans); letter-spacing: 0; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; margin-right: .3em; white-space: nowrap; }
.offer__price + .offer__note { margin: -6px 0 14px; font: 400 .85rem/1.35 var(--sans); color: var(--muted); }
.offer__note b { font-weight: 600; color: #4f3270; }
.feature__from small:last-child { white-space: normal; }
@media (max-width: 760px) { .offer__price + .offer__note { font-size: .8125rem; } }
.offer__packs { margin: 0 0 16px; padding: 10px 14px 12px; background: #eee5f0; border: 1px solid var(--line); }
.offer__packs-t { margin: 0 0 6px; font: 600 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #4f3270; }
.offer__packs ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.offer__packs li { display: flex; flex-direction: column; font: 400 .85rem/1.3 var(--sans); color: var(--muted); }
.offer__packs li em { font-style: normal; font-weight: 600; color: #4f3270; font-size: .8125rem; margin-top: 2px; }
.offer__packs li b { font: 600 1.2rem var(--serif); letter-spacing: .02em; color: #4f3270; }
.offer__packs p:last-child { margin: 0; font: 400 .8125rem/1.35 var(--sans); color: var(--muted); }
.offer__packs li i { font-style: normal; font-size: .8125rem; color: var(--muted); }
.offer__packs li em + i { margin-top: 0; }
.offer__packs li { gap: 1px; }
