/* =========================================================
   EcoMind System — стилі
   Палітра — 3 кольори (+ їхні відтінки):
   основний — світлий фон, додатковий — графіт, акцент — лайм з лого
   ========================================================= */

:root {
  /* Основний: світлий теплий фон */
  --bg: #F5F5EE;
  --bg-2: #ECEDE3;
  --white: #FFFFFF;

  /* Додатковий: графіт з логотипу */
  --ink: #1D1D1B;
  --ink-soft: rgba(29, 29, 27, .64);
  --ink-line: rgba(29, 29, 27, .12);

  /* Акцент: лайм з логотипу */
  --lime: #AFCB1F;
  --lime-deep: #8FA816;
  --lime-tint: #EAF0C4;
  /* приглушений глибокий зелений — темніший відтінок акценту, фон блоку 02 */
  --moss: #55652F;
  --moss-deep: #4A582A;

  --on-dark: #F5F5EE;
  --on-dark-soft: rgba(245, 245, 238, .8);
  --on-dark-line: rgba(245, 245, 238, .22);

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(88px, 11vw, 160px);
  --radius: 28px;
  --radius-sm: 16px;

  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
/* при переході з меню заголовок секції не ховається під шапкою */
section[id], #form { scroll-margin-top: 84px; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

::selection { background: var(--lime); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Типографіка ---------- */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px var(--lime-tint);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

/* Маркер-підкреслення лаймом */
.mark {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 88% / 100% .32em;
  padding: 0 .06em;
}
.mark--dark { background-image: linear-gradient(rgba(175, 203, 31, .8), rgba(175, 203, 31, .8)); white-space: normal; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1.2 var(--font-body);
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 3px; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 64px; padding: 0 12px 0 30px; font-size: 16px; }

.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--lime); color: var(--ink); }

.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 0 14px 34px -14px rgba(143, 168, 22, .75); }
.btn--lime:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(143, 168, 22, .85); }

.btn__arrow {
  width: 44px; height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--ink);
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--ease);
  flex-shrink: 0;
}
.btn:hover .btn__arrow { transform: rotate(-45deg); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 18px 0;
  transition: padding .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease);
}
/* у вбудованих браузерах (Telegram, Instagram) шапка може «відставати» від верху екрана —
   смуга кольору шапки над нею закриває щілину, щоб не просвічувала сторінка */
/* відступ під системну/вбудовану панель браузера, якщо вона накриває сторінку */
.header { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
.header::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--bg);
  pointer-events: none;
}
.header.is-scrolled {
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  background: var(--bg);
  box-shadow: 0 10px 30px -22px rgba(29, 29, 27, .35);
}
.header__inner { display: flex; align-items: center; gap: 32px; }
.header__logo img { width: auto; height: 38px; }
.header__cta { margin-left: 0; }
.header__cta.btn--lime, .nav__cta.btn--lime { box-shadow: none; font-weight: 700; }
.header__cta.btn--lime:hover, .nav__cta.btn--lime:hover { background: var(--ink); color: var(--on-dark); transform: none; box-shadow: none; }

.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }
.header__cta-mobile { display: none; }
.header__cta-mobile.btn--lime { box-shadow: none; font-weight: 700; }

/* соцмережі в шапці — тонкі кружечки в тон меню */
.header__social {
  display: flex;
  gap: 6px;
  padding-left: 22px;
  border-left: 1px solid var(--ink-line);
}
.nav__social { display: none; }
.hsocial {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.hsocial:hover { background: var(--lime); border-color: var(--lime); }
.hsocial svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hsocial svg .fill { fill: currentColor; stroke: none; }

.burger {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 14px; right: 14px;
  height: 2px;
  background: var(--on-dark);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   01 / ПЕРШИЙ ЕКРАН
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(120px, 14vw, 168px) 0 40px;
  overflow: hidden;
}

.hero__bgword {
  position: absolute;
  left: 50%;
  bottom: -0.3em;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(160px, 30vw, 460px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--lime-tint);
  opacity: .7;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__grid { position: relative; z-index: 2; }

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 600px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -.025em;
}
.hero__title-muted {
  display: block;
  margin-top: .3em;
  font-size: .62em;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink-soft);
}

.hero__lead {
  max-width: 560px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--ink-soft);
}

.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 8px; }
.hero__note {
  display: flex;
  gap: 10px;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero__note::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 1px;
  margin-top: .75em;
  background: var(--ink);
}

/* Візуал з фото: панель на всю висоту першого екрана, у правий край вікна */
.hero__visual {
  position: absolute;
  z-index: 1;
  top: clamp(84px, 11vh, 104px); right: 0; bottom: clamp(16px, 3vh, 32px);
  width: 46vw;
  max-width: 820px;
}
/* Лівий край фото — вигин «паростка» з лого (SVG-маска) */
.hero__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--bg-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M.22 0H1V1H0C0 .6.04.22.22 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M.22 0H1V1H0C0 .6.04.22.22 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transform: translateY(var(--parallax, 0px)) scale(1.06);
  transform-origin: 50% 0;
  animation: photo-in 1.8s var(--ease) .35s backwards;
}
/* «шторка» кольору бренду, що відкриває фото вздовж вигину */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: translateX(101%);
  animation: curtain 1.3s cubic-bezier(.76, 0, .24, 1) .15s backwards;
}

/* Лаймова лінія вздовж вигину, з «вузлом» угорі */
.hero__edge {
  position: absolute;
  z-index: 2;
  top: 0; bottom: 0;
  left: -18px;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero__edge path {
  fill: none;
  stroke: var(--lime);
  stroke-width: .45;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-line 1.6s var(--ease) .9s backwards;
}
.hero__edge-dot {
  position: absolute;
  z-index: 3;
  top: -7px;
  left: calc(22% - 18px - 7px);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px var(--lime-tint);
  animation: dot-pulse 2.6s ease-in-out 2.2s infinite;
}

.hero__levels {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(29, 29, 27, .4);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.level-chip { display: inline-flex; align-items: center; gap: 7px; }
.level-chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.level-chip__sep { width: 14px; height: 1px; background: var(--ink); opacity: .35; }

/* =========================================================
   02 / ПРОБЛЕМА
   ========================================================= */
.section--moss {
  background: var(--moss);
  color: var(--on-dark);
}

.problem {
  position: relative;
  padding: var(--section-y) 0;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  overflow: hidden;
  /* clip, а не лише hidden: інакше перехід за якорем #form прокручує вміст усередині секції */
  overflow: clip;
}

.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.problem__body {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin-top: clamp(28px, 3vw, 40px);
  /* на зеленому — суцільний світлий колір і щільніше накреслення для читабельності */
  color: var(--on-dark);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.7;
}
.problem__accent {
  padding-left: 20px;
  border-left: 2px solid var(--lime);
  font-size: 19px;
  font-weight: 600;
  color: var(--on-dark);
}

/* Симптоми, що сходяться до власника */
.problem__flow { position: relative; padding-top: 8px; }

.pains {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 52px;
  display: grid;
  gap: 14px;
}
.pains::before {
  content: "";
  position: absolute;
  left: 35px; top: 30px; bottom: -64px;
  width: 1px;
  background: linear-gradient(var(--on-dark-line), var(--lime));
}

.pain {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-sm);
  background: rgba(245, 245, 238, .07);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}
.pain::before {
  content: "";
  position: absolute;
  left: -22px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--moss);
  border: 1px solid var(--on-dark-soft);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.pain:hover {
  border-color: rgba(175, 203, 31, .6);
  background: rgba(234, 240, 196, .12);
  transform: translateX(6px);
}
.pain:hover::before { background: var(--lime); border-color: var(--lime); }

.pain__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--lime-tint);
}
.pain__text { font-size: 18px; font-weight: 600; line-height: 1.35; }

.pains__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 40px 0 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.pains__node::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--lime);
  opacity: .5;
  animation: pulse 2.6s var(--ease) infinite;
}

.problem__quote {
  position: relative;
  margin: clamp(72px, 9vw, 128px) 0 0;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--moss-deep);
  overflow: hidden;
}
.problem__quote p {
  position: relative;
  z-index: 1;
  max-width: 900px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
}
/* у блоці 02 цитата стоїть у правій колонці під «Ви» — колонки рівні, без пустоти */
.problem__quote--side { margin-top: 36px; padding: clamp(24px, 2.6vw, 36px); }
.problem__quote--side p { font-size: clamp(19px, 1.7vw, 24px); }
.problem__quote--side .problem__quote-sprout { width: 240px; height: 240px; right: -50px; bottom: -90px; }
.problem__quote-sprout {
  position: absolute;
  right: -60px; bottom: -120px;
  width: 360px; height: 360px;
  fill: var(--lime);
  opacity: .14;
}

/* =========================================================
   03 / ОСНОВНА ЦІННІСТЬ
   ========================================================= */
.value {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: var(--section-y) 0;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  background: var(--bg);
}

.value__head {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.value__lead {
  padding-left: 24px;
  border-left: 2px solid var(--lime);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Було → Стало */
.shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
}
.shift__card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--radius);
}
.shift__card--before {
  background: var(--bg-2);
  border: 1px solid var(--ink-line);
}
.shift__card--after {
  background: var(--moss);
  color: var(--on-dark);
}

.shift__diagram {
  width: 100%;
  max-width: 340px;
  height: auto;
  align-self: center;
  margin-bottom: clamp(32px, 4vw, 56px);
  overflow: visible;
}
.shift__lines path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.shift__card--before .shift__lines path { stroke: rgba(29, 29, 27, .35); }
.shift__card--before .shift__nodes circle { fill: var(--bg-2); stroke: rgba(29, 29, 27, .45); stroke-width: 1.5; }
.shift__card--before .shift__core { fill: var(--ink); }
.shift__card--after .shift__lines path { stroke: rgba(245, 245, 238, .55); }
.shift__card--after .shift__nodes circle { fill: var(--on-dark); }
.shift__card--after .shift__core { fill: var(--lime); }

.shift__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.shift__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .4;
}
.shift__card--after .shift__label::before { background: var(--lime); opacity: 1; }

.shift__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -.015em;
}
.shift__text {
  max-width: 460px;
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
}
.shift__card--after .shift__text { color: var(--on-dark); font-weight: 500; }

.shift__arrow {
  position: relative;
  z-index: 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 -22px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 8px var(--bg);
}
.shift__arrow svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Формула росту */
.formula {
  position: relative;
  margin-top: clamp(20px, 2vw, 28px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
/* кроки шириною рівно по тексту, стрілки забирають решту — відступи з обох боків стрілок однакові */
.formula__steps {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.formula__step {
  flex: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.formula__step--final { font-weight: 600; }
.formula .mark { white-space: normal; }

.formula__link {
  position: relative;
  flex: 1 1 40px;
  height: 12px;
}
.formula__link svg { display: block; width: 100%; height: 12px; overflow: visible; }
.formula__link path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; }
.formula__head {
  position: absolute;
  right: 1px; top: 50%;
  width: 10px; height: 10px;
  border-top: 2px solid var(--lime);
  border-right: 2px solid var(--lime);
  transform: translateY(-50%) rotate(45deg);
}

.formula__note {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--ink-line);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---- Анімація схем «Було / Стало» ----
   1) центральна точка м'яко «вискакує»;
   2) лінії по черзі малюються;
   3) вузли з'являються пружним «поп» по черзі;
   4) по лініях безперервно біжать сигнали, а центральна точка «дихає». */
.shift__core,
.shift__nodes circle {
  transform-box: fill-box;
  transform-origin: center;
}
.js .reveal .shift__core {
  opacity: 0;
  transform: scale(0);
  transition: opacity .4s var(--ease) .2s, transform .8s cubic-bezier(.34, 1.56, .64, 1) .2s;
}
.js .reveal.is-visible .shift__core { opacity: 1; transform: scale(1); }

.js .reveal .draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s cubic-bezier(.65, 0, .35, 1) .5s;
}
.js .reveal.is-visible .draw path { stroke-dashoffset: 0; }
.js .reveal .draw .shift__lines path:nth-child(2) { transition-delay: .6s; }
.js .reveal .draw .shift__lines path:nth-child(3) { transition-delay: .7s; }
.js .reveal .draw .shift__lines path:nth-child(4) { transition-delay: .8s; }
.js .reveal .draw .shift__lines path:nth-child(5) { transition-delay: .9s; }
.js .reveal .draw .shift__lines path:nth-child(6) { transition-delay: 1s; }
.js .reveal .draw .shift__lines path:nth-child(7) { transition-delay: 1.1s; }
.js .reveal .draw .formula__link:nth-of-type(4) path { transition-delay: .9s; }

.js .reveal .shift__nodes circle {
  opacity: 0;
  transform: scale(.2);
  transition: opacity .4s var(--ease), transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.js .reveal.is-visible .shift__nodes circle { opacity: 1; transform: scale(1); }
.js .reveal .shift__nodes circle:nth-child(1) { transition-delay: 1.1s; }
.js .reveal .shift__nodes circle:nth-child(2) { transition-delay: 1.2s; }
.js .reveal .shift__nodes circle:nth-child(3) { transition-delay: 1.3s; }
.js .reveal .shift__nodes circle:nth-child(4) { transition-delay: 1.4s; }
.js .reveal .shift__nodes circle:nth-child(5) { transition-delay: 1.5s; }
.js .reveal .shift__nodes circle:nth-child(6) { transition-delay: 1.6s; }

/* сигнали з'являються, коли схема вже намальована */
.shift__signals { opacity: 0; transition: opacity .8s var(--ease) 1.9s; }
.shift__signals circle { opacity: 0; transition: opacity .4s var(--ease); }
.shift__card--before .shift__signals circle { fill: var(--ink); }
.shift__card--after .shift__signals circle { fill: var(--lime); }
.reveal.is-visible .shift__signals.is-running { opacity: 1; }

/* «дихання» центру після появи */
.reveal.is-visible .shift__core { animation: core-breathe 2.4s ease-in-out 2s infinite; }
.shift__card--after.is-visible .shift__core { animation-name: core-glow; }

.js .reveal .formula__head {
  opacity: 0;
  transition: opacity .5s var(--ease) 1.3s;
}
.js .reveal.is-visible .formula__head { opacity: 1; }

/* =========================================================
   04 / ПІДХІД ECOMIND
   ========================================================= */
.approach {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: var(--section-y) 0;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}

.approach__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.approach__title i { font-style: normal; color: var(--lime); }
.approach__sub {
  max-width: 340px;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.6;
}

.approach__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

/* ---- Схема-орбіта ---- */
.orbit svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.orbit__ring {
  fill: none;
  stroke: rgba(245, 245, 238, .28);
  stroke-width: 1.2;
  transition: stroke .6s var(--ease), stroke-width .6s var(--ease);
}
.orbit__band {
  fill: none;
  stroke: var(--lime);
  stroke-width: 26;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.orbit__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-anchor: middle;
  fill: rgba(245, 245, 238, .6);
  transition: fill .6s var(--ease);
}
.orbit__core { fill: var(--lime); transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease); }
.orbit__label--core { fill: var(--ink); font-size: 12px; letter-spacing: .14em; }

/* фірмові іконки рівнів на схемі: «паросток» + монограма */
.orbit__badge rect { fill: var(--lime-tint); }
.orbit__badge svg { fill: var(--lime); }
.orbit__badge text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
  fill: var(--ink);
}
.orbit__badge--core rect { fill: var(--ink); }
.orbit__badge--core svg { fill: rgba(175, 203, 31, .55); }
.orbit__badge--core text { fill: var(--on-dark); }

/* активний рівень підсвічує своє коло */
[data-active="2"] .orbit__level--2 .orbit__band,
[data-active="3"] .orbit__level--3 .orbit__band { opacity: .08; }
[data-active="2"] .orbit__level--2 .orbit__ring,
[data-active="3"] .orbit__level--3 .orbit__ring { stroke: var(--lime); stroke-width: 2; }
[data-active="2"] .orbit__level--2 .orbit__label,
[data-active="3"] .orbit__level--3 .orbit__label { fill: var(--lime-tint); }
[data-active="1"] .orbit__core { transform: scale(1.05); }

/* ---- Список рівнів ---- */
.levels { border-top: 1px solid var(--on-dark-line); }
.level {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px) 0 clamp(22px, 2.6vw, 32px) 28px;
  border-bottom: 1px solid var(--on-dark-line);
  outline: none;
}
.level::before {
  content: "";
  position: absolute;
  left: 0; top: clamp(22px, 2.6vw, 32px); bottom: clamp(22px, 2.6vw, 32px);
  width: 2px;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--ease);
}
.level.is-active::before { transform: scaleY(1); }

.level__tag {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--lime-tint);
}
.level__name {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.level__text {
  max-width: 460px;
  font-size: clamp(16px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.6;
}

/* поява: кола малюються від центру назовні */
.js .orbit .orbit__ring { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1), stroke .6s var(--ease), stroke-width .6s var(--ease); }
.js .orbit .orbit__level--2 .orbit__ring { transition-delay: .3s, 0s, 0s; }
.js .orbit .orbit__level--3 .orbit__ring { transition-delay: .6s, 0s, 0s; }
.js .orbit.is-visible .orbit__ring { stroke-dashoffset: 0; }

/* =========================================================
   05 / ФОРМАТИ РОБОТИ
   ========================================================= */
.formats {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: var(--section-y) 0;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  background: var(--bg);
}
.formats__title { max-width: 900px; margin-bottom: clamp(48px, 6vw, 80px); }
.formats__title .mark { white-space: normal; }

.formats__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

/* фото на всю висоту списку — без пустоти під ним */
.formats__photo {
  position: relative;
  align-self: stretch;
  min-height: 480px;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.formats__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }

.formats__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-line); }
.format {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--ink-line);
}
/* при наведенні знизу протягується лаймова лінія */
.format::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.format:hover::after { transform: scaleX(1); }

.format__num {
  padding-top: .35em;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .4s var(--ease);
}
.format:hover .format__num { color: var(--ink); }
.format__title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.015em;
}
.format__text {
  max-width: 560px;
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.formats__note {
  display: flex;
  gap: 14px;
  margin-top: clamp(28px, 3vw, 40px);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
  color: var(--ink);
}
.formats__note::before {
  content: "";
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: .5em;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px var(--lime-tint);
}

/* =========================================================
   06 / ПРО МЕНЕ
   ========================================================= */
.about {
  position: relative;
  z-index: 4;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: var(--section-y) 0;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: stretch;
}

/* фото з дзеркальним вигином «паростка» — перегукується з першим екраном */
.about__visual { position: relative; min-height: 520px; }
.about__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: var(--moss-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M.78 0H0V1H1C1 .6.96.22.78 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1' preserveAspectRatio='none'%3E%3Cpath d='M.78 0H0V1H1C1 .6.96.22.78 0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
/* кадр наближено до Валентини: менше дивана, вона — головна в кадрі */
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% 10%;
  transform: scale(1.22);
  transform-origin: 70% 12%;
}
.about__edge {
  position: absolute;
  top: 0; left: 18px;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.about__edge path {
  fill: none;
  stroke: var(--lime);
  stroke-width: .45;
  stroke-linecap: round;
}
.about__edge-dot {
  position: absolute;
  top: -7px;
  left: calc(78% + 18px - 7px);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(175, 203, 31, .25);
}

.about__content { display: flex; flex-direction: column; justify-content: center; }
.about__name { margin-bottom: 18px; }
.about__role {
  margin-bottom: clamp(28px, 3vw, 40px);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--lime-tint);
}
.about__lead {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.about__text {
  max-width: 560px;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.7;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--on-dark-line);
}
.stat { padding: clamp(20px, 2.4vw, 28px) clamp(16px, 2vw, 28px) 0 0; }
.stat + .stat { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--on-dark-line); }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  line-height: 1;
}
.stat__value b {
  margin-right: 6px;
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.5; }

/* Шлях — три колонки в спокійній картці, як цитати в блоках 02 і 04 */
.about__story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 56px);
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--moss-deep);
}
.about__story { position: relative; overflow: hidden; }
.about__story p {
  position: relative;
  z-index: 1;
  font-size: clamp(16px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.7;
}
/* перші слова абзацу — як заголовок фірмовим шрифтом */
.story__lead {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.story__lead b { color: var(--lime); font-weight: 600; }
.about__story-sprout {
  position: absolute;
  right: -70px; bottom: -150px;
  width: 380px; height: 380px;
  fill: var(--lime);
  opacity: .1;
}

/* =========================================================
   07 / КЕЙСИ
   ========================================================= */
.cases {
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: clamp(72px, 8vw, 112px) 0;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  background: var(--bg);
}
.cases__title { margin-bottom: clamp(28px, 3vw, 40px); }

/* вкладки кейсів */
.cases__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  margin-bottom: clamp(10px, 1.2vw, 16px);
}
.case-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 1.6vw, 22px) clamp(18px, 1.8vw, 24px);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.case-tab::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.case-tab:hover { border-color: rgba(29, 29, 27, .25); }
.case-tab.is-active { background: var(--white); border-color: transparent; box-shadow: 0 18px 40px -28px rgba(29, 29, 27, .35); }
.case-tab.is-active::before { transform: scaleX(1); }
.case-tab:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 2px; }

.case-tab__num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.case-tab__title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.25;
}
.case-tab__meta { margin-top: auto; font-size: 13px; color: var(--ink-soft); }

/* картка кейсу */
.cases__panel {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--white);
}
.case__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.case__meta span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 600;
}
.case__meta span:first-child { background: var(--lime-tint); }
.case__title {
  max-width: 820px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

/* шлях Запит → Точка А → Що зроблено */
.case__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.case__step { position: relative; }
.case__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.case__text { font-size: clamp(15px, 1.1vw, 16px); line-height: 1.6; color: var(--ink-soft); }

.case__result {
  position: relative;
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-sm);
  background: var(--moss);
  color: var(--on-dark);
}
.case__result .case__label { color: var(--lime-tint); }
.case__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.case__result .case__text {
  max-width: 900px;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 500;
  color: var(--on-dark);
}

/* м'яка зміна кейсу: лінія протягується, кроки й результат з'являються по черзі */
.case.is-active .case__meta,
.case.is-active .case__title,
.case.is-active .case__step,
.case.is-active .case__result { animation: case-in .7s var(--ease) both; }
.case.is-active .case__title { animation-delay: .05s; }
.case.is-active .case__step:nth-of-type(1) { animation-delay: .15s; }
.case.is-active .case__step:nth-of-type(2) { animation-delay: .25s; }
.case.is-active .case__step:nth-of-type(3) { animation-delay: .35s; }
.case.is-active .case__result { animation-delay: .45s; }

/* =========================================================
   08 / СТРАТЕГІЧНИЙ РОЗБІР
   ========================================================= */
.consult {
  position: relative;
  z-index: 6;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: var(--section-y) 0 calc(var(--section-y) + clamp(28px, 4vw, 56px));
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  overflow: hidden;
  /* clip, а не лише hidden: інакше перехід за якорем #form прокручує вміст усередині секції */
  overflow: clip;
}
.consult__sprout {
  position: absolute;
  left: -160px; bottom: -220px;
  width: 620px; height: 620px;
  fill: var(--lime);
  opacity: .07;
  pointer-events: none;
}
.consult__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.consult__title { margin-bottom: 32px; }

.consult__lead {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
}
.outcomes { margin: 0; padding: 0; list-style: none; }
.outcomes li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--on-dark-line);
  font-size: clamp(15px, 1.05vw, 16px);
  font-weight: 500;
  line-height: 1.55;
}
.outcomes li:last-child { border-bottom: 0; }
.outcomes__num {
  padding-top: .2em;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
}

/* підсумок розбору: лаймова плашка — найяскравіша точка блоку */
.consult__result {
  margin-top: clamp(20px, 2.4vw, 32px);
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55);
}
.consult__result-label {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.consult__result-text {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.45;
}

/* картка з формою */
.consult__card {
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .45);
}
.form { display: grid; gap: 18px; }
.form__hp { position: absolute; left: -9999px; }
.form__title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -.015em;
}
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field__input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: 500 16px/1.2 var(--font-body);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
          appearance: none;
}
.field__input::placeholder { color: rgba(29, 29, 27, .38); }
.field__input:focus { outline: none; border-color: var(--lime-deep); box-shadow: 0 0 0 4px var(--lime-tint); }
.field__input.is-invalid { border-color: #B54A3B; }
.field__select { position: relative; display: block; }
.field__select::after {
  content: "";
  position: absolute;
  right: 20px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.form__submit { width: 100%; justify-content: space-between; margin-top: 6px; }
.form__error { font-size: 14px; color: #B54A3B; }

.form__done { display: grid; justify-items: start; gap: 12px; padding: 24px 0; }
.form__done[hidden] { display: none; }
.form__done p { color: var(--ink-soft); line-height: 1.6; }
.form__done-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.form__done-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   ПІДВАЛ
   ========================================================= */
.footer {
  position: relative;
  z-index: 7;
  margin-top: calc(-1 * clamp(28px, 4vw, 56px));
  padding: clamp(48px, 6vw, 72px) 0 32px;
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
  background: var(--bg);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--ink-line);
}
.footer__logo img { width: auto; height: 46px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a { position: relative; font-size: 15px; font-weight: 500; padding: 4px 0; }
.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__social { display: flex; gap: 10px; }
.social {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.social:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social svg .fill { fill: currentColor; stroke: none; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__contact a:hover { color: var(--ink); }

/* підпис розробника: тихо, але помітно */
.footer__credit {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer__credit a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  padding: 3px 10px 3px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.footer__credit a span { color: var(--lime-deep); }
.footer__credit svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s var(--ease);
}
.footer__credit a:hover { background: var(--lime); border-color: var(--lime); }
.footer__credit a:hover span { color: var(--ink); }
.footer__credit a:hover svg { transform: translate(2px, -2px); }

/* ---------- Анімації ---------- */
.js .reveal:not(.is-visible) { opacity: 0; }
.js .reveal.is-visible { animation: reveal-in .9s var(--ease) var(--reveal-delay, 0ms) both; }

@keyframes curtain {
  from { transform: translateX(0); }
  to   { transform: translateX(101%); }
}
@keyframes photo-in {
  from { transform: translateY(0) scale(1.2); }
  to   { transform: translateY(0) scale(1.06); }
}
@keyframes draw-line {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 4px var(--lime-tint); }
  50%      { transform: scale(1.15); box-shadow: 0 0 0 9px rgba(234, 240, 196, .55); }
}
@keyframes core-breathe {
  0%, 100% { transform: scale(1);    stroke: rgba(29, 29, 27, 0);   stroke-width: 0; }
  50%      { transform: scale(1.08); stroke: rgba(29, 29, 27, .1);  stroke-width: 10px; }
}
@keyframes core-glow {
  0%, 100% { transform: scale(1);    stroke: rgba(175, 203, 31, 0);   stroke-width: 0; }
  50%      { transform: scale(1.1);  stroke: rgba(175, 203, 31, .35); stroke-width: 10px; }
}
@keyframes case-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%   { transform: scale(.9); opacity: .6; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-visible) { opacity: 1; }
  .js .reveal .draw path { stroke-dashoffset: 0; }
  .js .reveal .shift__nodes circle,
  .js .reveal .shift__core { opacity: 1; transform: none; }
  .js .reveal .formula__head { opacity: 1; }
  .js .orbit .orbit__ring { stroke-dashoffset: 0; }
  .shift__signals { display: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */

/* Десктоп: перший екран повністю вміщується у вікно без скролу */
@media (min-width: 901px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(92px, 12vh, 124px) 0 clamp(16px, 2.5vh, 28px);
  }
  .hero__content { gap: clamp(14px, 2.6vh, 26px); }
  .hero__title { font-size: clamp(34px, min(4.4vw, 6.6vh), 64px); }
  .hero__actions { margin-top: 0; gap: 12px; }
  .btn--lg { min-height: clamp(54px, 7vh, 64px); }

  /* Блок запису компактніший, щоб «Результат розбору» і форма вміщались в одне вікно */
  .consult { padding-top: clamp(80px, 8vw, 112px); }
  .consult__title { margin-bottom: 28px; }
  .outcomes li { padding: 10px 0; }
  .consult__result { margin-top: 18px; }
}
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .hero__content { max-width: 50vw; }
}

@media (max-width: 900px) {
  .header__cta { display: none; }
  .header__social { display: none; }
  .header__cta-mobile { display: inline-flex; margin-left: auto; position: relative; z-index: 2; }
  .burger { margin-left: 10px; }
  .nav__social { display: flex; gap: 10px; margin-top: 20px; }
  .nav__social .hsocial { width: 48px; height: 48px; }
  .burger { display: block; position: relative; z-index: 2; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 96px var(--gutter) 40px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-family: var(--font-display); font-size: 30px; font-weight: 500; }
  .nav__cta { display: inline-flex; margin-top: 24px; }

  .header__logo { position: relative; z-index: 2; }

  .hero__content { max-width: none; }
  .hero__visual {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    height: min(118vw, 620px);
    margin: 40px var(--gutter) 40px;
  }
  .hero__photo { border-radius: var(--radius); -webkit-mask: none; mask: none; }
  .hero__photo img { object-position: 52% 30%; }
  .hero__edge, .hero__edge-dot { display: none; }
  .hero__levels { right: auto; left: 50%; transform: translateX(-50%); bottom: 20px; }
  .hero { padding-bottom: 0; }

  .problem__grid { grid-template-columns: 1fr; }

  .value__head { grid-template-columns: 1fr; gap: 24px; }
  .shift { grid-template-columns: 1fr; }
  .shift__arrow { justify-self: center; margin: -22px 0; }
  .shift__arrow svg { transform: rotate(90deg); }
  .shift__diagram { max-width: 240px; }

  .formula__steps { flex-direction: column; align-items: flex-start; gap: 10px; }
  .formula__step { white-space: normal; }
  .formula__br { display: none; }
  .formula__link {
    flex: none;
    width: 0; height: 30px;
    margin-left: 10px;
    border-left: 2px solid var(--lime);
  }
  .formula__link svg { display: none; }
  .formula__head { right: auto; top: auto; left: -6px; bottom: 0; transform: rotate(135deg); }

  .approach__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .approach__body { grid-template-columns: 1fr; }

  .formats__grid { grid-template-columns: 1fr; }
  .formats__photo { align-self: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .format { grid-template-columns: 40px minmax(0, 1fr); }

  .about__grid { grid-template-columns: 1fr; }
  /* явна висота: Safari інакше рахує блок з абсолютним фото як нульовий */
  .about__visual { min-height: 0; height: min(118vw, 600px); margin-right: 14px; }
  .about__edge { left: 12px; }
  .about__edge-dot { left: calc(78% + 12px - 7px); }
  .about__story { grid-template-columns: 1fr; }

  /* вкладки кейсів — рівний перемикач з трьох кнопок */
  .cases__tabs { gap: 8px; margin-bottom: 12px; }
  .case-tab { align-items: center; justify-content: center; padding: 14px 6px; text-align: center; }
  .case-tab__title, .case-tab__meta { display: none; }
  .case-tab__num { font-size: 12px; letter-spacing: .14em; color: var(--ink); }
  .case__steps { grid-template-columns: 1fr; gap: 20px; }

  .consult__grid { grid-template-columns: 1fr; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; }
  .orbit svg { max-width: 340px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header__logo img { height: 32px; }

  .hero { padding-top: 104px; }
  .hero__title-muted { font-size: .7em; }
  .btn--lg { width: 100%; justify-content: space-between; padding-left: 22px; font-size: 15px; }
  .hero__levels { font-size: 12px; padding: 9px 12px; gap: 6px; }
  .level-chip__sep { width: 8px; }

  .pains { padding-left: 44px; }
  .pains::before { left: 29px; }
  .pain { padding: 20px; gap: 14px; }
  .pain::before { left: -20px; }
  .pain__text { font-size: 16px; }
  .pains__node { width: 60px; height: 60px; font-size: 13px; }
}
