/* Галузеві сторінки: шрифт теми (GraphikLCG 100–400), тонкі заголовки, кола й підкреслені посилання, як на сайті.
   markup-style.css обнуляє заголовки й списки, тож усе своє задано тут. */

.aimm-idx, .aimm-toc, .aimm-hero, .aimm-sec, .aimm-nav {
  --ink: #000;
  --ink-2: rgba(0, 0, 0, .66);
  --mute: #767676;
  --line: rgba(0, 0, 0, .14);
  --soft: #f4f4f4;
}

/* #page{overflow:hidden} вимикає sticky; clip ріже зайве збоку, але не створює контейнер прокрутки */
.aimm-sector-page #page { overflow: visible; overflow-x: clip; }
.aimm-sector-page { scroll-padding-top: 72px; }

/* ── рядок напрямів над першим екраном ── */
.aimm-idx { background: #fff; border-bottom: 1px solid var(--line); }
.aimm-idx__list {
  display: flex;
  gap: 0 30px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.aimm-idx__list::-webkit-scrollbar { display: none; }
.aimm-idx__list a, .aimm-idx__list span {
  display: inline-block;
  padding: 18px 0 14px;
  border-bottom: 1.5px solid transparent;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}
.aimm-idx__list a:hover { color: #000; }
.aimm-idx__list a[aria-current="page"] { color: #000; border-bottom-color: #000; }
.aimm-idx__list span { color: var(--mute); }
.aimm-idx__list sup { margin-left: 4px; font-size: 10px; line-height: 1; letter-spacing: 0; color: var(--mute); }

/* ── перший екран ── */
.aimm-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 101px); /* під шапкою сайту й рядком напрямів: весь перший екран видно одразу */
  min-height: calc(100svh - 101px);
  color: #fff;
  background: #20241f;
  overflow: hidden;
}
.aimm-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.aimm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .58) 42%, rgba(0, 0, 0, .12) 78%, rgba(0, 0, 0, .04) 100%);
  pointer-events: none;
}
.aimm-hero__in {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 30px 40px; /* було 120 зверху: з ним текст не вміщався в задану висоту блоку (20.11.2026) */
}
.aimm-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
}
.aimm-crumbs a { color: inherit; text-decoration: none; }
.aimm-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.aimm-hero__title {
  margin: 22px 0 26px;
  font-weight: 250;
  font-size: clamp(42px, 7.4vw, 118px);
  /* розмір залежить і від висоти екрана: на невисоких ноутбуках заголовок менший і блок не росте (20.11.2026) */
  font-size: clamp(42px, min(7.4vw, 11vh), 118px);
  font-size: clamp(42px, min(7.4vw, 11svh), 118px);
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
}
.aimm-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.aimm-hero__lead {
  max-width: 660px;
  font-weight: 300;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.5;
  color: #fff;
}
.aimm-circle {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 172px;
  height: 172px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  color: #fff;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.aimm-circle:hover, .aimm-circle:focus-visible { background: #fff; color: #000; }
.aimm-circle__plus { font-weight: 200; font-size: 30px; line-height: 1; }
.aimm-hero__cap {
  margin-top: 22px;
  font-weight: 400;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* Перший екран нижчий за вікно: знизу видно початок наступного блоку, це кличе гортати (бюро 10.11.2026, п. 1).
   З 20.11.2026 текст першого екрана вміщається в цю висоту на будь-якому екрані (відступ зверху, розмір заголовка за висотою
   екрана, менші край і кнопка на невисоких екранах), тож висота однакова на всіх сторінках напрямів і в обох мовах.
   До того блок ріс за текстом: на ноутбуках до 1536 px і телефонах UK ЖК із заголовком у 2 рядки був вищий за EN на 40–100 px.
   Якщо текст усе ж вищий (дуже низький екран), блок росте за ним, як і раніше. Розбір: analysis/hero-width-2026-11-20/. */
.aimm-hero--peek {
  --aimm-peek: 176px; /* власник 11.11: «а еще немного» (було 128) */
  min-height: calc(100vh - 101px - var(--aimm-peek));
  min-height: calc(100svh - 101px - var(--aimm-peek));
}
@media (min-width: 768px) and (max-height: 800px) {
  .aimm-hero--peek { --aimm-peek: 120px; }
  .aimm-hero .aimm-circle { width: 140px; height: 140px; padding: 16px; }
}
@media (max-width: 767px) {
  .aimm-hero--peek { --aimm-peek: 120px; } /* було 160, але текст не вміщався: насправді видно було 69–135 px */
}

/* Слайдер першого екрана (бюро 10.11.2026, п. 2): кадри по черзі з плавним переходом і повільним наближенням.
   Перший кадр — власний кадр блоку, решта отримують адресу від скрипту перед показом. */
.aimm-hero--slides .aimm-hero__img { opacity: 0; transition: opacity 1.2s ease; will-change: opacity, transform; }
.aimm-hero--slides .aimm-hero__img.is-on { opacity: 1; animation: aimm-hero-zoom 9s linear forwards; }
.aimm-hero--slides .aimm-hero__img.is-prev { opacity: 0; }
/* на світлих кадрах (дахи під заголовком) тонкий білий H1 губиться: мʼяка тінь тримає контраст на всіх кадрах */
.aimm-hero--slides .aimm-hero__title { text-shadow: 0 2px 26px rgba(0, 0, 0, .38), 0 1px 3px rgba(0, 0, 0, .22); }
@keyframes aimm-hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.aimm-hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 22px; }
.aimm-hero__foot .aimm-hero__cap { margin-top: 0; }
.aimm-hero__caps { display: grid; }
.aimm-hero__caps > span { grid-area: 1 / 1; visibility: hidden; }
.aimm-hero__caps > span.is-on { visibility: visible; }
.aimm-hero__ctl { display: flex; align-items: center; gap: 14px; flex: none; }
.aimm-hero__ctl[hidden] { display: none; }
.aimm-hero__frac { font-weight: 400; font-size: 10px; line-height: 1; letter-spacing: .16em; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.aimm-hero__frac b { font-weight: 400; color: #fff; }
.aimm-hero__bar { position: relative; width: 72px; height: 1px; background: rgba(255, 255, 255, .32); overflow: hidden; }
.aimm-hero__bar i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.aimm-hero__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: transparent; color: #fff; cursor: pointer;
  transition: background .2s, color .2s;
}
.aimm-hero__btn:hover, .aimm-hero__btn:focus-visible { background: #fff; color: #000; }
.aimm-hero__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.aimm-hero__btn--prev svg { transform: scaleX(-1); }
.aimm-hero__ico { position: relative; width: 10px; height: 12px; }
.aimm-hero__ico::before, .aimm-hero__ico::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.aimm-hero__ico::before { left: 0; }
.aimm-hero__ico::after { right: 0; }
[aria-pressed="true"] > .aimm-hero__ico::before { left: 1px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
[aria-pressed="true"] > .aimm-hero__ico::after { display: none; }
@media (max-width: 767px) {
  .aimm-hero__foot { flex-direction: column; align-items: flex-start; margin-top: 18px; }
  .aimm-hero__bar { width: 48px; }
  .aimm-hero__btn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .aimm-hero--slides .aimm-hero__img { transition: none; }
  .aimm-hero--slides .aimm-hero__img.is-on { animation: none; }
}

/* смуга цифр одразу під кадром */
.aimm-sector-page .aimm-hero + .stats-band { padding-bottom: 0; }
.aimm-sector-page .aimm-hero + .stats-band .stats-band-inner { border-top: 0; border-bottom: 1px solid var(--line, rgba(0, 0, 0, .14)); }

/* ── зміст сторінки під цифрами ── */
.aimm-toc { max-width: 1600px; margin: 0 auto; padding: 0 30px; }
.aimm-toc__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
}
.aimm-toc__in a { color: #000; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, .3); }
.aimm-toc__in a:hover { border-bottom-color: #000; }
.aimm-sector-page .aimm-awards, .aimm-port__h { scroll-margin-top: 72px; }
.aimm-sector-page .quality { scroll-margin-top: 50px; }

/* ── розділи ── */
.aimm-sec {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(72px, 8.5vw, 140px) 30px 0;
  scroll-margin-top: 72px;
}
.aimm-sec--head { padding-bottom: 0; }
.aimm-sec--head .aimm-head { margin-bottom: 0; }
.aimm-sec--tail { padding-bottom: clamp(72px, 8.5vw, 140px); }
.aimm-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
@media (min-width: 900px) {
  .aimm-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 64px;
    align-items: end;
  }
}
.aimm-h2 {
  margin-top: 18px;
  font-weight: 200;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: #000;
}
.aimm-txt {
  max-width: 62ch;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.aimm-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #000;
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #000;
  text-decoration: none;
}
.aimm-more svg { transition: transform .3s; }
.aimm-more:hover svg { transform: translateX(4px); }

/* ── масштаб: сторона квадрата = √га, частка ширини ряду; без скрипта й без зсуву при завантаженні ── */
.aimm-plan {
  --gap: 14px;
  --u: calc((100% - (var(--n) - 1) * var(--gap) - 1px) / var(--sum));
}
.aimm-plan__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--gap);
  margin: 0;
  padding: 40px 0 0; /* зверху місце під кадр малого квадрата, щоб не заходив на текст */
  list-style: none;
}
.aimm-sq {
  position: relative;
  flex: none;
  width: calc(var(--u) * var(--s));
  min-width: 10px;
}
.aimm-sq:hover, .aimm-sq:focus-within, .aimm-sq.is-hot { z-index: 4; }
.aimm-sq__box {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  text-decoration: none;
  container-type: inline-size;
  outline-offset: 2px;
}
.aimm-sq__n {
  position: absolute;
  left: -1px;
  bottom: calc(100% + 6px);
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #000;
}
/* влучити в малий квадрат легше: зона наведення ширша за фігуру */
.aimm-sq__box::after { content: ""; position: absolute; inset: -6px; }
.aimm-sq.st-built .aimm-sq__box { background: #000; }
.aimm-sq.st-build .aimm-sq__box { background: repeating-linear-gradient(135deg, #000 0 1.2px, #fff 1.2px 7px); }
.aimm-sq__v {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: none;
  padding: 3px 5px;
  background: #fff;
  font-weight: 400;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@container (min-width: 74px) { .aimm-sq__v { display: block; } }
.aimm-sq__pic {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .25s;
}
.aimm-sq__box:hover .aimm-sq__pic,
.aimm-sq__box:focus-visible .aimm-sq__pic,
.aimm-sq.is-hot .aimm-sq__pic { opacity: 1; }
.aimm-sq__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aimm-sq__cap {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  background: #fff;
  color: #000;
  font-size: 13px;
  line-height: 1.3;
}
.aimm-sq__cap b { font-weight: 400; }
.aimm-sq__cap span { font-size: 11px; line-height: 1.4; color: var(--ink-2); }
@container (max-width: 199px) { .aimm-sq__cap span { display: none; } }
/* малий квадрат: кадр виходить над ним у збільшенні, як фрагмент на аркуші; тонка виноска веде до квадрата */
@container (max-width: 119px) {
  .aimm-sq__pic {
    inset: auto;
    left: 0;
    bottom: calc(100% + 10px);
    width: clamp(190px, 17vw, 240px);
    overflow: visible;
    background: #fff;
    border: 1px solid #000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
  }
  .aimm-sq__pic::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 100%;
    height: 10px;
    border-left: 1px solid #000;
  }
  .aimm-sq--end .aimm-sq__pic { left: auto; right: 0; }
  .aimm-sq--end .aimm-sq__pic::after { left: auto; right: 10px; }
  .aimm-sq__img { position: relative; display: block; height: auto; aspect-ratio: 16 / 9; }
  .aimm-sq__cap { position: static; padding: 9px 11px 10px; }
  .aimm-sq__cap span { display: block; }
}
/* на дотик кадри показує панель під рядом: перший дотик вибирає квадрат, посилання в панелі відкриває проєкт */
@media (hover: none) { .aimm-sq__pic { display: none; } }
.aimm-sq.is-on .aimm-sq__box { outline: 2px solid #000; }
.aimm-plan__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
  border: 1px solid #000;
  background: #fff;
}
.aimm-plan__panel[hidden] { display: none; }
.aimm-plan__panel img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.aimm-plan__panel div { padding: 2px 14px 14px; font-size: 16px; line-height: 1.3; }
.aimm-plan__panel span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.aimm-plan__panel a { display: inline-block; margin-top: 12px; }
.aimm-plan__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}
.aimm-rule {
  position: relative;
  flex: none;
  width: calc(var(--u) * 10);
  height: 26px;
  margin-right: 14px;
}
.aimm-rule i { position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: #000; }
.aimm-rule b { position: absolute; top: 0; width: 1px; height: 7px; background: #000; font-weight: 400; }
.aimm-rule em {
  position: absolute;
  top: 12px;
  font-style: normal;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
  transform: translateX(-50%);
}
.aimm-plan__refkey { display: inline-flex; align-items: center; gap: 8px; }
.aimm-plan__refkey .aimm-key { white-space: nowrap; }
.aimm-plan__ref {
  flex: none;
  width: calc(var(--u) * 1);
  min-width: 4px;
  aspect-ratio: 1 / 1;
  border: 1px dotted #000;
}
.aimm-key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
}
.aimm-key i { width: 12px; height: 12px; border: 1px solid #000; background: #fff; }
.aimm-key i.st-built { background: #000; }
.aimm-key i.st-build { background: repeating-linear-gradient(135deg, #000 0 1.2px, #fff 1.2px 4px); }
/* перелік під квадратами: хто є хто з першого погляду */
.aimm-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.aimm-legend li { min-width: 0; }
.aimm-lg {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 10px;
  align-content: start;
  height: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: #000;
  text-decoration: none;
  transition: background .2s;
}
a.aimm-lg:hover, .aimm-lg.is-hot { background: var(--soft); }
.aimm-lg__n { grid-row: span 2; font-weight: 400; font-size: 11px; line-height: 1.8; font-variant-numeric: tabular-nums; }
.aimm-lg__t { font-weight: 400; font-size: 15px; line-height: 1.35; }
.aimm-lg__m { font-weight: 300; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 1100px) {
  .aimm-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* на телефоні проєкт показує дотик, а картки йдуть одразу нижче */
  .aimm-legend, .aimm-sq__n { display: none; }
}
@media (max-width: 899px) {
  /* вузький екран: найбільший квадрат на пів ширини, решта стає поруч */
  .aimm-plan { --gap: 8px; --u: calc(50% / var(--max)); }
}

/* ── розгортка (житло, 19.11.2026): силует найвищого будинку кожного комплексу в одному масштабі за поверхами.
   Висота = частка ряду (--f1 / --top), подіум і вежа, коли поверховість задано проміжком; усе малює сервер, без зсувів. ── */
.aimm-plan--sky { --H: 320px; --ax: 34px; --g: 10px; }
.aimm-sky { position: relative; padding: 26px 0 0 var(--ax); }
.aimm-sky__axis { position: absolute; left: 0; right: 0; bottom: 0; height: var(--H); margin: 0; padding: 0; list-style: none; pointer-events: none; }
.aimm-sky__axis li { position: absolute; left: 0; right: 0; bottom: calc(var(--f) / var(--top) * 100%); border-top: 1px dashed #d4d4d4; }
.aimm-sky__axis span { position: absolute; left: 0; bottom: 3px; font-size: 11px; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.aimm-plan--sky .aimm-plan__row.aimm-sky__row {
  position: relative;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--g);
  height: var(--H);
  padding: 0;
  border-bottom: 1px solid #000;
}
.aimm-plan--sky .aimm-sk { position: static; display: flex; align-items: flex-end; flex: 1 1 0; width: auto; min-width: 0; max-width: 72px; }
.aimm-plan--sky .aimm-sk__box {
  position: relative;
  width: 100%;
  height: calc(var(--f1) / var(--top) * 100%);
  aspect-ratio: auto;
  border: 0;
  background: none;
  container-type: normal;
}
.aimm-plan--sky .aimm-sk.st-built .aimm-sk__box,
.aimm-plan--sky .aimm-sk.st-build .aimm-sk__box { background: none; }
.aimm-sk__t, .aimm-sk__b { position: absolute; bottom: 0; border: 1px solid #000; background: #fff; transition: box-shadow .2s; }
/* 25.11.2026: стовпчики однакового вигляду (Катерина: «бажано зробити однакового вигляду стовпчики»): прямокутник на всю ширину
   комірки до найвищого будинку; ступінь «основа + вежа» з діапазону поверхів прибрано, діапазон лишається в підписах і переліку. */
.aimm-sk__t { top: 0; left: 0; right: 0; }
.aimm-sk__b { display: none; }
.aimm-sk.st-built .aimm-sk__t, .aimm-sk.st-built .aimm-sk__b { background: #000; }
.aimm-sk.st-build .aimm-sk__t, .aimm-sk.st-build .aimm-sk__b { background: repeating-linear-gradient(135deg, #000 0 1.2px, #fff 1.2px 7px); }
.aimm-sk:hover .aimm-sk__t, .aimm-sk:hover .aimm-sk__b, .aimm-sk.is-hot .aimm-sk__t, .aimm-sk.is-hot .aimm-sk__b,
.aimm-sk:focus-within .aimm-sk__t, .aimm-sk:focus-within .aimm-sk__b,
.aimm-sk.is-on .aimm-sk__t, .aimm-sk.is-on .aimm-sk__b { box-shadow: 0 0 0 1px #000; }
.aimm-plan--sky .aimm-sq.is-on .aimm-sq__box { outline: 0; }
.aimm-plan--sky .aimm-sq__n { left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); }
/* кадр проєкту — у вільному «небі» праворуч угорі: силуети йдуть від найвищого, тож там порожньо */
.aimm-plan--sky .aimm-sq__pic {
  inset: auto;
  top: 0;
  right: 0;
  width: clamp(220px, 24vw, 300px);
  overflow: visible;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}
.aimm-plan--sky .aimm-sq__img { position: relative; display: block; height: auto; aspect-ratio: 16 / 9; }
.aimm-plan--sky .aimm-sq__cap { position: static; padding: 9px 11px 10px; }
.aimm-plan--sky .aimm-sq__cap span { display: block; }
.aimm-sk:hover .aimm-sq__pic, .aimm-sk:focus-within .aimm-sq__pic { opacity: 1; }
.aimm-key--fl { color: var(--ink-2); }

/* «вулиця AIMM» — превʼю з ?skyline=street (25.11.2026): види спереду в справжніх пропорціях, стрічка гортається вбік.
   --pxm — пікселів на метр за шкалою графіка (--H на --top поверхів по 3,3 м); --w, --h — розмір силуету в метрах. */
.aimm-plan--street { --pxm: calc(var(--H) / (var(--top) * 3.3)); }
.aimm-street__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.aimm-plan--street .aimm-street { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; padding-top: 26px; margin-top: -26px; }
.aimm-plan--street .aimm-plan__row.aimm-sky__row { position: static; width: max-content; gap: calc(20 * var(--pxm)); padding-right: calc(20 * var(--pxm)); }
.aimm-plan--street .aimm-st { flex: none; max-width: none; width: calc(var(--w) * var(--pxm)); }
.aimm-plan--street .aimm-st .aimm-sk__box { height: calc(var(--h) * var(--pxm)); }
.aimm-st__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aimm-st__svg .v { fill: #fff; stroke: #000; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: stroke-width .2s; }
.aimm-st__svg .d { fill: none; stroke: #000; stroke-width: .5; vector-effect: non-scaling-stroke; }
.aimm-st__svg .a { fill: #000; stroke: none; }
.aimm-st__svg .w { fill: #fff; stroke: #000; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; } /* заглиблена частина (виїмка терас), без штрихування статусу */
.aimm-st.st-build .aimm-st__svg .v { fill: url(#aimm-hatch-d); }
.aimm-st.st-built .aimm-st__svg .v { fill: #000; }
.aimm-st.st-built .aimm-st__svg .d { stroke: #fff; }
.aimm-st:hover .aimm-st__svg .v, .aimm-st.is-hot .aimm-st__svg .v, .aimm-st:focus-within .aimm-st__svg .v, .aimm-st.is-on .aimm-st__svg .v { stroke-width: 2; }
.aimm-street__nav { display: inline-flex; gap: 8px; margin-left: auto; }
.aimm-street__btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.aimm-street__btn:hover, .aimm-street__btn:focus-visible { background: #000; color: #fff; }
.aimm-street__btn[disabled] { opacity: .3; cursor: default; background: #fff; color: #000; }
@media (max-width: 767px) {
  .aimm-st.st-build .aimm-st__svg .v { fill: url(#aimm-hatch-m); }
  .aimm-street__btn { width: 36px; height: 36px; }
}
@media (max-width: 767px) {
  .aimm-plan--sky { --H: 220px; --ax: 22px; --g: 4px; }
  .aimm-sky { padding-top: 10px; }
}

/* ── покажчик: профілі закладів, як табло в холі лікарні (медичні заклади, 20.11.2026) ── */
.aimm-board { --bd-ink: #f2f2f2; --bd-mute: #a3a7ad; --bd-line: rgba(255, 255, 255, .14); background: #0e0f11; color: var(--bd-ink); }
.aimm-board__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bd-mute);
}
.aimm-board__list { margin: 0; padding: 0; list-style: none; }
.aimm-bd {
  display: grid;
  gap: 6px 22px;
  padding: 20px 24px;
  border-top: 1px solid var(--bd-line);
  color: var(--bd-ink);
  text-decoration: none;
  transition: background .2s;
}
a.aimm-bd:hover, a.aimm-bd:focus-visible { background: #1b1c20; color: var(--bd-ink); }
a.aimm-bd:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.aimm-bd__pr { font-weight: 300; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.aimm-bd__pj { font-weight: 400; font-size: 16px; line-height: 1.35; }
.aimm-bd__pj small { display: block; font-weight: 300; font-size: 13.5px; color: var(--bd-mute); }
.aimm-bd__d { font-weight: 300; font-size: 13.5px; line-height: 1.55; color: var(--bd-mute); }
.aimm-bd__d b { display: block; font-weight: 400; color: var(--bd-ink); }
.aimm-bd__ar { font-size: 22px; line-height: 1; justify-self: end; transition: transform .2s; }
a.aimm-bd:hover .aimm-bd__ar { transform: translateX(4px); }
@media (min-width: 900px) {
  .aimm-bd { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .9fr) 28px; align-items: baseline; padding: 24px 28px; }
  .aimm-board__head { padding: 18px 28px; }
}
@media (max-width: 899px) { .aimm-bd__ar { display: none; } }

/* ── географія: маршрут від Києва ── */
.aimm-geo { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.aimm-geo__node { position: relative; min-width: 0; padding: 0 0 30px 34px; }
.aimm-geo__node::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -4px;
  width: 1px;
  background: #000;
}
.aimm-geo__node:last-child::before { display: none; }
.aimm-geo__dot { position: absolute; left: 0; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: #000; }
.aimm-geo__km { font-weight: 400; font-size: 11.5px; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.aimm-geo__pl {
  margin: 6px 0 14px;
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #000;
}
.aimm-geo__it { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.aimm-geo__name { display: block; width: fit-content; font-weight: 400; font-size: 15.5px; line-height: 1.3; color: #000; text-decoration: none; border-bottom: 1px solid transparent; }
a.aimm-geo__name:hover { border-bottom-color: #000; }
.aimm-geo__note { display: block; margin-top: 2px; font-weight: 300; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.aimm-geo__note b { font-weight: 400; color: #000; }
@media (min-width: 1200px) {
  .aimm-geo { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 0 22px; }
  .aimm-geo__node { padding: 34px 0 0; }
  .aimm-geo__node::before { right: -22px; top: 10px; bottom: auto; width: auto; height: 1px; }
}
.aimm-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.aimm-brands b { font-weight: 300; font-size: clamp(20px, 2vw, 26px); letter-spacing: .02em; }

/* ── картки проєктів ── */
.aimm-port__h { margin-top: clamp(64px, 7vw, 110px); margin-bottom: 28px; }
.aimm-port:not(:has(.aimm-plan)) .aimm-port__h { margin-top: 0; }
.aimm-flt { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-bottom: 34px; }
.aimm-flt[hidden] { display: none; }
.aimm-flt button {
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  font: inherit;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
}
.aimm-flt button sup { margin-left: 4px; font-size: 10px; line-height: 1; letter-spacing: 0; color: var(--mute); }
.aimm-flt button[aria-pressed="true"] { color: #000; border-bottom-color: #000; }
.aimm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 38px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aimm-card[hidden] { display: none; }
.aimm-card__in {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  color: #000;
  text-decoration: none;
}
.aimm-card__img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  background: var(--soft);
}
.aimm-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
a.aimm-card__in:hover .aimm-card__img img { transform: scale(1.045); }
.aimm-card__st {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  background: #fff;
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #000;
}
.aimm-card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.aimm-card__text { min-width: 0; }
.aimm-card__t { font-weight: 400; font-size: 18px; line-height: 1.25; color: #000; }
.aimm-card__m { display: block; margin-top: 3px; font-weight: 300; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.aimm-card__a { font-weight: 200; font-size: 28px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aimm-card__a small { font-weight: 300; font-size: 13px; }

/* ── кейс ── */
.aimm-case__intro { margin-top: 18px; }
.aimm-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.aimm-facts div { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aimm-facts dt { font-weight: 400; font-size: 10px; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.aimm-facts dd { margin: 4px 0 0; font-weight: 400; font-size: 17px; line-height: 1.3; color: #000; }
.aimm-case .aimm-more { margin-top: 20px; }
.aimm-route { display: grid; gap: 40px; }
.aimm-stage { display: none; }
.aimm-stage__box {
  position: relative;
  aspect-ratio: 10 / 7;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.aimm-stage__box.can-zoom { cursor: zoom-in; }
.aimm-stage__img { position: absolute; inset: 14px; opacity: 0; transition: opacity .45s; }
.aimm-stage__img.is-on { opacity: 1; }
.aimm-stage__img.is-photo { inset: 0; }
.aimm-stage__img.is-photo img { object-fit: cover; }
.aimm-stage__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.aimm-stage__cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 12px;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-2);
}
.aimm-stage__cap [data-cap] { margin-right: auto; }
.aimm-stage__cap [data-cnt] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.aimm-stage__zoom {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
  background: none;
  font: inherit;
  color: inherit;
  white-space: nowrap;
  cursor: zoom-in;
}
.aimm-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.aimm-step { padding: 22px 0 34px; border-top: 1px solid var(--line); color: #000; }
.aimm-step__n { font-weight: 400; font-size: 11px; line-height: 1; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.aimm-step__t {
  margin: 12px 0 10px;
  font-weight: 300;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: inherit;
}
.aimm-step__p { max-width: 46ch; font-weight: 300; font-size: 16px; line-height: 1.7; }
.aimm-step__fig { margin: 18px 0 0; }
.aimm-step__fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); cursor: zoom-in; }
.aimm-step__fig figcaption { margin-top: 8px; font-weight: 300; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.aimm-branch { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.aimm-branch a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.3;
  color: #000;
  text-decoration: none;
}
.aimm-branch a::before {
  content: "";
  flex: none;
  width: 22px;
  height: 12px;
  margin-top: -10px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.aimm-branch a span { border-bottom: 1px solid rgba(0, 0, 0, .3); }
.aimm-branch a:hover span { border-bottom-color: #000; }
@media (min-width: 980px) {
  .aimm-route { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: start; }
  .aimm-stage { display: block; position: sticky; top: 86px; }
  .aimm-step { min-height: 62vh; padding: 28px 0 40px; }
  .aimm-step:last-child { min-height: 44vh; }
  .aimm-step__fig { display: none; }
  /* без скрипта всі кроки чорні: сірими стають лише тоді, коли є що підсвічувати */
  .aimm-route.is-live .aimm-step { color: var(--mute); transition: color .3s; }
  .aimm-route.is-live .aimm-step.is-on { color: #000; }
}

/* збільшення креслення */
.aimm-sector-zoom {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: auto;
}
.aimm-sector-zoom::backdrop { background: rgba(255, 255, 255, .98); }
.aimm-sector-zoom img { display: block; width: 100%; height: auto; }
.aimm-sector-zoom button {
  position: sticky;
  float: right;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: 10px 10px -54px 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  font: 200 22px/1 "GraphikLCG", sans-serif;
  color: #000;
  cursor: pointer;
}

/* ── з чого почати: гілки ── */
.aimm-tree { --stub: 36px; display: grid; gap: 22px; }
.aimm-tree__root {
  font-weight: 200;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: #000;
}
.aimm-tree__leaves {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aimm-tree__leaves li { position: relative; }
.aimm-tree__leaves li::before {
  content: "";
  position: absolute;
  left: calc(var(--stub) * -1);
  top: 50%;
  width: var(--stub);
  border-top: 1px solid #000;
}
.aimm-tree__leaves li::after {
  content: "";
  position: absolute;
  left: calc(var(--stub) * -1);
  top: -7px;
  bottom: -7px;
  border-left: 1px solid #000;
}
.aimm-tree__leaves li:first-child::after { top: 50%; }
.aimm-tree__leaves li:last-child::after { bottom: 50%; }
@media (max-width: 899px) {
  .aimm-tree { --stub: 22px; }
  .aimm-tree__leaves { margin-left: var(--stub); }
  /* вузький екран: ствол іде від кореня згори */
  .aimm-tree__leaves li:first-child::after { top: -22px; }
}
@media (min-width: 900px) {
  .aimm-tree {
    grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
    gap: 0 calc(var(--stub) * 2);
    align-items: center;
  }
  .aimm-tree__root { display: flex; align-items: center; gap: 16px; }
  .aimm-tree__root::after {
    content: "";
    flex: 1;
    min-width: var(--stub);
    margin-right: calc(var(--stub) * -1);
    border-top: 1px solid #000;
  }
}
.aimm-leaf {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: border-color .2s;
}
.aimm-leaf:hover, .aimm-leaf:focus-visible { border-color: #000; }
.aimm-leaf__text { font-weight: 300; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.35; }
.aimm-leaf__link {
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.aimm-leaf__link::after { content: "  →"; }

/* ── читати й дивитися ── */
.aimm-reads__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 38px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aimm-rd {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  align-content: start;
  min-width: 0;
  color: #000;
  text-decoration: none;
}
.aimm-rd__img {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  max-width: 100%;
  margin-bottom: 4px;
  overflow: hidden;
  background: var(--soft);
}
.aimm-rd__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.aimm-rd:hover .aimm-rd__img img { transform: scale(1.045); }
.aimm-rd__t { font-weight: 300; font-size: 18px; line-height: 1.35; }
.aimm-rd__play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  background: rgba(11, 11, 11, .12);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  transition: background .25s;
}
.aimm-rd__play::before {
  content: "";
  margin-left: 4px;
  border-left: 13px solid #fff;
  border-block: 8px solid transparent;
}
.aimm-rd:hover .aimm-rd__play { background: rgba(11, 11, 11, .32); }
@media (max-width: 560px) {
  .aimm-reads__list { gap: 18px; }
  .aimm-rd { grid-template-columns: 118px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 16px; }
  .aimm-rd__img { grid-row: 1 / 3; margin-bottom: 0; }
  .aimm-rd__play { left: 8px; bottom: 8px; width: 32px; height: 32px; }
  .aimm-rd__play::before { margin-left: 3px; border-left-width: 9px; border-block-width: 6px; }
  .aimm-rd__t { font-size: 16px; }
}

/* ── перелік напрямів ── */
.aimm-nav { max-width: 1600px; margin: 0 auto; padding: clamp(56px, 7vw, 110px) 30px; color: #000; }
.aimm-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.aimm-nav__title {
  margin-top: 16px;
  font-weight: 100;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -.035em;
  color: #000;
}
.aimm-nav__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.aimm-nav__list li { border-bottom: 1px solid var(--line); }
.aimm-nav__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) 44px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: clamp(16px, 1.7vw, 24px) 0;
  color: #000;
  text-decoration: none;
}
.aimm-nav__name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 200;
  font-size: clamp(26px, 3.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -.02em;
  transition: transform .45s;
}
.aimm-nav__meta {
  grid-column: 2;
  grid-row: 1;
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: right;
  color: var(--ink-2);
}
.aimm-nav__ar { grid-column: 3; grid-row: 1; text-align: right; transition: transform .45s; }
.aimm-nav__pic {
  position: absolute;
  left: 54%;
  top: 50%;
  z-index: 2;
  width: clamp(160px, 16vw, 240px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-50%) scale(.92);
  transition: opacity .35s, transform .45s;
  pointer-events: none;
}
.aimm-nav__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
a.aimm-nav__row:hover .aimm-nav__pic,
a.aimm-nav__row:focus-visible .aimm-nav__pic { opacity: 1; transform: translateY(-50%); }
a.aimm-nav__row:hover .aimm-nav__name,
a.aimm-nav__row:focus-visible .aimm-nav__name { transform: translateX(12px); }
a.aimm-nav__row:hover .aimm-nav__ar { transform: translateX(6px); }
/* напрям без сторінки: лише назва, нікуди не веде */
.aimm-nav .is-text .aimm-nav__name { color: rgba(0, 0, 0, .42); }
.aimm-nav .is-text .aimm-nav__meta { color: rgba(0, 0, 0, .36); }
@media (hover: none), (max-width: 899px) {
  .aimm-nav__row { grid-template-columns: 72px minmax(0, 1fr) 26px; gap: 4px 14px; }
  .aimm-nav__pic { position: static; grid-column: 1; grid-row: 1 / 3; width: auto; aspect-ratio: 1 / 1; opacity: 1; transform: none; }
  a.aimm-nav__row:hover .aimm-nav__pic { transform: none; }
  .aimm-nav .is-text .aimm-nav__pic { opacity: .55; }
  .aimm-nav__name { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(22px, 6.2vw, 34px); }
  .aimm-nav__meta { grid-column: 2; grid-row: 2; align-self: start; text-align: left; white-space: normal; letter-spacing: .12em; }
  .aimm-nav__ar { grid-column: 3; grid-row: 1 / 3; }
  .aimm-nav__ar svg { width: 20px; }
}

/* рядок над фільтром портфоліо */
/* у портфоліо ширина як у фільтра під ним */
.aimm-nav.aimm-nav--row { width: 80%; max-width: none; padding: clamp(40px, 4.4vw, 68px) 0 0; }
.aimm-nav--row + .projects-page-filters { padding-top: 56px; }
@media (max-width: 991px) { .aimm-nav.aimm-nav--row { width: 100%; padding: 36px 18px 0; } }
.aimm-nav__cells {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.aimm-nav__cells li { min-width: 0; }
.aimm-nav__cells li + li { border-left: 1px solid var(--line); }
.aimm-nav__cell {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  height: 100%;
  padding: 16px 40px 18px 16px;
  color: #000;
  text-decoration: none;
  transition: background .3s;
}
a.aimm-nav__cell:hover { background: var(--soft); }
.aimm-nav__cell .aimm-nav__meta { grid-column: auto; grid-row: auto; font-size: 10px; letter-spacing: .16em; white-space: normal; text-align: left; color: var(--mute); }
.aimm-nav__cell .aimm-nav__name { grid-column: auto; grid-row: auto; font-weight: 300; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.25; letter-spacing: 0; }
.aimm-nav__cell .aimm-nav__ar { grid-column: auto; grid-row: auto; position: absolute; right: 14px; top: 13px; }
.aimm-nav__cell .aimm-nav__ar svg { width: 20px; }
a.aimm-nav__cell:hover .aimm-nav__ar { transform: translateX(4px); }
@media (max-width: 899px) {
  .aimm-nav__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .aimm-nav__cells li { border-bottom: 1px solid var(--line); }
  .aimm-nav__cells li + li { border-left: 0; }
  .aimm-nav__cells li:nth-child(even) { border-left: 1px solid var(--line); }
  .aimm-nav__cells li:first-child { grid-column: 1 / -1; }
  .aimm-nav__cells li:nth-child(even) { border-left: 0; }
  .aimm-nav__cells li:nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); }
}

/* плитки на сторінці напряму, коли живих напрямів кілька */
.aimm-nav--tiles { padding-bottom: clamp(72px, 8.5vw, 140px); }
.aimm-sec--tail + .aimm-nav--tiles { padding-top: 0; }
.aimm-nav__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.aimm-nav__tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  background: var(--soft);
  color: #fff;
  text-decoration: none;
}
.aimm-nav__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.aimm-nav__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0) 55%); }
a.aimm-nav__tile:hover img { transform: scale(1.05); }
.aimm-nav__tile.is-text img { filter: grayscale(.7); opacity: .75; }
.aimm-nav__tile-t { position: relative; z-index: 1; padding: 18px; }
.aimm-nav__tile-t b { display: block; font-weight: 300; font-size: 22px; line-height: 1.15; }
.aimm-nav__tile-t span { display: block; margin-top: 6px; font-weight: 400; font-size: 11px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
@media (max-width: 767px) {
  .aimm-nav__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .aimm-nav__tile { aspect-ratio: 3 / 4; }
  .aimm-nav__tile-t { padding: 12px; }
  .aimm-nav__tile-t b { font-size: 17px; }
  .aimm-nav__tile-t span { font-size: 10px; line-height: 1.35; letter-spacing: .1em; }
}

/* ── форма заявки ── */
.aimm-sector-page .popup_container .wpcf7 form textarea {
  display: block;
  width: 100%;
  height: 112px;
  margin-top: 40px;
  padding: 24px 10px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .2);
  outline: none;
  resize: none;
  color: #000;
  opacity: .8;
  font-family: "GraphikLCG", sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.aimm-form { width: min(480px, calc(100vw - 36px)); }
.aimm-form__title {
  font-weight: 200;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -.012em;
  color: #000;
}
.aimm-sector-page .popup_container .wpcf7 form input:not(.wpcf7-submit):not([type="checkbox"]) { margin-top: 18px; padding: 22px 10px; }
.aimm-sector-page .popup_container .wpcf7 form textarea { margin-top: 18px; }

/* ── збільшення креслення: дрібниці ── */
.aimm-sector-zoom button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
@media (max-width: 767px) {
  /* на телефоні аркуш удвічі ширший за екран і гортається пальцем, інакше збільшувати нема чого */
  .aimm-sector-zoom { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; }
  .aimm-sector-zoom[open] { display: flex; }
  .aimm-sector-zoom img { flex: none; width: 220%; max-width: none; margin: auto 0; }
  .aimm-sector-zoom button { position: fixed; float: none; top: 12px; right: 12px; margin: 0; }
  /* креслення в кроці кейсу відкривається дотиком: показуємо це значком у куті */
  .aimm-step__fig { position: relative; }
  .aimm-step__fig::after {
    content: "+";
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #000;
    border-radius: 50%;
    background: #fff;
    font-weight: 200;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
  }
}

/* ── заголовки без висячих слів, дрібний сірий із контрастом 4,5:1 ── */
.aimm-sector-page .page-template h1,
.aimm-sector-page .page-template h2,
.aimm-sector-page .page-template h3 { text-wrap: balance; }
.aimm-sector-page .page-template .title-label,
.aimm-sector-page .stats-band-label,
.aimm-sector-page .aimm-awards__label,
.aimm-sector-page .aimm-awards__also,
.aimm-sector-page .about-page-seo-position { color: #767676; }

/* ── форма: поверх темного кадру тема лишає просвіт; поля на всю ширину, згода читається, кнопка схожа на кнопку ── */
.aimm-sector-page .popup_container.isOpen { opacity: 1; }
.aimm-sector-page .popup_container .wpcf7,
.aimm-sector-page .popup_container .wpcf7 form,
.aimm-sector-page .popup_container .wpcf7-form-control-wrap { display: block; width: 100%; max-width: none; }
.aimm-sector-page .popup_container .wpcf7 form input:not(.wpcf7-submit):not([type="checkbox"]),
.aimm-sector-page .popup_container .wpcf7 form textarea { width: 100%; max-width: none; }
.aimm-sector-page .popup_container .policy-checkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.aimm-sector-page .popup_container .policy-checkbox .wpcf7-form-control-wrap { flex: none; width: auto; }
.aimm-sector-page .popup_container .policy-checkbox .wpcf7-list-item-label,
.aimm-sector-page .popup_container .policy-checkbox a { font-size: 10.5px; line-height: 1.5; letter-spacing: .06em; }
.aimm-sector-page .popup_container .policy-checkbox a { text-decoration: underline; text-underline-offset: 2px; }
.aimm-sector-page .popup_container .wpcf7 form .wpcf7-submit {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.aimm-sector-page .popup_container .wpcf7 form .wpcf7-submit:hover { background: #fff; color: #000; }

/* ── наявні блоки теми на сторінці напряму ── */
/* людина: той самий блок, що на «Про нас», портрет чорно-білий, без порожньої колонки тексту над ним */
.aimm-sector-page .aimm-person .about-page-description { display: none; }
.aimm-sector-page .aimm-person .about-page-seo { padding-top: 56px; }
.aimm-sector-page .aimm-person .about-page-seo-photo img { filter: grayscale(1) !important; }
.aimm-sector-page .aimm-person .about-page-seo-description a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.aimm-sector-page .aimm-person .runing_name { display: none; }
.aimm-sector-page .container-about.aimm-person { width: 100%; max-width: 1600px; padding: 0 30px; }
.aimm-sector-page .aimm-person .about-page-seo-description { max-width: 62ch; font-size: 16px; line-height: 1.7; }
/* відзнаки: без рухомого рядка заголовку потрібен свій відступ до карток */
.aimm-sector-page .aimm-awards { padding-top: clamp(72px, 8.5vw, 140px); padding-bottom: 0; }
.aimm-sector-page .aimm-awards__top { margin-bottom: clamp(32px, 3.4vw, 52px); }

/* ── вузькі екрани: бічні відступи несуть самі блоки ── */
@media (max-width: 1380px) {
  .aimm-sec, .aimm-nav, .aimm-toc, .aimm-idx__list { padding-left: 24px; padding-right: 24px; }
  .aimm-hero__in { padding-left: 24px; padding-right: 24px; }
  .aimm-sector-page .container-about.aimm-person { padding: 0 24px; }
}
@media (max-width: 767px) {
  .aimm-sec, .aimm-nav, .aimm-toc, .aimm-idx__list { padding-left: 18px; padding-right: 18px; }
  .aimm-sector-page .container-about.aimm-person { padding: 0 18px; }
  .aimm-idx__list { gap: 0 22px; }
  .aimm-brands .title-label { flex-basis: 100%; }
  /* цифри сторінки: дві колонки, інакше підписи стають стовпчиками по чотири рядки */
  .aimm-sector-page .aimm-hero + .stats-band { padding-left: 18px; padding-right: 18px; }
  .aimm-sector-page .stats-band-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aimm-sector-page .stats-band-item { padding: 22px 12px 20px; }
  .aimm-sector-page .stats-band-item:nth-child(odd) { border-left: 0; }
  .aimm-sector-page .stats-band-item:nth-child(n+3) { border-top: 1px solid var(--line, rgba(0, 0, 0, .14)); }
  .aimm-sector-page .stats-band-label { padding-top: 10px; font-size: 10.5px; letter-spacing: .1em; }
  .aimm-hero__in { padding: 40px 18px 26px; } /* було 110 зверху (20.11.2026) */
  .aimm-hero__row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .aimm-circle { width: 104px; height: 104px; padding: 10px; font-size: 12px; } /* було 132 (20.11.2026) */
  .aimm-circle__plus { font-size: 20px; }
  .aimm-hero__cap { margin-top: 18px; }
  .aimm-facts dd { font-size: 16px; }
}
/* низькі телефони (iPhone SE): інакше перший екран вищий за вікно і стрілки слайдера за краєм (20.11.2026) */
@media (max-width: 767px) and (max-height: 700px) {
  .aimm-hero--peek { --aimm-peek: 64px; }
  .aimm-hero__in { padding-top: 24px; padding-bottom: 20px; }
  .aimm-hero__title { font-size: 34px; margin: 14px 0 16px; }
  .aimm-hero__lead { font-size: 15px; }
  .aimm-circle { width: 88px; height: 88px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .aimm-hero *, .aimm-sec *, .aimm-nav * { transition: none !important; }
}

/* Назви проєктів великими (бюро 10.11.2026): лише стилем, у розмітці, alt і title звичайний регістр. */
.aimm-card__t, .aimm-sq__cap b, .aimm-lg__t, .aimm-geo__name { text-transform: uppercase; letter-spacing: .04em; }
.aimm-plan__panel div { text-transform: uppercase; letter-spacing: .04em; } /* назва в панелі на телефоні */
.aimm-plan__panel div span { text-transform: none; letter-spacing: 0; }


/* ── хто веде напрям (блок sector-people, 17.11.2026): як у макеті для бюро — картка, цитата, відгук ── */
.aimm-sec--people + .aimm-ppl { padding-top: clamp(36px, 5vw, 64px); }
.aimm-ppl__grid { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .aimm-ppl__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, .8fr); align-items: stretch; }
}
.aimm-ppl__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; filter: grayscale(1); }
.aimm-ppl__n { margin: 14px 0 0; font-weight: 400; font-size: 20px; line-height: 1.3; color: #000; }
.aimm-ppl__r { margin: 2px 0 0; font-weight: 300; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.aimm-ppl__t { margin-top: 10px; font-weight: 300; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.aimm-ppl__t p { margin: 0; }
.aimm-ppl__t a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.aimm-ppl blockquote { margin: 0; padding: 0; border: 0; background: none; font-style: normal; quotes: none; }
.aimm-ppl blockquote::before, .aimm-ppl blockquote::after { content: none; }
.aimm-ppl__q { padding: 26px !important; }
.aimm-ppl__q p { margin: 0; font-weight: 200; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; color: var(--ink-2); }
.aimm-ppl__rv { display: grid; align-content: center; gap: 12px; margin: 0; padding: 24px; }
.aimm-ppl__rv p { margin: 0; font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.aimm-ppl__rv figcaption { font-size: 11px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 899px) {
  .aimm-ppl__q { padding: 6px 0 0 !important; }
}
