/* ============================================================================
   SIGVIN — Block 6: Proces / Jak Działamy  (Figma 444:7106 + states 279:*)
   Sticky-scroll: блок пинится, по скроллу активный шаг 1→6 — слева плажки
   отмечаются пройденными, справа меняется контент (номер/тайтл/описание/иконка)
   с мягким fade+blur. Логика — process.js.
   ========================================================================== */

.process {
  position: relative;
  z-index: 2;                 /* тёмный блок наезжает ПОВЕРХ белого projects (#5) */
  margin-top: -72px;          /* наезд: тёмный блок налезает на projects ~48px */
}
/* переключение шагов — по КЛИКУ (не по скроллу): секция обычной высоты, без пиннинга */
.has-js .process { height: auto; }
.process__sticky { padding: 24px 0; }
.has-js .process__sticky { position: static; height: auto; overflow: visible; }

.process__block {
  position: relative;
  width: var(--frame-w);
  max-width: 100%;
  height: 768px;
  margin: 0 auto;
  padding: 96px 80px;
  background: var(--dark-black);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
}
.process__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/assets/ui/grid-dark.svg') center / 1440px auto no-repeat;
  opacity: .5;                /* тёмная сетка-паттерн, видимая на чёрном блоке */
  pointer-events: none;
}
.process__block > :not(.process__grid) { position: relative; z-index: 1; }

/* ---- header --------------------------------------------------------- */
.process__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.process__heading { color: var(--light-white); white-space: nowrap; }

/* ---- body: rail + list + panel ------------------------------------- */
.process__body { display: flex; gap: 24px; margin-top: 48px; }
.process__nav { display: flex; gap: 20px; }

/* вертикальный рейл с буллетами */
.process__rail {
  position: relative;
  width: 40px;
  display: flex;
  justify-content: center;
}
.proc-line {
  position: absolute;
  top: 42px;
  bottom: 42px;
  width: 2px;
  background: var(--light-16);
}
.proc-bullets {
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding-top: 30px;
}
.proc-bullet {
  position: relative;
  z-index: 1;                 /* поверх линии — заливка перекрывает полоску за точкой */
  width: 24px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--dark-black);   /* цвет фона блока — линия за неактивной точкой не видна */
  border: 2px solid var(--light-16);
  transition: border-width .4s ease, border-color .4s ease;
  box-sizing: border-box;
}
.proc-bullet.is-on { border: 8px solid var(--light-white); }

/* список шагов (белая карточка) */
.process__list {
  width: 266px;
  display: flex;
  flex-direction: column;
  background: var(--light-white);
  border-radius: 24px;
  overflow: hidden;
}
.proc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 12px;
  background: var(--dark-light);            /* upcoming */
  border-bottom: 1px solid var(--light-4);
  cursor: pointer;
  transition: background-color .55s cubic-bezier(0.4, 0, 0.2, 1),
              border-radius .55s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}
.proc-step:last-child { border-bottom: 0; }
.proc-step.is-passed { background: var(--light-64); }
.proc-step.is-active { background: var(--light-white); }
/* плажка СРАЗУ под активной — скругление сверху 24px (как в макете) */
.proc-step.is-active + .proc-step {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
.proc-step__num {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--dark-black);
  font: 700 18px/28px "adineue PRO Cyr", sans-serif;
  letter-spacing: 0.01em;
  color: var(--light-48);
  transition: color .55s cubic-bezier(0.4, 0, 0.2, 1);
}
.proc-step.is-active .proc-step__num,
.proc-step.is-passed .proc-step__num { color: var(--light-white); }
/* имя на плажке: цвет «снапает» через серую зону быстрее, чем светлеет фон,
   чтобы текст не растворялся в середине перехода (раньше выглядело рубанно) */
.proc-step__name { color: var(--light-white); transition: color .5s cubic-bezier(0.85, 0, 0.15, 1); }
.proc-step.is-active .proc-step__name,
.proc-step.is-passed .proc-step__name { color: var(--dark-black); }

/* ---- правая панель -------------------------------------------------- */
.process__panel {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  height: 432px;
  background: var(--dark-light);
  border-radius: 24px;
  overflow: hidden;          /* обводка — дефолтный gframe (Linear 8%) */
}
.process__details {
  position: absolute;
  left: 47px;
  top: 47px;
  width: 471px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.process__detail-top { display: flex; flex-direction: column; gap: 32px; }
.process__num {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--dark-black);
  color: var(--light-white);
  font: 700 32px/32px "adineue PRO Cyr", sans-serif;
  letter-spacing: 0.02em;
}
.process__text { display: flex; flex-direction: column; gap: 8px; }
.process__title { color: var(--light-white); font: 700 32px/40px "adineue PRO Cyr", sans-serif; }
.process__desc { color: var(--light-64); }

/* анимация смены контента: fade + blur */
.process__num, .process__title, .process__desc, .process__photo {
  transition: opacity .4s ease, filter .4s ease, transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.process__panel.is-switching .process__num,
.process__panel.is-switching .process__title,
.process__panel.is-switching .process__desc,
.process__panel.is-switching .process__photo {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
}

/* попап с фотографией шага справа */
.process__popup {
  position: absolute;
  right: 13px;
  top: 11px;
  width: 314px;
  height: 408px;
  background: var(--dark-black);
  border-radius: 12px;
  overflow: hidden;          /* обводка — дефолтный gframe (Linear 8%) */
}
.process__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .has-js .process { height: auto; }
  .has-js .process__sticky { position: static; height: auto; }
  .proc-bullet, .proc-step, .process__num, .process__title, .process__desc, .process__photo { transition: none; }
}

/* ---- мобайл (≤767, фрейм 375 — node 446:7489): АККОРДЕОН ----
   Белый контейнер: активный шаг (белый) + описание + картинка ВНУТРИ него,
   свёрнутые шаги тёмные (#1b1b1b). Панель переносит под активный шаг process.js. */
@media (max-width: 1024px) {
  .process { margin-top: 0; }
  .has-js .process { height: auto; }
  .has-js .process__sticky { position: static; height: auto; display: block; padding: 0; }
  .process__block { width: 100%; height: auto; padding: 48px 16px; border-radius: 32px; }   /* #5 чёрный фон — углы 32 */
  .process__heading { white-space: normal; font-size: 40px; line-height: 48px; }
  .process__body { flex-direction: column; gap: 16px; margin-top: 32px; }
  .process__rail { display: none; }
  .process__nav { flex-direction: column; gap: 16px; }

  /* контейнер-аккордеон: белый, rounded-32 (Figma 446:7485), обрезает тёмные шаги по углам */
  .process__list {
    width: 100%; background: var(--light-white);
    border-radius: 32px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  /* первый тёмный шаг после раскрытой панели — скругление сверху 32 (тёмный «под-панель») */
  .process__panel + .proc-step { border-top-left-radius: 32px; border-top-right-radius: 32px; }

  /* раскрытая панель: внутри белого контейнера, под активным шагом */
  .process__panel {
    flex: none;                 /* НЕ flex:1 0 0 (десктоп) — иначе схлопывается в контейнере */
    width: 100%; height: auto; min-height: 0;
    background: var(--light-white); border-radius: 0; overflow: visible;
    padding: 4px 12px 12px; gap: 12px;
    display: flex; flex-direction: column;
  }
  .process__panel::before { display: none; }    /* gframe-кольцо панели */
  .process__panel > .corner { display: none; }   /* уголки панели */
  .process__details { position: static; left: auto; top: auto; width: auto; padding: 0; gap: 0; }
  .process__detail-top { gap: 0; }
  .process__num { display: none; }               /* дубль номера шага */
  .process__title { display: none; }             /* дубль названия шага */
  .process__panel .btn-split { display: none; }  /* в макете кнопки нет */
  .process__desc {
    padding: 0 12px;
    font: 300 14px/20px "Geologica Cursive", sans-serif; letter-spacing: -0.05em;
    color: var(--dark-64);
  }

  /* картинка-карточка (тёмная, rounded-12) — высота 128 (Figma/скрин клиента) */
  .process__popup {
    flex: none;                 /* не ужиматься в flex-колонке панели */
    display: block; position: relative; right: auto; top: auto;   /* relative → фото внутри карточки, а не панели */
    width: 100%; height: 128px; border-radius: 12px;
    background: var(--dark-black); overflow: hidden;
  }
  /* новые картинки (01.png… 957×384 = аспект карточки 2.49) заполняют карточку целиком */
  .process__photo {
    inset: 0; margin: 0;
    width: 100%; height: 100%;
    object-fit: cover; padding: 0;
  }
}

/* ============================================================================
   SIGVIN — Страница «O nas» (Figma 550:3106). Десктоп.
   Переиспуемые компоненты: navbar/gframe/tag/btn-split (hero.css), corners.js,
   CTA (cta.css), Footer (footer.css), счёт цифр (stats.js). Тут — 5 блоков:
   1 hero · 2 «Nasza Historia» (timeline) · 3 «Czym się kierujemy» (values) ·
   4 «Poznaj Nasz Zespół» (team) · 5 «Certyfikaty i Uprawnienia».
   Наезд-цепочка: белые блоки (historia, certy) наезжают на тёмные, radius 40.
   ========================================================================== */

/* общий тег на СВЕТЛОМ блоке (historia/certy): тёмный текст + тёмные уголки/кольцо */
.ohistoria .tag,
.ocerty .tag { color: var(--dark-black); --glass-border: var(--border-dark); --corner-color: var(--dark-black); }

/* ===================== BLOCK 1: HERO ================================= */
.ohero {
  position: relative; z-index: 1;
  width: var(--frame-w); max-width: 100%;
  min-height: 100vh; margin: 0 auto;   /* hero на весь экран → нижний блок полностью под фолдом */
  overflow: hidden; isolation: isolate;
  background: var(--dark-black);
}
.ohero__bg { position: absolute; top: -5%; left: 0; width: 100%; height: 110%; object-fit: cover; object-position: center 28%; z-index: 0; }
.ohero__overlay {                       /* фото яркое (день) → усиленный градиент: темнее слева (заголовок) и снизу (статы) */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17,17,17,0.62) 0%, rgba(17,17,17,0.12) 55%),
    linear-gradient(180deg, rgba(17,17,17,0.16) 0%, rgba(17,17,17,0.10) 38%, rgba(17,17,17,0.56) 100%);
}
.ohero__content { text-shadow: 0 1px 22px rgba(17,17,17,0.35); }   /* белый текст читаем на любом кадре фото */
.ohero .hero__sep { z-index: 2; }
.ohero__nav {
  position: absolute; top: var(--margin); left: var(--margin);
  width: calc(var(--frame-w) - var(--margin) * 2);
  max-width: calc(100% - var(--margin) * 2);
  z-index: 5;
}
.ohero__content { position: absolute; left: 80px; top: 160px; width: var(--content-w); max-width: calc(100% - 160px); z-index: 2; }
/* заголовок как в дизайне (Figma 550:3448): тонкая строка left:0/top:0, БОЛД строка
   сдвинута вправо +257 и вверх (наезд строк, top-offset 114) — паттерн как в phero */
.ohero__title { position: relative; height: 273px; color: var(--light-white); text-shadow: none; }   /* без тени на заголовке */
.ohero__title-thin { position: absolute; left: 0; top: 0; font: 400 146px/156px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; white-space: nowrap; }
.ohero__title-bold { position: absolute; left: 257px; top: 114px; font: 700 146px/156px "adineue PRO Cyr", sans-serif; letter-spacing: -0.03em; white-space: nowrap; }
.ohero__desc { margin-top: 24px; max-width: 954px; color: var(--light-white); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
/* ховер цифр — «прокрутка в блюре» (тот же keyframe stat-num-roll из scroll-fx.css, как на главной/Projekty) */
.ohero__stat:hover .ohero__stat-num { animation: stat-num-roll .62s cubic-bezier(0.5, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .ohero__stat:hover .ohero__stat-num { animation: none; } }
.ohero__bar { display: flex; align-items: stretch; gap: 32px; margin-top: 40px; }
.ohero__stats { flex: 1 0 0; display: flex; align-items: stretch; }
.ohero__stat {
  flex: 1 0 0; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 16px 32px; margin-right: -1px;
  color: var(--light-white); --glass-border: var(--border-light);
}
.ohero__stat:last-child { margin-right: 0; }
.ohero__stat-num { font: 700 64px/72px "adineue PRO Cyr", sans-serif; }
.ohero__stat-label { color: var(--light-white); }
.ohero__btn { flex: none; align-self: center; }

/* ===================== BLOCK 2: NASZA HISTORIA (timeline) =========== */
.ohistoria {
  position: relative; z-index: 4;
  width: var(--frame-w); max-width: 100%;
  margin: 0 auto; padding: 96px 0;      /* БЕЗ наезда на hero → hero-фото на весь экран, этот блок целиком под фолдом (как projekt) */
  background: var(--light-white); border-radius: var(--r-card);
  overflow: hidden;
}
.ohistoria__inner { width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.ohistoria__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ohistoria__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ohistoria__heading .t-h2-thin, .ohistoria__heading .t-h2 { color: var(--dark-black); }
.ohistoria__sub { align-self: flex-end; max-width: 480px; color: var(--dark-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ohistoria__sub b { color: var(--dark-black); }

.ohistoria__timeline { position: relative; margin-top: 56px; height: 490px; }
/* фоновые полоски-график = ГОТОВЫЙ SVG из Figma (клиент сохранил, 1300×423); чуть увеличен (110% высоты).
   контейнер фона шире контента на 8px с каждой стороны → отступы по бокам 72px (было 80), SVG растянут на всю ширину */
.ohistoria__bars { position: absolute; left: -8px; right: -8px; bottom: 30px; top: 0; z-index: 0; background: url('/assets/onas/Lines 2.svg') bottom center / 100% 110% no-repeat; }  /* #3 Lines 2 — с подписями годов */
.ohistoria__cards { position: relative; z-index: 1; height: 100%; }
.ohistoria__card {
  position: absolute; width: 292px; padding: 22px 24px;
  /* поблочное x/y (из Figma, кадр 1440): --x от левого края кадра (margin 80), --y от верха секции.
     контейнер карточек = контент-ширина (левый край = 80) и ниже шапки (~220) → вычитаем эти оффсеты */
  left: calc(var(--x) - 80px);
  top: calc(var(--y) - 220px);
  background: var(--light-light); border-radius: 0;              /* острые углы (без скругления) */
  --corner-color: var(--dark-black); --glass-border: transparent; /* только острые уголки-скобки, без кольца */
  display: flex; flex-direction: column; gap: 12px;
  transition: background-color .35s ease;
}
/* тёмный фон плажки — ТОЛЬКО на ховер */
.ohistoria__card:hover { background: var(--dark-black); --corner-color: var(--light-white); }
.ohistoria__date { display: flex; align-items: center; gap: 10px; color: var(--dark-64); transition: color .35s ease; }
.ohistoria__card:hover .ohistoria__date { color: var(--light-64); }
.ohistoria__sq { width: 6px; height: 6px; flex: none; background: var(--dark-black); transition: background-color .35s ease; }
.ohistoria__card:hover .ohistoria__sq { background: var(--light-white); }
.ohistoria__card-title { color: var(--dark-black); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; transition: color .35s ease; }
.ohistoria__card:hover .ohistoria__card-title { color: var(--light-white); }
/* подтекст — Geist Mono (как в дизайне) */
.ohistoria__card-text { color: var(--dark-64); font: 400 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; transition: color .35s ease; }
.ohistoria__card:hover .ohistoria__card-text { color: var(--light-64); }
.ohistoria__heading .t-h2-thin { margin-right: 0.12em; }        /* воздух между «Nasza» и «Historia» */

/* ===================== BLOCK 3: CZYM SIĘ KIERUJEMY (values) ========= */
.owartosci {
  position: relative; z-index: 3;
  width: var(--frame-w); max-width: 100%;
  height: 864px;                                 /* видимых 800 + по 32px сверху/снизу скрыто под соседними блоками */
  margin: -32px auto 0; padding: 128px 0 96px;   /* верх: 96px ВИДИМЫХ до баджа + 32px скрыто под наездом ohistoria (z4) = 128 */
  background: var(--dark-black); border-radius: var(--r-card);
  overflow: hidden; isolation: isolate;
}
.owartosci__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--light-4) 1px, transparent 1px), linear-gradient(90deg, var(--light-4) 1px, transparent 1px);
  background-size: 80px 80px; opacity: .6;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
}
.owartosci__inner { position: relative; z-index: 1; width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.owartosci__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.owartosci__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.owartosci__heading .t-h2-thin, .owartosci__heading .t-h2 { color: var(--light-white); }
.owartosci__sub { align-self: flex-end; max-width: 420px; color: var(--light-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.owartosci__sub b { color: var(--light-white); }

/* тело блока переиспользует process.* (Jak Działamy); тут — оверрайды под 4 пункта */
.owartosci__body { margin-top: 56px; }
.owartosci .proc-step { height: 108px; }                    /* 4×108 = 432 = высота панели */
.owartosci .proc-bullets { padding-top: 42px; gap: 84px; }  /* центры буллетов = центры 108-px шагов */
.owartosci .process__list { width: 340px; }
/* shield-инсет вместо фото-попапа: лого по центру тёмной карточки (не cover) */
.owartosci__shield { display: flex; align-items: center; justify-content: center; background: var(--dark-black); }
.owartosci__shield img { position: static; width: 132px; height: auto; object-fit: contain; }

/* ===================== BLOCK 4: POZNAJ NASZ ZESPÓŁ (team) ========== */
.ozespol {
  position: relative; z-index: 5;                 /* НАД соседями (block3 z3, block5 z4) — наезжает и сверху (block3), и снизу (block5), как в дизайне */
  width: var(--frame-w); max-width: 100%;
  height: 848px; margin: -32px auto 0;            /* наезд на block3 снизу — 32px (owartosci прячет низ под ozespol); z5 сверху */
  overflow: hidden; isolation: isolate;
  border-radius: var(--r-card); background: var(--dark-black);
}
.ozespol__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ozespol__overlay { position: absolute; inset: 0; background: var(--dark-32); z-index: 1; pointer-events: none; }
.ozespol .hero__sep { z-index: 2; }
.ozespol__inner { position: relative; z-index: 2; width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; padding-top: 96px; }
.ozespol__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ozespol__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ozespol .tag { color: var(--light-white); }
.ozespol__heading .t-h2-thin, .ozespol__heading .t-h2 { color: var(--light-white); }
.ozespol__sub { align-self: flex-end; color: var(--light-white); font: 700 24px/28px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

.ozespol__body {                                   /* сплошная рамка УБРАНА (было gframe+padding+radius) */
  position: relative; margin-top: 44px;
  display: flex; align-items: stretch; gap: 24px;
}
/* фото на СТЕКЛЯННОЙ плашке: backdrop-blur + liquid glass + sheen как в хедере */
.ozespol__photo { flex: none; width: 332px; height: 428px; padding: 8px; border-radius: 32px; overflow: hidden; }
.ozespol__photo-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; border-radius: 24px; transition: opacity .3s ease, filter .3s ease; }
/* рамка для имени (правый блок) — острые углы → corners.js ставит уголки-скобки (550:4090) */
.ozespol__info {
  flex: 1 1 auto; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; border-radius: 0;
  --glass-border: var(--border-light); --corner-color: var(--light-48);
}
.ozespol__counter { position: absolute; top: 16px; right: 24px; font: 400 14px/20px "Geist Mono", monospace; }
.ozespol__counter-cur { color: var(--light-white); }
.ozespol__counter-total { color: var(--light-48); }
.ozespol__person { text-align: center; transition: opacity .3s ease, filter .3s ease; }
.ozespol__name-thin { display: block; font: 400 48px/56px "Geologica Cursive", sans-serif; color: var(--light-white); letter-spacing: -0.08em; }
.ozespol__name-bold { display: block; font: 700 48px/56px "adineue PRO Cyr", sans-serif; color: var(--light-white); }
.ozespol__role { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--light-64); }
.ozespol__role-dot { width: 6px; height: 6px; flex: none; background: var(--light-white); }
/* стрелки — дитя .ozespol__body; центрируем по инфо-плашке (правый блок):
   178px = (фото 332 + gap 24) / 2 → сдвиг центра от центра всего body к центру плашки */
.ozespol__nav { position: absolute; bottom: 32px; left: calc(50% + 178px); transform: translateX(-50%); display: flex; gap: 8px; }
.ozespol__arrow {
  width: 72px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); background: var(--light-16); color: var(--light-white);
  cursor: pointer; --glass-border: var(--border-light); transition: background .3s ease;
}
.ozespol__arrow:hover { background: var(--light-32); }
.ozespol__arrow svg { width: 24px; height: 24px; }
.ozespol__arrow--prev svg { transform: rotate(180deg); }
.ozespol__body.is-switching .ozespol__photo-img,
.ozespol__body.is-switching .ozespol__person { opacity: 0; filter: blur(6px); }

/* кнопка «Zobacz detale» (Figma 657:1693) — split-кнопка на стекле (тёмный герой → белый текст) */
.ozespol__details { margin-top: 24px; transition: opacity .3s ease, filter .3s ease; }
.ozespol__body.is-switching .ozespol__details { opacity: 0; filter: blur(6px); }
.ozespol__details .btn-split__text,
.ozespol__details .btn-split__icon {
  background: var(--light-8); background-image: var(--glass-sheen);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--light-white); box-shadow: inset 0 0 0 1px var(--light-16);
}
/* на широком десктопе кнопку — в правый-нижний угол плашки, стрелки остаются по центру.
   Только ≥1201: на более узкой плашке кнопка наезжает на центрированные стрелки, поэтому
   там остаётся центрированной под именем (fallback). */
@media (min-width: 1201px) {
  .ozespol__details { position: absolute; right: 32px; bottom: 32px; margin-top: 0; }
}

/* ==== ДРАВЕР ДЕТАЛЕЙ ЧЛЕНА КОМАНДЫ (Figma 648:1115) — калька модалки вакансий (kariera .vacm) ==== */
.tmodal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end; align-items: stretch;
  padding: 48px 24px 24px;
  background: var(--dark-64);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.tmodal.is-open { opacity: 1; visibility: visible; }
body.tmodal-lock { overflow: hidden; }

.tmodal__panel {
  position: relative; width: 550px; max-width: 100%;
  display: flex; flex-direction: column;
  background: var(--light-white); border-radius: 32px;
  transform: translateX(32px); opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
.tmodal.is-open .tmodal__panel { transform: none; opacity: 1; }

/* кнопка закрытия — тёмное стекло, торчит над правым-верхним углом */
.tmodal__close {
  position: absolute; top: -20px; right: 30px; z-index: 3;
  width: 56px; height: 40px; flex: none; padding: 0; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill);
  color: var(--light-white);
  background-color: var(--dark-64); background-image: var(--glass-sheen);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--light-16);
  transition: transform .2s ease;
}
.tmodal__close:hover { transform: scale(1.08); }
.tmodal__close svg { width: 20px; height: 20px; }

/* верх — белый: фото + имя + должность */
.tmodal__info { display: flex; align-items: center; gap: 24px; padding: 32px; }
.tmodal__photo { flex: none; padding: 4px; background: var(--dark-8); border-radius: 18px; }
.tmodal__photo-img { display: block; width: 96px; height: 96px; object-fit: cover; object-position: top center; border-radius: 16px; }
.tmodal__id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tmodal__name { color: var(--dark-black); font: 700 32px/40px "adineue PRO Cyr", sans-serif; }
.tmodal__role {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 0;
  color: var(--dark-64); font: 500 13px/20px "Geist Mono", monospace; letter-spacing: 0.02em; text-transform: uppercase;
  --glass-border: var(--border-dark); --corner-color: var(--dark-48);
}

/* середина — серая, прокручиваемая */
.tmodal__scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--light-light); border-radius: 24px;
  scrollbar-width: thin;
}
.tmodal__stat {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px;
  background: var(--light-white); border: 1px dashed var(--dark-16);
}
.tmodal__stat-label { color: var(--dark-64); font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase; }
.tmodal__stat-val { color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.tmodal__list { display: flex; flex-direction: column; gap: 12px; }
.tmodal__sec {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px;
  border: 1px dashed var(--dark-16);
}
.tmodal__sec-dot { width: 4px; height: 4px; flex: none; background: var(--dark-black); border-radius: 0 1.285px; }
.tmodal__sec-text { flex: 1 1 auto; min-width: 0; color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

/* ===================== BLOCK 5: CERTYFIKATY I UPRAWNIENIA =========== */
.ocerty {
  position: relative; z-index: 4;
  width: var(--frame-w); max-width: 100%;
  margin: -40px auto 0; padding: 96px 0;
  background: var(--light-white); border-radius: 0 0 var(--r-card) var(--r-card);  /* верхние углы острые — team-блок наезжает сверху */
}
.ocerty__inner { width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.ocerty__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ocerty__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ocerty__heading .t-h2-thin, .ocerty__heading .t-h2 { color: var(--dark-black); }
.ocerty__sub { align-self: flex-end; max-width: 460px; color: var(--dark-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ocerty__sub b { color: var(--dark-black); }

.ocerty__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; perspective: 1000px; }
.ocerty__card {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 32px 20px; background: var(--light-light); border-radius: 24px;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .4s ease, background-color .4s ease;
}
.ocerty__card:hover {                              /* тактильность: фон чуть ТЕМНЕЕ, без тени */
  transform: translateY(-4px); background: #e8e8e8;
}
.ocerty__name { display: flex; align-items: center; gap: 10px; color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ocerty__dot { width: 6px; height: 6px; flex: none; background: var(--dark-black); }
.ocerty__img {                                     /* параллакс по наведению — onas-certs.js двигает transform */
  width: auto; height: 236px; object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.22));
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform;
}
.ocerty__cap { color: var(--dark-64); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .ocerty__card, .ocerty__card:hover { transform: none; transition: none; }
  .ocerty__img { transition: none; }
}

/* ===================== МОБАЙЛ / ПЛАНШЕТ ≤1024 (Figma 550:1184, 375) ===== */
@media (max-width: 1024px) {
  /* ---------------- BLOCK 1: HERO ---------------- */
  .ohero { height: auto; min-height: 100svh; border-radius: 0; }
  .ohero__overlay { background: rgba(17, 17, 17, 0.48); }   /* дизайн: ровный dark/48% */
  /* хедер как на др. страницах: navbar с отступами 16px по бокам + 16 сверху (не во всю ширину).
     left/top:0 — сбрасываем десктопные абсолютные оффсеты (иначе relative сдвигает вправо/вниз) */
  .ohero__nav { position: relative; z-index: 3; width: 100%; max-width: none; left: 0; top: 0; padding: 16px 16px 0; }
  /* position:relative (не static) — иначе z-index не работает и overlay накрывает текст (был засвет);
     left/top:0 — сбрасываем десктопные абсолютные оффсеты */
  .ohero__content { position: relative; z-index: 2; left: 0; top: 0; padding: 72px 16px calc(40px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; text-shadow: none; }
  .ohero__title { position: static; height: auto; }
  /* заголовок inline → естественный перенос «Firma z» / «Charakterem» (как в дизайне) */
  .ohero__title-thin { position: static; display: inline; font: 400 60px/64px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; white-space: normal; }
  .ohero__title-bold { position: static; display: inline; font: 700 56px/54px "adineue PRO Cyr", sans-serif; letter-spacing: 0; white-space: normal; margin: 0; }
  .ohero__desc { margin-top: 24px; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
  .ohero__bar { flex-direction: column; gap: 0; margin-top: 24px; }
  .ohero__stats { flex-direction: column; }
  .ohero__stat { margin-right: 0; margin-bottom: -1px; padding: 12px 20px; gap: 4px; }
  .ohero__stat-num { font-size: 40px; line-height: 48px; }
  .ohero__stat-label { font-size: 18px; line-height: 26px; letter-spacing: 0.02em; }
  .ohero__btn { display: none; }   /* по дизайну на мобилке кнопки в hero нет (только phone-FAB) */

  /* ---------------- секции 2–5: общие ---------------- */
  .ohistoria { padding: 48px 16px; border-radius: 32px; }
  /* #2 моб: блок ≥812px, контент по центру вертикали; отступ до соседей 88px (48 ВИДИМЫХ + 40 скрыто под наездом ohistoria сверху / ozespol снизу) */
  .owartosci { min-height: 812px; height: auto; margin-top: -40px; padding: 88px 16px; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
  /* #5 моб: блок ≥812px; сверху 88px (48 ВИДИМЫХ + 40 скрыто под наездом ozespol z5), снизу 48; контент Fill */
  .ocerty { min-height: 812px; padding: 88px 16px 48px; border-radius: 0 0 32px 32px; display: flex; flex-direction: column; }
  .ocerty__inner { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .ohistoria__inner, .owartosci__inner, .ocerty__inner { width: 100%; max-width: 100%; }
  .ohistoria__head, .owartosci__head, .ocerty__head, .ozespol__head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .ohistoria__sub, .owartosci__sub, .ocerty__sub, .ozespol__sub { align-self: flex-start; text-align: left; max-width: 100%; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
  /* заголовки секций inline 40/48 — переносятся естественно (Nasza Historia — 1 строка, остальные 2) */
  .ohistoria__heading .t-h2-thin, .ohistoria__heading .t-h2,
  .owartosci__heading .t-h2-thin, .owartosci__heading .t-h2,
  .ocerty__heading .t-h2-thin, .ocerty__heading .t-h2,
  .ozespol__heading .t-h2-thin, .ozespol__heading .t-h2 { font-size: 40px; line-height: 48px; }

  /* ---------------- BLOCK 2: HISTORIA (стопка карточек) ---------------- */
  .ohistoria__timeline { height: auto; margin-top: 32px; }
  .ohistoria__bars, .ohistoria__axis { display: none; }
  .ohistoria__cards { display: flex; flex-direction: column; gap: 12px; }   /* #1 меньше отступ между карточками */
  /* position:relative (не static) → абсолютные уголки-скобки corners.js держатся ЗА карточкой, а не за таймлайном */
  .ohistoria__card { position: relative; width: 100%; left: auto; top: auto; bottom: auto; padding: 16px; }
  .ohistoria__card-title { font-size: 18px; line-height: 26px; }
  .ohistoria__card-text { font-size: 13px; line-height: 18px; }

  /* ---------------- BLOCK 3: VALUES (аккордеон process.css) — 1:1 Figma 550:1227 ---------------- */
  .owartosci__grid { background-size: 48px 48px; }
  .owartosci__body { flex-direction: column; margin-top: 32px; }        /* дизайн: gap шапка→карта 32 */
  .owartosci .process__list { border-radius: 24px; }
  .owartosci .proc-step { height: 72px; min-height: 0; padding: 12px; }  /* дизайн: свёрнутые шаги h-72, p-12 */
  .owartosci .proc-step__num { --glass-border: var(--border-linear); }   /* #2 кружок номера — Linear-обводка (прозрачная, как в хедере), не сплошная белая */
  .owartosci .process__popup { height: 128px; }                          /* дизайн: карточка-иконка h-128 */
  .owartosci__shield { background: var(--dark-black); }
  /* остальное — мобильный аккордеон из process.css (актив белый + desc + shield, свёрнутые тёмные) */

  /* ---------------- BLOCK 4: TEAM — Figma 574:888 ---------------- */
  .ozespol { height: auto; margin-top: -40px; border-radius: 32px; }   /* #2 наезд 40 на низ owartosci (его «40 скрытых») */
  .ozespol__inner { width: 100%; max-width: 100%; padding: 48px 16px; }
  /* колонка: фото → инфо-плашка → ряд стрелок (стрелки вынесены из плашки в .ozespol__body) */
  .ozespol__body { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; }
  .ozespol__photo { width: 100%; height: 204px; padding: 8px; border-radius: 20px; }
  .ozespol__photo-img { object-position: center 22%; border-radius: 12px; }
  /* инфо-плашка: имя+должность по центру, кнопка на всю ширину (574:847 — p-24, gap-20) */
  .ozespol__info {
    align-self: stretch; padding: 24px; border-radius: 0; --glass-border: var(--light-32);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
  }
  .ozespol__counter { display: none; }                  /* на мобилке счётчика нет */
  /* фикс-высота под имя + должность (до 2 строк) → при листании плашка НЕ меняет
     высоту (иначе длинные должности типа «Kierownik działu prac elewacyjnych»
     переносятся на 2 строки и блок дёргается/«ужимается») */
  .ozespol__person { text-align: center; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .ozespol__role { margin-top: 4px; }                   /* gap имя→должность 4 (574:893) */
  .ozespol__name-thin, .ozespol__name-bold { font-size: 32px; line-height: 40px; }
  /* кнопка «Zobacz detale» на всю ширину, БЕЗ круга-стрелки (664:1722) */
  .ozespol__details { width: 100%; margin: 0; }
  .ozespol__details .btn-split { width: 100%; }
  .ozespol__details .btn-split__icon { display: none; }
  .ozespol__details .btn-split__text { flex: 1 1 auto; justify-content: center; }
  /* стрелки — отдельным рядом ПОД плашкой, по центру, круги 72×56 (664:1737) */
  .ozespol__nav { position: static; left: auto; bottom: auto; transform: none; margin-top: 12px; gap: 12px; justify-content: center; }
  .ozespol__arrow { width: 72px; height: 56px; }
  .ozespol__arrow svg { width: 24px; height: 24px; }

  /* дравер деталей: панель на всю ширину, выезжает снизу (как модалка вакансий на мобиле) */
  .tmodal { padding: 72px 0 0; }
  .tmodal__panel { width: 100%; border-radius: 32px 32px 0 0; transform: translateY(40px); }
  .tmodal__info { padding: 24px; gap: 16px; }

  /* ---------------- BLOCK 5: CERTY (горизонтальный скролл) ---------------- */
  .ocerty__grid {
    flex: 1 1 auto; min-height: 0; align-items: stretch;         /* тянется на всю оставшуюся высоту, карточки Fill по высоте */
    display: flex; grid-template-columns: none; gap: 12px; margin-top: 32px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 0 16px;   /* карточки уходят под края экрана */
  }
  .ocerty__grid::-webkit-scrollbar { display: none; }
  .ocerty__card { flex: 0 0 246px; min-height: 0; scroll-snap-align: center; justify-content: center; gap: 20px; padding: 24px 20px; }
  .ocerty__name { margin-top: 0; }
  .ocerty__img { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; }   /* Fill: картинка растягивается на доступную высоту карточки */
  .ocerty__cap { padding: 0; }
}

/* ============================================================================
   SIGVIN — Block 11 «Masz Projekt Inwestycyjny?» (Figma 458:8216, 1440×896)
   Полноэкранный CTA: фото (GRAFIT) + затемнение, тег, заголовок 108px, подзаголовок
   и две кнопки (белая + стеклянная). Как block 7, но с двумя CTA. Параллакс фона.
   Схема-чередование: блок RECESSED (z-index 1) — блок 10 наезжает сверху.
   ========================================================================== */

.cta {
  position: sticky;                   /* «прилипает» сверху, пока футер наезжает снизу (#3) */
  top: 0;
  z-index: 1;                         /* под блоком 10 (он выступает) и под футером (z2) */
  width: var(--frame-w);
  max-width: 100%;
  height: 896px;
  margin: -72px auto 0;               /* наезд предыдущего блока сверху */
  border-radius: 0;                   /* без скруглений у фоновой картинки */
  overflow: hidden;
  isolation: isolate;
  background: var(--dark-black);
}
.cta__bg {
  position: absolute;
  top: -8%; left: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  z-index: 0;
}
.cta__overlay { position: absolute; inset: 0; background: var(--dark-48); z-index: 1; pointer-events: none; }

.cta__tag { position: absolute; left: 80px; top: 144px; z-index: 2; }

.cta__content {
  position: absolute;
  /* якорим контент к НИЗУ (не к top): когда заголовок переносится в 2 строки
     (длинный EN / RU / UA) блок растёт вверх, а кнопки остаются на месте и не
     уходят под наезжающий футер. Для 1 строки позиция идентична прежнему top:396px. */
  left: 80px; top: auto; bottom: 240px;
  z-index: 2;
  width: 1233px; max-width: calc(100% - 160px);
  display: flex; flex-direction: column; gap: 48px; align-items: flex-start;
}
.cta__top { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cta__title {
  color: var(--light-white);
  font-size: 108px; line-height: 108px; letter-spacing: -0.03em;
  white-space: normal;   /* переносим в 2 строки, когда перевод длиннее контейнера (RU/UA); PL/EN влезают в 1 строку */
}
.cta__title .thin { font-family: "Geologica Cursive", sans-serif; font-weight: 400; letter-spacing: -0.08em; }
.cta__title .bold { font-family: "adineue PRO Cyr", sans-serif; font-weight: 700; }
.cta__desc { color: var(--light-white); max-width: 926px; }

.cta__buttons { display: flex; gap: 16px; align-items: center; }

/* ---- стеклянная split-кнопка «Zobacz realizacje» -----------------------
   Те же свойства размытия и liquid glass, что у hero-CTA: `.glass` (sheen) +
   `data-liquid-glass` со strength 80 / depth 10 / blur 3 (см. HTML). На hover:
   подложка СВЕТЛЕЕТ и «фишки» меняются местами (свап btn-split, translateX). */
.btn-split--glass .btn-split__text,
.btn-split--glass .btn-split__icon {
  background: var(--glass-sheen);                 /* sheen как у hero-CTA */
  color: var(--light-white);
  --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%);
  transition: background .35s ease, transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}
/* hover: подложка ярче (свап-translateX наследуем от базового .btn-split:hover) */
.btn-split--glass:hover .btn-split__text,
.btn-split--glass:hover .btn-split__icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .cta__bg { top: 0; height: 100%; }
}

/* ---- мобайл (≤767, фрейм 375 — node 465:6352): заголовок 48px + 2 кнопки в колонку ---- */
@media (max-width: 1024px) {
  /* «наезд» под предыдущий блок (Figma: блок 11 утоплен под FAQ).
     section.cta — выше специфичность глобального `.cta{margin-top:0}` в responsive.css.
     FAQ имеет z-index 2 > CTA z-index 1 → бел. карточка FAQ перекрывает верх CTA.
     #6 sticky — как на десктопе: CTA пиннится, футер (z2) наезжает поверх него при скролле.
     Перебиваем `responsive.css .cta{position:relative;height:auto}` бОльшей специфичностью. */
  section.cta { margin-top: -40px; position: sticky; top: 0; height: 100svh; z-index: 1; }
  .cta { width: 100%; border-radius: 0; }
  .cta__tag { left: 16px; top: 72px; }   /* +40: компенсируем наезд, бейдж не под FAQ */
  .cta__content {
    left: 16px; right: 16px; top: auto; bottom: 96px;   /* #5 подняли на 48 — футер налазит снизу, не должен накрыть кнопки */
    width: auto; max-width: none; gap: 32px;
  }
  .cta__title { font-size: 48px; line-height: 56px; white-space: normal; }
  .cta__desc { max-width: none; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
  .cta__buttons { flex-direction: column; gap: 12px; align-items: stretch; width: 100%; }
}

/* ============================================================================
   SIGVIN — Footer (Figma 458:8263, 1440×946)
   Карта Вроцлава (кросс-оверлей + адрес-карточка) → дашевый сепаратор →
   ряд заголовков (лого + FIRMA/REALIZACJE/KONTAKT) → сепаратор → ряд контента
   (слоган+соцсети + три списка-плашки) → нижний бар (копирайт · made by).
   Плашки-каркасы (.gframe): острые получают уголки (corners.js), скруглённые
   списки — linear-обводку через кольцо ::before. Схема-чередование: футер
   выступает (z-index 2) и -40px наезжает на скруглённый низ блока 11.
   ========================================================================== */

.footer {
  position: relative;
  z-index: 2;
  width: var(--frame-w);
  max-width: 100%;
  margin: -40px auto 0;
  background: var(--dark-black);
  border-radius: var(--r-card) var(--r-card) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.footer::before {                       /* dark-grid сетка на фоне футера (#4) */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('/assets/ui/grid-dark.svg') center top / 1440px auto repeat-y;
  opacity: .4; pointer-events: none;
}

/* ---- карта: растр + перекрестие отдельным вектором (чёткое в любом масштабе) */
.footer__map { position: relative; height: 404px; overflow: hidden; }
.footer__map-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.footer__cross {                        /* SVG-оверлей перекрестия (вектор) */
  position: absolute; top: 0; left: 0;
  width: 100%; height: 404px;
  z-index: 1;
  pointer-events: none;
}

/* адрес-карточка (плавает поверх карты, справа от перекрестия) */
.footer__addr {
  position: absolute; left: 732px; top: 202px;
  z-index: 2;
  box-sizing: border-box;
  width: 514px; max-width: calc(100% - 160px); height: 56px;
  display: flex; align-items: center; gap: 12px;
  padding-left: 12px;
  background: var(--dark-black);
  --glass-border: var(--border-light);
}
.footer__addr-mark { flex: none; width: 36px; height: 36px; object-fit: contain; }
.footer__addr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer__addr-name { color: var(--light-white); }
.footer__addr-line {
  color: var(--light-64);                      /* как в Figma 458:8943 */
  letter-spacing: -0.02em;                      /* умещаем полный адрес впритык */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.footer__addr-arrow {
  flex: none; width: 44px; height: 56px; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--light-white);
  --glass-border: var(--border-light);
  transition: background-color .3s ease;
}
.footer__addr:hover .footer__addr-arrow { background: var(--light-4); }
.footer__addr-arrow svg { width: 20px; height: 20px; }
/* стрелка ОДИН раз подпрыгивает по диагонали и возвращается (без многократного дёргания) */
@keyframes footer-addr-nudge {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(3px, -3px); }
  100% { transform: translate(0, 0); }
}
.footer__addr:hover .footer__addr-arrow svg { animation: footer-addr-nudge .5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ---- дашевый сепаратор (на всю ширину, с растворением по краям) ------ */
.footer__sep {
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 9px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.footer__map + .footer__sep { margin-top: 0; }        /* сразу под картой */
.footer__row--head + .footer__sep { margin-top: 44px; } /* между рядами */

/* ---- два ряда колонок (общий грид-шаблон → вертикальное выравнивание) - */
.footer__row {
  display: grid;
  grid-template-columns: 192px 256px 256px 384px;
  gap: 64px;
  padding: 0 80px;
}
.footer__row--head { margin-top: 52px; align-items: center; }
.footer__row--list { margin-top: 45px; align-items: start; }

/* бренд-колонка: лого (ряд 1) + слоган/соцсети (ряд 2) */
.footer__logo { width: 127px; height: auto; display: block; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* заголовок-плашка (острый каркас + уголки) */
.footer__head {
  position: relative;
  height: 36px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-black);
  color: var(--light-white);
  --glass-border: var(--border-light);
}
/* вертикальные линии по бокам, соединяющие заголовок со списком (#6).
   Отдельный <i> (а не ::before/::after заголовка — те заняты рамкой .gframe). */
.footer__head-lines {
  position: absolute; left: 0; right: 0; top: 100%;
  height: 101px; pointer-events: none;
}
.footer__head-lines::before,
.footer__head-lines::after {
  content: ""; position: absolute; top: 0;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
}
.footer__head-lines::before { left: 0; }
.footer__head-lines::after  { right: 0; }

/* слоган-плашка (острый каркас + уголки, тёмная подложка, текст в 2 строки) */
.footer__slogan {
  width: 192px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 16px;
  background: var(--dark-light);
  color: var(--light-white);
  --glass-border: var(--border-light);
}

/* мини-дашевый делитель под слоганом (458:9002) — по центру колонки, 1px */
.footer__dash {
  width: 22px; height: 1px; align-self: center; margin: 0;
  background: repeating-linear-gradient(90deg, var(--light-48) 0 4px, transparent 4px 7px);
}

/* соцсети — два каркаса с иконкой по центру */
.footer__socials { display: flex; gap: 8px; }
.footer__social {
  width: 92px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--light-white);
  --glass-border: var(--border-light);
  transition: background-color .3s ease;
}
.footer__social:hover { background: var(--light-4); }
.footer__social svg,
.footer__social img { width: 20px; height: 20px; display: block; }

/* список-плашка (скруглённая, linear-обводка через .gframe, сепараторы строк) */
.footer__list {
  width: 100%;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, 0) 55%),
    var(--dark-light);
  border-radius: 24px;
  overflow: hidden;
}
.footer__list a,
.footer__list span {                       /* span — некликабельная строка (напр. NIP), та же сетка */
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--light-64);
  text-align: center;
  border-bottom: 1px solid var(--light-4);   /* сепаратор между пунктами */
  transition: color .3s ease, background-color .3s ease;
}
.footer__list a:last-child,
.footer__list span:last-child { border-bottom: 0; }
.footer__list a:hover { color: var(--light-white); background: var(--light-4); }

/* ---- нижний бар (458:8968): ссылки · копирайт · made by ------------- */
.footer__bottom {
  position: relative;                    /* для абсолютного копирайта по центру */
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  margin: 48px 80px 0;
  padding: 48px 0;                       /* 48px до сепаратора и 48px от низа (#7) */
  border-top: 1px solid var(--light-8);
  color: var(--light-48);
}
/* копирайт — справа бара (space-between: ссылки слева, копирайт справа);
   vent-studio убран по просьбе клиента, копирайт занял правый край */
.footer__copy {
  white-space: nowrap;
}
.footer__bottom-links { display: flex; align-items: center; gap: 10px; }
.footer__bottom-links a { transition: color .3s ease; }
.footer__bottom-links a:hover { color: var(--light-white); }
.footer__dot { color: var(--light-48); }
.footer__made { display: flex; align-items: center; gap: 8px; }
.footer__made-logo { flex: none; width: 122px; height: 26px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .footer__social,
  .footer__addr-arrow,
  .footer__list a { transition: none; }
}

/* ---- мобайл (≤767, фрейм 375 — node 465:6540): всё в колонку, колонки = заголовок+список ---- */
@media (max-width: 1024px) {
  /* #1 фон футера = клиентский SVG (тёмный #111 + сетка); углы сверху 32 */
  .footer {
    width: 100%; border-radius: 32px 32px 0 0; display: flex; flex-direction: column;
    background: var(--dark-black) url('/assets/footer/footer-bg-mb.svg') top center / 100% auto no-repeat;
  }
  .footer::before { display: none; }   /* старая grid-сетка не нужна */
  /* #5 футер налазит на CTA (картинку): поднимаем на 48 (footer z2 > cta z1).
     section.cta поднимает контент CTA — чтобы футер не накрыл кнопки. */
  footer.footer { margin-top: -48px; }
  /* #4 карта 1:1 Figma 465:6555 (детальная карта + чёткий крестик, 375×316) + адрес снизу.
     Верхние углы 32 — явно на карте (верхний элемент футера), чтобы фон скруглялся видимо. */
  .footer__map { order: 0; height: 313px; border-radius: 32px 32px 0 0; background: url('/assets/footer/map-mobile.png') center / cover no-repeat; }
  .footer__map-img, .footer__cross { display: none; }
  .footer__addr {
    left: 16px; right: 16px; top: auto; bottom: 16px;
    width: auto; max-width: none; height: auto; min-height: 56px;
    padding-top: 10px; padding-bottom: 10px;
  }
  /* на узкой карточке адрес переносим (а не обрезаем «...») — показываем полностью,
     плашка растёт по высоте (height:auto выше), стрелка тянется вместе с ней */
  .footer__addr-line { white-space: normal; overflow: visible; text-overflow: clip; }
  .footer__addr-arrow { align-self: stretch; height: auto; }
  .footer__sep { display: none; }
  /* ряды «раскрываем» — их дети становятся колонкой футера; пара заголовок+список */
  .footer__row { display: contents; }
  /* #2 логотип: даш-линии сверху и снизу + центр (Figma 465:6899: даш y0, лого y40, даш y100) */
  .footer__logo-link {
    order: 1; position: relative; margin: 24px 0 32px;   /* #6 отступы, чтобы даш-линии не наезжали на адрес/слоган */
    height: 116px;
    display: flex; align-items: center; justify-content: center;
  }
  .footer__logo-link::before, .footer__logo-link::after {
    content: ""; position: absolute; left: 0; right: 0; height: 16px;
    background: url('/assets/ui/dash-line-mobile.svg') left center / 375px 16px repeat-x;
    pointer-events: none;
  }
  .footer__logo-link::before { top: 0; }
  .footer__logo-link::after  { bottom: 0; }
  .footer__logo { margin: 0 auto; }
  .footer__brand { order: 2; align-items: stretch; gap: 16px; padding: 0 16px; }
  /* #10 слоган 1:1 Figma 465:7181 — в одну строку по центру */
  .footer__slogan { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 5px; text-align: center; }
  /* #10 соцкнопки — равной ширины (#111), как в Figma */
  .footer__socials { justify-content: center; width: 100%; }
  .footer__social { flex: 1 0 0; width: auto; background: var(--dark-black); }
  /* #3 ширина пунктов меню 343px (было width:100% + margin:0 16px → вылазили вправо на 32px) */
  .footer__head { margin: 24px auto 0; width: 343px; max-width: calc(100% - 32px); }
  .footer__head-lines { display: none; }
  .footer__list { margin: 8px auto 0; width: 343px; max-width: calc(100% - 32px); }
  .footer__head:nth-child(2) { order: 3; }
  .footer__list:nth-child(2) { order: 4; }
  .footer__head:nth-child(3) { order: 5; }
  .footer__list:nth-child(3) { order: 6; }
  .footer__head:nth-child(4) { order: 7; }
  .footer__list:nth-child(4) { order: 8; }
  /* нижний бар */
  .footer__bottom {
    order: 9; flex-direction: column; gap: 24px; text-align: center;
    margin: 32px 16px 0; padding: 32px 0;
  }
  /* порядок низа как в Figma: ссылки → Made by → copyright */
  .footer__made { order: 1; }
  .footer__copy { position: static; transform: none; order: 2; }
  .footer__bottom-links, .footer__made { justify-content: center; }
}

/* ============================================================================
   SIGVIN — модалки формы (self-contained, грузится на ВСЕХ страницах):
   успех .ksuccess + 3-шаговый визард .mform. DOM инжектит src/js/mform.js.
   Поля (.kform__box/__input/__label/__textarea) дублируются с kontakt.css —
   чтобы шаг-3 визарда работал без загрузки kontakt.css на других страницах.
   ========================================================================== */

/* --- поля формы (общие) --- */
.kform__box {
  position: relative; background: var(--light-light); border-radius: 0;
  --glass-border: var(--border-dark); --corner-color: var(--dark-48);
  transition: background-color .2s ease;
}
.kform__box:hover { background: #ececec; }                                   /* #3 ховер — затемнение */
.kform__box:focus-within { background: #ececec; --glass-border: var(--dark-32); --corner-color: var(--dark-black); }  /* #3 актив — обводка темнее */
.kform__input, .kform__textarea {
  width: 100%; box-sizing: border-box; border: 0; background: transparent; outline: none;
  color: var(--dark-black); font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase;
}
.kform__input { height: 56px; padding: 18px 24px; }
.kform__textarea { min-height: 100px; padding: 16px 24px; resize: vertical; text-transform: none; }
.kform__input::placeholder, .kform__textarea::placeholder { color: var(--dark-32); }

/* --- модалки: успех + визард (десктоп) --- */
/* ============ МОДАЛКА УСПЕХА (после отправки формы, Figma 605:2932 / 605:3099) ============
   Bottom-sheet: тёмный оверлей + белая панель снизу с ручкой, ✕, заголовком, кнопкой и нотой. */
.ksuccess {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.ksuccess.is-open { opacity: 1; visibility: visible; }
body.ksuccess-lock { overflow: hidden; }
.ksuccess__overlay { position: absolute; inset: 0; background: var(--dark-64); }

.ksuccess__panel {
  position: relative; z-index: 1; width: 100%; max-width: var(--frame-w);
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 80px 0 48px;
  background: var(--light-white); border-radius: 40px 40px 0 0;
  transform: translateY(40px); opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
.ksuccess.is-open .ksuccess__panel { transform: none; opacity: 1; }

/* ручка-«таскалка» сверху по центру */
.ksuccess__handle {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 8px; border-radius: var(--r-pill); background: var(--dark-16);
}
/* закрытие — тёмное стекло с ✕, торчит над верхним-правым углом (как .vacm__close) */
.ksuccess__close {
  position: absolute; top: -20px; right: 48px; z-index: 3;
  width: 56px; height: 40px; padding: 0; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill);
  color: var(--light-white); background-color: var(--dark-64); background-image: var(--glass-sheen);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--light-16);
  transition: transform .2s ease;
}
.ksuccess__close:hover { transform: scale(1.08); }
.ksuccess__close svg { width: 20px; height: 20px; }

.ksuccess__text { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; padding: 0 80px; box-sizing: border-box; }
.ksuccess__title { text-align: center; color: var(--dark-black); }
.ksuccess__title-thin { font: 400 64px/72px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; }
.ksuccess__title-bold { font: 700 64px/72px "adineue PRO Cyr", sans-serif; }
.ksuccess__sub {
  max-width: 513px; text-align: center;
  font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em;
  color: var(--dark-64);
}
.ksuccess__sub-main { color: var(--dark-black); }

.ksuccess__actions { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.ksuccess__ok.btn-split { cursor: pointer; }
.ksuccess__note {
  padding: 12px; border: 1px dashed var(--dark-16); border-radius: 12px;
  color: var(--dark-48); text-align: center; white-space: nowrap;
  font: 500 14px/20px "Geologica Cursive", sans-serif; letter-spacing: -0.05em;
}

/* ============ ВИЗАРД ФОРМЫ (3 шага, Figma 401:7087 / 403:17896 / 403:20754) ============
   Bottom-sheet как .ksuccess: шаги переключаются, снизу — навигация с индикатором 0X/03. */
.mform {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;   /* закрытая модалка не перехватывает клики страницы */
  transition: opacity .35s ease, visibility .35s ease;
}
.mform.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
body.mform-lock { overflow: hidden; }
.mform__overlay { position: absolute; inset: 0; background: var(--dark-64); }
.mform__panel {
  position: relative; z-index: 1; width: 100%; max-width: var(--frame-w);
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  padding: 80px 0 48px;
  background: var(--light-white); border-radius: 40px 40px 0 0;
  transform: translateY(40px); opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
.mform.is-open .mform__panel { transform: none; opacity: 1; }
/* «плашка»-ручка: увеличенная зона захвата (тянут вниз → модалка уезжает, см. kontakt-form.js) */
.mform__handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 4; padding: 12px 60px; cursor: grab; touch-action: none; }
.mform__handle:active { cursor: grabbing; }
.mform__handle-bar { display: block; width: 72px; height: 8px; border-radius: var(--r-pill); background: var(--dark-16); }
.mform__close {
  position: absolute; top: -20px; right: 48px; z-index: 3;
  width: 56px; height: 40px; padding: 0; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill);
  color: var(--light-white); background-color: var(--dark-64); background-image: var(--glass-sheen);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--light-16); transition: transform .2s ease;
}
.mform__close:hover { transform: scale(1.08); }
.mform__close svg { width: 20px; height: 20px; }

/* шаги наложены в одну grid-ячейку → высота модалки = самого высокого шага и не «прыгает»
   при переключении шаг1↔шаг2↔шаг3 (карточки выше формы). Виден только .is-active. */
.mform__steps { display: grid; width: var(--content-w); max-width: calc(100% - 160px); }
.mform__step { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 40px; width: 100%; visibility: hidden; opacity: 0; transition: opacity .3s ease; }
/* активный шаг делаем видимым ТОЛЬКО когда модалка открыта — иначе visibility:visible
   перебивал visibility:hidden закрытой модалки, и её панель ловила клики страницы (ломала редактор) */
.mform.is-open .mform__step.is-active { visibility: visible; opacity: 1; }
.mform__title { color: var(--dark-black); }
.mform__title-thin { font: 400 64px/72px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; margin-right: 0.24em; }   /* зазор между «Wybierz» и «rodzaj…» (курсив + отрицательный трекинг съедали пробел) */
.mform__title-bold { font: 700 64px/72px "adineue PRO Cyr", sans-serif; }

/* карточки выбора (шаг 1 — тип, шаг 2 — бюджет) */
.mform__cards { display: flex; gap: 24px; width: 100%; }
.mcard {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: center;
  padding: 8px 8px 16px; border: 0; cursor: pointer; text-align: left;
  background: var(--light-light); border-radius: 24px;
  transition: transform .25s ease, background-color .25s ease;
}
.mcard:hover { transform: translateY(-4px); }
.mcard.is-selected { background: #ececec; }
.mcard__img { width: 100%; aspect-ratio: 788 / 378; border-radius: 20px; overflow: hidden; background: var(--dark-black); box-shadow: inset 0 0 0 1px var(--light-16); }
.mcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard__foot { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 16px 0 24px; }
.mcard__label { color: var(--dark-black); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.mcard__arrow { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex: none; border-radius: var(--r-pill); background: var(--light-white); color: var(--dark-black); transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.mcard:hover .mcard__arrow { transform: translateX(4px); }
.mcard__arrow svg { width: 24px; height: 24px; }

/* шаг 3 — контакты (2 колонки: инфо+нота слева, поля справа) */
.mform__step3 { display: grid; grid-template-columns: 420px 1fr; grid-template-rows: auto 1fr; column-gap: 80px; width: 100%; }
.mform__step3-info { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.mform__step3-info .mform__title { margin-bottom: 24px; }
.mform__step3-info .mform__title span { display: block; }
.mform__step3-info .mform__title-thin, .mform__step3-info .mform__title-bold { font-size: 64px; line-height: 72px; }   /* как заголовки шагов 1–2 */
.mform__sub { color: var(--dark-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.mform__sub-main { color: var(--dark-black); }
.mform__note { grid-column: 1; grid-row: 2; align-self: end; margin-top: 24px; color: var(--dark-48); font: 500 14px/20px "Geologica Cursive", sans-serif; letter-spacing: -0.05em; }
.mform__note a { color: var(--dark-black); text-decoration: none; font-family: "Geologica Cursive SemiBold", "Geologica Cursive", sans-serif; }   /* «polityką prywatności» — жирнее */
.mform__form { grid-column: 2; grid-row: 1 / 3; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.mform__row { display: flex; gap: 24px; }
.mform__field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* поля модалки — только плейсхолдеры (лейбл sr-only, но остаётся для скринридеров) →
   боксы стоят ровно 24px друг от друга и по вертикали, и по горизонтали (как в дизайне) */
.mform__form .kform__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* набор полей шага 3 зависит от типа: Rekrutacja прячет Firma, показывает загрузку CV */
.mform__field--cv { display: none; }
.mform[data-type="Rekrutacja"] .mform__field--firma { display: none; }
.mform[data-type="Rekrutacja"] .mform__field--cv { display: flex; }
/* «Dodaj plik CV» — плажка загрузки (иконка + имя файла), как в inline-форме Kontakt */
.kform__file {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px;
  cursor: pointer; background: var(--light-light); border-radius: 0;
  --glass-border: var(--border-dark); --corner-color: var(--dark-48);
  color: var(--dark-64); transition: background-color .2s ease, color .2s ease;
}
.kform__file:hover { background: #ececec; color: var(--dark-black); }
.kform__file.has-file { color: var(--dark-black); }
.kform__file-icon { display: flex; width: 20px; height: 20px; flex: none; }
.kform__file-icon svg { width: 100%; height: 100%; }
.kform__file-text { color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* нижняя навигация: [Wróć] · индикатор (flex) · [Zatwierdź]. Кнопки прячутся по шагам (hidden):
   шаг 1 — только индикатор; шаг 2 — Wróć + индикатор; шаг 3 — Wróć + индикатор + Zatwierdź */
/* grid 1fr·auto·1fr — индикатор всегда в центральной колонке → центрирован на КАЖДОМ шаге,
   независимо от того, видны ли по бокам [Wróć]/[Zatwierdź] */
.mform__nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 56px; width: var(--content-w); max-width: calc(100% - 160px); }   /* резерв под кнопки (Wróć/Zatwierdź 56px) → высота модалки не прыгает шаг1↔шаг2 */
.mform__back { grid-column: 1; justify-self: start; }
.mform__progress { grid-column: 2; }
.mform__next { grid-column: 3; justify-self: end; }
.mform__back, .mform__next { display: inline-flex; align-items: center; border: 0; background: transparent; cursor: pointer; padding: 0; }
.mform__back[hidden], .mform__next[hidden] { display: none; }   /* [hidden] иначе перебивается display выше */
.mform__back-icon, .mform__next-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 56px; flex: none; border-radius: var(--r-pill); }
.mform__back-icon svg, .mform__next-icon svg { width: 24px; height: 24px; }
.mform__back-icon { background: var(--light-8); box-shadow: inset 0 0 0 1px var(--border-dark); color: var(--dark-black); }
.mform__back-text {
  display: flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 0 var(--r-btn) 0 var(--r-btn);
  box-shadow: inset 0 0 0 1px var(--border-dark); color: var(--dark-64);
  font: 700 16px/24px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; text-transform: uppercase;
}
.mform__next-text {
  display: flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 0 var(--r-btn) 0 var(--r-btn);
  background: var(--dark-black); color: var(--light-white);
  font: 700 16px/24px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; text-transform: uppercase;
}
.mform__next-icon { background: var(--dark-black); color: var(--light-white); }
.mform__back-icon, .mform__next-icon { transition: transform .2s ease; }
.mform__back:hover .mform__back-icon, .mform__next:hover .mform__next-icon { transform: scale(1.06); }
.mform__back:disabled { opacity: .4; cursor: default; }

/* индикатор шага — тянется на доступную ширину (макс 418, по центру), заполняется по прогрессу */
.mform__progress {
  width: 418px; max-width: 100%; height: 38px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 0;
  --glass-border: var(--border-dark); --corner-color: var(--dark-48);
}
.mform__progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 33.333%; background: var(--light-light); transition: width .45s cubic-bezier(.22, 1, .36, 1); }
.mform__progress-text { position: relative; z-index: 1; font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase; color: var(--dark-black); }
.mform__progress-total { color: var(--dark-32); }

/* ============================ MOBILE (≤1024) ==================== */
@media (max-width: 1024px) {
  /* модалка успеха — bottom-sheet на всю ширину (Figma 605:3099): углы 32 сверху,
     заголовок 32, текст/кнопка/нота одним столбцом gap-32, кнопка на всю ширину */
  .ksuccess__panel { max-width: 100%; gap: 32px; padding: 40px 16px 32px; border-radius: 32px 32px 0 0; }
  .ksuccess__handle { width: 56px; height: 6px; }
  .ksuccess__close { right: 30px; }
  .ksuccess__text { gap: 16px; padding: 0; }
  .ksuccess__title-thin, .ksuccess__title-bold { font-size: 32px; line-height: 40px; }
  .ksuccess__sub { max-width: none; font-size: 18px; line-height: 26px; }
  .ksuccess__actions { display: contents; }   /* текст → кнопка → нота одним столбцом gap-32 */
  .ksuccess__ok.btn-split { width: 100%; }
  .ksuccess__ok .btn-split__text { flex: 1 1 auto; justify-content: center; }
  .ksuccess__note { width: 100%; box-sizing: border-box; white-space: normal; }

  /* визард формы на мобилке: панель rounded-top-32, шаги/карточки в столбик,
     заголовок 32, шаг-3 в одну колонку, нижняя навигация компактнее */
  /* панель: overflow visible (крестик выступает наверх) — скроллится только активный шаг,
     а нижняя навигация (степпер + кнопки) прибита к низу панели (flex-shrink:0) */
  .mform__panel { max-width: 100%; max-height: 92vh; overflow: visible; gap: 16px; padding: 40px 16px 24px; border-radius: 32px 32px 0 0; }
  .mform__handle-bar { width: 56px; height: 6px; }
  .mform__close { top: -20px; right: 16px; }   /* крестик наполовину выступает над панелью (Figma 608) */
  /* на мобилке grid-стек не нужен (панель 92vh, активный шаг скроллится) — «растворяем» обёртку */
  .mform__steps { display: contents; }
  .mform__step { display: none; visibility: visible; opacity: 1; width: 100%; max-width: 100%; gap: 24px; align-items: stretch; }
  .mform__step.is-active { display: flex; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .mform__nav { flex-shrink: 0; }                 /* степпер/кнопки — фиксированы снизу */
  .mform[data-step="3"] .mform__back { display: none; }   /* на последнем шаге «Wróć» убираем */
  .mform__title { text-align: center; }      /* #608 заголовки по центру на мобилке */
  .mform__title-thin, .mform__title-bold { font-size: 32px; line-height: 40px; }
  .mform__cards { flex-direction: column; gap: 12px; }
  .mcard__img { aspect-ratio: 1308 / 512; }  /* мобильные картинки шире/ниже (assets .../mob) */
  .mcard__label { font-size: 20px; line-height: 28px; }
  /* шаг 3 одной колонкой: заголовок+подзаголовок по центру → поля → нота */
  .mform__step3 { display: flex; flex-direction: column; gap: 24px; }
  .mform__step3-info { align-items: center; text-align: center; }
  .mform__step3-info .mform__title { margin-bottom: 16px; text-align: center; }
  .mform__step3-info .mform__title-thin, .mform__step3-info .mform__title-bold { font-size: 32px; line-height: 40px; }
  .mform__sub { font-size: 18px; line-height: 26px; }
  .mform__note { text-align: center; margin-top: 0; }   /* на мобилке отступ даёт flex-gap step3 */
  .mform__row { flex-direction: column; gap: 12px; }
  .mform__form { gap: 12px; }
  /* нижняя навигация в столбик: индикатор сверху (во всю ширину) → Wróć → Zatwierdź */
  .mform__nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 100%; gap: 12px; }
  .mform__progress { order: -1; width: 100%; max-width: none; margin: 0; height: 34px; }
  .mform__back, .mform__next { width: 100%; }
  .mform__back-text, .mform__next-text { flex: 1 1 auto; justify-content: center; padding: 0 16px; font-size: 14px; }
  .mform__back-icon, .mform__next-icon { width: 56px; }
}
