/* «Новый Путь» — дизайн-система из Figma (Redesign). Шрифт Onest, контейнер 1200 px. */

@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url("../fonts/onest-cyrillic-400-normal.847ffd6992a7.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url("../fonts/onest-cyrillic-500-normal.034877447068.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url("../fonts/onest-cyrillic-600-normal.194419e327a6.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url("../fonts/onest-cyrillic-700-normal.3ff2ccfb71f2.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url("../fonts/onest-latin-400-normal.22cb2483abda.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url("../fonts/onest-latin-500-normal.675404318935.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url("../fonts/onest-latin-600-normal.b50295c22c13.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url("../fonts/onest-latin-700-normal.cb23cb9c5abb.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-21FF; }

:root {
  --primary: #1a82f8;
  --primary-dark: #0b5fd0;
  --primary-soft: #e8f1fe;
  --ink: #123f80;
  --muted: #4f6b8f;
  --line: #dce6f2;
  --surface: #fff;
  --sand: #f7f4ef;
  --page: #f6f3ee;
  --on-dark: #fff;
  --on-dark-muted: #c7dbf6;
  --shadow: 0 2px 6px rgba(18, 63, 128, .06), 0 16px 40px -8px rgba(18, 63, 128, .08);
  --shadow-hover: 0 4px 10px rgba(18, 63, 128, .08), 0 28px 60px -12px rgba(18, 63, 128, .22);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --pad: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(26, 130, 248, .15); margin: 0; font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 28px; color: var(--ink); background: var(--page); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { touch-action: manipulation; }
button { font: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(26, 130, 248, .45); outline-offset: 3px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); position: relative; }

/* Типографика */
.h1 { font-size: 72px; line-height: 76px; font-weight: 700; letter-spacing: -2.2px; }
.h2 { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -1.2px; }
.h3 { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -.8px; }
.h4 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; }
.lead { font-size: 20px; line-height: 32px; }
.body { font-size: 17px; line-height: 28px; }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
.on-dark { color: var(--on-dark); }
.on-dark-muted { color: var(--on-dark-muted); }
.accent { color: var(--primary); }
.overline { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); }
.overline i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.overline--dark { color: var(--on-dark-muted); }

/* Кнопки */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 20px; white-space: nowrap; cursor: pointer; border: 0; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s; }
.btn--m { padding: 14px 24px; }
.btn--l { padding: 18px 32px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(26, 130, 248, .6); }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: 0 12px 28px -12px rgba(18, 63, 128, .6); }
.btn--light:hover { box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35); }
.btn:active { transform: translateY(0) scale(.98); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 14px; line-height: 20px; font-weight: 500; }
.chip--sm { padding: 7px 14px; color: var(--primary); }

/* Шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 8px 30px -12px rgba(18, 63, 128, .18); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.hdr__logo img { width: 104px; height: 48px; object-fit: contain; transition: transform .3s var(--ease); }
.hdr__logo:hover img { transform: scale(1.05) rotate(-2deg); }
.nav { display: flex; gap: 4px; }
.nav__link { padding: 8px 14px; border-radius: 999px; font-weight: 600; transition: background-color .2s, color .2s; }
.nav__link:hover { background: var(--primary-soft); }
.nav__link.is-active { background: var(--primary-soft); }
.hdr__actions { display: flex; align-items: center; gap: 20px; }
.hdr__phone { font-weight: 600; transition: color .2s; }
.hdr__phone:hover { color: var(--primary); }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { position: fixed; inset: 73px 0 0; z-index: 49; background: #fff; padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mnav.is-open { opacity: 1; transform: none; }
/* Закрытое меню не должно перехватывать нажатия: display:flex выше перебивал атрибут hidden. */
.mnav[hidden] { display: none !important; }
.mnav:not(.is-open) { pointer-events: none; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__links a { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mnav__phones { display: flex; flex-direction: column; gap: 10px; font-size: 20px; font-weight: 600; }
.mnav__phones span { color: var(--muted); font-size: 14px; font-weight: 500; margin-left: 8px; }

/* Секции */
.sec { position: relative; }
.sec--pb { padding-bottom: 120px; }
.sec--pb96 { padding-bottom: 96px; }
.sec--pb72 { padding-bottom: 72px; }
.sec--white { background: #fff; padding-top: 120px; padding-bottom: 120px; margin-bottom: 0; }
.sec__head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.sec__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0; }
.hero__glow { position: absolute; left: -340px; top: -300px; width: 840px; height: 840px; pointer-events: none; animation: glow 9s ease-in-out infinite alternate; }
.hero__dots { position: absolute; left: 40px; top: 618px; width: 160px; height: 100px; animation: drift 7s ease-in-out infinite alternate; }
.hero__row { display: flex; align-items: center; gap: 64px; }
.hero__text { flex: 1; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; min-width: 0; position: relative; }
.hero .h1 .line { display: block; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__phones { display: flex; gap: 24px; flex-wrap: wrap; font-weight: 600; }
.hero__phones a { position: relative; transition: color .2s; }
.hero__phones a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--primary); transition: right .3s var(--ease); }
.hero__phones a:hover { color: var(--primary); }
.hero__phones a:hover::after { right: 0; }
.hero__visual { position: relative; flex: 0 0 540px; height: 600px; border-radius: 32px; overflow: hidden; background: linear-gradient(140deg, #6ba8fa 14%, #0a5ed1 86%); }
.hero__shape { position: absolute; pointer-events: none; }
.hero__shape--a { left: 260px; top: -120px; width: 520px; height: 520px; animation: spin 60s linear infinite; }
.hero__shape--b { left: -140px; top: 320px; width: 360px; height: 360px; animation: spin 80s linear infinite reverse; }
.hero__ring { position: absolute; left: -60px; top: -50px; width: 220px; height: 220px; animation: spin 40s linear infinite; }
.hero__psy { position: absolute; left: 50px; top: 24px; width: 480px; height: 600px; object-fit: contain; object-position: bottom; }
.badge { position: absolute; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; white-space: nowrap; }
.badge--stat { left: 24px; top: 502px; gap: 14px; padding: 16px 24px 16px 20px; border-radius: 20px; }
.badge--stat b { font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -.8px; color: var(--primary); }
.badge--stat span { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.badge--chip { left: 263px; top: 28px; gap: 10px; padding: 10px 16px 10px 14px; border-radius: 16px; }
.badge--chip b { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; }
.badge--chip span { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }

/* Лента */
.ribbon { position: relative; height: 112px; overflow: hidden; pointer-events: none; }
.ribbon__band { position: absolute; left: -60px; right: -60px; top: 26px; transform: rotate(2deg); background: linear-gradient(90deg, var(--primary), var(--primary-dark)); padding: 18px 0; box-shadow: 0 18px 40px -20px rgba(11, 95, 208, .7); }
.ribbon__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; padding-left: 40px; }
.ribbon__track span { color: #fff; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; white-space: nowrap; }
.ribbon__track img { width: 18px; height: 18px; animation: spin 6s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }

/* Направления */
.dirs { padding-top: 16px; padding-bottom: 96px; }
.dirs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.dcard__photo { height: 200px; overflow: hidden; }
.dcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ibadge { position: absolute; left: 20px; top: 160px; width: 80px; height: 80px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); padding: 8px; transition: transform .5s var(--ease); }
.ibadge img { width: 64px; height: 64px; object-fit: contain; }
.dcard__row { display: flex; align-items: center; gap: 12px; padding: 52px 24px 24px; }
.dcard__row b { flex: 1; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; }
.dcard__arrow { width: 40px; height: 40px; transition: transform .35s var(--ease); }
.dcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.dcard:hover .dcard__photo img { transform: scale(1.08); }
.dcard:hover .ibadge { transform: translateY(-6px) rotate(-8deg) scale(1.06); }
.dcard:hover .dcard__arrow { transform: translateX(6px); }

/* Счётчики */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 56px; border-radius: 32px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 130, 248, .45), transparent 70%); animation: glow 8s ease-in-out infinite alternate; }
.stat { display: flex; flex-direction: column; gap: 8px; position: relative; }
.stat b { font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -1.5px; white-space: nowrap; }
.stat span { color: var(--on-dark-muted); }

/* Этапы */
.steps .sec__head { margin-bottom: 56px; }
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.step__badge { padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 14px; line-height: 20px; font-weight: 600; position: relative; }
.step__num { position: absolute; right: 19px; top: 11px; font-size: 96px; line-height: 96px; font-weight: 700; letter-spacing: -1.5px; color: var(--primary); opacity: .08; transition: transform .6s var(--ease), opacity .4s; }
.step .h4, .step .body { position: relative; }
.step .body { color: var(--muted); }
.step--hl { background: var(--ink); border-color: var(--ink); }
.step--hl .step__badge { background: var(--primary); color: #fff; }
.step--hl .step__num { color: #fff; }
.step--hl .h4 { color: #fff; }
.step--hl .body { color: var(--on-dark-muted); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.step:hover .step__num { transform: translate(-6px, 6px) scale(1.08); opacity: .16; }

/* Процесс выздоровления */
.recovery { padding: 120px 0; }
.recovery__row { display: flex; align-items: center; gap: 80px; }
.mosaic { display: flex; gap: 20px; flex: 0 0 auto; }
.mosaic__col { display: flex; flex-direction: column; gap: 20px; }
.mosaic__col--shift { padding-top: 48px; }
.pcard { position: relative; width: 282px; height: 300px; border-radius: 24px; overflow: hidden; display: flex; align-items: flex-end; padding: 20px; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 63, 128, 0) 55%, rgba(18, 63, 128, .85)); }
.pcard figcaption { position: relative; z-index: 1; color: #fff; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; transition: transform .4s var(--ease); }
.pcard:hover img { transform: scale(1.07); }
.pcard:hover figcaption { transform: translateY(-4px); }
.recovery__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }

/* Галерея */
.bento { display: grid; grid-template-columns: 590px 1fr 1fr; grid-template-rows: 200px 200px; gap: 20px; }
.bento__item { position: relative; border-radius: 24px; overflow: hidden; display: block; background: var(--line); }
.bento__item--big { grid-row: span 2; }
.bento__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.bento__item::after, .ggrid__item::after { content: ""; position: absolute; inset: 0; background: rgba(18, 63, 128, 0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='19' cy='19' r='11'/%3E%3Cpath d='m27 27 8 8M19 14v10M14 19h10'/%3E%3C/svg%3E") center/44px no-repeat; opacity: 0; transition: opacity .35s, background-color .35s; }
.bento__item:hover img, .ggrid__item:hover img { transform: scale(1.06); }
.bento__item:hover::after, .ggrid__item:hover::after { opacity: 1; background-color: rgba(18, 63, 128, .35); }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ggrid__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--line); }
.ggrid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ggrid__item span { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* Видео */
.video { position: relative; display: block; width: 100%; height: 600px; border: 0; padding: 0; border-radius: 32px; overflow: hidden; cursor: pointer; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video__overlay { position: absolute; inset: 0; background: rgba(18, 63, 128, .25); transition: background-color .4s; }
.video__play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px rgba(18, 63, 128, .35); transition: transform .35s var(--ease); }
.video__play img { width: 160px; height: 160px; max-width: none; position: absolute; left: -32px; top: -16px; object-fit: contain; }
.video__play::before, .video__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); animation: ripple 2.4s var(--ease) infinite; }
.video__play::after { animation-delay: 1.2s; }
.video:hover img { transform: scale(1.04); }
.video:hover .video__overlay { background: rgba(18, 63, 128, .1); }
.video:hover .video__play { transform: scale(1.1); }

/* CTA */
.cta { position: relative; display: flex; align-items: center; gap: 40px; padding: 64px; border-radius: 32px; overflow: hidden; background: linear-gradient(158deg, var(--primary) 0%, var(--ink) 71%); }
.cta__ring { position: absolute; pointer-events: none; }
.cta__ring--a { left: 68%; top: -160px; width: 420px; height: 420px; animation: spin 50s linear infinite; }
.cta__ring--b { left: 82%; top: 180px; width: 260px; height: 260px; animation: spin 36s linear infinite reverse; }
.cta__text { position: relative; flex: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta__text .h2 { max-width: 560px; }
.cta__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta__phone { color: #fff; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; }
.cta__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta__icons { position: relative; display: flex; }
.ibadge--xl { position: relative; left: auto; top: auto; width: 132px; height: 132px; padding: 12px; margin-right: -28px; }
.ibadge--xl:last-child { margin-right: 0; }
.ibadge--xl img { width: 108px; height: 108px; }
.cta__icons .ibadge--xl { animation: bob 4s ease-in-out infinite; }
.cta__icons .ibadge--xl:nth-child(2) { animation-delay: -1.3s; z-index: 1; }
.cta__icons .ibadge--xl:nth-child(3) { animation-delay: -2.6s; z-index: 2; }

/* Статьи */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acard { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.acard__img { display: block; height: 220px; overflow: hidden; background: var(--primary-soft); }
.acard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.acard__ph { display: grid; place-items: center; height: 100%; background: linear-gradient(140deg, #e8f1fe, #c9defa); }
.acard__ph img { width: 140px; height: auto; opacity: .9; }
.acard__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.acard__meta { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.acard__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: 15px; }
.acard__more img { width: 12px; transition: transform .3s var(--ease); }
.acard:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.acard:hover .acard__img img { transform: scale(1.06); }
.acard:hover .acard__more img { transform: translateX(5px); }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; font-weight: 600; }

.post { max-width: 820px; margin: 0 auto; }
.post__meta { color: var(--muted); font-weight: 500; font-size: 15px; margin-bottom: 24px; }
.post__cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 24px; margin-bottom: 40px; }
.prose { font-size: 18px; line-height: 31px; color: #24456f; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); margin-top: 44px; }
.prose h3 { font-size: 24px; line-height: 30px; font-weight: 600; color: var(--ink); margin-top: 32px; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose img { height: auto; border-radius: 18px; margin: 28px 0; }
.prose blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 16px 16px 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; }
.post__cta { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }

/* Шапка внутренних страниц */
.phero { position: relative; overflow: hidden; padding: 80px 0 64px; }
.phero .wrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.phero__ellipse { position: absolute; left: calc(50% + 220px); top: -360px; width: 840px; height: 840px; pointer-events: none; animation: glow 10s ease-in-out infinite alternate; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs b { color: var(--primary); font-weight: 500; }

/* Кто мы */
.leader { display: flex; background: #fff; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.leader__photo { flex: 0 0 460px; height: 560px; overflow: hidden; }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.leader:hover .leader__photo img { transform: scale(1.04); }
.leader__text { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: 64px; }
.leader__dots { position: absolute; right: 40px; bottom: 30px; width: 140px; height: 80px; animation: drift 7s ease-in-out infinite alternate; }
.team { padding-top: 24px; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; align-items: start; }
.tcard { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tcard__photo { height: 340px; overflow: hidden; }
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tcard__body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 20px 20px 24px; }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.tcard:hover .tcard__photo img { transform: scale(1.06); }
.vk-link { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color .2s, color .2s; }
.vk-link img { width: 12px; transition: transform .3s var(--ease); }
.vk-link:hover { background: var(--primary); color: #fff; }
.vk-link:hover img { transform: translateX(3px); filter: brightness(10); }

/* Контакты */
.cinfo { display: flex; gap: 24px; align-items: stretch; }
.cinfo__col { flex: 0 0 456px; display: flex; flex-direction: column; gap: 24px; }
.phones-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 36px; border-radius: 28px; background: linear-gradient(137deg, var(--primary) 0%, var(--ink) 71%); color: #fff; }
.phones-card__ring { position: absolute; left: 316px; top: -110px; width: 260px; height: 260px; animation: spin 40s linear infinite; }
.phones-card__num { display: flex; align-items: center; gap: 12px; font-size: 36px; line-height: 42px; font-weight: 700; letter-spacing: -.8px; white-space: nowrap; transition: transform .25s var(--ease); }
.phones-card__num span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
.phones-card__num:hover { transform: translateX(4px); }
.ctitle { display: flex; align-items: center; gap: 14px; }
.ctitle img { width: 48px; height: 48px; }
.addr-card { display: flex; flex-direction: column; gap: 16px; padding: 32px 36px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.map { flex: 1; min-height: 404px; border-radius: 28px; overflow: hidden; background: #e2ecf8; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 404px; border: 0; display: block; }

.ccard { display: flex; background: #fff; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.ccard__info { flex: 0 0 500px; display: flex; flex-direction: column; gap: 24px; padding: 56px 56px 0; background: var(--ink); position: relative; overflow: hidden; }
.ccard__info::before { content: ""; position: absolute; width: 360px; height: 360px; left: -160px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 130, 248, .5), transparent 70%); animation: glow 9s ease-in-out infinite alternate; }
.ccard__head { display: flex; flex-direction: column; gap: 16px; position: relative; }
.ccard__info .body { position: relative; }
.ccard__phones { display: flex; flex-direction: column; gap: 8px; color: #fff; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.2px; position: relative; }
.ccard__phones a { transition: color .2s; width: max-content; }
.ccard__phones a:hover { color: var(--on-dark-muted); }
.ccard__phones span { margin-left: 12px; }
.ccard__img { position: relative; margin: auto auto 0; width: 100%; max-width: 360px; height: auto; }
.ccard__form { flex: 1; min-width: 0; padding: 56px; }

/* Форма */
.form { display: flex; flex-direction: column; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field__label i { color: var(--primary); font-style: normal; }
.field__input { height: 52px; width: 100%; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--sand); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field__input--area { height: auto; min-height: 52px; padding: 13px 16px; resize: vertical; line-height: 24px; }
.field__input:hover { border-color: #c3d3e8; }
.field__input:focus { outline: none; background: #fff; border: 2px solid var(--primary); padding: 0 15px; box-shadow: 0 0 0 4px rgba(18, 63, 128, .18); }
.field__input--area:focus { padding: 12px 15px; }
.field.has-error .field__input { border-color: #e5484d; background: #fff5f5; }
.field__err { color: #d93036; font-size: 13px; line-height: 18px; min-height: 0; }
.field__err:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; accent-color: var(--primary); }
.consent a { color: var(--primary); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__status { font-weight: 600; text-align: center; min-height: 0; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #0f8a4f; }
.form__status.is-err { color: #d93036; }
.form.is-sent .field, .form.is-sent .form__row, .form.is-sent .consent, .form.is-sent button { display: none; }
.form.is-sent .form__status { font-size: 22px; line-height: 30px; padding: 60px 0; animation: pop .6s var(--ease); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before { content: ""; width: 18px; height: 18px; margin-right: 10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }

/* Подвал */
.ftr { background: var(--ink); color: #fff; padding: 72px 0 40px; }
.ftr__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.ftr__logo { background: #fff; border-radius: 16px; padding: 10px 16px; transition: transform .3s var(--ease); }
.ftr__logo:hover { transform: rotate(-3deg) scale(1.04); }
.ftr__logo img { width: 104px; height: 48px; object-fit: contain; }
.ftr__nav, .ftr__phones { display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.ftr__nav a, .ftr__phones a { transition: color .2s, transform .2s; width: max-content; }
.ftr__nav a:hover, .ftr__phones a:hover { color: var(--on-dark-muted); transform: translateX(3px); }
.ftr__line { height: 1px; background: rgba(255, 255, 255, .9); margin: 48px 0 24px; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-dark-muted); font-size: 14px; line-height: 20px; font-weight: 500; }
.ftr__bottom a:hover { color: #fff; }

/* Плавающая кнопка звонка (мобильные) */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; display: none; place-items: center; box-shadow: 0 14px 30px -8px rgba(26, 130, 248, .7); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: ripple 2.2s var(--ease) infinite; }
.fab svg { animation: ring 3s ease-in-out infinite; }

/* Модалки: лайтбокс и видео */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(8, 25, 52, .9); display: flex; align-items: center; justify-content: center; padding: 56px 16px; opacity: 0; transition: opacity .3s; }
.modal.is-open { opacity: 1; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 48px; cursor: pointer; transition: background-color .2s, transform .2s; }
.modal__close:hover { background: rgba(255, 255, 255, .28); transform: rotate(90deg); }
.modal__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; cursor: pointer; }
.modal__nav:hover { background: rgba(255, 255, 255, .28); }
.modal__nav--prev { left: 14px; }
.modal__nav--next { right: 14px; }
.modal img { max-width: min(1200px, 100%); max-height: 100%; border-radius: 16px; transform: scale(.96); transition: transform .35s var(--ease); }
.modal.is-open img { transform: none; }
.modal__media { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.modal__media video, .modal__media iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__note { color: #fff; text-align: center; max-width: 520px; font-size: 20px; line-height: 30px; }

/* Анимации появления */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.float { animation: float 6s ease-in-out infinite; }
.float--b { animation-delay: -3s; animation-duration: 7s; }
.pulse-dot { animation: pulse 1.8s ease-in-out infinite; border-radius: 50%; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(14px, -10px); } }
@keyframes glow { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, .5); } 50% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); } }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 92% { transform: rotate(14deg); } 96% { transform: rotate(-8deg); } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

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

/* ---------- Адаптив ---------- */
@media (max-width: 1320px) {
  :root { --pad: 48px; }
  .hero__visual { flex-basis: 480px; height: 560px; }
  .hero__psy { left: 20px; width: 440px; height: 560px; }
  .badge--stat { top: 470px; }
  .badge--chip { left: auto; right: 20px; }
  .h1 { font-size: 60px; line-height: 66px; letter-spacing: -1.8px; }
  .bento { grid-template-columns: 1.2fr 1fr 1fr; }
  .recovery__row { gap: 48px; }
  .pcard { width: 240px; height: 280px; }
}

@media (max-width: 1100px) {
  .nav, .hdr__phone { display: none; }
  .burger { display: inline-flex; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 48px; }
  .hero__visual { flex-basis: auto; height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero__psy { left: 50%; margin-left: -220px; }
  .dirs__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .recovery__row { flex-direction: column-reverse; align-items: stretch; }
  .mosaic { justify-content: center; }
  .cta { flex-direction: column; align-items: flex-start; }
  .cta__icons { align-self: center; }
  .agrid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .leader__photo { flex-basis: 380px; }
  .cinfo { flex-direction: column; }
  .cinfo__col { flex-basis: auto; }
  .ccard { flex-direction: column; }
  .ccard__info { flex-basis: auto; }
  .ccard__img { max-width: 300px; }
  .ftr__top { flex-wrap: wrap; }
  .ggrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --pad: 20px; }
  body { font-size: 16px; line-height: 26px; }
  .h1 { font-size: 40px; line-height: 44px; letter-spacing: -1.2px; }
  .h2 { font-size: 32px; line-height: 38px; letter-spacing: -.8px; }
  .h3 { font-size: 28px; line-height: 34px; letter-spacing: -.6px; }
  .h4 { font-size: 20px; line-height: 26px; }
  .lead { font-size: 17px; line-height: 28px; }
  .hdr__in { padding-top: 12px; padding-bottom: 12px; }
  .hdr__actions { gap: 10px; }
  .hdr__actions .btn { padding: 12px 22px; }
  .mnav { inset: 73px 0 0; }
  .sec--pb { padding-bottom: 72px; }
  .sec--pb96, .sec--pb72 { padding-bottom: 48px; }
  .sec--white { padding-top: 72px; padding-bottom: 72px; }
  .sec__row { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }

  .hero { padding: 32px 0 40px; }
  .hero__text { gap: 24px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__phones { flex-direction: column; gap: 12px; }
  .hero__dots { display: none; }
  .hero__visual { height: 400px; border-radius: 24px; }
  .hero__psy { width: 320px; height: 400px; margin-left: -160px; top: 20px; }
  .hero__shape--a { left: 140px; width: 360px; height: 360px; }
  .badge--stat { left: 14px; top: auto; bottom: 18px; gap: 10px; padding: 12px 16px; border-radius: 16px; }
  .badge--stat b { font-size: 24px; line-height: 30px; }
  .badge--stat span { font-size: 13px; line-height: 18px; }
  .badge--chip { right: 14px; top: 14px; padding: 8px 12px; gap: 8px; }
  .badge--chip b { font-size: 18px; }
  .badge--chip span { font-size: 13px; }

  .ribbon { height: 80px; }
  .ribbon__band { top: 24px; padding: 12px 0; }
  .ribbon__track span { font-size: 17px; }
  .ribbon__track { gap: 18px; }

  .dirs { padding-bottom: 56px; }
  .dirs__grid { gap: 12px; }
  .dcard { border-radius: 20px; }
  .dcard__photo { height: 120px; }
  .dcard .ibadge { left: 12px; top: 92px; width: 56px; height: 56px; padding: 6px; }
  .dcard .ibadge img { width: 44px; height: 44px; }
  .dcard__row { padding: 40px 14px 18px; }
  .dcard__row b { font-size: 17px; line-height: 24px; }
  .dcard__arrow { display: none; }

  .stats { padding: 28px 24px; gap: 28px 16px; border-radius: 24px; }
  .stat b { font-size: 40px; line-height: 44px; letter-spacing: -1px; }
  .stat span { font-size: 15px; line-height: 22px; }

  .steps .sec__head { margin-bottom: 32px; }
  .steps__grid { grid-template-columns: 1fr; gap: 16px; }
  .step { padding: 24px; }
  .step__num { font-size: 72px; line-height: 72px; }

  .recovery { padding: 72px 0; }
  .mosaic { gap: 12px; }
  .mosaic__col { gap: 12px; flex: 1; min-width: 0; }
  .mosaic__col--shift { padding-top: 32px; }
  .pcard { width: 100%; height: 210px; padding: 14px; border-radius: 20px; }
  .pcard figcaption { font-size: 17px; line-height: 22px; }

  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 140px; gap: 12px; }
  .bento__item--big { grid-column: span 2; grid-row: span 2; }
  .bento__item { border-radius: 18px; }
  .ggrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ggrid__item { border-radius: 18px; }

  .video { height: 220px; border-radius: 24px; }
  .video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .video__play img { width: 116px; height: 116px; left: -26px; top: -12px; }

  .cta { padding: 32px 24px; border-radius: 24px; gap: 28px; }
  .cta__phone { font-size: 20px; }
  .ibadge--xl { width: 96px; height: 96px; padding: 8px; margin-right: -20px; }
  .ibadge--xl img { width: 80px; height: 80px; }
  .cta__ring--a { left: 40%; }

  .agrid { grid-template-columns: 1fr; }
  .acard__img { height: 190px; }
  .post__cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .prose { font-size: 17px; line-height: 29px; }
  .prose h2 { font-size: 26px; line-height: 32px; }

  .phero { padding: 40px 0 32px; }
  .phero__ellipse { left: 30%; top: -300px; width: 600px; height: 600px; }

  .leader { flex-direction: column; border-radius: 24px; }
  .leader__photo { flex-basis: auto; height: 360px; }
  .leader__text { padding: 28px 24px 32px; gap: 16px; }
  .leader__dots { display: none; }
  .team__grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .tcard { border-radius: 20px; }
  .tcard__photo { height: 210px; }
  .tcard__body { padding: 14px 14px 18px; }
  .tcard .h4 { font-size: 17px; line-height: 22px; }
  .tcard .body { font-size: 14px; line-height: 20px; }
  .vk-link { padding: 6px 10px; font-size: 13px; }

  .phones-card { padding: 28px 24px; border-radius: 24px; }
  .phones-card__num { font-size: 26px; line-height: 32px; }
  .addr-card { padding: 24px; border-radius: 24px; }
  .map, .map iframe { min-height: 320px; border-radius: 24px; }

  .ccard { border-radius: 24px; }
  .ccard__info { padding: 32px 24px 0; }
  .ccard__phones { font-size: 20px; }
  .ccard__img { max-width: 240px; }
  .ccard__form { padding: 28px 20px 32px; }
  .form__row { grid-template-columns: 1fr; gap: 20px; }

  .ftr { padding: 48px 0 96px; }
  .ftr__top { flex-direction: column; gap: 28px; }
  .ftr__line { margin: 32px 0 20px; }
  .fab { display: grid; }
}

@media (max-width: 380px) {
  .hdr__actions .btn { display: none; }
  .h1 { font-size: 36px; line-height: 40px; }
  .phones-card__num { font-size: 22px; }
}

/* Длинные заголовки статей */
.phero--small .h1 { font-size: 52px; line-height: 58px; letter-spacing: -1.4px; max-width: 980px; }
@media (max-width: 700px) { .phero--small .h1 { font-size: 30px; line-height: 36px; letter-spacing: -.8px; } }

/* Декор (фигуры, точки, кольца, свечение) — не кликабелен */
.hero__dots, .hero__ring, .leader__dots, .phones-card__ring, .phero__ellipse, .stats::before, .ccard__info::before, .badge { pointer-events: none; }

/* Разделы статей */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chips__item { display: inline-flex; align-items: center; white-space: nowrap; cursor: pointer; user-select: none; }
.chips__item { padding: 12px 20px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; line-height: 20px; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s; }
.chips__item:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); transform: translateY(-1px); }
.chips__item.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.acard__cat { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-style: normal; font-weight: 600; }
.post__meta .acard__cat:hover { background: var(--primary); color: #fff; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 40px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.empty__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 700px) {
  .chips { gap: 8px; margin-bottom: 24px; }
  .chips__item { padding: 10px 16px; font-size: 14px; }
  .empty { padding: 24px; }
}

/* Фото и видео внутри статей (перенесённые посты) */
.prose figure { margin: 24px 0; }
.prose figure img { margin: 0; width: 100%; border-radius: 18px; }
.prose figure.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.prose figure.gallery figure { margin: 0; }
.prose figure.gallery img { aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform .4s var(--ease), box-shadow .4s; }
.prose figure.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow-hover); }
.prose .video-embed { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.prose .video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .prose figure.gallery { grid-template-columns: 1fr 1fr; gap: 8px; } .prose figure img { border-radius: 14px; } }
.modal__stack { width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.modal__link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; opacity: .85; }
.modal__link:hover { opacity: 1; }
