/* =========================================================================
   styles.css — преміум світла тема для сайту таргетолога
   Editorial · minimal luxury · м'які тіні · простір · типографіка
   ========================================================================= */

/* ---------- Змінні ---------- */
:root {
  --accent: #C2693C;
  --accent-soft: rgba(194, 105, 60, 0.12);
  --accent-line: rgba(194, 105, 60, 0.28);

  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface-2: #F4F1EC;
  --ink: #1A1714;
  --ink-2: #43403B;
  --muted: #6E685F;
  --line: rgba(26, 23, 20, 0.08);
  --line-soft: rgba(26, 23, 20, 0.05);

  --shadow-sm: 0 1px 2px rgba(26,23,20,0.04), 0 4px 14px rgba(26,23,20,0.04);
  --shadow-md: 0 4px 12px rgba(26,23,20,0.05), 0 18px 40px rgba(26,23,20,0.06);
  --shadow-lg: 0 10px 30px rgba(26,23,20,0.06), 0 40px 80px rgba(26,23,20,0.09);

  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 32px;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: 'Unbounded', 'Inter', system-ui, sans-serif; /* заголовки (display) */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* більш акцентний режим — насиченіші поверхні */
body[data-mode="accent"] {
  --surface-2: var(--accent-soft);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* фонова картинка (керується з редактора через --bg-image / --bg-image-opacity) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--bg-image, none);
  background-size: cover; background-position: center;
  opacity: var(--bg-image-opacity, 0);
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.16; letter-spacing: -0.02em; }
p { margin: 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;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--accent-line); vertical-align: middle; margin-right: 12px;
  transform: translateY(-2px);
}

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(1.55rem, 3.1vw, 2.4rem); color: var(--ink); }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.section__head--center .section__sub { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 100px;
  padding: 15px 30px;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.005em;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px var(--accent-soft); }
.btn--primary:hover { box-shadow: 0 12px 30px var(--accent-soft); transform: translateY(-1px); }
.btn--lg { padding: 18px 38px; font-size: 1.06rem; }
.btn--ghost { background: transparent; color: var(--ink); padding: 11px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Стилі кнопок для всього проєкту (data-btn на <body>) ----------
   Форма змінюється стилем, КОЛІР завжди береться з акцентного var(--accent). */
body[data-btn="rounded"] .btn { border-radius: 14px; }
body[data-btn="square"] .btn { border-radius: 4px; }
body[data-btn="outline"] .btn--primary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
body[data-btn="outline"] .btn--primary:hover { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 2px var(--accent); transform: translateY(-1px); }
body[data-btn="gradient"] .btn--primary { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #fff), color-mix(in srgb, var(--accent) 78%, #000)); box-shadow: 0 10px 26px var(--accent-soft); }
body[data-btn="soft"] .btn--primary { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
body[data-btn="soft"] .btn--primary:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: none; transform: translateY(-1px); }
body[data-btn="glow"] .btn--primary { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 10px 28px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
body[data-btn="glow"] .btn--primary:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 12px 36px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-1px); }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.brand__mark { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.brand__name { font-family: var(--serif); font-size: 1.12rem; }
.topnav { display: flex; gap: 32px; font-size: 0.95rem; color: var(--ink-2); }
.topnav a { position: relative; padding: 4px 0; }
.topnav a::after { content:""; position:absolute; left:0; bottom:-2px; height:1px; width:0; background:var(--accent); transition: width .4s var(--ease); }
.topnav a:hover::after { width:100%; }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(56px, 8vw, 120px); overflow: clip; }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__content { opacity: var(--hero-fade, 1); transform: translateY(calc(var(--hero-shift, 0px) * 0.2)); }
.hero__title { font-size: clamp(1.95rem, 4.6vw, 3.5rem); max-width: 15ch; font-weight: 500; line-height: 1.12; }
.hero__subtitle { margin-top: 26px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 46ch; }
.hero__actions { margin-top: 38px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero__trust { font-size: 0.92rem; color: var(--muted); max-width: 42ch; }

/* фон героя */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.5; }
.hero__blob--1 { width: 460px; height: 460px; right: -120px; top: -120px; background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%); }
.hero__blob--2 { width: 360px; height: 360px; left: -100px; bottom: -120px; background: radial-gradient(circle at 50% 50%, var(--surface-2), transparent 70%); opacity: 0.8; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 20%, #000 10%, transparent 70%);
  opacity: 0.6;
}
.hero__inner { position: relative; z-index: 1; }

/* карта-дашборд */
/* портрет-композиція */
.hero__panel { position: relative; display: flex; justify-content: center; }
.hero__portrait {
  position: relative; width: 100%; max-width: 460px; aspect-ratio: 4 / 5;
  display: flex; align-items: flex-end; justify-content: center;
  transform: translateY(calc(var(--hero-shift, 0px) * -0.12));
}
.hero__halo {
  position: absolute; inset: 6% 8% 12% 8%; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(60% 60% at 50% 42%, color-mix(in srgb, var(--accent) 22%, var(--surface)) 0%, var(--surface-2) 58%, transparent 75%);
  box-shadow: var(--shadow-lg);
}
.hero__ring {
  position: absolute; inset: 0; border-radius: 50% 50% 46% 46%;
  background: conic-gradient(from 210deg, transparent, var(--accent-soft), transparent 60%);
  opacity: .8; filter: blur(2px);
}
.hero__portrait-img { position: relative; z-index: 2; width: 92%; height: 96%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 30px 40px rgba(26,23,20,0.18)); }
.hero__portrait-ph {
  position: absolute; z-index: 2; inset: 12% 16%; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-md);
  font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); color: var(--accent);
}
/* плаваючі скляні чипи */
.hero__chip {
  position: absolute; z-index: 3; background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: var(--shadow-md);
}
.hero__chip--id { left: -5%; bottom: 7%; padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; }
.hero__chip-name { font-family: var(--serif); font-size: 1.05rem; }
.hero__chip-role { font-size: 0.74rem; color: var(--muted); max-width: 20ch; }
.hero__chip--stats { right: -4%; bottom: 31%; padding: 12px; display: flex; gap: 6px; }
.hero__chip--stats .stat { padding: 8px 12px; background: transparent; text-align: center; gap: 2px; }
.hero__chip--stats .stat + .stat { border-left: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--accent); font-weight: 600; white-space: nowrap; }
.stat__label { font-size: 0.66rem; color: var(--muted); line-height: 1.2; max-width: 9ch; }

/* --- вирівнювання + пропорційний масштаб плаваючих чипів --- */
.hero__chip.is-align-left   { left: -5%; right: auto; transform-origin: left bottom; transform: scale(var(--chip-scale, 1)); }
.hero__chip.is-align-right  { right: -4%; left: auto; transform-origin: right bottom; transform: scale(var(--chip-scale, 1)); }
.hero__chip.is-align-center { left: 50%; right: auto; transform-origin: center bottom; transform: translateX(-50%) scale(var(--chip-scale, 1)); }

/* --- варіанти блоку показників (5 форматів) --- */
.stat__ic { display: grid; place-items: center; }
/* «Скло» — базовий вигляд (.hero__chip--stats) */

/* «Заливка» — суцільний акцентний фон */
.hero__chip--stats.stats--solid { background: var(--accent); }
.hero__chip--stats.stats--solid .stat__value { color: #fff; }
.hero__chip--stats.stats--solid .stat__label { color: rgba(255,255,255,0.82); }
.hero__chip--stats.stats--solid .stat + .stat { border-left-color: rgba(255,255,255,0.28); }

/* «З іконками» — іконка над значенням */
.hero__chip--stats.stats--icons .stat { align-items: center; text-align: center; gap: 3px; }
.hero__chip--stats.stats--icons .stat__ic { width: 22px; height: 22px; color: var(--accent); margin-bottom: 2px; }
.hero__chip--stats.stats--icons .stat__ic svg { width: 100%; height: 100%; }
.hero__chip--stats.stats--icons .stat__label { max-width: 11ch; }

/* «Список» — вертикально, з крапкою-булітом */
.hero__chip--stats.stats--list { flex-direction: column; gap: 0; padding: 12px 16px; align-items: stretch; }
.hero__chip--stats.stats--list .stat { flex-direction: row; align-items: baseline; gap: 9px; padding: 7px 0; text-align: left; }
.hero__chip--stats.stats--list .stat + .stat { border-left: none; border-top: 1px solid var(--line); }
.hero__chip--stats.stats--list .stat__ic { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); align-self: center; flex-shrink: 0; }
.hero__chip--stats.stats--list .stat__label { max-width: none; }

/* «Чистий текст» — без плашки */
.hero__chip--stats.stats--text { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; padding: 4px 6px; gap: 0; }
.hero__chip--stats.stats--text .stat { flex-direction: row; align-items: baseline; gap: 6px; padding: 4px 10px; }
.hero__chip--stats.stats--text .stat + .stat { border-left: 1px solid var(--line); }
.hero__chip--stats.stats--text .stat__value { font-size: 1rem; text-shadow: 0 1px 3px rgba(255,255,255,0.7); }
.hero__chip--stats.stats--text .stat__label { max-width: none; font-size: 0.72rem; text-shadow: 0 1px 3px rgba(255,255,255,0.7); }

/* --- варіанти картки експерта --- */
.hero__chip--id.id--solid { background: var(--accent); }
.hero__chip--id.id--solid .hero__chip-name { color: #fff; }
.hero__chip--id.id--solid .hero__chip-role { color: rgba(255,255,255,0.85); }
.hero__chip--id.id--dark { background: color-mix(in srgb, var(--ink) 90%, transparent); }
.hero__chip--id.id--dark .hero__chip-name { color: #fff; }
.hero__chip--id.id--dark .hero__chip-role { color: rgba(255,255,255,0.72); }
.hero__chip--id.id--line { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-radius: 0; border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.hero__chip--id.id--badge { align-items: flex-start; }
.hero__chip--id.id--badge .hero__chip-role { margin-top: 5px; background: var(--accent-soft); color: var(--accent); padding: 3px 11px; border-radius: 100px; font-weight: 600; max-width: none; }

/* --- діджитал-фон під фото експерта --- */
.hero__portrait { --dg1: var(--accent); --dg2: #E8A06B; }
.hero__portrait[data-portrait-scheme="sunset"] { --dg1: #F0883E; --dg2: #E0518A; }
.hero__portrait[data-portrait-scheme="ocean"]  { --dg1: #2BB3C0; --dg2: #3551A6; }
.hero__portrait[data-portrait-scheme="violet"] { --dg1: #8C5A9E; --dg2: #5B6CC4; }
.hero__portrait[data-portrait-scheme="mono"]   { --dg1: #8A8278; --dg2: #46423C; }
.hero__digital { position: absolute; inset: -4% -3% 4% -3%; z-index: 0; border-radius: 50% 50% 46% 46%; pointer-events: none; opacity: var(--dg-opacity, 0.9); transition: opacity .4s var(--ease); }
.hero__portrait[data-portrait-bg="aurora"] .hero__digital {
  background:
    radial-gradient(48% 44% at 30% 32%, color-mix(in srgb, var(--dg1) 60%, transparent), transparent 70%),
    radial-gradient(46% 46% at 74% 66%, color-mix(in srgb, var(--dg2) 55%, transparent), transparent 72%);
  filter: blur(28px);
}
.hero__portrait[data-portrait-bg="mesh"] .hero__digital {
  background: conic-gradient(from 120deg at 50% 48%, var(--dg1), var(--dg2), var(--dg1));
  filter: blur(36px);
}
.hero__portrait[data-portrait-bg="rings"] .hero__digital {
  background:
    radial-gradient(circle at 50% 46%, transparent 0 calc(30% - var(--ring-t, 1.5) * 0.5%), color-mix(in srgb, var(--dg1) 34%, transparent) calc(30% - var(--ring-t, 1.5) * 0.5%) calc(30% + var(--ring-t, 1.5) * 0.5%), transparent calc(30% + var(--ring-t, 1.5) * 0.5%)),
    radial-gradient(circle at 50% 46%, transparent 0 calc(44% - var(--ring-t, 1.5) * 0.5%), color-mix(in srgb, var(--dg2) 30%, transparent) calc(44% - var(--ring-t, 1.5) * 0.5%) calc(44% + var(--ring-t, 1.5) * 0.5%), transparent calc(44% + var(--ring-t, 1.5) * 0.5%)),
    radial-gradient(circle at 50% 46%, transparent 0 calc(58% - var(--ring-t, 1.5) * 0.5%), color-mix(in srgb, var(--dg1) 24%, transparent) calc(58% - var(--ring-t, 1.5) * 0.5%) calc(58% + var(--ring-t, 1.5) * 0.5%), transparent calc(58% + var(--ring-t, 1.5) * 0.5%));
}
.hero__portrait[data-portrait-bg="grid"] .hero__digital {
  background:
    radial-gradient(58% 54% at 50% 42%, color-mix(in srgb, var(--dg1) 26%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--dg2) 34%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--dg2) 34%, transparent) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
  -webkit-mask-image: radial-gradient(58% 60% at 50% 42%, #000 28%, transparent 72%);
  mask-image: radial-gradient(58% 60% at 50% 42%, #000 28%, transparent 72%);
}
.hero__portrait[data-portrait-bg="glow"] .hero__digital {
  background: radial-gradient(50% 50% at 50% 42%, color-mix(in srgb, var(--dg1) 65%, transparent), color-mix(in srgb, var(--dg2) 26%, transparent) 55%, transparent 76%);
  filter: blur(8px);
}
/* «Хвилі» — мʼякі шари-хвилі */
.hero__portrait[data-portrait-bg="waves"] .hero__digital {
  background:
    radial-gradient(120% 60% at 50% 18%, color-mix(in srgb, var(--dg1) 42%, transparent), transparent 60%),
    radial-gradient(120% 55% at 50% 52%, color-mix(in srgb, var(--dg2) 40%, transparent), transparent 60%),
    radial-gradient(120% 55% at 50% 86%, color-mix(in srgb, var(--dg1) 34%, transparent), transparent 60%);
  filter: blur(10px);
}
/* «Прожектор» — промінь зверху */
.hero__portrait[data-portrait-bg="spotlight"] .hero__digital {
  background:
    radial-gradient(40% 70% at 50% 8%, color-mix(in srgb, var(--dg1) 60%, transparent), transparent 72%),
    conic-gradient(from 180deg at 50% 0%, transparent 78deg, color-mix(in srgb, var(--dg2) 24%, transparent) 90deg, transparent 102deg);
  filter: blur(6px);
}
/* «Крапки» — діджитал-халфтон */
.hero__portrait[data-portrait-bg="dots"] .hero__digital {
  background:
    radial-gradient(58% 54% at 50% 42%, color-mix(in srgb, var(--dg1) 26%, transparent), transparent 70%),
    radial-gradient(color-mix(in srgb, var(--dg2) 60%, transparent) 1.6px, transparent 1.7px);
  background-size: auto, 16px 16px;
  -webkit-mask-image: radial-gradient(60% 62% at 50% 42%, #000 26%, transparent 74%);
  mask-image: radial-gradient(60% 62% at 50% 42%, #000 26%, transparent 74%);
}
/* «Блоби» — органічні обʼємні плями */
.hero__portrait[data-portrait-bg="blobs"] .hero__digital {
  background:
    radial-gradient(36% 30% at 24% 26%, color-mix(in srgb, var(--dg1) 70%, transparent), transparent 68%),
    radial-gradient(40% 34% at 80% 40%, color-mix(in srgb, var(--dg2) 64%, transparent), transparent 70%),
    radial-gradient(34% 32% at 60% 82%, color-mix(in srgb, var(--dg1) 58%, transparent), transparent 70%);
  filter: blur(14px);
}
.hero__portrait[data-portrait-bg="none"] .hero__digital { opacity: 0; }
/* стандартний круглий фон (halo/ring) прибрано назавжди —
   під фото показується лише обраний діджитал-фон (або нічого) */
.hero__halo, .hero__ring { display: none; }

/* --- «плашка» на слові (rich-текст у заголовках) --- */
.hl { background: var(--accent-soft); color: var(--accent); padding: 0 0.35em; border-radius: 7px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* =========================================================================
   СТИЛІ КАРТКОВИХ БЛОКІВ (.bs--*) — застосовуються до секцій
   audience / outcomes / process / services / trust / cases
   ========================================================================= */
/* «Плоский» — мінімалізм, тонка рамка */
.section.bs--flat .card, .section.bs--flat .service, .section.bs--flat .case, .section.bs--flat .step__inner {
  background: transparent; box-shadow: none; border: 1px solid var(--line);
}
/* «3D / обʼєм» — глибока тінь і підйом при наведенні */
.section.bs--elevated .card, .section.bs--elevated .service, .section.bs--elevated .case, .section.bs--elevated .step__inner {
  background: var(--surface); border: 1px solid var(--line-soft);
  box-shadow: 0 2px 6px rgba(26,23,20,0.06), 0 22px 44px rgba(26,23,20,0.16);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.section.bs--elevated .card:hover, .section.bs--elevated .service:hover, .section.bs--elevated .case:hover, .section.bs--elevated .step__inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(26,23,20,0.08), 0 34px 64px rgba(26,23,20,0.22);
}
/* «Скло» — матове скло */
.section.bs--glass .card, .section.bs--glass .service, .section.bs--glass .case, .section.bs--glass .step__inner {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 30px rgba(26,23,20,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
/* «Градієнт» — мʼякий акцентний градієнт */
.section.bs--gradient .card, .section.bs--gradient .service, .section.bs--gradient .case, .section.bs--gradient .step__inner {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 72%);
  border: 1px solid var(--accent-line); box-shadow: var(--shadow-sm);
}
/* «Темний» — темні картки */
.section.bs--dark .card, .section.bs--dark .service, .section.bs--dark .case, .section.bs--dark .step__inner {
  background: var(--ink); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-md);
}
.section.bs--dark .card__title, .section.bs--dark .service__title, .section.bs--dark .step__title { color: #fff; }
.section.bs--dark .card__text, .section.bs--dark .service__text, .section.bs--dark .case__text, .section.bs--dark .step__text { color: rgba(255,255,255,0.7); }
.section.bs--dark .card__index, .section.bs--dark .case__metric, .section.bs--dark .case__label, .section.bs--dark .service__price, .section.bs--dark .step__num { color: color-mix(in srgb, var(--accent) 72%, #fff); }
.section.bs--dark .service__cta { color: #fff; }
/* «Контур» — жирна рамка без заливки */
.section.bs--outline .card, .section.bs--outline .service, .section.bs--outline .case, .section.bs--outline .step__inner {
  background: transparent; box-shadow: none; border: 2px solid var(--ink); border-radius: var(--radius);
}
/* «Неоморфізм» — мʼякі обʼємні тіні на фоні */
.section.bs--neumorph .card, .section.bs--neumorph .service, .section.bs--neumorph .case, .section.bs--neumorph .step__inner {
  background: var(--bg); border: none;
  box-shadow: 8px 8px 18px rgba(26,23,20,0.10), -8px -8px 18px rgba(255,255,255,0.85);
}

/* ---------- КВІЗ ---------- */
.quiz { background: linear-gradient(180deg, var(--bg), var(--surface-2) 60%, var(--bg)); }
.quiz-card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(26px, 4vw, 52px);
  max-width: 760px; margin: 0 auto; position: relative; overflow: hidden;
}
.quiz-card::before {
  content:""; position:absolute; left:0; top:0; height:3px; width:100%;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .7;
}
.quiz-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.quiz-progress__label { font-size: 0.82rem; color: var(--muted); white-space: nowrap; font-weight: 600; letter-spacing: 0.03em; }
.quiz-progress__bar { flex: 1; height: 5px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.quiz-progress__fill { height: 100%; width: 12%; background: var(--accent); border-radius: 100px; transition: width .5s var(--ease); }

.quiz-steps { position: relative; }
.quiz-step { display: none; animation: quizIn .5s var(--ease); }
.quiz-step.is-active { display: block; }
@keyframes quizIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.quiz-step__count { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.quiz-step__q { font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin-top: 10px; margin-bottom: 26px; }
.quiz-step__hint { color: var(--muted); margin-top: 12px; margin-bottom: 26px; }

.quiz-options { display: grid; gap: 12px; }
.quiz-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; background: var(--surface-2); border: none;
  border-radius: var(--radius-sm); padding: 18px 22px;
  font-size: 1.04rem; color: var(--ink); font-weight: 500;
  transition: background-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quiz-option:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--accent-soft)); }
.quiz-option__mark { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); flex-shrink: 0; transition: box-shadow .3s var(--ease), background-color .3s var(--ease); position: relative; }
.quiz-option.is-selected { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.quiz-option.is-selected .quiz-option__mark { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.quiz-option.is-selected .quiz-option__mark::after { content:""; position:absolute; inset:0; margin:auto; width:7px; height:7px; border-radius:50%; background:#fff; }
.quiz-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.quiz-back { background: none; border: none; color: var(--muted); font-size: 0.92rem; margin-top: 22px; padding: 6px 0; transition: color .3s var(--ease); }
.quiz-back:hover { color: var(--ink); }

.quiz-form { display: grid; gap: 16px; }
.quiz-field { display: flex; flex-direction: column; gap: 7px; }
.quiz-field__label { font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.quiz-field__input {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface-2); border: none; border-radius: var(--radius-sm);
  padding: 15px 18px; transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.quiz-field__input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent-line); background: var(--surface); }
.quiz-submit { margin-top: 6px; width: 100%; }
.quiz-form__error { color: #B4452F; font-size: 0.9rem; min-height: 1em; margin: 0; }
.quiz-fallback, .quiz-done { text-align: center; color: var(--muted); padding: 30px 0; }
.quiz-done h3 { font-size: 1.6rem; color: var(--accent); margin-bottom: 8px; }

/* ---------- Сітки/картки ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { padding: clamp(24px, 2.6vw, 36px) 0; position: relative; }
.section--audience .card, .section--outcomes .card, .section--trust .card {
  padding: clamp(26px, 2.8vw, 38px);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card__index { display: inline-block; font-family: var(--serif); font-size: 0.95rem; color: var(--accent); margin-bottom: 16px; opacity: 0.8; }
.card__title { font-size: 1.4rem; margin-bottom: 12px; }
.card__text { color: var(--muted); }

/* ---------- ІСТОРІЯ (progressive reveal) ---------- */
.section--story { background: var(--ink); color: #fff; --line-soft: rgba(255,255,255,0.08); }
.section--story .eyebrow { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.story__container { max-width: 900px; margin-inline: auto; text-align: center; }
.story-text { margin-top: 24px; }
.story-line { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 2rem); line-height: 1.4; font-weight: 400; }
.story-word { color: rgba(255,255,255,0.22); transition: color .4s var(--ease); }
.story-word.lit { color: #fff; }

/* ---------- ПРОЦЕС (sticky storytelling) ---------- */
.process__container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.process__intro { position: sticky; top: 110px; }
.process__steps { display: flex; flex-direction: column; gap: 22px; }
.step {
  opacity: 0; transform: translateY(40px) scale(0.985);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.step.in-view { opacity: 1; transform: none; }
.step__inner {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md);
  position: sticky; top: 130px;
}
.step:nth-child(1) .step__inner { top: 130px; }
.step:nth-child(2) .step__inner { top: 150px; }
.step:nth-child(3) .step__inner { top: 170px; }
.step:nth-child(4) .step__inner { top: 190px; }
.step:nth-child(5) .step__inner { top: 210px; }
.step__num { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); flex-shrink: 0; min-width: 48px; }
.step__title { font-size: 1.35rem; margin-bottom: 10px; }
.step__text { color: var(--muted); }

/* ---------- ПОСЛУГИ ---------- */
.services { gap: clamp(18px, 2.4vw, 28px); }
.service {
  background: var(--surface); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.service:hover { box-shadow: var(--shadow-md); }
.service__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.service__title { font-size: 1.5rem; }
.service__price { font-size: 0.82rem; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.service__text { color: var(--muted); flex: 1; }
.service__cta {
  align-self: flex-start; background: none; border: none; color: var(--ink);
  font-weight: 600; font-size: 0.95rem; padding: 6px 0; margin-top: 6px;
  position: relative;
}
.service__cta::after { content:" →"; color: var(--accent); transition: margin-left .35s var(--ease); }
.service__cta:hover::after { margin-left: 4px; }

/* ---------- КЕЙСИ (слайдер story-карток, фіксована пропорція) ---------- */
.cases { --cgap: clamp(16px, 1.8vw, 24px); display: flex; flex-wrap: wrap; gap: var(--cgap); align-items: stretch; }

/* трек-слайдер */
.cases.is-slider {
  flex-wrap: nowrap;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding: 2px;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cases.is-slider::-webkit-scrollbar { display: none; }
.cases.is-slider > .case { scroll-snap-align: start; }

/* 3 в ряд на ПК, 2 на мобільному */
.cases.is-slider .case { flex: 0 0 calc((100% - 2 * var(--cgap)) / 3); }
.cases:not(.is-slider) .case { flex: 1 1 calc((100% - 2 * var(--cgap)) / 3); }

/* картка = пропорційний «постер»: усе всередині міряється в cqw (% ширини картки),
   тож на будь-якому екрані вона лише масштабується, не змінюючи компонування */
.case {
  container-type: inline-size;
  position: relative; min-width: 0;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 13%, transparent);
  border-radius: 4cqw;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.cases:not(.cases--edit) .case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.case__inner { flex: 1; display: flex; flex-direction: column; padding: 6.5cqw; }

.case__badge {
  align-self: flex-start;
  font-size: 3cqw; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700;
  color: var(--accent);
  border: max(1px, 0.2cqw) solid color-mix(in srgb, var(--accent) 38%, transparent);
  padding: 1.7cqw 3.6cqw; border-radius: 50cqw;
}
.case__title {
  font-family: var(--serif); font-weight: 600;
  font-size: 11cqw; line-height: 1.02; letter-spacing: -0.01em;
  text-transform: uppercase; color: var(--ink); margin-top: 3cqw;
}

/* мета: локація + період (в один ряд, як на макеті) */
.case__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2.4cqw; margin-top: 3.8cqw; }
.case__meta-item { display: inline-flex; align-items: center; gap: 1.7cqw; }
.case__meta-ic { width: 6cqw; height: 6cqw; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.case__meta-ic svg { width: 3.2cqw; height: 3.2cqw; }
.case__meta-text { font-size: 2.5cqw; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.case__meta-sep { width: max(1px, 0.2cqw); height: 4cqw; background: var(--line); }

/* середина: фото ліворуч + показники праворуч */
.case__main { flex: 1; display: flex; align-items: stretch; gap: 3.4cqw; margin-top: 4.4cqw; }
.case__photo {
  position: relative; flex: 0 0 46cqw; overflow: hidden;
  border-radius: 3.2cqw;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 26%, #fff), color-mix(in srgb, var(--accent) 11%, #fff));
}
.case__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__photo.is-empty { display: grid; place-items: center; }
.case__photo-ic { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.case__photo-ic svg { width: 9cqw; height: 9cqw; }
.case__photo-deco { position: absolute; left: 2.4cqw; bottom: 2.2cqw; color: #fff; line-height: 0; }
.case__photo-deco svg { width: 4cqw; height: 4cqw; filter: drop-shadow(0 1px 4px rgba(0,0,0,0.22)); }

/* показники */
.case__stats { flex: 1; display: flex; flex-direction: column; gap: 2.3cqw; min-width: 0; }
.case__stat {
  flex: 1; display: flex; align-items: center; gap: 2.1cqw;
  background: #fff; border-radius: 2.6cqw; padding: 2cqw 2.4cqw;
  box-shadow: 0 0.2cqw 0.6cqw rgba(26,23,20,0.05);
}
.case__stat-ic { width: 9cqw; height: 9cqw; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.case__stat-ic svg { width: 4.8cqw; height: 4.8cqw; }
.case__stat-body { display: flex; flex-direction: column; min-width: 0; border-left: max(1px, 0.2cqw) solid var(--line); padding-left: 2.4cqw; }
.case__stat-label { font-size: 2.3cqw; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--muted); line-height: 1.1; }
.case__stat-label::after { content: ':'; }
.case__stat-value { font-family: var(--serif); font-size: 5.4cqw; font-weight: 700; color: var(--ink); line-height: 1.05; margin-top: 0.8cqw; white-space: nowrap; }

/* декоративний роздільник */
.case__divider { display: flex; align-items: center; gap: 2.4cqw; margin: 4.4cqw 0 3.2cqw; color: var(--accent); }
.case__divider::before, .case__divider::after { content: ""; flex: 1; border-top: max(1px, 0.2cqw) dotted color-mix(in srgb, var(--accent) 50%, transparent); }
.case__divider-ic { line-height: 0; }
.case__divider-ic svg { width: 4cqw; height: 4cqw; display: block; }

/* опис */
.case__text { text-align: center; font-size: 3.4cqw; color: var(--ink-2); line-height: 1.45; margin: 0 auto; }

/* навігація слайдера */
.cases-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.cases-nav__dots { display: flex; gap: 8px; flex-wrap: wrap; }
.cases-nav__dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; background: var(--line); cursor: pointer; transition: width .35s var(--ease), background-color .35s var(--ease); }
.cases-nav__dot:hover { background: var(--muted); }
.cases-nav__dot.is-active { background: var(--accent); width: 28px; border-radius: 999px; }
.cases-nav__arrows { display: flex; gap: 10px; }
.cases-nav__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.cases-nav__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-1px); }
.cases-nav__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cases-nav__btn svg { width: 20px; height: 20px; }

/* 2 в ряд на мобільному (картка стає вужчою — усе масштабується пропорційно) */
@media (max-width: 760px) {
  .cases { --cgap: 14px; }
  .cases.is-slider .case { flex: 0 0 calc((100% - var(--cgap)) / 2); }
  .cases:not(.is-slider) .case { flex: 1 1 calc((100% - var(--cgap)) / 2); }
}

/* ---------- FAQ ---------- */
.faq__container { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: none; text-align: left;
  padding: 26px 4px; font-size: clamp(1.1rem, 2vw, 1.3rem); font-family: var(--serif); color: var(--ink);
}
.faq-q__icon { flex-shrink: 0; width: 26px; height: 26px; color: var(--accent); transition: transform .4s var(--ease); }
.faq-q__icon svg { width: 100%; height: 100%; }
.faq-item.is-open .faq-q__icon { transform: rotate(45deg); }
.faq-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a__text { padding: 0 4px 26px; color: var(--muted); max-width: 64ch; }

/* ---------- ФІНАЛЬНИЙ CTA ---------- */
.section--final { text-align: center; }
.final__inner { position: relative; max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 64px); box-shadow: var(--shadow-lg); overflow: hidden; }
.final__blob { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); left: 50%; top: -120px; transform: translateX(-50%); pointer-events: none; }
.final__title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 20ch; margin: 0 auto; position: relative; }
.final__sub { margin: 22px auto 36px; color: var(--muted); max-width: 50ch; position: relative; }

/* ---------- FOOTER ---------- */
.footer { background: var(--surface-2); padding-block: clamp(48px, 6vw, 80px); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col--brand .brand__name { font-family: var(--serif); font-size: 1.3rem; }
.footer__note { color: var(--muted); font-size: 0.95rem; max-width: 32ch; margin-top: 4px; }
.footer__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer__link { color: var(--ink-2); font-size: 0.96rem; transition: color .3s var(--ease); width: fit-content; }
.footer__link:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(32px, 5vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 24px; background: rgba(26,23,20,0.4); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__box { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); position: relative; }
.modal__box h3 { font-size: 1.5rem; margin-bottom: 16px; }
.modal__box p { color: var(--muted); margin-bottom: 24px; }
.modal__close { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 1.8rem; line-height: 1; color: var(--muted); }

/* ---------- Reveal (загальний) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in-view { opacity: 1; transform: none; }
.section__head { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.section__head.in-view { opacity: 1; transform: none; }

/* блоки, що в'їжджають збоку */
.section--outcomes .grid > .reveal:nth-child(odd) { transform: translateX(-28px); }
.section--outcomes .grid > .reveal:nth-child(even) { transform: translateX(28px); }
.section--outcomes .grid > .reveal.in-view { transform: none; }

/* ---------- THANK YOU ---------- */
.thankyou-body { min-height: 100vh; }
.thankyou { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; overflow: hidden; padding: 40px 24px; }
.thankyou__bg { position: absolute; inset: 0; pointer-events: none; }
.thankyou__inner { position: relative; z-index: 1; max-width: 620px; display: flex; flex-direction: column; align-items: center; }
.thankyou__check { width: 84px; height: 84px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-md); display: grid; place-items: center; margin-bottom: 30px; animation: pop .6s var(--ease); }
.thankyou__check svg { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.thankyou__title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 18px; }
.thankyou__sub { color: var(--ink-2); font-size: 1.15rem; margin-bottom: 14px; max-width: 46ch; }
.thankyou__text { color: var(--muted); margin-bottom: 34px; }
.thankyou__home { margin-top: 24px; color: var(--muted); font-size: 0.95rem; transition: color .3s var(--ease); }
.thankyou__home:hover { color: var(--accent); }
.thankyou__footer { position: absolute; bottom: 28px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { max-width: 460px; }
  .process__container { grid-template-columns: 1fr; }
  .process__intro { position: static; }
  .step__inner { position: relative; top: 0 !important; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topnav { display: none; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 10px; }
  .btn { width: auto; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .topbar__cta { display: none; }
  .quiz-card { padding: 24px 18px; }
}

/* ---------- Форма «Обговорити проєкт» ---------- */
.section--contact .contact__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact__intro { max-width: 32ch; }
.contact__card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; }
.contact__card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); opacity: .7; }
.contact-form .btn { margin-top: 4px; }
@media (max-width: 860px) { .section--contact .contact__inner { grid-template-columns: 1fr; } .contact__intro { max-width: none; } }

/* ---------- Мобільний stacking-ефект (блоки складаються/розкладаються) ---------- */
@media (max-width: 760px) {
  body.m-stack-on #main > section {
    background: var(--bg);
    border-top-left-radius: 26px; border-top-right-radius: 26px;
    box-shadow: 0 -14px 34px rgba(26,23,20,0.12);
    transform-origin: top center; will-change: transform, opacity;
    position: relative; z-index: 1;
  }
  body.m-stack-on #main > section + section { margin-top: -28px; }
  body.m-stack-on .section--story { background: var(--ink); }
  body.m-stack-on .quiz { background: var(--surface-2); }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .section__head, .step { opacity: 1 !important; transform: none !important; }
  .story-word { color: #fff; }
  .hero__content { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   ІНЛАЙН-РЕДАКТОР (клас .iv-edit на <body>, режим ?edit=1)
   ========================================================================= */
#iv-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 100;
  background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 9px 16px; border-radius: 100px; box-shadow: var(--shadow-md);
  opacity: 0.94; pointer-events: none; max-width: 70vw;
}
/* в режимі редагування вимикаємо «складні» скрол-ефекти, щоб не заважали */
.iv-edit .reveal, .iv-edit .section__head, .iv-edit .step { opacity: 1 !important; transform: none !important; }
.iv-edit .story-word { color: #fff; }

/* редаговані тексти */
.iv-edit .iv-text { cursor: text; border-radius: 5px; transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.iv-edit .iv-text:hover { box-shadow: 0 0 0 2px var(--accent-line); }
.iv-edit .iv-text:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.section--story.iv-section .iv-text:focus { background: rgba(255,255,255,0.08); }

/* вибраний блок (контекстний інспектор) */
.iv-edit .iv-selectable { cursor: pointer; }
.iv-edit .iv-sel { box-shadow: 0 0 0 2px var(--accent) !important; }

/* у режимі правки FAQ завжди відкритий (щоб редагувати відповіді) */
.iv-edit .faq-a { max-height: none !important; overflow: visible; }

/* вимкнені блоки: напівпрозорий «слід» + напис OFF, клік вмикає назад */
.iv-edit .iv-hidden { position: relative; cursor: pointer; outline: 2px dashed var(--accent-line); outline-offset: -10px; border-radius: 22px; }
.iv-edit .iv-hidden > *:not(.iv-toolbar):not(.iv-hidden-note) { opacity: 0.4; pointer-events: none; }
.iv-hidden-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 24; display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 9px 18px 9px 9px; border-radius: 100px; box-shadow: var(--shadow-md); white-space: nowrap; pointer-events: none; }
.iv-hidden-note::before { content: "OFF"; background: #B4452F; color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 100px; }

/* заміна фото експерта при наведенні */
.iv-photo-input { display: none; }
.iv-photo-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; border: none; border-radius: 100px; padding: 11px 18px; font-size: 0.84rem; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), background-color .2s var(--ease); }
.iv-edit .hero__portrait:hover .iv-photo-btn,
.iv-edit .case__photo:hover .iv-photo-btn { opacity: 1; pointer-events: auto; }
.iv-photo-btn:hover { background: var(--accent); }
/* кнопки фото на кейсі — менші, з місцем під «прибрати» */
.iv-edit .case__photo { cursor: default; }
.case__photo .iv-photo-btn { padding: 9px 14px; font-size: 0.78rem; }
.case__photo .iv-photo-btn--rm { left: auto; right: 10px; top: 10px; transform: none; width: 30px; height: 30px; padding: 0; justify-content: center; background: #B4452F; }
.case__photo .iv-photo-btn--rm:hover { background: #922f1d; }

/* вимкнені плаваючі чипи (показники / картка): напівпрозорий слід у редакторі,
   на опублікованому сайті взагалі не рендеряться (display:none) */
.iv-edit .hero__chip.iv-off { opacity: 0.4; outline: 1.5px dashed var(--accent-line); outline-offset: 3px; }
.iv-edit .hero__chip.iv-off::after { content: "OFF"; position: absolute; top: -9px; right: -7px; background: #B4452F; color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.05em; padding: 1px 6px; border-radius: 100px; }

/* блоки-секції */
.iv-edit .iv-section { position: relative; }
.iv-edit .iv-section::after { content: ""; position: absolute; inset: 6px; border: 1px dashed transparent; border-radius: 18px; pointer-events: none; transition: border-color .2s var(--ease); }
.iv-edit .iv-section:hover::after { border-color: var(--accent-line); }

/* елементи списків */
.iv-edit .iv-item { position: relative; }
.iv-edit .iv-item::after { content: ""; position: absolute; inset: -6px; border: 1px dashed transparent; border-radius: 16px; pointer-events: none; transition: border-color .2s var(--ease); }
.iv-edit .iv-item:hover::after { border-color: var(--accent-line); }

/* панелі дій */
.iv-toolbar { position: absolute; display: flex; gap: 4px; z-index: 25; opacity: 0; transform: translateY(-5px); transition: opacity .2s var(--ease), transform .2s var(--ease); pointer-events: none; }
.iv-toolbar--item { top: 10px; right: 10px; }
.iv-toolbar--section { top: 14px; right: 18px; align-items: center; background: var(--surface); padding: 5px 8px; border-radius: 100px; box-shadow: var(--shadow-md); }
.iv-item:hover > .iv-toolbar--item,
.iv-section:hover > .iv-toolbar--section,
.iv-toolbar:hover { opacity: 1; transform: none; pointer-events: auto; }
.iv-btn { min-width: 30px; height: 30px; padding: 0 6px; border: none; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); font-size: 0.92rem; display: grid; place-items: center; line-height: 1; }
.iv-toolbar--section .iv-btn { box-shadow: none; background: var(--surface-2); }
.iv-btn:hover { background: var(--accent); color: #fff; }
.iv-btn:disabled { opacity: 0.32; }
.iv-btn--danger:hover { background: #B4452F; }
.iv-toolbar__name { font-size: 0.72rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; padding: 0 6px; white-space: nowrap; text-transform: uppercase; }
.iv-toolbar__lock { font-size: 0.78rem; padding: 0 4px; }
