/* =========================================================================
   HERO — «жива райдужка»
   ========================================================================= */

.hero {
  position: relative;
  padding-block: clamp(48px, 5vw, 88px) clamp(64px, 7vw, 120px);
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 60%, white 40%);
}

/* Каустика: м'які світлові плями, що дихають */
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; pointer-events: none; z-index: 0; }
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
  animation: drift 22s var(--ease-in-out) infinite alternate;
}
.aurora__blob--1 { width: 46vw; height: 46vw; left: -8vw;  top: -6vw;  background: radial-gradient(circle, rgba(251,225,220,.95), rgba(251,225,220,0) 70%); }
.aurora__blob--2 { width: 38vw; height: 38vw; right: -6vw; top: 4vw;   background: radial-gradient(circle, rgba(234,246,243,.95), rgba(234,246,243,0) 70%); animation-delay: -7s; }
.aurora__blob--3 { width: 30vw; height: 30vw; left: 34vw;  bottom: -8vw; background: radial-gradient(circle, rgba(250,235,209,.8), rgba(250,235,209,0) 70%); animation-delay: -14s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -3vw, 0) scale(1.14); }
}

/* Тонка сітка-«лінійка» поверх */
.hero__mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(138,120,115,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(138,120,115,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 1000px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }

.hero__title { margin-block: var(--s-24) var(--s-24); }
.hero__title em {
  font-style: italic;
  color: var(--brand-600);
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .04em; height: .1em;
  background: color-mix(in srgb, var(--brand-200) 60%, white 40%);
  border-radius: var(--r-pill);
  z-index: -1;
  transform-origin: left;
  animation: swipe 1.1s .7s var(--ease-out) both;
}
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-16); margin-top: var(--s-40); }

.hero__proof {
  margin-top: clamp(40px, 4vw, 64px);
  padding-top: var(--s-32);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-24);
}
.hero__proof-item b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-40);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -.02em;
}
.hero__proof-item span { display: block; margin-top: 8px; font-size: var(--fs-15); color: var(--text-muted); line-height: 1.4; }

/* ---- Медіа-колонка героя ---- */
.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 280px 280px var(--r-lg) var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: var(--shadow-xl);
  background: color-mix(in srgb, var(--sand) 60%, white 40%);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(217,136,128,.06), transparent 40%, rgba(116,112,112,.14));
}
@media (max-width: 1000px) { .hero__frame { aspect-ratio: 4/3.4; border-radius: var(--r-lg); } }

/* Плаваюча картка «рейтинг» */
.hero__float {
  position: absolute;
  left: -34px;
  bottom: 56px;
  background: rgba(255,253,252,.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--s-20) var(--s-24);
  display: grid; gap: 6px;
  animation: float 6s var(--ease-in-out) infinite alternate;
  max-width: 260px;
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.hero__float .stars { display: flex; gap: 3px; color: var(--amber-500); }
.hero__float .stars svg { width: 17px; height: 17px; }
@media (max-width: 620px) { .hero__float { left: 12px; bottom: 12px; } }

/* ---- Райдужка (SVG-віджет) ---- */
.iris-wrap {
  position: absolute;
  right: -10px;
  top: 32px;
  width: clamp(120px, 15vw, 176px);
  aspect-ratio: 1;
  z-index: 2;
  filter: drop-shadow(0 22px 40px rgba(60,30,22,.28));
}
.iris { width: 100%; height: 100%; }
.iris__fibers { transform-origin: 50% 50%; animation: spin 46s linear infinite; }
.iris__fibers--rev { animation: spin 62s linear infinite reverse; opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
.iris__pupil { transform-origin: 50% 50%; transition: transform .9s var(--ease-out); }
.iris__glint { animation: glint 5.5s var(--ease-in-out) infinite; }
@keyframes glint { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
@media (max-width: 1000px) { .iris-wrap { display: none; } }

/* =========================================================================
   Service cards
   ========================================================================= */

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
  padding: var(--s-32);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.svc::before {
  content: "";
  position: absolute; inset: auto -30% -60% -30%; height: 78%;
  background: radial-gradient(60% 100% at 50% 100%, color-mix(in srgb, var(--svc-wash, var(--brand-050)) 60%, white 40%), transparent 72%);
  opacity: 0; z-index: -1;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--svc-line, var(--brand-200)); }
.svc:hover::before { opacity: 1; }
.svc__num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display);
  font-size: var(--fs-26);
  color: var(--ink-150);
  line-height: 1;
  transition: color var(--dur) var(--ease-out);
}
.svc:hover .svc__num { color: var(--svc-color, var(--brand-300)); }
.svc__icon {
  display: grid; place-items: center;
  width: 66px; height: 66px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--svc-wash, var(--brand-050)) 60%, white 40%);
  color: var(--svc-color, var(--brand-600));
  flex: none;
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.svc__icon svg { width: 34px; height: 34px; }
.svc:hover .svc__icon { transform: scale(1.06) rotate(-4deg); background: var(--svc-color, var(--brand-600)); color: #fff; }
.svc__title { font-size: var(--fs-22); font-weight: 600; line-height: 1.3; color: var(--ink-900); letter-spacing: -.01em; }
.svc__text { font-size: var(--fs-16); color: var(--text-muted); line-height: 1.6; flex: 1; }
.svc__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); padding-top: var(--s-4); }
.svc__price { font-size: var(--fs-15); color: var(--ink-600); line-height: 1.4; }
.svc__price b { font-size: var(--fs-17); color: var(--ink-900); font-weight: 700; }

/* Крупна «герой-картка» напряму */
.svc--wide { grid-column: span 2; flex-direction: row; align-items: center; gap: var(--s-40); padding: var(--s-40); }
.svc--wide .svc__icon { width: 88px; height: 88px; border-radius: 26px; }
.svc--wide .svc__icon svg { width: 46px; height: 46px; }
.svc--wide .svc__body { display: grid; gap: var(--s-12); }
.svc--wide .svc__title { font-size: var(--fs-26); }
@media (max-width: 900px) { .svc--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; padding: var(--s-32); } }

/* =========================================================================
   Feature / value blocks
   ========================================================================= */

.value {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: var(--s-20);
  align-items: start;
}
.value__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px;
  background: color-mix(in srgb, var(--jade-050) 60%, white 40%); color: var(--jade-600);
}
.value__icon svg { width: 27px; height: 27px; }
.value__title { font-size: var(--fs-20); font-weight: 600; line-height: 1.32; margin-bottom: 8px; color: var(--ink-900); }
.value__text { font-size: var(--fs-16); color: var(--text-muted); line-height: 1.6; }

/* Нумерований список кроків */
.steps { counter-reset: step; display: grid; gap: var(--s-4); }
.step {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: var(--s-24);
  padding: var(--s-24) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center;
  width: 62px; height: 62px;
  border: 1.5px solid var(--line-brand);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--fs-20);
  color: var(--brand-700);
  line-height: 1;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
}
.step:hover::before { background: var(--brand-600); color: #fff; border-color: var(--brand-600); transform: scale(1.06); }
.step__title { font-size: var(--fs-22); font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.step__text { font-size: var(--fs-17); color: var(--text-muted); line-height: 1.62; }

/* =========================================================================
   Stats
   ========================================================================= */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--line) 60%, white 40%); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: #ffffff; padding: clamp(28px, 3vw, 44px); text-align: center; transition: background-color var(--dur) var(--ease-out); }
.stat:hover { background: color-mix(in srgb, var(--brand-050) 60%, white 40%); }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-52);
  line-height: 1;
  color: var(--brand-700);
  letter-spacing: -.03em;
  font-weight: 500;
  display: block;
}
.stat__label { margin-top: var(--s-12); font-size: var(--fs-16); color: var(--text-muted); line-height: 1.45; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================================
   Accordion
   ========================================================================= */

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-24);
  width: 100%; padding: var(--s-24) 0;
  border: 0; background: transparent; cursor: pointer; text-align: left;
  font-family: var(--font-body);
  font-size: var(--fs-20);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-900);
  transition: color var(--dur) var(--ease-out);
}
.acc__btn:hover { color: var(--brand-700); }
.acc__item.is-open .acc__btn { color: var(--brand-700); }
.acc__sign {
  position: relative; flex: none;
  width: 40px; height: 40px; margin-top: -3px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 15px; height: 1.8px; background: currentColor; border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.acc__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__sign { background: var(--brand-600); border-color: var(--brand-600); color: #fff; transform: rotate(180deg); }
.acc__item.is-open .acc__sign::after { opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease-out); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__content { padding-bottom: var(--s-32); max-width: 74ch; }

/* =========================================================================
   Prose — контентна типографіка
   ========================================================================= */

.prose { font-size: var(--fs-17); line-height: var(--lh-relaxed); color: var(--ink-700); max-width: 74ch; }
.prose > * + * { margin-top: var(--s-20); }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-32); line-height: 1.2; color: var(--ink-900); margin-top: var(--s-48); letter-spacing: -.012em; font-weight: 500; }
.prose h3 { font-family: var(--font-body); font-size: var(--fs-22); line-height: 1.34; color: var(--ink-900); margin-top: var(--s-40); font-weight: 700; }
.prose h4 { font-size: var(--fs-18); font-weight: 700; color: var(--ink-900); margin-top: var(--s-32); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand-800); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: 13px; }
.prose ul > li { position: relative; padding-left: 34px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-400);
}
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 42px; counter-increment: li; }
.prose ol > li::before {
  content: counter(li);
  position: absolute; left: 0; top: -1px;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand-050) 60%, white 40%); color: var(--brand-700);
  font-size: var(--fs-14); font-weight: 700; line-height: 1;
}
.prose blockquote {
  margin: var(--s-32) 0;
  padding: var(--s-24) var(--s-32);
  border-left: 3px solid var(--brand-500);
  background: color-mix(in srgb, var(--brand-050) 60%, white 40%);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-display);
  font-size: var(--fs-22);
  line-height: 1.5;
  color: var(--ink-800);
  font-style: italic;
}
.prose blockquote p + p { margin-top: var(--s-12); }
.prose table {
  width: 100%; border-collapse: collapse; font-size: var(--fs-16);
  margin-block: var(--s-32);
}
.prose thead th {
  text-align: left; padding: 15px 18px;
  background: var(--ink-900); color: var(--text-invert);
  font-size: var(--fs-15); font-weight: 700; line-height: 1.35;
}
.prose thead th:first-child { border-radius: var(--r-xs) 0 0 0; }
.prose thead th:last-child { border-radius: 0 var(--r-xs) 0 0; }
.prose tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.prose tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ink-050) 60%, white 40%); }
.prose hr { height: 1px; border: 0; background: color-mix(in srgb, var(--line) 60%, white 40%); margin-block: var(--s-40); }
.prose img { border-radius: var(--r-md); margin-block: var(--s-32); box-shadow: var(--shadow-md); }
.prose figcaption { font-size: var(--fs-14); color: var(--text-muted); text-align: center; margin-top: -18px; }
.prose--wide { max-width: none; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =========================================================================
   Eye navigator — 9 напрямів як сектори райдужки
   ========================================================================= */

.eyenav { display: grid; gap: var(--s-40); }

.eyenav__stage {
  position: relative;
  width: min(920px, 100%);
  margin-inline: auto;
  aspect-ratio: 820 / 600;
  filter: drop-shadow(0 44px 80px rgba(60, 30, 22, .2));
}

.eyenav__svg { width: 100%; height: 100%; overflow: visible; }

.eyenav__lid {
  fill: none;
  stroke: var(--brand-200);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.eyenav__sector {
  cursor: pointer;
  transform: translate(0, 0);
  transition: transform .42s var(--ease-spring), filter .42s var(--ease-out);
}
.eyenav__sector:focus { outline: none; }

.eyenav__slice { transition: opacity .34s var(--ease-out); }
.eyenav__slice--hot { opacity: 0; }

.eyenav__icon { color: var(--sector-ink); transform-box: fill-box; transform-origin: center;
  transition: color .34s var(--ease-out), transform .42s var(--ease-spring); }
.eyenav__icon use { color: inherit; }

.eyenav__sector:hover,
.eyenav__sector:focus-visible,
.eyenav__sector.is-active {
  transform: translate(var(--push-x), var(--push-y));
  filter: url(#en-lift);
}
.eyenav__sector:hover .eyenav__slice--hot,
.eyenav__sector:focus-visible .eyenav__slice--hot,
.eyenav__sector.is-active .eyenav__slice--hot { opacity: 1; }

.eyenav__sector:hover .eyenav__icon,
.eyenav__sector:focus-visible .eyenav__icon,
.eyenav__sector.is-active .eyenav__icon { color: #FFF8F5; transform: scale(1.12); }

.eyenav__sector:focus-visible .eyenav__slice { stroke: var(--ink-900); stroke-width: 4; }

.eyenav__pupil { transition: r .5s var(--ease-out); }
.eyenav__glint { animation: glint 9s var(--ease-in-out) infinite; }

/* Центральна «зіниця» з підписом активного напряму */
.eyenav__hub {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 29%;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: var(--text-invert);
  pointer-events: none;
}
.eyenav__num {
  font-family: var(--font-display);
  font-size: var(--fs-20);
  line-height: 1;
  color: var(--brand-300);
  letter-spacing: .04em;
}
.eyenav__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.85vw, 26px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.eyenav__tagline {
  font-size: var(--fs-14);
  line-height: 1.45;
  color: rgba(255, 248, 245, .72);
  max-width: 26ch;
  text-wrap: pretty;
}
.eyenav__go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: none;
  color: var(--brand-300);
}
.eyenav__go svg { width: 15px; height: 15px; }

/* Дубль-перелік: на широких екранах — компактні рядки під колесом,
   на вузьких — єдина навігація замість SVG */
.eyenav__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-8) var(--s-24);
}
.eyenav__list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: var(--s-16);
  padding: 13px 16px;
  border-radius: var(--r-sm);
  transition: background-color var(--dur) var(--ease-out);
}
.eyenav__list a:hover { background: color-mix(in srgb, var(--brand-050) 60%, white 40%); }
.eyenav__list-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--brand-050) 60%, white 40%);
  color: var(--brand-600);
}
.eyenav__list-icon svg { width: 22px; height: 22px; }
.eyenav__list b { display: block; font-size: var(--fs-16); font-weight: 600; line-height: 1.3; color: var(--ink-900); }
.eyenav__list span span { display: block; margin-top: 3px; font-size: var(--fs-14); color: var(--text-muted); line-height: 1.35; }
.eyenav__list-arrow { width: 18px; height: 18px; color: var(--ink-300); }
.eyenav__list a:hover .eyenav__list-arrow { color: var(--brand-600); }

@media (max-width: 1000px) { .eyenav__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .eyenav__stage { display: none; }
  .eyenav__list { grid-template-columns: minmax(0, 1fr); }
  .eyenav__list a { background: #ffffff; border: 1px solid var(--line); }
}
