/* =========================================================
   Mindspace — дизайн-система
   Палітра і шрифти — з ТЗ. Мотиви з референсу (milkhoneyla.com), перекладені на спокійну мову:
   великі серифні заголовки, тонкі лінії сітки, римські номери розділів збоку, текст, що «наповнюється» скролом.
   ========================================================= */
:root {
  --paper: #F7F5EF;
  --sage: #8C9C87;
  --mist: #DCE4D8;
  --sand: #D6B69C;
  --ink: #29352E;
  --sage-d: #56654F;            /* текстовий шавлієвий: контраст 5.6:1 на папері */
  --sand-d: #8A6446;            /* текстовий пісочний */
  --ink-70: rgba(41, 53, 46, .72);
  --line: rgba(41, 53, 46, .13);
  --line-d: rgba(247, 245, 239, .14);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1360px;
  --sec: clamp(76px, 9vw, 128px);
  --header: 72px;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.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; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Сітка і тонкі лінії (з референсу) ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.lines { position: relative; }
.lines::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; pointer-events: none; z-index: 0;
  max-width: var(--max); margin: 0 auto;
  background:
    linear-gradient(var(--lc, var(--line)), var(--lc, var(--line))) calc(var(--pad) + (100% - 2 * var(--pad)) * .25) 0 / 1px 100% no-repeat,
    linear-gradient(var(--lc, var(--line)), var(--lc, var(--line))) calc(var(--pad) + (100% - 2 * var(--pad)) * .5) 0 / 1px 100% no-repeat,
    linear-gradient(var(--lc, var(--line)), var(--lc, var(--line))) calc(var(--pad) + (100% - 2 * var(--pad)) * .75) 0 / 1px 100% no-repeat;
  opacity: .7;
}
.lines > * { position: relative; z-index: 1; }
.sec { padding-block: var(--sec); }
.dark { background: var(--ink); color: var(--paper); --lc: var(--line-d); }
.mist { background: var(--mist); }
.paper-2 { background: #EFECE3; }

/* ---------- Типографіка ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-d); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--sand); }
.h1 { font-size: clamp(2.9rem, 6.2vw, 6.4rem); line-height: 1.02; letter-spacing: -.025em; }
.h2 { font-size: clamp(2.2rem, 4.4vw, 4.1rem); line-height: 1.06; letter-spacing: -.02em; }
.h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); line-height: 1.2; }
.h1 em, .h2 em, .h3 em { color: var(--sage-d); }
.dark .h2 em, .dark .h1 em { color: var(--sand); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.65; color: var(--ink-70); max-width: 56ch; }
.dark .lead { color: rgba(247, 245, 239, .78); }
.muted { color: var(--ink-70); }
.small { font-size: .88rem; }
.giant { font-family: var(--serif); font-weight: 400; text-transform: uppercase; font-size: clamp(3.6rem, 15.5vw, 16.5rem); line-height: .82; letter-spacing: -.04em; white-space: nowrap; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .lead { margin: 0; }

/* ---------- Кнопки ---------- */
.btn { --bg: var(--ink); --fg: var(--paper); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border: 1px solid var(--bg); border-radius: 999px; background: var(--bg); color: var(--fg); font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease), transform .3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sage-d); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn .arr { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light::before { background: var(--sand); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost::before { background: var(--mist); }
.dark .btn--ghost { --fg: var(--paper); border-color: var(--line-d); }
.dark .btn--ghost::before { background: rgba(247, 245, 239, .1); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .35s var(--ease), color .3s; }
.link:hover { gap: 13px; color: var(--sage-d); }
.dark .link:hover { color: var(--sand); }

/* ---------- Шапка: логотип · навігація · блок-кнопка (як «Contact» у референсі) ---------- */
.header { position: sticky; top: 0; z-index: 60; height: var(--header); background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .4s; }
.header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(41, 53, 46, .45); }
.header__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: none; padding-right: 0; }
.logo { display: inline-flex; align-items: baseline; gap: 2px; font: 500 1.55rem/1 var(--serif); letter-spacing: -.02em; text-decoration: none; justify-self: start; }
.logo i { color: var(--sage-d); }
.logo__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); margin-left: 3px; transform: translateY(-2px); }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__end { justify-self: end; display: flex; align-items: stretch; height: 100%; }
.header__cta { display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 clamp(22px, 3vw, 40px); background: var(--mist); text-decoration: none; font-weight: 600; font-size: .95rem; border-left: 1px solid var(--line); transition: background .45s var(--ease), color .45s var(--ease); }
.header__cta:hover { background: var(--ink); color: var(--paper); }
.header__cta .arr { transition: transform .45s var(--ease); }
.header__cta:hover .arr { transform: translateX(4px); }
.burger { display: none; width: var(--header); height: 100%; border: 0; border-left: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 50%; width: 22px; height: 1.5px; background: var(--ink); transform: translateX(-50%); transition: transform .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: calc(50% - 4px); }
.burger span:nth-child(2) { top: calc(50% + 4px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -4px) rotate(-45deg); }

/* Мобільне меню: плавне відкриття з каскадом пунктів */
.menu { position: fixed; inset: var(--header) 0 0 0; z-index: 55; background: var(--paper); padding: 28px var(--pad) 32px; display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s; }
.menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s; }
.menu a.menu__link { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 clamp(1.9rem, 8vw, 2.6rem)/1.1 var(--serif); text-decoration: none; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu a.menu__link small { font: 600 .75rem var(--sans); color: var(--sage-d); letter-spacing: .1em; }
.menu.is-open a.menu__link { opacity: 1; transform: none; transition-delay: calc(var(--i) * 45ms + 80ms); }
.menu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.menu__foot .btn { width: 100%; }

/* ---------- Римські номери розділів збоку (з референсу) ---------- */
.rail { position: fixed; left: 0; top: var(--header); bottom: 0; width: 56px; z-index: 40; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 22px; border-right: 1px solid var(--line); background: var(--paper); transition: background .5s var(--ease), border-color .5s; }
.rail a { position: relative; font: 500 .72rem/1 var(--serif); letter-spacing: .06em; color: var(--sage); text-decoration: none; padding: 4px 6px; transition: color .3s; }
.rail a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.rail a.is-active { color: var(--ink); }
.rail a.is-active::after { transform: scaleX(1); }
.rail a:hover { color: var(--ink); }
.rail__bar { position: absolute; left: -1px; top: 0; width: 1px; background: var(--ink); height: var(--rail-p, 0%); transition: height .2s linear; }
.rail.on-dark { background: var(--ink); border-color: var(--line-d); }
.rail.on-dark a { color: rgba(247, 245, 239, .45); }
.rail.on-dark a.is-active, .rail.on-dark a:hover { color: var(--paper); }
.rail.on-dark .rail__bar { background: var(--sand); }
@media (min-width: 1200px) { .has-rail .rail { display: flex; } .has-rail main, .has-rail .footer { margin-left: 56px; } }

/* ---------- Поява ---------- */
/* Перший екран — лише CSS-анімація (не залежить від IntersectionObserver) */
.rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Фото відкриваються «шторкою» знизу і злегка зменшуються.
   Обрізаємо саме <img>, а не рамку: IntersectionObserver у Chrome не бачить елемент, повністю обрізаний clip-path */
.js .reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); }
.js .reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-block: clamp(36px, 5vw, 64px) clamp(60px, 8vw, 110px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { padding-top: clamp(10px, 3vw, 40px); }
.hero h1 { margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin: 36px 0 34px; }
.slot { display: inline-grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 18px 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .55); text-decoration: none; max-width: 100%; transition: border-color .4s, background .4s, transform .4s var(--ease); }
.slot:hover { border-color: var(--sage); background: #fff; transform: translateY(-2px); }
.slot__dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: #5f8a5a; box-shadow: 0 0 0 0 rgba(95, 138, 90, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 138, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 138, 90, 0); } }
.slot__k { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-d); }
.slot__v { grid-column: 2; font: 500 1.12rem/1.3 var(--serif); }
.slot__go { grid-row: 1 / span 2; grid-column: 3; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.slot.is-loading .slot__v { color: transparent; background: linear-gradient(90deg, var(--mist), #eef2ea, var(--mist)); background-size: 200% 100%; border-radius: 6px; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.trust { display: flex; flex-wrap: wrap; gap: 14px 38px; padding-top: 30px; margin-top: 8px; border-top: 1px solid var(--line); }
.trust div { display: grid; gap: 2px; }
.trust b { font: 400 clamp(1.9rem, 2.6vw, 2.4rem)/1 var(--serif); letter-spacing: -.02em; }
.trust span { font-size: .86rem; color: var(--ink-70); }

.arch { position: relative; justify-self: end; width: min(100%, 520px); }
.arch__img { --r: 999px 999px 28px 28px; position: relative; aspect-ratio: 4 / 5.3; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--mist); }
.arch__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch__ring { position: absolute; inset: -18px -18px auto; aspect-ratio: 4 / 5.3; border: 1px solid var(--sage); border-radius: 999px 999px 40px 40px; opacity: .45; pointer-events: none; }
.arch__badge { position: absolute; left: clamp(-34px, -2.4vw, -12px); bottom: 34px; z-index: 2; background: var(--sand); color: var(--ink); padding: 16px 20px; border-radius: 18px; box-shadow: 0 20px 40px -24px rgba(41, 53, 46, .55); }
.arch__badge b { display: block; font: 500 1.25rem/1.1 var(--serif); }
.arch__badge span { font-size: .85rem; }
.arch__stamp { position: absolute; right: -14px; top: 18%; z-index: 2; width: 118px; height: 118px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 18px 40px -26px rgba(41, 53, 46, .6); text-decoration: none; }
.arch__stamp svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 26s linear infinite; }
.arch__stamp text { font: 600 9.6px var(--sans); letter-spacing: .22em; text-transform: uppercase; fill: var(--ink); }
.arch__stamp i { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; color: var(--paper); font-style: normal; transition: transform .5s var(--ease), background .4s; }
.arch__stamp:hover i { transform: scale(1.15); background: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .blob { position: absolute; z-index: 0; width: 46vw; max-width: 640px; aspect-ratio: 1; right: -8vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--mist), transparent 68%); pointer-events: none; }

/* ---------- Заява: текст «наповнюється» скролом (з референсу) ---------- */
.statement { padding-block: clamp(40px, 5vw, 70px) clamp(90px, 11vw, 150px); }
.statement__giant { color: var(--mist); margin: 0 0 clamp(26px, 4vw, 48px) -.04em; user-select: none; }
.statement__text { font: 400 clamp(1.75rem, 3.5vw, 3.3rem)/1.22 var(--serif); letter-spacing: -.015em; max-width: 26ch; margin: 0; }
.statement__text .w { color: rgba(41, 53, 46, var(--o, .16)); transition: color .25s linear; }
.statement__text em .w { color: rgba(86, 101, 79, var(--o, .16)); }
.statement__sign { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.statement__sign img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.statement__sign b { display: block; font: 500 1.05rem var(--serif); }
.statement__sign span { font-size: .88rem; color: var(--ink-70); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: end; }
.facts { display: grid; gap: 26px; border-left: 1px solid var(--line); padding-left: 28px; }
.facts b { display: block; font: 400 clamp(2.4rem, 3.6vw, 3.4rem)/1 var(--serif); letter-spacing: -.03em; }
.facts > div > span { font-size: .9rem; color: var(--ink-70); }
.facts b .odo { height: 1em; }

/* Лічильник-одометр: цифри прокручуються */
.odo { font-variant-numeric: tabular-nums lining-nums; display: inline-flex; overflow: hidden; height: 1em; line-height: 1; vertical-align: bottom; }
.odo__d { display: inline-flex; flex-direction: column; transition: transform 1.8s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.odo__d span { height: 1em; }

/* ---------- Напрямки роботи (як «ростер» у референсі) ---------- */
.dirs__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-d); }
.dir { border-bottom: 1px solid var(--line-d); }
.dir__btn { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: clamp(14px, 1.8vw, 22px) 0; background: none; border: 0; text-align: left; cursor: pointer; color: rgba(247, 245, 239, .38); transition: color .45s var(--ease); }
.dir__btn small { font: 500 .8rem var(--sans); letter-spacing: .1em; }
.dir__btn span { font: 400 clamp(2rem, 4.6vw, 4.3rem)/1.05 var(--serif); letter-spacing: -.02em; transition: transform .6s var(--ease); }
.dir__btn i { font-style: normal; font-size: 1.4rem; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease); }
.dir__btn:hover, .dir.is-active .dir__btn { color: var(--paper); }
.dir.is-active .dir__btn span { transform: translateX(10px); }
.dir.is-active .dir__btn i, .dir__btn:hover i { opacity: 1; transform: none; color: var(--sand); }
.dir__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.dir__panel > div { overflow: hidden; }
.dir.is-active .dir__panel { grid-template-rows: 1fr; }
.dir__body { display: grid; gap: 18px; padding: 4px 0 26px 68px; }
.dir__body img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; }
.dir__body h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; color: var(--sand); margin-bottom: 6px; }
.dir__body p { color: rgba(247, 245, 239, .8); margin: 0; }
.dir__cols { display: grid; gap: 18px; }
@media (min-width: 980px) {
  .dirs__wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 72px; min-height: 640px; }
  .dir__panel { position: absolute; right: 0; top: 0; width: calc((100% - 72px) * .82 / 1.82); display: block; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
  .dir.is-active .dir__panel { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .7s var(--ease) .1s, visibility 0s; }
  .dir__body { padding: 0; }
  .dir__body img { aspect-ratio: 4 / 3.1; }
  .dir__cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* ---------- Про психолога ---------- */
.about__name { font-size: clamp(3rem, 9.6vw, 10.5rem); line-height: .9; letter-spacing: -.035em; margin-bottom: clamp(36px, 5vw, 64px); }
.about__name em { color: var(--sage-d); }
.about__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__photo { --r: 26px; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header) + 30px); background: var(--mist); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.quote { font: italic 400 clamp(1.5rem, 2.5vw, 2.15rem)/1.32 var(--serif); margin: 0 0 40px; padding-left: 26px; border-left: 2px solid var(--sand); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cols3 > div { padding: 26px 26px 26px 0; }
.cols3 > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.cols3 h3 { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage-d); margin-bottom: 14px; }
.cols3 ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .96rem; }
.cols3 li small { display: block; color: var(--ink-70); font-size: .84rem; }
.demo-note { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--sand-d); background: rgba(214, 182, 156, .22); padding: 5px 11px; border-radius: 999px; }
.dark .demo-note { color: var(--sand); background: rgba(214, 182, 156, .14); }

/* ---------- Послуги ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 28px; border-left: 1px solid var(--line); transition: background .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.service:first-child { border-left: 0; }
.service:hover { background: #fff; transform: translateY(-6px); box-shadow: 0 26px 50px -34px rgba(41, 53, 46, .45); z-index: 1; }
.service__tag { align-self: flex-start; font-size: .76rem; font-weight: 700; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; background: var(--mist); }
.service--accent .service__tag { background: var(--sand); }
.service h3 { font-size: clamp(1.4rem, 1.8vw, 1.7rem); }
.service p { font-size: .95rem; color: var(--ink-70); margin: 0; flex: 1; }
.service__meta { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-70); padding-top: 16px; border-top: 1px dashed var(--line); }
.service__price b { font: 400 2.2rem/1 var(--serif); letter-spacing: -.02em; }
.service__price small { font: 500 .95rem var(--sans); color: var(--ink-70); margin-left: 4px; }
.service .btn { width: 100%; }
.note { margin-top: 18px; font-size: .86rem; color: var(--ink-70); }

/* ---------- Як це працює ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 0 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line-d); }
.step__n { font: italic 400 clamp(4rem, 7vw, 6.5rem)/.9 var(--serif); color: var(--sand); display: block; margin-bottom: 26px; }
.step h3 { margin-bottom: 12px; }
.step p { color: rgba(247, 245, 239, .76); margin: 0; }
.steps-cta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: clamp(48px, 6vw, 72px); padding-top: 34px; border-top: 1px solid var(--line-d); }

/* ---------- Відгуки ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 22px; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.review:nth-child(2) { background: var(--mist); border-color: transparent; transform: translateY(28px); }
.review blockquote { margin: 0; font: italic 400 1.2rem/1.5 var(--serif); flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.review footer b { display: block; }
.review footer span { color: var(--ink-70); font-size: .84rem; }
.ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font: 500 1rem var(--serif); flex: none; }
.stars { color: var(--sand-d); letter-spacing: 2px; font-size: .9rem; }

/* ---------- FAQ: плавний акордеон ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header) + 32px); }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item h3 { margin: 0; font-size: inherit; }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; background: none; border: 0; cursor: pointer; text-align: left; font: 500 clamp(1.1rem, 1.5vw, 1.3rem)/1.35 var(--serif); }
.acc__ic { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.acc__ic::before, .acc__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.acc__ic::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__q[aria-expanded="true"] .acc__ic { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(180deg); }
.acc__q[aria-expanded="true"] .acc__ic::after { transform: translate(-50%, -50%) rotate(0); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 60px 24px 0; margin: 0; color: var(--ink-70); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }

/* ---------- Блог ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.post-card { display: flex; flex-direction: column; text-decoration: none; }
.post-card__img { --r: 20px; position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--mist); margin-bottom: 20px; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__meta { display: flex; gap: 12px; font-size: .82rem; color: var(--ink-70); margin-bottom: 10px; }
.post-card__meta b { color: var(--sage-d); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .74rem; }
.post-card h3 { font-size: clamp(1.3rem, 1.7vw, 1.55rem); margin-bottom: 10px; transition: color .3s; }
.post-card:hover h3 { color: var(--sage-d); }
.post-card p { font-size: .95rem; color: var(--ink-70); margin: 0; }

/* ---------- Фінальний заклик і підвал ---------- */
.final { text-align: center; }
.final .h1 { max-width: 15ch; margin: 0 auto 26px; }
.final .lead { margin: 0 auto 38px; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.footer { background: var(--ink); color: var(--paper); --lc: var(--line-d); overflow: clip; }
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(64px, 8vw, 100px) 56px; }
.footer h4 { font: 700 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:not(.btn) { text-decoration: none; color: rgba(247, 245, 239, .82); transition: color .3s; }
.footer a:not(.btn):hover { color: var(--paper); text-decoration: underline; }
.footer__lead { font: 400 1.5rem/1.35 var(--serif); max-width: 22ch; margin-bottom: 22px; }
.footer__word { font: 400 clamp(4rem, 16.6vw, 17rem)/.78 var(--serif); letter-spacing: -.05em; color: rgba(247, 245, 239, .08); text-align: center; white-space: nowrap; margin-bottom: -.04em; user-select: none; overflow: hidden; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; border-top: 1px solid var(--line-d); font-size: .84rem; color: rgba(247, 245, 239, .62); }
.footer__bottom a { color: inherit; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; transition: background .4s, color .4s; }
.socials a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.socials svg { width: 18px; height: 18px; }

/* Демо-позначка (вимога ТЗ: чітко позначені демо-дані) */
.demo-bar { background: var(--ink); color: rgba(247, 245, 239, .85); font-size: .8rem; text-align: center; padding: 8px var(--pad); }
.demo-bar a { color: var(--sand); }

/* Липка кнопка запису на телефоні */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; transform: translateY(140%); transition: transform .6s var(--ease); }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 18px 40px -16px rgba(41, 53, 46, .6); }

/* ---------- Внутрішні сторінки ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--ink-70); margin-bottom: 30px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose { max-width: 68ch; font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 1.8em 0 .6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { font-weight: 700; }
.prose em { color: var(--ink-70); }

/* ---------- Адаптивність ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { border-left: 0; }
  .service:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header: 64px; }
  .nav { display: none; }
  .burger { display: block; }
  .header__in { grid-template-columns: 1fr auto; }
  .header__cta { padding: 0 18px; font-size: .9rem; }
  .hero__grid, .about__grid, .faq, .statement__grid { grid-template-columns: 1fr; }
  .arch { justify-self: center; width: min(100%, 460px); margin-top: 12px; }
  .about__photo { position: relative; top: 0; max-width: 520px; }
  .faq__head { position: static; }
  .sec-head { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .steps, .reviews, .posts { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line-d); }
  .step__n { margin-bottom: 14px; }
  .review:nth-child(2) { transform: none; }
  .cols3 { grid-template-columns: 1fr; }
  .cols3 > div, .cols3 > div + div { padding: 22px 0; border-left: 0; }
  .cols3 > div + div { border-top: 1px solid var(--line); }
  .sticky-cta { display: block; }
  .lines::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__cta .lbl-long { display: none; }
  .services { grid-template-columns: 1fr; }
  .service { border-left: 0 !important; border-top: 1px solid var(--line); }
  .service:first-child { border-top: 0; }
  .service:hover { transform: none; }
  .hero__actions .btn { width: 100%; }
  .slot { width: 100%; }
  .arch__badge { left: 10px; bottom: 16px; padding: 12px 14px; }
  .arch__stamp { width: 92px; height: 92px; right: 4px; }
  .arch__stamp text { font-size: 7.6px; }
  .arch__ring { inset: -10px -10px auto; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .facts > div { display: flex; align-items: baseline; gap: 14px; }
  .dir__btn { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .dir__body { padding-left: 0; }
  .acc__a p { padding-right: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .trust { gap: 14px 26px; }
}
@media (min-width: 1700px) { :root { --max: 1520px; } body { font-size: 18px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .reveal-img img { clip-path: none; transform: none; }
  .statement__text .w { --o: 1 !important; }
}

/* Підпис на фото кабінету */
.about__photo { position: sticky; }
.about__cap { position: absolute; left: 16px; bottom: 16px; z-index: 1; background: rgba(247, 245, 239, .92); padding: 7px 13px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
@media (max-width: 980px) { .about__photo { position: relative; } }
