/* ============ Рефектіо — дизайн-система «Лінія відновлення» ============ */
:root {
  --bg: #FBF6EF;
  --bg-2: #F1E8DC;
  --card: #FFFDF9;
  --ink: #232323;
  --ink-2: #4A3B33;
  --muted: #7A6B61;
  --line: rgba(36, 25, 20, .12);
  --orange: #FF983B;
  --orange-2: #FFB067;
  --orange-soft: #FFE4CB;
  --ember: #D32300;
  --dark: #232323;

  --f-display: "Unbounded", "Unbounded Fallback", system-ui, sans-serif;
  --f-body: "Onest", "Onest Fallback", system-ui, sans-serif;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 34px;
  --shadow: 0 1px 2px rgba(36,25,20,.04), 0 12px 32px -12px rgba(36,25,20,.18);
  --shadow-lg: 0 30px 60px -24px rgba(60,30,10,.35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --header-h: 76px;
}

/* Атрибут hidden завжди ховає елемент, навіть якщо клас задає display (інакше прозорі оверлеї перехоплюють кліки) */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #F6EDE3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--orange); }
.section--dark .eyebrow { color: #C9B8AA; }

.h-xl { font-size: clamp(40px, 7.2vw, 96px); }
.h-lg { font-size: clamp(32px, 4.6vw, 60px); }
.h-md { font-size: clamp(24px, 2.8vw, 36px); }
.h-sm { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 41.23em; }
.muted { color: var(--muted); }
.accent { color: var(--orange); }
.ember { color: var(--ember); }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > div { max-width: 720px; }
.section-head h2 { margin-top: 14px; }

/* ---------- Логотип ---------- */
.mark { width: 44px; height: 44px; flex: none; overflow: visible; }
.mark .m-r, .mark .m-leg, .mark .m-halo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark .m-r { stroke: var(--orange); stroke-width: 18; }
.mark .m-leg { stroke: var(--ember); stroke-width: 18; }
.mark .m-halo { stroke: var(--mark-bg, var(--bg)); stroke-width: 30; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__word { font: 600 21px/1 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.logo:hover .m-leg { animation: stitch .7s var(--ease); }
@keyframes stitch { 0% { stroke-dashoffset: 0 } 40% { stroke-dasharray: 60; stroke-dashoffset: 60 } 100% { stroke-dasharray: 60; stroke-dashoffset: 0 } }

/* Малювання лого */
.mark--draw .m-r { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s var(--ease-io) .1s forwards; }
.mark--draw .m-leg { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .55s var(--ease) .95s forwards; }
.mark--draw .m-halo { opacity: 0; animation: fade .2s linear .95s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--bg); transition: clip-path .9s var(--ease-io), visibility 0s .9s;
  clip-path: inset(0 0 0 0);
}
.preloader .mark { width: 96px; height: 96px; }
.preloader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  --bgc: var(--ink); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bgc); color: var(--fg);
  font: 700 15.5px/1.15 var(--f-body); letter-spacing: .01em; text-decoration: none; text-align: center;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--hover, var(--ember)); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(229,57,28,.6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { --bgc: var(--orange); --fg: #1F1612; --hover: var(--ink); }
.btn--primary:hover { color: #fff; }
.btn--ghost { --bgc: transparent; --fg: var(--ink); --hover: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { color: #fff; }
.btn--light { --bgc: #fff; --fg: var(--ink); --hover: var(--orange); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; transition: gap .3s var(--ease), color .2s; }
.link-arrow:hover { gap: 14px; color: var(--ember); }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; transition: background .2s; }
.icon-btn:hover { background: rgba(36,25,20,.07); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Хедер ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: transform .5s var(--ease), background .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(251,246,239,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav { display: flex; gap: 2px; margin-left: 28px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 13px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink-2); transition: background .2s, color .2s;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: rgba(36,25,20,.06); color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: 2px; }
.nav__link .chev { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.4; transition: transform .3s var(--ease); }
.nav__item:hover .chev, .nav__item:focus-within .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; min-width: 300px; padding: 10px;
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .25s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dropdown--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.3; transition: background .2s; }
.dropdown a:hover { background: var(--bg-2); }
.dropdown a small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.dropdown .thumb { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; }
.dropdown .dd-head { grid-column: 1 / -1; background: var(--orange-soft); }
.dropdown .dd-head:hover { background: #FFDDB8; }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22.5px; transform: rotate(-45deg); }

.route-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--orange), var(--ember)); border-radius: 0 3px 3px 0; opacity: 0; }
.route-progress.is-run { opacity: 1; animation: progress .6s var(--ease) forwards; }
@keyframes progress { 0% { width: 0 } 70% { width: 80% } 100% { width: 100%; opacity: 0 } }

/* Мобільне меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: calc(var(--header-h) + 12px) var(--gutter) 32px;
  overflow-y: auto; clip-path: circle(0 at calc(100% - 40px) 38px); transition: clip-path .7s var(--ease-io);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mobile-menu .m-item { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu.is-open .m-item { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .05s); }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-row > a { flex: 1; padding: 16px 0; font: 600 24px/1.1 var(--f-display); text-decoration: none; letter-spacing: -.02em; }
.m-row button { width: 44px; height: 44px; border: 0; background: var(--bg-2); border-radius: 50%; font-size: 20px; transition: transform .3s var(--ease); }
.m-item.is-open .m-row button { transform: rotate(45deg); background: var(--orange); }
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.m-item.is-open .m-sub { grid-template-rows: 1fr; }
.m-sub > div { overflow: hidden; }
.m-sub a { display: block; padding: 9px 0 9px 16px; border-left: 2px solid var(--orange-soft); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.m-sub a:last-child { margin-bottom: 14px; }
.mobile-menu .m-foot { margin-top: 28px; display: grid; gap: 12px; }

/* ---------- Main / переходи ---------- */
main { min-height: 70vh; outline: none; }
main.is-leaving { animation: leave .22s var(--ease-io) forwards; }
main.is-entering { animation: enter .7s var(--ease) both; }
@keyframes leave { to { opacity: 0; transform: translateY(-10px); filter: blur(4px); } }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }

/* Рядки заголовку, що виїжджають */
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(.25s + var(--i) * .12s); }
.is-ready .split-line > span { transform: none; }

/* ---------- Hero головної ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__latin { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2); margin-bottom: 28px; }
.hero__latin b { background: var(--ink); color: #fff; font: 600 12px/1 var(--f-display); padding: 7px 10px; border-radius: 999px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.hero h1 .w3 { color: var(--orange); position: relative; }
.hero__text { margin: 30px 0 34px; max-width: 35.91em; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.hero__media { position: relative; aspect-ratio: 4 / 4.6; }
.hero__img { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-2); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease); }
.is-ready .hero__img img { transform: scale(1); }
.hero__img--a { inset: 0 18% 22% 0; border-radius: var(--r-lg); clip-path: inset(100% 0 0 0 round 34px); transition: clip-path 1.3s var(--ease-io) .3s; }
.hero__img--b { width: 52%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 50%; border: 8px solid var(--bg); clip-path: circle(0 at 50% 50%); transition: clip-path 1.2s var(--ease-io) .7s; }
.is-ready .hero__img--a { clip-path: inset(0 0 0 0 round 34px); }
.is-ready .hero__img--b { clip-path: circle(75% at 50% 50%); }
.hero__badge {
  position: absolute; left: -6%; bottom: 12%; z-index: 2; background: var(--card); border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-lg);
  display: flex; gap: 14px; align-items: center; opacity: 0; transform: translateY(20px) rotate(-3deg); transition: all 1s var(--ease) 1.2s;
}
.is-ready .hero__badge { opacity: 1; transform: rotate(-3deg); }
.hero__badge strong { font: 600 30px/1 var(--f-display); letter-spacing: -.03em; display: block; }
.hero__badge span { font-size: 13px; color: var(--muted); line-height: 1.3; display: block; max-width: 11.30em; }
.hero__badge .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; font-size: 22px; flex: none; }
.hero__orbit { position: absolute; top: 4%; right: 2%; width: 116px; height: 116px; z-index: 2; animation: spin 22s linear infinite; }
.hero__orbit text { font: 600 10.5px var(--f-display); letter-spacing: .22em; fill: var(--ink); text-transform: uppercase; }
.hero__orbit-c { position: absolute; top: 4%; right: 2%; width: 116px; height: 116px; z-index: 3; display: grid; place-items: center; }
.hero__orbit-c .mark { width: 40px; height: 40px; --mark-bg: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Лінія відновлення, що проходить сторінкою */
.mend-line { position: absolute; inset: auto 0 0; width: 100%; height: 220px; pointer-events: none; z-index: 0; }
.mend-line path { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3000; stroke-dashoffset: 3000; transition: stroke-dashoffset 3s var(--ease-io) .6s; opacity: .55; }
.is-ready .mend-line path { stroke-dashoffset: 0; }
.hero .container { position: relative; z-index: 1; }

/* ---------- Лічильники ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.stat { background: var(--card); padding: clamp(22px, 3vw, 36px); }
.stat__num { font: 600 clamp(36px, 4.4vw, 60px)/1 var(--f-display); letter-spacing: -.04em; display: flex; align-items: baseline; gap: 4px; }
.stat__num small { font-size: .45em; color: var(--orange); }
.stat__label { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.stat--accent { background: var(--orange); }
.stat--accent .stat__label { color: rgba(31,22,18,.75); }
.stat--accent .stat__num small { color: var(--ink); }

/* ---------- Шляхи (З чого почати) ---------- */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.path {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 26px; border-radius: var(--r-lg);
  background: var(--card); text-decoration: none; box-shadow: 0 0 0 1px var(--line); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s;
}
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c, var(--orange)); clip-path: circle(0 at 85% 15%); transition: clip-path .7s var(--ease-io); }
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.path:hover::before { clip-path: circle(150% at 85% 15%); }
.path__icon { width: 58px; height: 58px; border-radius: 18px; background: var(--bg-2); display: grid; place-items: center; font-size: 26px; transition: background .4s, transform .5s var(--ease); }
.path:hover .path__icon { background: rgba(255,255,255,.35); transform: rotate(-8deg) scale(1.06); }
.path__q { margin-top: auto; font-size: 14px; color: var(--muted); transition: color .4s; }
.path h3 { font-size: 21px; line-height: 1.2; margin: 8px 0 18px; }
.path__go { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14.5px; padding-top: 16px; border-top: 1px solid var(--line); }
.path__go i { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease); }
.path:hover .path__go i { transform: rotate(-45deg); }
.path:hover .path__q { color: var(--ink-2); }
.path--dark { --c: var(--ink); }
.path--dark:hover { color: #fff; }
.path--dark:hover .path__q, .path--dark:hover .path__go { color: #E9DCCF; border-color: rgba(255,255,255,.2); }
.path--dark:hover .path__go i { background: var(--orange); color: var(--ink); }

/* ---------- Дух · Душа · Тіло ---------- */
.trinity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.14); }
.trinity > div { padding: 32px 28px 8px 0; border-right: 1px solid rgba(255,255,255,.14); }
.trinity > div + div { padding-left: 28px; }
.trinity > div:last-child { border-right: 0; }
.trinity b { font: 600 clamp(32px, 4vw, 54px)/1 var(--f-display); letter-spacing: -.04em; display: block; margin-bottom: 14px; }
.trinity b span { color: var(--orange); }
.trinity p { color: #C9B8AA; font-size: 15.5px; max-width: 21.28em; }

/* ---------- Напрямки ---------- */
.directions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: dir; }
.direction { padding: 30px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); counter-increment: dir; position: relative; overflow: hidden; transition: transform .5s var(--ease); }
.direction:hover { transform: translateY(-4px); }
.direction::before { content: "0" counter(dir); font: 600 14px/1 var(--f-display); color: var(--orange); display: block; margin-bottom: 56px; }
.direction::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid var(--orange-soft); transition: transform .8s var(--ease); }
.direction:hover::after { transform: scale(1.25) translate(-10px, 10px); }
.direction h3 { font-size: 23px; margin-bottom: 12px; }
.direction p { color: var(--muted); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; font-size: 14.5px; }
.chip--o { background: var(--orange-soft); box-shadow: none; }
.chip--dark { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Групи ---------- */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.group-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--card); text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.group-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.group-card__img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.group-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.group-card:hover .group-card__img img { transform: scale(1.07); }
.group-card__tag { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,253,249,.92); backdrop-filter: blur(6px); font-size: 12.5px; font-weight: 700; }
.group-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.group-card h3 { font-size: 18.5px; line-height: 1.22; letter-spacing: -.015em; }
.group-card__more { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .3s; }
.group-card__more i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); transition: background .3s, transform .5s var(--ease); }
.group-card:hover .group-card__more { color: var(--ink); }
.group-card:hover .group-card__more i { background: var(--orange); transform: rotate(-45deg); }
.groups--big { grid-template-columns: repeat(3, 1fr); }
.groups--big .group-card:first-child { grid-column: span 2; grid-row: span 2; }
.groups--big .group-card:first-child .group-card__img { aspect-ratio: auto; flex: 1; min-height: 320px; }
.groups--big .group-card:first-child h3 { font-size: 28px; }

/* Біжучий рядок */
.marquee { overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track a { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 500 clamp(22px, 2.6vw, 34px)/1 var(--f-display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; transition: color .2s; }
.marquee__track a:hover { color: var(--orange); }
.marquee__track a::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person { position: relative; }
.person__img { aspect-ratio: 4 / 4.6; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); position: relative; }
.person__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.9); transition: transform 1s var(--ease), filter .6s; }
.person:hover .person__img img { transform: scale(1.05); filter: saturate(1.08); }
.person__img::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(31,22,18,.35)); opacity: 0; transition: opacity .5s; }
.person:hover .person__img::after { opacity: 1; }
.person h3 { font-size: 19px; margin-top: 16px; letter-spacing: -.02em; }
.person p { color: var(--muted); font-size: 14.5px; margin: 6px 0 0; line-height: 1.4; }
.team-intro { grid-column: span 1; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; border-radius: var(--r-lg); background: var(--orange); }
.team-intro p { font-size: 16px; color: rgba(31,22,18,.85); }
.team-intro .h-sm { margin-bottom: 14px; }

/* ---------- Психологи (консультація) ---------- */
.psy { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); align-items: center; }
.psy + .psy { margin-top: 20px; }
.psy__img { aspect-ratio: 4 / 4.4; border-radius: var(--r); overflow: hidden; }
.psy__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.psy:hover .psy__img img { transform: scale(1.04); }
.psy h3 { font-size: clamp(26px, 3vw, 38px); margin: 12px 0 18px; }
.psy p { color: var(--ink-2); max-width: 39.90em; }
.psy .chips { margin: 20px 0 26px; }

/* ---------- Новини ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news--all { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card__img { aspect-ratio: 16 / 11; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); position: relative; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card__img img.contain { object-fit: contain; background: #fff; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__date { position: absolute; left: 14px; top: 14px; background: var(--card); border-radius: 16px; padding: 8px 12px; text-align: center; line-height: 1; box-shadow: var(--shadow); }
.post-card__date b { display: block; font: 600 22px/1 var(--f-display); }
.post-card__date span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post-card__meta { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.post-card h3 { font-size: 21px; line-height: 1.25; margin: 8px 0 14px; transition: color .3s; }
.post-card:hover h3 { color: var(--ember); }
.post-card .link-arrow { align-self: flex-start; font-size: 14.5px; }

/* ---------- Сторінка (внутрішня) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(36px, 6vw, 80px)) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 76px); letter-spacing: -.04em; margin: 18px 0 22px; max-width: 16.07em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero__deco { position: absolute; right: -60px; top: 80px; width: clamp(200px, 30vw, 420px); opacity: .9; pointer-events: none; }
.page-hero__deco .mark { width: 100%; height: auto; --mark-bg: var(--bg); }
.page-hero__deco .m-r, .page-hero__deco .m-leg { stroke-width: 14; }
.page-hero__deco .m-r { stroke: var(--orange-soft); }
.page-hero__deco .m-leg { stroke: #FBD6CC; }
.page-hero__deco .m-halo { stroke-width: 24; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--ink-2); }
.crumbs a:hover { color: var(--orange); }
.crumbs span[aria-hidden] { opacity: .5; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.split--media { align-items: center; }
.media-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 18px; color: var(--ink-2); }
.prose p:first-child::first-letter { font: 600 3.1em/0.9 var(--f-display); float: left; padding: 6px 10px 0 0; color: var(--orange); }
.prose.no-drop p:first-child::first-letter { all: unset; }
.prose ul { padding: 0; list-style: none; }
.prose li { padding: 6px 0; }
.prose a { color: var(--ember); font-weight: 700; }

.sticky-card { position: sticky; top: calc(var(--header-h) + 20px); padding: 30px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.sticky-card h3 { font-size: 22px; margin-bottom: 10px; }
.sticky-card .btn { margin-top: 10px; }
.info-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; }
.info-list li i { font-style: normal; width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--orange-soft); display: grid; place-items: center; font-size: 17px; }

.offer-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: o; }
.offer-list li { counter-increment: o; padding: 22px 22px 22px 70px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); position: relative; font-weight: 600; line-height: 1.45; transition: transform .4s var(--ease), background .3s; }
.offer-list li:hover { transform: translateX(4px); background: #fff; }
.offer-list li::before { content: counter(o, decimal-leading-zero); position: absolute; left: 22px; top: 22px; font: 600 14px/1.6 var(--f-display); color: var(--orange); }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--orange); position: relative; overflow: hidden; isolation: isolate; }
.callout::after { content: ""; position: absolute; z-index: -1; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,255,255,.22); }
.callout h2, .callout h3 { max-width: 19.65em; }
.callout p { margin: 10px 0 0; max-width: 37.24em; color: rgba(31,22,18,.8); }
.callout--dark { background: var(--ink); color: #F6EDE3; }
.callout--dark p { color: #C9B8AA; }
.callout--dark::after { border-color: rgba(255,138,31,.25); }

.empty-state { text-align: center; padding: clamp(48px, 8vw, 96px) 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.empty-state .mark { width: 72px; height: 72px; margin: 0 auto 24px; --mark-bg: var(--card); }
.empty-state p { max-width: 34.58em; margin: 14px auto 28px; color: var(--muted); }
.empty-state .btn-row { justify-content: center; }

/* ---------- Галерея ---------- */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry button { display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--bg-2); break-inside: avoid; position: relative; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .5s; }
.masonry button:hover img { transform: scale(1.05); }
.masonry button::after { content: "＋"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-weight: 700; opacity: 0; transform: scale(.6); transition: all .4s var(--ease); }
.masonry button:hover::after { opacity: 1; transform: none; }
.photo-strip { display: flex; gap: 16px; width: max-content; animation: marquee 70s linear infinite; }
.photo-strip:hover { animation-play-state: paused; }
.photo-strip img { height: clamp(180px, 22vw, 280px); width: auto; border-radius: var(--r); object-fit: cover; aspect-ratio: 3/2; }
.strip-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(20,14,11,.94); display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; opacity: 0; transition: opacity .35s; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; display: grid; place-items: center; height: 100vh; padding: 60px 0; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 14px; transform: scale(.96); transition: transform .5s var(--ease), opacity .3s; }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { color: #C9B8AA; font-size: 14px; margin-top: 12px; position: absolute; bottom: 18px; }
.lightbox__nav, .lightbox__close { width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1; justify-self: center; transition: background .2s, transform .3s var(--ease); }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--orange); color: var(--ink); transform: scale(1.06); }
.lightbox__close { position: absolute; right: 18px; top: 18px; }

/* ---------- Пост ---------- */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; background: var(--orange); z-index: 120; width: 0; }
.post-head { max-width: 900px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.post-cover { border-radius: var(--r-lg); overflow: hidden; max-height: 640px; margin-bottom: clamp(36px, 5vw, 64px); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; max-height: 640px; }
.post-cover.contain { background: #fff; display: grid; place-items: center; max-height: none; }
.post-cover.contain img { max-height: 560px; width: auto; object-fit: contain; }
.post-body { display: grid; grid-template-columns: 1fr 260px; gap: clamp(28px, 5vw, 80px); }
.post-body .prose { max-width: 46.55em; }
.post-body .prose ul li { padding: 10px 16px; background: var(--card); border-radius: 14px; margin-bottom: 8px; box-shadow: 0 0 0 1px var(--line); }
.share { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
.share h4 { font: 700 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.share__list { display: flex; gap: 8px; flex-wrap: wrap; }
.share__list a, .share__list button { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-weight: 800; font-size: 15px; transition: background .2s, transform .3s var(--ease), color .2s; }
.share__list a:hover, .share__list button:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.share__list svg { width: 18px; height: 18px; fill: currentColor; }
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.post-gallery button { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 3/2; cursor: zoom-in; }
.post-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-gallery button:hover img { transform: scale(1.06); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.post-nav a { padding: 22px 24px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.post-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-nav small { color: var(--muted); font-weight: 600; }
.post-nav b { display: block; margin-top: 6px; font: 600 17px/1.3 var(--f-display); letter-spacing: -.01em; }
.post-nav a:last-child { text-align: right; }

/* ---------- Тест Бека ---------- */
.test { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.q { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: 14px; scroll-margin-top: calc(var(--header-h) + 24px); transition: box-shadow .4s; }
.q.is-done { box-shadow: 0 0 0 1.5px var(--orange-2); }
.q legend { display: flex; align-items: center; gap: 14px; font: 600 19px/1.25 var(--f-display); letter-spacing: -.015em; padding: 0; margin-bottom: 16px; }
.q legend span { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 14px; transition: background .3s; }
.q.is-done legend span { background: var(--orange); }
.q fieldset { border: 0; padding: 0; margin: 0; }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; cursor: pointer; transition: background .2s; position: relative; }
.opt:hover { background: var(--bg); }
.opt input { position: absolute; opacity: 0; }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); flex: none; margin-top: 2px; display: grid; place-items: center; transition: box-shadow .25s; }
.opt .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .3s var(--ease); }
.opt input:checked + .radio { box-shadow: inset 0 0 0 2px var(--ink); }
.opt input:checked + .radio::after { transform: scale(1); }
.opt input:focus-visible + .radio { outline: 3px solid var(--orange); outline-offset: 2px; }
.opt:has(input:checked) { background: var(--orange-soft); }
.opt .pts { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; padding-left: 10px; }
.test-panel { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; border-radius: var(--r-lg); background: var(--ink); color: #F6EDE3; }
.test-panel h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--f-body); font-weight: 700; color: #C9B8AA; }
.ring { width: 160px; height: 160px; margin: 22px auto; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: rgba(255,255,255,.1); }
.ring .fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset .6s var(--ease); }
.ring div { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring b { font: 600 40px/1 var(--f-display); display: block; }
.ring small { color: #C9B8AA; font-size: 13px; }
.scale { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; }
.scale li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: #C9B8AA; transition: background .3s, color .3s; }
.scale li b { color: #F6EDE3; font-weight: 700; white-space: nowrap; }
.scale li.is-on { background: var(--orange); color: var(--ink); }
.scale li.is-on b { color: var(--ink); }
.test-result { padding: 16px; border-radius: 14px; background: rgba(255,255,255,.07); font-size: 14.5px; margin-bottom: 16px; }
.test-panel .btn { width: 100%; }
.test-panel .reset { background: none; border: 0; color: #C9B8AA; text-decoration: underline; margin-top: 12px; width: 100%; font-size: 14px; }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--bg-2); font-size: 15px; color: var(--ink-2); margin-top: 18px; }
.notice b { color: var(--ink); }

/* ---------- Контакти ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-card { padding: 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 190px; transition: transform .5s var(--ease), box-shadow .5s; position: relative; overflow: hidden; }
a.c-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.c-card i { font-style: normal; width: 50px; height: 50px; border-radius: 16px; background: var(--orange-soft); display: grid; place-items: center; margin-bottom: auto; }
.c-card i svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-card small { color: var(--muted); font-weight: 600; margin-top: 20px; }
.c-card b { font: 600 20px/1.25 var(--f-display); letter-spacing: -.015em; }
.c-card .phones a { display: block; text-decoration: none; }
.c-card .phones a:hover { color: var(--ember); }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); height: 460px; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.75) sepia(.12); }

/* ---------- Донат ---------- */
.donate { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.req { display: grid; gap: 1px; border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.12); }
.req > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #2A1F1A; }
.req small { display: block; color: #A8968A; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.req b { font-weight: 700; font-size: 15.5px; word-break: break-all; }
.copy { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 13px; transition: background .2s; }
.copy:hover { background: var(--orange); color: var(--ink); }

/* ---------- Футер ---------- */
.footer { background: var(--dark); color: #E9DCCF; padding: clamp(56px, 8vw, 96px) 0 28px; position: relative; overflow: hidden; --mark-bg: var(--dark); }
.footer a { text-decoration: none; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo__word { color: #fff; }
.footer__about { margin: 20px 0 24px; color: #A8968A; max-width: 22.61em; font-size: 15.5px; }
.footer h4 { font: 700 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #8E7D72; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a { color: #E9DCCF; transition: color .2s; }
.footer ul a:hover { color: var(--orange); }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .25s, transform .3s var(--ease); }
.socials a:hover { background: var(--orange); transform: translateY(-3px); }
.socials a:hover svg { fill: var(--ink); }
.socials svg { width: 19px; height: 19px; fill: #fff; }
.footer__big { font: 600 clamp(60px, 15vw, 230px)/.8 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); margin: 48px 0 0; white-space: nowrap; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: #8E7D72; font-size: 14px; }

/* ---------- Пошук ---------- */
.search { position: fixed; inset: 0; z-index: 220; background: rgba(31,22,18,.45); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; opacity: 0; transition: opacity .25s; }
.search.is-open { opacity: 1; }
.search__panel { width: min(680px, 100%); background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-14px) scale(.98); transition: transform .4s var(--ease); }
.search.is-open .search__panel { transform: none; }
.search__field { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search__field svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search__field input { flex: 1; height: 64px; border: 0; background: none; font: 500 18px var(--f-body); color: var(--ink); outline: none; min-width: 0; }
.search__field kbd { font: 600 12px var(--f-body); padding: 4px 8px; border-radius: 6px; background: var(--bg-2); color: var(--muted); }
.search__results { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow-y: auto; }
.search__results a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.search__results a small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.search__results a b { font-weight: 700; }
.search__results a mark { background: var(--orange-soft); color: inherit; border-radius: 3px; }
.search__results li.is-active a, .search__results a:hover { background: var(--bg-2); }
.search__empty { padding: 22px 14px; color: var(--muted); }

/* ---------- Toast / to-top ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 260; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: all .45s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--orange); color: var(--ink); font-size: 20px; font-weight: 800; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px) scale(.8); transition: all .45s var(--ease); pointer-events: none; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .paths { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .hero__grid, .split, .donate, .test, .post-body { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .directions, .contact-grid, .news { grid-template-columns: 1fr 1fr; }
  .psy { grid-template-columns: 1fr; }
  .psy__img { max-width: 360px; }
  .groups--big { grid-template-columns: 1fr 1fr; }
  .offer-list { grid-template-columns: 1fr; }
  .trinity { grid-template-columns: 1fr; }
  .trinity > div, .trinity > div + div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 24px 0; }
  .sticky-card, .share, .test-panel { position: static; }
  .test-panel { order: -1; }
  .header__cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .groups, .groups--big, .paths, .directions, .contact-grid, .news, .news--all, .team, .post-nav { grid-template-columns: 1fr; }
  .groups--big .group-card:first-child { grid-column: auto; grid-row: auto; }
  .groups--big .group-card:first-child .group-card__img { aspect-ratio: 4/3; min-height: 0; }
  .team { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-intro { grid-column: 1 / -1; }
  .person h3 { font-size: 16px; }
  .person p { font-size: 13px; }
  .path { min-height: 220px; }
  .hero__badge { left: 0; padding: 14px 16px; }
  .hero__badge strong { font-size: 24px; }
  .hero__orbit, .hero__orbit-c { width: 92px; height: 92px; }
  .footer__top { grid-template-columns: 1fr; }
  .post-gallery { grid-template-columns: 1fr 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__prev { left: 24px; } .lightbox__next { right: 24px; }
  .opt .pts { display: none; }
  .post-nav a:last-child { text-align: left; }
  .page-hero__deco { right: -90px; top: 60px; opacity: .6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ============ Офіційний логотип, піктограми, мова ============ */
.rf-lockup { height: 40px; width: auto; display: block; overflow: visible; }
.rf-lockup .lg-r, .rf-lockup .lg-word, .rf-mark .lg-r { fill: var(--orange); }
.rf-lockup .lg-bar, .rf-mark .lg-bar { fill: var(--ember); }
.rf-mark { display: block; overflow: visible; }
.logo .lg-bar { transition: transform .5s var(--ease); }
.logo:hover .lg-bar { transform: translate(2px, 2px); }
.logo--footer .rf-lockup { height: 44px; }

.preloader__mark { width: 120px; height: auto; }

.lang-btn { height: 40px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font: 700 13.5px/1 var(--f-body); letter-spacing: .06em; transition: border-color .2s, background .2s, transform .3s var(--ease); }
.lang-btn:hover { border-color: var(--ink); background: var(--card); transform: translateY(-1px); }

.picto { width: 100%; height: 100%; overflow: visible; }
.picto .p-o { fill: var(--orange); }
.picto .p-s { fill: var(--ember); }
.picto .p-halo { fill: none; stroke: var(--picto-bg, var(--bg-2)); stroke-width: 22; }
.path__icon { padding: 9px; }
.path__icon .picto { --picto-bg: var(--bg-2); transition: transform .5s var(--ease); }
.path:hover .path__icon { background: rgba(255,255,255,.55); }
.path:hover .path__icon .picto { --picto-bg: rgba(255,255,255,.55); }
.path--dark:hover .path__icon { background: rgba(255,255,255,.12); }
.path--dark .path__icon .picto { --picto-bg: var(--bg-2); }
.path--dark:hover .path__icon .picto .p-halo { stroke: #4A4440; }
.hero__badge .dot { padding: 10px; }
.hero__badge .dot .picto { --picto-bg: var(--orange-soft); }
.c-card i .picto { --picto-bg: rgba(255,255,255,.4); fill: initial; stroke: none; }
.c-card i .picto path.p-halo { stroke: rgba(255,255,255,.4); }
.c-card--accent { background: var(--orange); }
.c-card--accent i { background: rgba(255,255,255,.4); padding: 9px; }
.c-card--accent small { color: var(--ink-2); }

/* Декор у шапці сторінок: знак або піктограма розділу, приглушено */
.page-hero__deco .rf-mark, .page-hero__deco .picto { width: 100%; height: auto; }
.page-hero__deco .lg-r, .page-hero__deco .p-o { fill: var(--orange-soft); }
.page-hero__deco .lg-bar, .page-hero__deco .p-s { fill: #F8D3C7; }
.page-hero__deco .picto .p-halo { stroke: var(--bg); }
.page-hero__deco { animation: float 9s var(--ease-io) infinite alternate; }
@keyframes float { from { transform: translateY(0) rotate(0); } to { transform: translateY(-14px) rotate(-2deg); } }

.hero__orbit-c .rf-mark { width: 44px; height: auto; }
.empty-state__mark { width: 84px; height: auto; margin: 0 auto 24px; }
.note-sm { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }
.socials--dark { justify-content: center; }
.socials--dark a { background: var(--ink); }
.footer__addr { color: #A8968A; }
.person__img { border: 0; padding: 0; width: 100%; cursor: zoom-in; display: block; }
@media (max-width: 640px) {
  .rf-lockup { height: 32px; }
  .lang-btn { height: 38px; min-width: 42px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .page-hero__deco { animation: none; } }

/* ============ QA: адаптив ============ */
/* Елементи сітки не повинні розпирати колонку своїм вмістом */
.hero__grid > *, .split > *, .donate > *, .test > *, .post-body > *, .psy > *, .section-head > *, .footer__top > *, .stats > *, .paths > *, .groups > *, .news > *, .team > *, .contact-grid > *, .directions > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
.hero h1 { font-size: clamp(27px, 6.2vw, 88px); }
@media (max-width: 920px) { .hero h1 { font-size: clamp(27px, 9vw, 72px); } }
.page-hero h1 { font-size: clamp(27px, 5.4vw, 76px); }
@media (max-width: 920px) { .page-hero h1 { font-size: clamp(27px, 7.4vw, 56px); } }
.q legend { flex-wrap: nowrap; min-width: 0; }
.opt > span:nth-child(3) { min-width: 0; }
/* Довгі українські слова в заголовках переносимо по складах */
h1, h2, .group-card h3, .post-card h3, .psy h3 { hyphens: auto; -webkit-hyphens: auto; }
.split-line > span { max-width: 100%; }
.q fieldset { min-width: 0; }
.q legend { width: 100%; max-width: 100%; float: left; } .q legend + * { clear: both; } .q fieldset > .opt:first-of-type { clear: both; }
img { height: auto; }

/* ============ QA: планшет і телефон ============ */
@media (max-width: 920px) {
  .groups--big .group-card:first-child { grid-column: 1 / -1; grid-row: auto; }
  .groups--big .group-card:first-child .group-card__img { aspect-ratio: 16 / 8; min-height: 0; flex: none; }
  .groups--big .group-card:first-child h3 { font-size: 24px; }
  .test-panel { order: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
  .test-mini { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--ink); color: #F6EDE3; text-decoration: none; font-size: 14px; box-shadow: var(--shadow-lg); }
  .test-mini__bar { flex: 0 0 64px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; }
  .test-mini__bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .4s var(--ease); }
  .test-mini b { margin-left: auto; color: var(--orange); font-weight: 700; white-space: nowrap; }
  .test-mini ~ .to-top, body:has(.test-mini) .to-top { bottom: 84px; }
  .test form { padding-bottom: 8px; }
}
@media (min-width: 921px) { .test-mini { display: none; } }
@media (max-width: 400px) { .test-mini { gap: 8px; padding: 10px 12px; font-size: 13px; left: 8px; right: 8px; } .test-mini__bar { flex-basis: 36px; } .test-mini > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ============ Без JS (боти, агенти, режим читання): усе видно одразу ============ */
html:not(.js) .preloader { display: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }
html:not(.js) .split-line > span { transform: none; }
html:not(.js) .hero__img--a, html:not(.js) .hero__img--b { clip-path: none; }
html:not(.js) .hero__img img { transform: none; }
html:not(.js) .hero__badge { opacity: 1; transform: rotate(-3deg); }
html:not(.js) .mend-line path { stroke-dashoffset: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
form.search__field { margin: 0; }

/* Кегль головного заголовка залежить від ширини колонки: найдовше слово «Відбудовувати.» ≈ 9.3em */
.hero__grid > div:first-child { container-type: inline-size; }
.hero h1 { font-size: clamp(27px, 10.3cqi, 92px); }

/* ============ Шлях користувача ============ */
.header__donate { box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 1180px) { .header__donate { display: none; } }
.hero__free { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.hero__free a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); }

/* Кризова допомога: тепло, помітно, без паніки */
.crisis { border-radius: var(--r-lg); background: #FCE9E2; padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; }
.crisis__head { display: flex; align-items: center; gap: 12px; }
.crisis__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ember); flex: none; box-shadow: 0 0 0 6px rgba(211,35,0,.12); }
.crisis p { margin: 0; color: var(--ink-2); max-width: 46.55em; }
.crisis__lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crisis__lines a { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r); background: var(--card); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; min-width: 0; }
.crisis__lines a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.crisis__lines b { font: 600 22px/1.1 var(--f-display); letter-spacing: -.02em; color: var(--ember); }
.crisis__lines span { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.crisis--compact { padding: 18px 22px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
.crisis--compact .crisis__lines b { font-size: 18px; }
@media (max-width: 920px) { .crisis__lines { grid-template-columns: minmax(0, 1fr); } .crisis--compact { grid-template-columns: minmax(0, 1fr); } }

/* Кроки */
.steps { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.sticky-card .steps { padding: 0; box-shadow: none; background: none; margin: 4px 0 14px; }
.steps h3 { font-size: 20px; margin-bottom: 14px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; }
.steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font: 700 14px var(--f-body); }

/* Підбір за ситуацією */
.situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.situation { border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; transition: box-shadow .3s, transform .3s var(--ease); min-width: 0; }
.situation:hover { box-shadow: 0 0 0 2px var(--orange); transform: translateY(-2px); }
.situation__main { display: grid; gap: 6px; padding: 18px 20px 14px; text-decoration: none; }
.situation__q { font: 600 17px/1.3 var(--f-display); letter-spacing: -.015em; }
.situation__a { font-size: 14.5px; color: var(--ink-2); font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.situation__a i { font-style: normal; color: var(--ember); margin-left: auto; }
.situation__alt { padding: 0 20px 16px; font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.situation__alt:hover { color: var(--ember); }
@media (max-width: 760px) { .situations { grid-template-columns: minmax(0, 1fr); } }

/* Питання-відповіді */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-weight: 700; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--orange); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.faq a { color: var(--ember); font-weight: 700; }

/* Сторінка пожертв */
.donate--page { align-items: start; }
.req--light { background: var(--line); }
.req--light > div { background: var(--card); }
.req--light small { color: var(--muted); }
.req--light b { color: var(--ink); }
.req--light .copy { background: var(--bg-2); color: var(--ink); }
.req--light .copy:hover { background: var(--orange); }

/* Спокійніший рух: без автопрокрутки та обертання */
.photo-strip { animation: none; overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 10px; scrollbar-width: thin; }
.photo-strip img { scroll-snap-align: start; flex: none; }
.strip-wrap { mask-image: none; -webkit-mask-image: none; }
.hero__orbit { animation: none; }
/* Шапка: без переносів, «Підтримати» лише на широких екранах */
.nav__link, .header__cta, .header__donate { white-space: nowrap; }
.nav { margin-left: 18px; }
.nav__link { padding: 0 11px; }
@media (max-width: 1440px) { .header__donate { display: none; } }
.header__inner { gap: 14px; }
.nav { margin-left: 10px; }
.nav__link { padding: 0 9px; }
@media (max-width: 1260px) { .nav { display: none; } .burger { display: block; } }
.header .rf-lockup { height: 36px; } @media (max-width: 640px) { .header .rf-lockup { height: 32px; } }

/* ===== Нові блоки контенту: розклад, відгуки, цінності, партнери ===== */
.group-card__tag--check { background: rgba(35,35,35,.82); color: #F6EDE3; }
.notice--warm { background: var(--orange-soft); margin: 0 0 16px; }
.team--plain { grid-template-columns: repeat(4, 1fr); }
.c-card i svg[style*="fill"] { stroke: none; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border: solid var(--ember); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.schedule { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.schedule__day { background: var(--card); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.schedule__day > b { font: 600 15px/1.2 var(--f-display); letter-spacing: -.01em; padding-bottom: 10px; border-bottom: 2px solid var(--orange); }
.schedule__day a { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 10px 12px; border-radius: 14px; background: var(--orange-soft); font-weight: 600; font-size: 14.5px; line-height: 1.3; transition: background .25s, color .25s; }
.schedule__day a span { font: 600 13px/1 var(--f-display); color: var(--ember); }
.schedule__day a:hover { background: var(--ink); color: #F6EDE3; }
.schedule__day a:hover span { color: var(--orange); }
.schedule__day a.schedule__extra { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.schedule__day em { color: var(--muted); font-style: normal; }
.schedule__day.is-today { box-shadow: 0 0 0 2px var(--orange), var(--shadow); }
.schedule__day > b small { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #F6EDE3; font: 600 11px/1 var(--f-body); letter-spacing: .02em; vertical-align: 2px; }
.crisis { scroll-margin-top: calc(var(--header-h) + 24px); }
.testimonials { columns: 3 300px; column-gap: 18px; }
.quote { break-inside: avoid; margin: 0 0 18px; padding: 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); position: relative; }
.quote::before { content: "“"; font: 700 64px/0.6 var(--f-display); color: var(--orange); display: block; height: 30px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.quote figcaption { margin-top: 18px; font-weight: 700; font-size: 15px; }
.quote figcaption::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--ember); vertical-align: middle; margin-right: 10px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; counter-reset: val; }
.values li { counter-increment: val; padding: 20px 22px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; line-height: 1.4; }
.values li::before { content: "0" counter(val); display: block; font: 600 13px/1 var(--f-display); color: var(--ember); margin-bottom: 12px; }
.partners { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partners li { padding: 12px 18px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 600; }
@media (max-width: 1024px) {
  .schedule { grid-template-columns: repeat(3, 1fr); }
  .team--plain { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .schedule { grid-template-columns: 1fr; }
  .team--plain { grid-template-columns: repeat(2, 1fr); }
  .quote { padding: 22px; }
}

/* Програми тренінгів */
.programs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.program { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.program h3 { font: 600 22px/1.2 var(--f-display); letter-spacing: -.02em; }
.program .checklist { margin: 4px 0 8px; }
.program--open { box-shadow: 0 0 0 2px var(--orange), var(--shadow); }
.program__status { align-self: flex-start; font: 600 12px/1 var(--f-body); letter-spacing: .02em; padding: 7px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.program--open .program__status { background: var(--orange); color: var(--ink); }
.program__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* Нижня панель дій на телефоні */
.m-bar { display: none; }
@media (max-width: 640px) {
  .m-bar:not([hidden]) { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 75; display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: rgba(35, 35, 35, .94); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); transition: transform .4s var(--ease), opacity .4s; }
  .m-bar__main { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 15px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
  .m-bar__call { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 48px; border-radius: 15px; color: #F6EDE3; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(246, 237, 227, .28); }
  .m-bar__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
  body.has-mbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  body.has-mbar .to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.has-mbar .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body.is-locked .m-bar { transform: translateY(140%); opacity: 0; pointer-events: none; }
}

/* Фото авторів відгуків */
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote__ava { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--orange-soft); }
.quote__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote figcaption:has(.quote__ava)::before { display: none; }

/* Мотив «Лінія відновлення» у шапках внутрішніх сторінок */
.page-hero .mend-line { height: 120px; }
.page-hero .mend-line path { opacity: .35; stroke-width: 2; }
.page-hero > .container { position: relative; z-index: 1; }

/* ===== Найближчі події, команда без фото ===== */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.event { display: flex; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.event__date { flex: none; width: 72px; height: 80px; border-radius: 20px; background: var(--orange); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event__date b { font: 600 30px/1 var(--f-display); }
.event__date span { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.event__body h3 { font-size: 19px; letter-spacing: -.015em; }
.event__body p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.event__meta { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--muted); }
.events-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.events-empty p { margin: 0; max-width: 39.90em; color: var(--ink-2); }
.person__img--initials { display: grid; place-items: center; background: linear-gradient(150deg, var(--orange-soft), var(--bg-2)); cursor: default; }
.person__img--initials span { font: 600 clamp(36px, 5vw, 56px)/1 var(--f-display); color: var(--ember); letter-spacing: -.03em; }
.footer__bottom a { color: inherit; }
@media (max-width: 640px) { .event { padding: 18px; gap: 14px; } .event__date { width: 60px; height: 68px; } }

/* ===== Виправлення за ручним QA (22.10.2026) ===== */
.ic-fill { fill: currentColor; }
/* QA-03: кризові номери на першому екрані */
.hero__crisis { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }
.hero__crisis a { font-weight: 800; color: var(--ember); text-decoration: none; border-bottom: 2px solid currentColor; }
.hero__crisis span { color: var(--muted); font-size: 13.5px; }
/* QA-07: попередження в тесті */
.q-alert { margin: 14px 0 0; background: #FCE3DC; }
.test-alert { margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: #FCE3DC; color: var(--ink); font-size: 15px; line-height: 1.45; }
.test-alert a { color: var(--ember); font-weight: 800; }
/* QA-22: контраст дрібного тексту */
:root { --muted: #6B5D54; }
.footer h4 { color: #A39385; }
.schedule__day a span { color: #B81E00; }
/* QA-15: політика конфіденційності — окремий рядок із зручною зоною натискання */
.footer__privacy { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
/* QA-16: коротша поява, без довгих затримок */
[data-reveal] { transition-duration: .5s; transition-delay: calc(var(--d, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } }
h1[tabindex="-1"]:focus { outline: none; }
/* QA-08: кнопка «Нагору» на телефоні менша й не над нижньою панеллю */
@media (max-width: 640px) {
  .to-top { width: 42px; height: 42px; right: 14px; font-size: 17px; }
  body.has-mbar .to-top { display: none; }
}
/* QA-18: нижня панель запису й на планшеті */
@media (min-width: 641px) and (max-width: 1024px) {
  .m-bar:not([hidden]) { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(520px, calc(100% - 28px)); transform: translateX(-50%); z-index: 75; display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: rgba(35, 35, 35, .94); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
  .m-bar__main { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 15px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
  .m-bar__call { display: flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 48px; border-radius: 15px; color: #F6EDE3; font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
  .m-bar__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
  body.has-mbar { padding-bottom: 84px; }
  body.has-mbar .to-top { bottom: 90px; }
  body.is-locked .m-bar { opacity: 0; pointer-events: none; }
}

/* ===== Виправлення за QA на проді (22.10.2026) ===== */
/* QA-24: головна кнопка нижньої панелі — по центру, ширша за «Подзвонити» */
.m-bar__main { padding: 0 12px; text-align: center; line-height: 1.15; min-width: 0; }
.m-bar__call { flex: 0 0 auto; }
@media (max-width: 400px) {
  .m-bar__call { padding: 0 14px; }
  .m-bar__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) { .m-bar__main { font-size: 14px; } }
/* QA-25: контраст рядка копірайту */
.footer__bottom { color: #B3A498; }

/* ===== Швидкодія (QA-30…QA-33, 22.10.2026) ===== */
/* QA-33: короткий перехід без розмиття всієї сторінки */
main.is-leaving { animation: leave .1s linear forwards; }
main.is-entering { animation: enter .3s var(--ease) both; }
@keyframes leave { to { opacity: 0; } }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* QA-32: на телефонах і планшетах — без дорогих ефектів */
@media (max-width: 1024px) {
  .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251,246,239,.97); }
  .m-bar:not([hidden]) { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #232323 !important; }
  .group-card__tag { backdrop-filter: none; }
  .search { backdrop-filter: none; background: rgba(31,22,18,.6); }
  .hero__orbit, .page-hero__deco, .marquee__track { animation: none !important; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .mend-line { display: none; }
  /* головне фото героя видно одразу — воно і є «головним контентом» для Google */
  .hero__img--a, .hero__img--b { clip-path: none !important; transition: none !important; }
  .hero__img img { transform: none !important; transition: none !important; }
}
/* нескінченні стрічки зупиняються, коли їх не видно */
.is-offscreen, .is-offscreen * { animation-play-state: paused !important; }
