/* Український центр харчових інновацій (UFIC).
   Гайдлайн: зелений (CMYK 80/52/100/31), помаранчевий (0/35/85/0), синій
   (85/50/0/0), білий; шрифт Gill Sans — SemiBold і Bold основні, Light
   допоміжний. Значення кольорів зняті з файлу логотипа.

   Зелений несе текст і площини. Помаранчевий і синій — лише акценти, як
   два листки над колбою: помаранчевий на білому не тягне контрасту для
   тексту, тож ним нічого не пишемо. */

:root {
  --green: #39552d;
  --green-900: #1f2f18;
  --green-800: #2b4122;
  --green-500: #587a48;
  --green-200: #c9d6c0;
  --green-100: #e2eadc;
  --green-50: #f1f5ee;

  --orange: #fcb040;
  --orange-100: #feebc8;
  --blue: #0f75bd;
  --blue-100: #d6e8f5;

  --paper: #fbfaf6;
  --white: #fff;
  --ink: #1e2a19;
  --ink-soft: #4b5845;
  --line: #dde4d6;

  --font: "Gill Sans", "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(31, 47, 24, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 47, 24, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --ic-accent: var(--orange);
  --ic-accent-2: var(--blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 104px; }

body.ufic {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Базові правила — через :where(), з нульовою специфічністю: інакше
   `.ufic p` перебивав би відступи компонентів на кшталт `.u-note`. */
:where(.ufic) img { max-width: 100%; height: auto; display: block; }
:where(.ufic) a { color: inherit; }
:where(.ufic) :is(h1, h2, h3) { font-weight: 600; margin: 0; color: var(--green); letter-spacing: -0.005em; }
:where(.ufic) h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; }
:where(.ufic) h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
:where(.ufic) h3 { font-size: 21px; line-height: 1.2; }
:where(.ufic) p { margin: 0; }

.u-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.ufic :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* --- піктограми ---------------------------------------------------------- */

.ic {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- кнопки й дрібниці -------------------------------------------------- */

.u-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: #fff !important; text-decoration: none;
  font: 600 17px/1.2 var(--font); cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.u-btn:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-1px); }
.u-btn-outline { background: transparent; color: var(--green) !important; }
.u-btn-outline:hover { background: var(--green-50); border-color: var(--green); }
.u-btn-light { background: #fff; border-color: #fff; color: var(--green) !important; }
.u-btn-light:hover { background: var(--green-100); border-color: var(--green-100); }
.u-btn-sm { padding: 9px 18px; font-size: 16px; }
.u-btn-block { width: 100%; }

.u-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Кікер: підпис над заголовком з двома листками логотипа. */
.u-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-500); margin-bottom: 14px;
}
.u-kicker::before {
  content: ""; width: 11px; height: 11px; border-radius: 100% 0;
  background: var(--orange); box-shadow: 14px -3px 0 -2px var(--blue);
  margin-right: 12px;
}
.u-kicker-light { color: var(--green-100); }

.u-lead { font-size: 21px; line-height: 1.5; color: var(--ink-soft); font-weight: 300; }

.u-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--orange); color: var(--green-900);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* --- шапка --------------------------------------------------------------- */

.u-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 246, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.u-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.u-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.u-brand img { width: 56px; height: 56px; }
/* Назва приходить одним рядком; ширина розбиває її на два: «Український
   центр» / «харчових інновацій». */
.u-brand-name { max-width: 10em; font-size: 17px; font-weight: 600; line-height: 1.12; color: var(--green); }
.u-nav { display: flex; align-items: center; gap: 26px; }
.u-nav a:not(.u-btn) {
  text-decoration: none; font-size: 17px; color: var(--ink);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.u-nav a:not(.u-btn):hover { color: var(--green); border-bottom-color: var(--orange); }
.u-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

/* Кнопка-сендвіч: з'являється на вузькому екрані (див. наприкінці файла). */
.u-nav-toggle {
  display: none; flex: none; place-items: center; width: 44px; height: 44px; padding: 0;
  background: none; border: 1.5px solid var(--green-200); border-radius: 50%;
  color: var(--green); cursor: pointer; transition: background .2s, border-color .2s;
}
.u-nav-toggle:hover, .u-nav-toggle[aria-expanded="true"] { background: var(--green-50); border-color: var(--green); }
.u-nav-bars, .u-nav-bars::before, .u-nav-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: top .2s, transform .2s, background .2s;
}
.u-nav-bars { position: relative; }
.u-nav-bars::before, .u-nav-bars::after { content: ""; position: absolute; left: 0; }
.u-nav-bars::before { top: -6px; }
.u-nav-bars::after { top: 6px; }
/* Відкрите меню: три смуги складаються в хрестик. */
[aria-expanded="true"] > .u-nav-bars { background: transparent; }
[aria-expanded="true"] > .u-nav-bars::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] > .u-nav-bars::after { top: 0; transform: rotate(-45deg); }
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Смуга над шапкою харчової академії: вона — підрозділ Центру, поруч з
   Академією дистиляції. Така сама смуга є в тієї (`.umbrella` у style.css). */
.u-umbrella { background: var(--green-900); color: var(--green-200); font-size: 15px; }
.u-umbrella-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.u-umbrella a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.u-umbrella a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.u-umbrella img { width: 28px; height: 28px; }
.u-umbrella-sibling { margin-left: auto; white-space: nowrap; }

/* --- герой --------------------------------------------------------------- */

/* Перший екран — на всю висоту вікна (у розумних межах). Тло — два теплі
   відсвіти фірмових кольорів. */
.u-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: clamp(640px, calc(100svh - 80px), 940px); padding-top: 48px;
  background:
    radial-gradient(900px 600px at 88% 8%, rgba(252, 176, 64, .15), transparent 62%),
    radial-gradient(800px 700px at -5% 105%, rgba(88, 122, 72, .14), transparent 60%),
    var(--paper);
}
.u-hero-grid {
  position: relative; z-index: 1; flex: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-bottom: 56px;
}
/* Заголовок завжди в три рядки: «Від сировини / до продукту / на полиці»
   в Центру, «Вчимо робити / продукт / зі свого врожаю» в харчовій академії. */
.u-hero h1 { isolation: isolate; font-size: clamp(44px, 5.6vw, 80px); line-height: .98; letter-spacing: -.012em; }
.u-hero h1 > span { display: block; }
/* «до продукту» підкреслено помаранчевим мазком, що домальовується. */
.u-h1-accent { position: relative; white-space: nowrap; }
.u-h1-accent::after {
  content: ""; position: absolute; z-index: -1; left: -.04em; right: -.04em; bottom: .04em; height: .2em;
  border-radius: 999px; background: var(--orange); opacity: .8; transform-origin: left center;
}
.u-hero .u-lead { margin-top: 22px; max-width: 32em; }

/* Рядок перетворень: «сировина → продукт» по напрямах, по одному. */
.u-morph { margin-top: 28px; }
.u-morph ul { list-style: none; margin: 0; padding: 0; display: inline-grid; }
.u-morph li {
  grid-area: 1 / 1; justify-self: start; display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); white-space: nowrap;
  opacity: 0; transform: translateY(70%); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.u-morph li.is-in { opacity: 1; transform: none; }
.u-morph li.is-out { opacity: 0; transform: translateY(-70%); }
.u-morph-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; }
.u-morph-icon .ic { width: 24px; height: 24px; }
.u-morph-from { font-size: 20px; color: var(--ink-soft); }
.u-morph-arrow { width: 22px; height: 22px; color: var(--orange); stroke-width: 2.4; }
.u-morph-to { font-size: 22px; font-weight: 600; color: var(--green); }
.u-morph-dir {
  margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--line);
  font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}

/* Колаж шляху продукту: поле → лабораторія → продукт, логотип поверх. */
.u-collage { position: relative; margin: 0; height: clamp(460px, 42vw, 580px); }
.u-collage-tile { position: absolute; overflow: hidden; border-radius: var(--radius-lg); background: var(--green-100); box-shadow: var(--shadow-lg); }
.u-collage-tile img { width: 100%; height: 100%; object-fit: cover; }
.u-collage-raw { left: 8%; top: 0; width: 60%; height: 90%; }
.u-collage-raw img { object-position: 30% 50%; }
.u-collage-lab { z-index: 1; right: 0; top: 6%; width: 54%; aspect-ratio: 4 / 3; border: 6px solid #fff; }
.u-collage-product { z-index: 1; right: 3%; bottom: 0; width: 40%; aspect-ratio: 1; border: 6px solid #fff; }
.u-collage-tag {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .92);
  font-size: 14px; font-weight: 600; color: var(--green);
}
.u-collage-raw .u-collage-tag { top: 14px; bottom: auto; left: 14px; }
.u-collage-tag b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: var(--green-900); font-size: 12px; }
/* .u-collage у селекторі — щоб перебити position: relative з .u-emblem нижче. */
.u-collage .u-hero-seal { position: absolute; z-index: 2; left: -3%; bottom: 3%; width: 200px; height: 200px; }

/* Тло: кільце напису логотипа ледь обертається, пливуть листочки. */
.u-hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.u-hero-ring { position: absolute; right: -10%; top: 46%; width: min(860px, 72vw); max-width: none; opacity: .07; transform: translateY(-50%); }
.u-float { position: absolute; width: 18px; height: 18px; border-radius: 100% 0; background: var(--orange); opacity: .6; }
.u-float-1 { left: 5%; top: 16%; }
.u-float-2 { left: 47%; top: 9%; width: 12px; height: 12px; background: var(--blue); }
.u-float-3 { left: 51%; bottom: 30%; width: 14px; height: 14px; }
.u-float-4 { right: 3%; top: 70%; width: 16px; height: 16px; background: var(--blue); }

.u-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.u-stats div { margin: 0; }
.u-stats dt { font-size: 40px; font-weight: 600; line-height: 1; color: var(--green); }
.u-stats dd { margin: 8px 0 0; font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.u-stats-compact dt { font-size: 34px; }
.u-hero .u-stats { margin-top: 36px; padding-top: 20px; }
.u-hero .u-stats dt { font-size: 32px; }

/* --- секції -------------------------------------------------------------- */

.u-section { padding: 96px 0; }
.u-section-tint { background: var(--green-50); }
.u-head { max-width: 780px; margin-bottom: 52px; }
.u-head .u-lead { margin-top: 18px; }

/* Шлях: кільця, як у концепції, зв'язані лінією. */
.u-path {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.u-path li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.u-path li:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; left: calc(50% + 58px); right: calc(-50% + 58px);
  height: 2px; background: repeating-linear-gradient(90deg, var(--green-200) 0 8px, transparent 8px 14px);
}
.u-path-ring {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  border: 6px solid var(--green); background: #fff; color: var(--green); margin-bottom: 10px;
}
.u-path-ring .ic { width: 42px; height: 42px; stroke-width: 1.3; }
.u-path strong { font-size: 21px; font-weight: 600; color: var(--green); }
.u-path span:last-child { font-size: 15px; color: var(--ink-soft); max-width: 13em; }

/* Карта Центру (center/includes/map.html): Центр → послуги → дві
   академії. Пунктирні лінії між рівнями «течуть» донизу. */
.u-map { display: flex; flex-direction: column; align-items: center; }
.u-map-root {
  display: flex; align-items: center; gap: 16px; padding: 12px 30px 12px 12px;
  background: #fff; border: 2px solid var(--green); border-radius: 999px; box-shadow: var(--shadow);
}
.u-map-root img { width: 72px; height: 72px; }
.u-map-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-500); }
.u-map-root strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.15; color: var(--green); }
.u-map-link, .u-map-fork i { background: repeating-linear-gradient(180deg, var(--green) 0 6px, transparent 6px 12px); }
.u-map-link { width: 2px; height: 48px; }
.u-map-fork { position: relative; width: 100%; height: 48px; }
.u-map-fork i { position: absolute; top: 0; bottom: 0; width: 2px; }
.u-map-fork i:first-child { left: calc(25% - 5px); }
.u-map-fork i:last-child { left: calc(75% + 5px); }

.u-map-group {
  position: relative; width: 100%; padding: 40px 24px 24px;
  border: 2px solid var(--green); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .6);
}
.u-map-group-label {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0;
  padding: 7px 20px; border-radius: 999px; background: var(--green); color: #fff;
  font-size: 14px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
/* 4 колонки: сім послуг та інкубатор лягають рівно 4×2. */
.u-map-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.u-tile {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px;
  border: 2px solid var(--green-200); border-radius: var(--radius); background: #fff;
  color: var(--ink); text-decoration: none;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.u-tile:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow); }
.u-tile-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.u-tile .ic { width: 38px; height: 38px; color: var(--green); stroke-width: 1.3; }
.u-tile-no { font-size: 14px; letter-spacing: .1em; color: var(--ink-soft); }
.u-tile strong { font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--green); }
.u-tile-short { font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); }
/* Інкубатор — перспектива, тому рамка пунктирна. */
.u-tile-soon { border-style: dashed; }

/* Позначка стану: «Працює» — помаранчева, решта — контуром. */
.u-status {
  padding: 3px 9px; border: 1px solid var(--green-200); border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-500);
}
.u-status-live { border-color: var(--orange); background: var(--orange); color: var(--green-900); }

.u-map-shared { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.u-map-node {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px;
  border: 2px solid var(--green); border-radius: var(--radius-lg); background: #fff;
  color: var(--ink); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s;
}
a.u-map-node:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.u-map-node-head { display: flex; align-items: center; gap: 14px; }
.u-map-node-head img { width: 56px; height: 56px; flex: none; }
.u-map-node-head strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.15; color: var(--green); }
.u-map-node-text { font-size: 16px; color: var(--ink-soft); }
.u-map-node .u-more { margin-top: auto; padding-top: 0; }
/* Теми «пігулками»: в академій на карті й у напрямів харчової академії. */
.u-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.u-chips span {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--green-50); font-size: 14.5px;
}
.u-map-foot { margin-top: 28px; text-align: center; font-size: 17px; color: var(--ink-soft); }
.u-map-foot a { color: var(--green); font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 4px; }

/* Картки академій на /services/: дві поруч. */
.u-topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.u-topic-card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border: 2px solid var(--green-200); border-radius: var(--radius); background: #fff;
}
.u-topic-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.u-topic-card header .ic { width: 44px; height: 44px; color: var(--green); stroke-width: 1.3; }
.u-topic-card header img { width: 56px; height: 56px; }
.u-topic-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.u-topic-card h3 { font-size: 22px; }
.u-topic-card p { font-size: 16px; color: var(--ink-soft); }
.u-topic-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.u-topic-card li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.4; }
.u-topic-card li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 9px;
  border-radius: 100% 0; background: var(--orange);
}
.u-topic-card .u-more { margin-top: auto; padding-top: 12px; text-decoration: none; }
.u-topic-card .u-more:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.u-topic-card-live { border-color: var(--green); background: var(--green); color: #fff; }
.u-topic-card-live h3, .u-topic-card-live header .ic, .u-topic-card-live .u-more { color: #fff; }
.u-topic-card-live p, .u-topic-card-live .u-topic-kicker { color: var(--green-100); }
/* Знак Академії дистиляції — темний, на зеленій картці йому потрібна підкладка. */
.u-topic-card-live header img { padding: 4px; border-radius: 50%; background: #fff; }

/* Напрями харчової академії — рядками: назва, суть із темами, дія. Колонка
   назв однакової ширини, тож вони читаються згори донизу як зміст. */
.u-rows { list-style: none; margin: 0; padding: 0 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.u-row { display: grid; grid-template-columns: 340px minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: 30px 0; }
.u-row + .u-row { border-top: 1px solid var(--line); }
.u-row-head { display: flex; align-items: center; gap: 16px; }
.u-row-icon { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green); }
.u-row-icon .ic { width: 34px; height: 34px; stroke-width: 1.3; }
.u-row h3 { font-size: 23px; line-height: 1.15; }
.u-row-example { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.u-row-example .ic { width: 16px; height: 16px; color: var(--orange); stroke-width: 2.4; }
.u-row-body p { margin-bottom: 14px; font-size: 17.5px; line-height: 1.45; color: var(--ink); max-width: 38em; }
.u-row .u-btn { white-space: nowrap; }

/* Заклик під списком напрямів. */
.u-ask {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  margin-top: 20px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--green); color: #fff;
}
.u-ask h3 { color: #fff; font-size: 24px; }
.u-ask p { margin-top: 6px; font-size: 17px; color: var(--green-100); }

/* «Для кого» в харчовій академії */
.u-who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.u-who li {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border-top: 4px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius); background: var(--green-50);
}
.u-who strong { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--green); }
.u-who span { font-size: 16px; line-height: 1.45; color: var(--ink-soft); }

/* Навчальна платформа — у харчовій академії */
.u-platform { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.u-platform .u-lead { margin-top: 18px; }
/* Знак платформи: книга, колос і сировина всіх напрямів (static/img/platform/). */
.u-platform-mark { width: 104px; margin-bottom: 20px; }
.u-platform-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.u-platform-list li {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 18px;
}
.u-platform-list .ic { width: 28px; height: 28px; color: var(--green); }

/* Приклад фермера */
.u-case {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  padding: 64px; border-radius: var(--radius-lg);
  background: var(--green); color: #fff; box-shadow: var(--shadow-lg);
}
.u-case h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); }
.u-case p { margin-top: 18px; color: var(--green-100); font-size: 19px; font-weight: 300; }
.u-case blockquote { margin: 28px 0 0; padding-left: 18px; border-left: 4px solid var(--orange); font-size: 23px; line-height: 1.3; }

/* Ланцюжок кроків: пронумеровані «пігулки». */
.u-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: step; }
.u-chain li {
  counter-increment: step; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 9px; border-radius: 999px; font-size: 17px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
}
.u-chain li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  background: var(--orange); color: var(--green-900);
}
.u-chain-light { margin-top: 28px; }
.u-chain-light li { background: #fff; border-color: var(--line); color: var(--ink); }

/* План приміщення */
.u-plan { margin: 0; }
.u-plan-scroll { overflow-x: auto; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.u-plan-scroll > svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font); }
.u-room rect { fill: var(--room); stroke: var(--green); stroke-width: 4; }
.u-room text { font-size: 25px; font-weight: 600; fill: var(--green-900); }
.u-room .u-room-area { font-size: 22px; font-weight: 400; fill: var(--ink-soft); }
.u-room-make { --room: var(--green-100); }
.u-room-learn { --room: var(--orange-100); }
.u-room-lab { --room: var(--blue-100); }
.u-room-store { --room: #f3f4ee; }
.u-room-aux { --room: #fafaf7; }
.u-plan figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.u-plan-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--ink-soft); }
.u-plan-legend li { display: inline-flex; align-items: center; gap: 8px; }
.u-swatch { width: 20px; height: 20px; border-radius: 5px; background: var(--room); border: 2px solid var(--green); }
.u-plan-note { font-size: 14px; color: var(--ink-soft); }
.u-room .u-room-uses { font-size: 19px; font-weight: 600; letter-spacing: .06em; fill: var(--green-500); }

/* Перемикач напрямів над планом: обраний підсвічує свої приміщення. */
.u-plan-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.u-plan-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font: 15px/1.2 var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.u-plan-chip .ic { width: 20px; height: 20px; color: var(--green); }
.u-plan-chip:hover { border-color: var(--green); }
.u-plan-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.u-plan-chip[aria-pressed="true"] .ic { color: #fff; }
.u-plan-status { min-height: 1.5em; margin: 0 0 14px; font-size: 16px; color: var(--green); }

/* Тьмяніє вміст, а не сама кімната: на кімнаті й картці висить анімація
   появи, чий кінцевий кадр (opacity: 1) перебив би затемнення. */
.u-room > *, .u-room-card > * { transition: opacity .35s var(--ease); }
.u-room, .u-room-card { transition: filter .35s var(--ease); }
.u-room.is-dim > *, .u-room-card.is-dim > * { opacity: .22; }
.u-room.is-dim, .u-room-card.is-dim { filter: grayscale(1); }
.u-room.is-lit rect { stroke: var(--orange); stroke-width: 6; }
.u-room-card.is-lit { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }

/* Список приміщень під планом: що там і для кого. */
.u-rooms { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.u-room-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.u-room-card-head { display: flex; align-items: center; gap: 10px; }
.u-room-card-head strong { font-size: 18px; font-weight: 600; color: var(--green); line-height: 1.2; }
.u-room-card-head span { margin-left: auto; font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.u-room-card-head .u-swatch { flex: none; }
.u-room-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.45; }
.u-room-card-uses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.u-room-all, .u-room-dir {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; background: var(--green-50); font-size: 13.5px; color: var(--green);
}
.u-room-all { background: var(--green); color: #fff; font-weight: 600; }
.u-room-dir .ic { width: 16px; height: 16px; }

/* Заявка */
.u-contact { padding: 96px 0; background: var(--green); color: #fff; }
.u-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.u-contact h2 { color: #fff; }
.u-contact-grid > div:first-child > p { margin-top: 18px; font-size: 20px; font-weight: 300; color: var(--green-100); max-width: 30em; }
.u-contact-list { margin: 36px 0 0; display: grid; gap: 18px; }
.u-contact-list dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-200); }
.u-contact-list dd { margin: 2px 0 0; font-size: 21px; }
.u-contact-list a { text-decoration-color: var(--orange); text-underline-offset: 4px; }

.u-form { padding: 36px; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.u-form h3 { font-size: 24px; margin-bottom: 20px; }
.u-form form { display: grid; gap: 16px; }
.u-field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.u-field input, .u-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.u-field input:focus, .u-field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 3px var(--green-100); }
.u-field textarea { resize: vertical; min-height: 96px; }
.u-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.u-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); }
.u-consent a { color: var(--blue); }
.u-error { margin-top: -8px; font-size: 14px; color: #b3261e; }
.u-thanks h3 { margin-bottom: 8px; }

/* --- сторінка послуг ----------------------------------------------------- */

.u-intro { padding: 72px 0 48px; }
.u-intro .u-lead { margin-top: 20px; max-width: 42em; }
.u-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.u-jump a {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 16px; text-decoration: none; transition: border-color .2s, color .2s;
}
.u-jump a:hover { border-color: var(--green); color: var(--green); }

.u-dir { padding: 88px 0; }
.u-dir-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.u-dir-grid-wide { grid-template-columns: 1fr; max-width: 900px; }
.u-section-tint .u-dir-media, .u-section-tint .u-gallery { order: -1; }
.u-dir-no { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 15px; letter-spacing: .1em; color: var(--ink-soft); }
.u-dir-no .ic { width: 40px; height: 40px; color: var(--green); stroke-width: 1.3; }
.u-dir-body .u-lead { margin-top: 18px; }
.u-dir-media { margin: 0; position: sticky; top: 112px; }
.u-dir-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.u-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: sticky; top: 112px; }
.u-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }

.u-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 36px; margin-top: 36px; }
.u-groups h3 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.u-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.u-groups li { position: relative; padding-left: 22px; font-size: 17px; line-height: 1.4; }
.u-groups li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 10px; height: 10px;
  border-radius: 100% 0; background: var(--orange);
}

.u-quote { margin: 28px 0 0; padding-left: 20px; border-left: 4px solid var(--orange); font-size: 24px; line-height: 1.3; color: var(--green); }
.u-note {
  margin-top: 32px; padding: 16px 20px; font-size: 17px;
  border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: rgba(15, 117, 189, 0.07);
}
.u-contrast { display: grid; gap: 10px; margin-top: 28px; }
.u-contrast p { padding: 16px 20px; border-radius: 14px; font-size: 18px; }
.u-contrast span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.u-contrast p:first-child { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.u-contrast p:last-child { background: var(--green); color: #fff; }
.u-contrast p:last-child span { color: var(--orange); }

.u-incubator { background: var(--green-900); color: #fff; }
.u-incubator h2 { color: #fff; }
.u-incubator .u-lead, .u-incubator .u-dir-no { color: var(--green-100); }
.u-incubator .u-dir-no .ic { color: #fff; }
.u-incubator .u-quote { color: #fff; }
.u-incubator .u-note { background: rgba(255, 255, 255, 0.07); }
.u-stages { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: stage; }
.u-stages li { counter-increment: stage; padding: 18px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); }
.u-stages li::before { content: "0" counter(stage); display: block; font-size: 13px; letter-spacing: .12em; color: var(--orange); margin-bottom: 6px; }
.u-stages strong { display: block; font-size: 19px; font-weight: 600; }
.u-stages span { font-size: 15px; color: var(--green-100); }

/* --- логотип, що збирається (center/includes/emblem.html) ----------------
   Хронологія, с:  0.1 контур колби малюється · 0.15 падає зерно ·
   0.85 колба наповнюється · 1.05 бульбашки · 1.3 проявляється UFIC ·
   1.55 і 1.75 проростають листки · 1.8 закручується напис · 2.1 контур
   зникає — лишається рівно логотип. Далі листки ледь хитаються.
   Точки росту листків і межі колби — у відсотках полотна 616×616
   вихідного логотипа (горлечко y=215, дно колби y=494). */

.u-emblem {
  position: relative; display: block; padding: 0; border: 0; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-lg); cursor: pointer;
  transition: transform .4s var(--spring);
}
.u-emblem:hover { transform: scale(1.04) rotate(-2deg); }
.u-emblem .e-layer { position: absolute; inset: 7%; width: 86%; height: 86%; max-width: none; }
.e-fx { overflow: visible; pointer-events: none; }
.e-outline { fill: none; stroke: var(--green); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; opacity: 0; }
.e-bubble { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: center; }
.e-grain { opacity: 0; transform-box: fill-box; transform-origin: center; }
.e-grain path:first-child { fill: var(--orange); }
.e-grain-crease { fill: none; stroke: #d98b16; stroke-width: 4; stroke-linecap: round; }
.e-leaf-o { transform-origin: 61.9% 32.6%; }
.e-leaf-b { transform-origin: 63.8% 32.8%; }

.motion .u-emblem.is-playing .e-outline { animation: e-outline 2.7s ease-out .1s both; }
.motion .u-emblem.is-playing .e-grain { animation: e-grain 1s linear .15s both; }
.motion .u-emblem.is-playing .e-flask { animation: e-fill .9s cubic-bezier(.45, .05, .35, 1) .85s both; }
.motion .u-emblem.is-playing .e-bubble { animation: e-bubble 1.1s ease-in 1.05s both; }
.motion .u-emblem.is-playing .e-bubble:nth-of-type(2) { animation-delay: 1.3s; }
.motion .u-emblem.is-playing .e-bubble:nth-of-type(3) { animation-delay: 1.5s; }
.motion .u-emblem.is-playing .e-letters { animation: e-letters .8s var(--ease) 1.3s both; }
.motion .u-emblem.is-playing .e-leaf-o { animation: e-sprout-o .6s var(--ease) 1.55s both, e-sway 5s ease-in-out 3s infinite; }
.motion .u-emblem.is-playing .e-leaf-b { animation: e-sprout-b .6s var(--ease) 1.75s both, e-sway 5s ease-in-out 3.6s infinite reverse; }
.motion .u-emblem.is-playing .e-ring { animation: e-ring 1.3s cubic-bezier(.2, .8, .2, 1) 1.8s both; }

@keyframes e-outline {
  0% { opacity: 1; stroke-dashoffset: 1; }
  30%, 75% { opacity: 1; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
/* Зерно падає з прискоренням, сідає на горлечко і тоне в колбі. */
@keyframes e-grain {
  0% { opacity: 0; transform: translateY(-190px) rotate(-35deg); animation-timing-function: cubic-bezier(.45, 0, .9, .45); }
  12% { opacity: 1; }
  55% { transform: translateY(64px) rotate(0deg); animation-timing-function: ease-out; }
  66% { transform: translateY(52px) rotate(5deg) scale(1.04, .95); animation-timing-function: ease-in; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateY(185px) scale(.45); }
}
@keyframes e-fill {
  from { clip-path: inset(80.5% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes e-bubble {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  20% { opacity: .95; transform: translateY(-40px) scale(1); }
  85% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-250px); }
}
@keyframes e-letters {
  from { clip-path: inset(81% 0 0 0); transform: translateX(-5%); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes e-sprout-o {
  0% { opacity: 0; transform: scale(0) rotate(30deg); }
  15% { opacity: 1; }
  70% { transform: scale(1.12) rotate(-4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes e-sprout-b {
  0% { opacity: 0; transform: scale(0) rotate(-30deg); }
  15% { opacity: 1; }
  70% { transform: scale(1.14) rotate(5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes e-sway {
  0%, 100% { transform: none; }
  30% { transform: rotate(-4deg); }
  70% { transform: rotate(3deg); }
}
@keyframes e-ring {
  from { opacity: 0; transform: rotate(-150deg) scale(.88); }
  to { opacity: 1; transform: none; }
}

/* --- сцени, що грають при появі (static/js/center.js) ---------------------
   До появи сцена в початковому стані, з .is-playing — програється.
   --i — порядковий номер елемента, з нього затримки. Без .motion
   жодне з цих правил не діє: видно кінцевий стан. */

/* Карта: рівні з'являються згори донизу, лінії простягаються й «течуть»,
   картки послуг вискакують по одній. */
.motion .u-map:not(.is-playing) .u-map-step,
.motion .u-map-tiles:not(.is-playing) li,
.motion .u-who:not(.is-playing) li,
.motion .u-platform-list:not(.is-playing) li { opacity: 0; }
.motion .u-map.is-playing .u-map-step { animation: u-rise .6s var(--ease) calc(var(--i) * .35s) both; }
.motion .u-map.is-playing .u-map-link { animation: u-grow-y .45s ease-out calc(var(--i) * .35s) both, u-flow 1.2s linear infinite; transform-origin: top; }
.motion .u-map.is-playing .u-map-fork i { animation: u-grow-y .45s ease-out calc(var(--i) * .35s) both, u-flow 1.2s linear infinite; transform-origin: top; }
.motion .u-map-tiles.is-playing li { animation: u-pop-in .45s var(--spring) calc(var(--i) * 70ms + .8s) both; }
.motion .u-who.is-playing li { animation: u-rise .5s var(--ease) calc(var(--i) * .12s) both; }
.motion .u-platform-list.is-playing li { animation: u-slide .45s var(--ease) calc(var(--i) * .12s) both; }
@keyframes u-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes u-flow { from { background-position: 0 0; } to { background-position: 0 12px; } }

/* Шлях: кільця «загоряються» по черзі, пунктир добігає до наступного. */
.u-path li::after { transform-origin: left center; }
.motion .u-path:not(.is-playing) li { opacity: 0; }
.motion .u-path.is-playing li { animation: u-rise .6s var(--ease) calc(var(--i) * .3s) both; }
.motion .u-path.is-playing .u-path-ring { animation: u-ring .7s var(--ease) calc(var(--i) * .3s + .05s) both; }
.motion .u-path.is-playing .u-path-ring .ic { animation: u-pop .55s var(--spring) calc(var(--i) * .3s + .3s) both; }
.motion .u-path.is-playing li::after { animation: u-draw .45s ease-out calc(var(--i) * .3s + .45s) both; }

/* Ланцюжки кроків і кнопки-переходи: «пігулки» вискакують по одній. */
.motion .u-chain:not(.is-playing) li,
.motion .u-jump:not(.is-playing) a { opacity: 0; }
.motion .u-chain.is-playing li { animation: u-pop-in .45s var(--spring) calc(var(--i) * .12s + .15s) both; }
.motion .u-chain.is-playing li::before { animation: u-pop .5s var(--spring) calc(var(--i) * .12s + .3s) both; }
.motion .u-jump.is-playing a { animation: u-pop-in .4s var(--spring) calc(var(--i) * 50ms) both; }

/* Списки послуг і етапи інкубатора. */
.motion .u-groups:not(.is-playing) li,
.motion .u-stages:not(.is-playing) li { opacity: 0; }
.motion .u-groups.is-playing li { animation: u-slide .45s var(--ease) calc(var(--i) * 45ms + .1s) both; }
.motion .u-groups.is-playing li::before { animation: u-pop .45s var(--spring) calc(var(--i) * 45ms + .25s) both; }
.motion .u-stages.is-playing li { animation: u-rise .6s var(--ease) calc(var(--i) * .15s) both; }

/* План: кімнати з'являються одна за одною. */
.u-room { transform-box: fill-box; transform-origin: center; transition: filter .2s; }
.u-room:hover { filter: brightness(.96) saturate(1.4); }
.motion [data-play]:not(.is-playing) .u-room { opacity: 0; }
.motion .is-playing .u-room { animation: u-room .6s var(--ease) calc(var(--i) * 80ms) both; }
.motion .u-rooms:not(.is-playing) li { opacity: 0; }
.motion .u-rooms.is-playing li { animation: u-rise .5s var(--ease) calc(var(--i) * 60ms) both; }

/* Фото: герой повільно «наїжджає», фото напрямів наливаються знизу,
   як рідина в колбі логотипа. Від'ємний inset лишає місце тіні. */
.motion .u-collage-raw img { animation: u-kenburns 16s cubic-bezier(.2, .6, .3, 1) both; }
.motion .u-collage-raw { animation: u-tile .9s var(--ease) .05s both; }
.motion .u-collage-lab { animation: u-tile .8s var(--ease) .4s both; }
.motion .u-collage-product { animation: u-tile .8s var(--ease) .7s both; }
.motion .u-h1-accent::after { animation: u-draw .9s var(--ease) .5s both; }
.motion .u-morph li.is-in .u-morph-arrow { animation: u-nudge .6s var(--ease) .15s both; }
.motion .u-hero-ring { animation: u-spin 140s linear infinite; }
.motion .u-float { animation: u-drift 9s ease-in-out infinite alternate; }
.motion .u-float-2 { animation-duration: 11s; animation-delay: -3s; }
.motion .u-float-3 { animation-duration: 8s; animation-delay: -5s; }
.motion .u-float-4 { animation-duration: 12s; animation-delay: -2s; }

.motion .u-dir-media[data-reveal] img,
.motion .u-gallery[data-reveal] img {
  clip-path: inset(100% -60px -60px -60px); transform: scale(1.08);
  transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1) .15s, transform 1.6s var(--ease) .15s;
}
.motion .u-gallery[data-reveal] img:nth-child(2) { transition-delay: .3s; }
.motion .u-gallery[data-reveal] img:nth-child(3) { transition-delay: .45s; }
.motion .u-dir-media.is-revealed img,
.motion .u-gallery.is-revealed img { clip-path: inset(-60px); transform: none; }

/* Дрібниці: листки кікера проростають, «Працює» пульсує. */
.motion .u-status-live { animation: u-pulse 2.4s ease-out 1.5s infinite; }
.motion .is-revealed .u-kicker::before,
.motion .u-kicker.is-revealed::before { animation: u-sprout .8s var(--spring) .2s both; }

@keyframes u-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes u-slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes u-pop { from { opacity: 0; transform: scale(.3) rotate(-35deg); } to { opacity: 1; transform: none; } }
@keyframes u-pop-in { from { opacity: 0; transform: translateY(10px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes u-ring {
  from { border-color: var(--green-200); transform: scale(.72); }
  60% { border-color: var(--green); transform: scale(1.06); }
  to { transform: none; }
}
@keyframes u-draw { from { transform: var(--draw-from, scaleX(0)); } to { transform: none; } }
@keyframes u-room { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes u-kenburns { from { transform: scale(1.14); } to { transform: none; } }
@keyframes u-tile { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes u-nudge { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes u-spin { from { transform: translateY(-50%) rotate(0); } to { transform: translateY(-50%) rotate(360deg); } }
@keyframes u-drift { from { transform: translate(0, 0) rotate(0); } to { transform: translate(16px, -26px) rotate(40deg); } }
@keyframes u-sprout { from { transform: scale(0) rotate(-60deg); } to { transform: none; } }
@keyframes u-pulse {
  0% { box-shadow: 0 0 0 0 rgba(252, 176, 64, .6); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(252, 176, 64, 0); }
}

/* --- поява при прокручуванні (static/js/reveal.js) ----------------------- */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .u-btn, .u-tile, .u-map-node, .u-more .ic { transition: none; }
}

/* --- адаптив ------------------------------------------------------------- */

/* Колажу потрібна широка колонка — герой складається в одну раніше. */
@media (max-width: 1100px) {
  .u-hero { min-height: 0; }
  .u-hero-grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .u-collage { width: 100%; max-width: 640px; height: 500px; }
  .u-collage .u-hero-seal { width: 160px; height: 160px; left: 0; bottom: 0; }
  .u-hero-ring { right: -30%; top: 70%; width: 110vw; }
}

@media (max-width: 1000px) {
  .u-hero-grid, .u-contact-grid, .u-dir-grid, .u-case, .u-platform { grid-template-columns: 1fr; gap: 40px; }
  .u-map-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-row { grid-template-columns: 1fr; padding: 26px 0; }
  .u-row .u-btn { justify-self: start; }
  .u-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-dir-media, .u-gallery { position: static; order: 0 !important; }
  .u-path { grid-template-columns: 1fr; gap: 14px; }
  .u-path li { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; row-gap: 2px; text-align: left; align-items: center; }
  .u-path li > strong { align-self: end; }
  .u-path li > span:last-child { align-self: start; max-width: none; }
  .u-path li:not(:last-child)::after { top: 72px; bottom: -14px; left: 35px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--green-200) 0 6px, transparent 6px 11px); }
  .u-path li::after { --draw-from: scaleY(0); transform-origin: center top; }
  .u-path-ring { grid-row: span 2; width: 72px; height: 72px; border-width: 4px; margin: 0; }
  .u-path-ring .ic { width: 30px; height: 30px; }
  .u-case { padding: 40px; }
}

@media (max-width: 860px) {
  .u-header-row { flex-wrap: wrap; gap: 4px 16px; padding-top: 10px; padding-bottom: 6px; min-height: 0; }
  .u-brand img { width: 44px; height: 44px; }
  .u-brand-name { font-size: 15px; }
  .u-nav { width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 6px; white-space: nowrap; scrollbar-width: none; }
  .u-nav::-webkit-scrollbar { display: none; }
  .u-nav .u-btn { margin-left: auto; }
  [id] { scroll-margin-top: 130px; }

  /* Зі скриптом (клас `js` на <html>) меню ховається під сендвіч і
     відкривається панеллю під шапкою; шапка лишається в один рядок. */
  .js .u-header-row { flex-wrap: nowrap; padding-bottom: 10px; }
  .js .u-nav-toggle { display: grid; }
  .js .u-nav { display: none; }
  .js .u-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; width: auto;
    max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto;
    padding: 4px var(--gutter) 22px; white-space: normal;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .js .u-nav a:not(.u-btn) { padding: 14px 2px; font-size: 19px; border-bottom: 1px solid var(--line); }
  .js .u-nav a:not(.u-btn):hover { border-bottom-color: var(--line); }
  .js .u-nav .u-btn { margin: 18px 0 0; padding: 13px 20px; text-align: center; }
  .js [id] { scroll-margin-top: 84px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body.ufic { font-size: 17px; }
  .u-hero { padding-top: 28px; }
  .u-hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .u-morph-from { font-size: 17px; }
  .u-morph-to { font-size: 18px; }
  .u-morph-icon { width: 36px; height: 36px; }
  .u-morph-dir { display: none; }
  .u-collage { height: 380px; }
  .u-collage-raw { left: 0; width: 66%; height: 86%; }
  .u-collage-lab { width: 50%; border-width: 4px; }
  .u-collage-product { right: 2%; width: 38%; border-width: 4px; }
  .u-collage-tag { font-size: 12.5px; }
  .u-collage .u-hero-seal { width: 124px; height: 124px; left: 2%; bottom: 2%; }
  .u-lead { font-size: 19px; }
  .u-section, .u-dir, .u-contact { padding: 64px 0; }
  .u-stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .u-stats dt { font-size: 28px; }
  .u-stats dd { font-size: 13px; }
  .u-case { padding: 28px 22px; border-radius: var(--radius); }
  .u-form { padding: 24px 20px; }
  .u-stages { grid-template-columns: 1fr; }
  .u-plan-scroll { padding: 14px; }
  .u-map-root { padding: 10px 20px 10px 10px; border-radius: 28px; }
  .u-map-root img { width: 56px; height: 56px; }
  .u-map-root strong { font-size: 18px; }
  .u-map-group { padding: 34px 10px 12px; }
  .u-map-group-label { font-size: 12px; padding: 6px 14px; }
  .u-map-tiles { gap: 8px; }
  .u-tile { padding: 12px; }
  .u-tile strong { font-size: 16.5px; }
  .u-tile-short { display: none; }
  .u-tile .u-status { font-size: 9.5px; padding: 2px 6px; }
  .u-map-shared { grid-template-columns: 1fr; }
  .u-map-node { padding: 18px; }
  .u-map-node-head strong { font-size: 19px; }
  .u-topic-list, .u-who { grid-template-columns: 1fr; }
  .u-rows { padding: 0 18px; }
  .u-row-icon { width: 52px; height: 52px; }
  .u-row-icon .ic { width: 28px; height: 28px; }
  .u-row h3 { font-size: 21px; }
  .u-ask { padding: 22px 20px; }
  .u-umbrella-here { display: none; }
  .u-rooms { grid-template-columns: 1fr; }
  .u-plan-chip { padding: 6px 11px; font-size: 14px; }
  .u-map-fork i:first-child { left: calc(50% - 1px); }
  .u-map-fork i:last-child { display: none; }
}
