/* ============================================================================
   SIGVIN — страница KARIERA (Figma 580:*). Блоки:
     1 khero    — Hero «Buduj Razem z Nami» (580:3054)
     2 kjobs    — «Otwarte Rekrutacje» (список вакансий, 580:3406)
     3 kproces  — «Jak wygląda Rekrutacja» (4 стеклянных шага, 580:4728)
     4 kopinie  — «Co mówią Nasi ludzie» (слайдер отзывов, 580:3792)
   CTA (580:3754) и Footer (580:3924) — переиспользуют .cta / .footer.
   ========================================================================== */

/* ===================== BLOCK 1: HERO ============================== */
.khero {
  position: relative; z-index: 1;
  width: var(--frame-w); max-width: 100%;
  height: 100vh; min-height: 848px; margin: 0 auto;   /* тянем на весь экран, как .hero — без полоски след. блока */
  overflow: hidden; isolation: isolate;
  border-radius: 0;                                 /* #1 фон hero без скруглений */
  background: var(--dark-black);
}
.khero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.khero__overlay { position: absolute; inset: 0; background: var(--dark-32); z-index: 1; pointer-events: none; }
.khero .hero__sep { z-index: 2; }

.khero__nav {
  position: absolute; top: var(--margin); left: 50%; transform: translateX(-50%);
  width: calc(var(--frame-w) - var(--margin) * 2); max-width: calc(100% - var(--margin) * 2);
  z-index: 5;
}

.khero__content { position: absolute; inset: auto 0 0 0; height: 848px; z-index: 2; }   /* контент прижат к низу — при росте hero остаётся на месте (без пустого фото под ним) */
.khero__title { position: absolute; left: 0; top: 0; width: 100%; height: 100%; color: var(--light-white); }
.khero__title-thin { position: absolute; left: 80px; top: 291px; white-space: nowrap; }
.khero__title-bold { position: absolute; left: 319px; top: 405px; white-space: nowrap; }
.khero__sub { position: absolute; left: 80px; top: 609px; width: 588px; color: var(--light-white); }
.khero__btn { position: absolute; left: auto; right: 80px; top: 613px; }

/* ===================== BLOCK 2: OTWARTE REKRUTACJE =============== */
.kjobs {
  position: relative; z-index: 5;                 /* #4 kjobs наезжает поверх следующего блока (kproces) */
  width: var(--frame-w); max-width: 100%;
  margin: -40px auto 0; padding: 96px 0;
  background: var(--light-white); border-radius: var(--r-card);
  overflow: hidden; isolation: isolate;
}
.kjobs__inner { position: relative; z-index: 1; width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.kjobs__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.kjobs__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.kjobs__count { --glass-border: var(--border-dark); --corner-color: var(--dark-48); color: var(--dark-black); }
.kjobs__heading .t-h2-thin, .kjobs__heading .t-h2 { color: var(--dark-black); }
.kjobs__sub { align-self: center; color: var(--dark-black); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; white-space: nowrap; }
.kjobs__sub .dim { color: var(--dark-64); }

.kjobs__list { margin-top: 44px; display: flex; flex-direction: column; gap: 12px; }

/* пусто — нет открытых рекрутаций (Figma 715:3059): пунктирная карточка с водяным
   знаком, по центру заголовок+описание+кнопка Aplikuj (.btn-split, как в hero) */
.kjobs__empty {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 436px; padding: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  background: var(--dark-2); border: 1px dashed var(--dark-16); border-radius: 32px;
}
.kjobs__empty::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("/assets/ui/kjobs-empty-watermark.svg") center / cover no-repeat;
}
.kjobs__empty-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 588px; text-align: center; }
.kjobs__empty-title { color: var(--dark-black); }
.kjobs__empty-desc { color: var(--dark-64); }
.kjobs__empty-btn { flex: none; }

/* строка вакансии: внешняя обёртка = тёмный «reveal»-полоска справа со стрелкой */
.kjob {
  display: flex; align-items: center; gap: 10px; padding-right: 12px;
  background: var(--dark-black); border-radius: 24px; overflow: hidden;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease;
}
/* #5 ховер как в Certyfikaty: подъём карточки вакансии, без тени */
.kjob:hover { transform: translateY(-4px); z-index: 2; }
.kjob__inner {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; min-height: 128px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px; background: var(--light-light); border-radius: 24px;
}
.kjob__info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.kjob__title { color: var(--dark-black); }
.kjob__meta {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 0;
  --glass-border: var(--border-dark); --corner-color: var(--dark-48); color: var(--dark-64);
}
.kjob__status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 0; flex: none;
  background: rgba(45, 142, 52, 0.12);
  --glass-border: var(--border-dark); --corner-color: var(--dark-48); color: var(--color-green);
}
.kjob__status-dot { width: 6px; height: 6px; flex: none; background: var(--color-green); border-radius: 0 1.3px; }
.kjob__cta { display: flex; align-items: center; }        /* обёртка стрелки; текст «Zobacz» только на мобиле */
.kjob__cta-text { display: none; }
.kjob__arrow {
  flex: none; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: var(--light-white);
}
.kjob__arrow svg { width: 20px; height: 20px; }
/* ховер: карточка чуть серее + стрелка подёргивается (по диагонали, как сама стрелка) */
.kjob__inner { transition: background-color .3s ease; }
.kjob:hover .kjob__inner { background: #ececec; }
.kjob__arrow svg { transition: transform .3s ease; }
.kjob:hover .kjob__arrow svg { animation: kjob-arrow-nudge .55s ease; }
@keyframes kjob-arrow-nudge { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(3px, -3px); } }

/* ===================== BLOCK 3: JAK WYGLĄDA REKRUTACJA ========== */
.kproces {
  position: relative; z-index: 3;
  width: var(--frame-w); max-width: 100%;
  margin: -40px auto 0; padding: 136px 0 96px;
  overflow: hidden; isolation: isolate;
  border-radius: 0; background: var(--dark-black);   /* #4 без скруглений — kjobs наезжает сверху, без просветов */
}
.kproces__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.kproces__overlay { position: absolute; inset: 0; background: var(--dark-32); z-index: 1; pointer-events: none; }
.kproces__inner { position: relative; z-index: 2; width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.kproces__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.kproces__heading .t-h2-thin, .kproces__heading .t-h2 { color: var(--light-white); }

.kproces__cards { margin-top: 56px; display: flex; gap: 12px; align-items: stretch; }
.kpcard {
  flex: 1 1 0; min-width: 0; box-sizing: border-box; height: 428px; padding: 8px;
  display: flex; flex-direction: column; gap: 0;
  border-radius: 20px; background-color: var(--light-16);   /* НЕ shorthand — иначе .glass sheen собьётся */
  --glass-border: var(--border-linear);   /* Linear-обводка как в хедере */
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), background-color .3s ease, box-shadow .35s ease;
}
/* #3 ховер как в Certyfikaty: подъём + подсветка фона, без тени */
.kpcard:hover {
  transform: translateY(-4px); z-index: 2;
  background-color: rgba(255, 255, 255, 0.22);
}
.kpcard__icon {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--dark-64); overflow: hidden;
  --glass-border: var(--border-linear);
}
.kpcard__num { position: absolute; top: 12px; right: 16px; z-index: 3; color: var(--light-white); }
.kpcard__cell {                               /* квадрат-подложка под иконкой + уголки-скобки */
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 147px; height: 147px; z-index: 1;
  background: var(--light-8); border-radius: 0;
  --glass-border: transparent; --corner-color: var(--light-white);
}
.kpcard__glyph { position: relative; z-index: 2; width: 96px; height: 96px; object-fit: contain; }
/* #C панель-иконка целиком из PNG (фон + сетка + уголки + номер уже внутри картинки) */
.kpcard__panel { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
/* #1 фикс: панель = свой аспект 590:456 → все картинки одного размера, не зависят от длины текста */
.kpcard__icon--panel { flex: none; aspect-ratio: 590 / 456; }
.kpcard__icon--panel::before, .kpcard__icon--panel::after { display: none; }
/* тонкая сетка-крест вокруг иконки */
.kpcard__icon::before, .kpcard__icon::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(var(--dir, 0deg), var(--light-16) 0 4px, transparent 4px 8px);
}
.kpcard__icon::before { left: 0; right: 0; top: 40px; height: 1px; box-shadow: 0 106px var(--light-16); background: var(--light-16); }
.kpcard__icon::after  { top: 0; bottom: 0; left: 73px; width: 1px; box-shadow: 147px 0 var(--light-16); background: var(--light-16); }

.kpcard__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.kpcard__title { color: var(--light-white); }
.kpcard__desc { color: var(--light-64); }

/* ===================== BLOCK 4: CO MÓWIĄ NASI LUDZIE ============ */
.kopinie {
  position: relative; z-index: 4;
  width: var(--frame-w); max-width: 100%;
  margin: -40px auto 0; padding: 96px 0;
  overflow: hidden; isolation: isolate;
  border-radius: var(--r-card); background: var(--dark-black);
}
.kopinie__grid {   /* фон-клеточка как в блоке Projekt · Wyzwanie i Zakres Prac (grid-dark.svg) */
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('/assets/ui/grid-dark.svg') center top / 1440px auto no-repeat;
  opacity: .5;
}
.kopinie__inner { position: relative; z-index: 1; width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.kopinie__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.kopinie__heading .t-h2-thin, .kopinie__heading .t-h2 { color: var(--light-white); }

/* #4 нативный горизонтальный скролл (драг мышью + колесо + свайп); вылет до краёв блока, вертикальный воздух под ховер */
.kopinie__viewport {
  margin: 16px -80px 0; padding: 24px 80px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scroll-padding: 0 80px;
  scrollbar-width: none; cursor: grab;
}
.kopinie__viewport::-webkit-scrollbar { display: none; }
.kopinie__viewport.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
.kopinie__track { display: flex; gap: 12px; }
.kop-card {
  flex: 0 0 418.67px; max-width: 418.67px; box-sizing: border-box;
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 352px; padding: 40px; border-radius: 24px;
  background-color: var(--dark-light); --glass-border: var(--border-linear-soft);   /* вдвое прозрачнее */
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), background-color .3s ease, box-shadow .35s ease;
}
/* ховер как в Certyfikaty: подъём + подсветка плажки/обводки, без тени */
.kop-card:hover {
  transform: translateY(-4px); z-index: 2;
  background-color: #242424;
  --glass-border: var(--border-linear);
}
.kop-card:hover .kop-card__qmark { opacity: 0.08; }
.kop-card__quote { position: relative; z-index: 1; color: var(--light-white); font: 700 28px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.kop-card__author { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.kop-card__avatar {
  flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--dark-black); border-radius: 0; color: var(--light-white);
  --glass-border: var(--border-linear); --corner-color: var(--light-white);
}
.kop-card__who { display: flex; flex-direction: column; gap: 2px; }
.kop-card__name { color: var(--light-white); }
.kop-card__role { color: var(--light-48); text-transform: none; }
.kop-card__qmark {
  position: absolute; z-index: 0; width: 77px; height: 65px; color: var(--light-white); opacity: .04;
  font: 700 160px/1 "adineue PRO Cyr", sans-serif;
}
.kop-card__qmark--open { top: 12px; left: 24px; }
.kop-card__qmark--close { right: 24px; bottom: 12px; transform: rotate(180deg); }

.kopinie__nav { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; }
.kopinie__arrow {
  flex: none; width: 72px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); cursor: pointer;
  background: var(--light-8); color: var(--light-48);        /* НЕактивная кнопка (нельзя листать в эту сторону) */
  --glass-border: var(--border-linear-soft);
  transition: background-color .25s ease, color .25s ease, transform .2s ease;
}
.kopinie__arrow svg { width: 24px; height: 24px; }
.kopinie__arrow--prev svg { transform: rotate(180deg); }
.kopinie__arrow:not(:disabled) { background: var(--light-white); color: var(--dark-black); }   /* активная — белая */
.kopinie__arrow:not(:disabled):hover { transform: scale(1.08); }   /* #2 чуть увеличивается по наведению */
.kopinie__arrow:disabled { cursor: default; }
.kopinie__counter {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; border-radius: 0;
  color: var(--light-white); --glass-border: var(--border-linear); --corner-color: var(--light-white);
}
.kopinie__counter-total { color: var(--light-32); }

/* ===================== KARIERA-специфичный CTA-фон =============== */
.cta--kariera .cta__bg { object-position: center; }

/* ===================== МОДАЛКА ДЕТАЛЕЙ ВАКАНСИИ (Figma 593:10943) ===================== */
.vacm {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end; align-items: stretch;
  padding: 48px 24px 24px;
  background: var(--dark-64);                       /* rgba(17,17,17,0.64) */
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.vacm.is-open { opacity: 1; visibility: visible; }
body.vacm-lock { overflow: hidden; }

.vacm__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;
}
.vacm.is-open .vacm__panel { transform: none; opacity: 1; }

/* кнопка закрытия — тёмное стекло с ✕, торчит над правым-верхним углом */
.vacm__close {
  position: absolute; top: -20px; right: 30px; z-index: 3;
  width: 56px; height: 40px; flex: none; padding: 0; border: 0; cursor: pointer;   /* размер как в дизайне (56×40) */
  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;
}
.vacm__close:hover { transform: scale(1.08); }
.vacm__close svg { width: 20px; height: 20px; }

/* верх — белый: заголовок + статус + мета */
.vacm__info { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.vacm__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vacm__title { color: var(--dark-black); font: 700 32px/40px "adineue PRO Cyr", sans-serif; }
.vacm__status {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 0; flex: none;
  background: rgba(45, 142, 52, 0.12);
  --glass-border: var(--border-dark); --corner-color: var(--dark-48); color: var(--color-green);
}
.vacm__status-dot { width: 4px; height: 4px; flex: none; background: var(--color-green); border-radius: 0 1.285px; }
.vacm__meta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 0;
  --glass-border: var(--border-dark); --corner-color: var(--dark-48); color: var(--dark-64);
}

/* середина — серая, прокручиваемая */
.vacm__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;
}
.vacm__stats { display: flex; gap: 12px; width: 100%; }
.vacm__stat {
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--light-white); border: 1px dashed var(--dark-16); border-radius: 16px;
}
.vacm__stat-label { color: var(--dark-64); }
.vacm__stat-val { color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; white-space: nowrap; }
.vacm__stat-note { color: var(--dark-48); font: 300 14px/20px "Geologica Cursive", sans-serif; letter-spacing: -0.05em; }
.vacm__sec {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border: 1px dashed var(--dark-16); border-radius: 16px;   /* прозрачный фон → просвечивает серый */
}
.vacm__sec-head { display: inline-flex; align-items: center; gap: 16px; }
.vacm__sec-dot { width: 4px; height: 4px; flex: none; background: var(--dark-black); border-radius: 0 1.285px; }
.vacm__sec-title { color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.vacm__sec-text { color: var(--dark-64); font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; }

/* низ — белый: кнопка APLIKUJ (btn-split) */
.vacm__apply { padding: 24px; }
.vacm__apply .btn-split { width: 100%; }
.vacm__apply .btn-split__text { flex: 1 1 auto; justify-content: center; }

/* пейджер каруселей (kproces/kopinie) — только на мобиле */
.kproces__pager { display: none; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; border-radius: 0; color: var(--light-white); --glass-border: var(--border-light); --corner-color: var(--light-white); }
.kproces__pager-total { color: var(--light-32); }

/* ============================ MOBILE (≤1024) ==================== */
@media (max-width: 1024px) {
  /* образец O nas: hero растёт под контент, контент в ПОТОКЕ (не absolute) → ничего не режется/не наезжает */
  .khero { width: 100%; height: auto; min-height: 100svh; border-radius: 0; display: flex; flex-direction: column; }
  .khero__bg { object-position: 28% center; }   /* #4 кадрирование как на скрине — мужчина слева + женщина */
  .khero__nav { position: relative; z-index: 3; flex: none; top: 0; left: 0; transform: none; width: 100%; max-width: none; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; }
  /* контент в потоке, занимает остаток высоты, заголовок прижат к низу через flex-end (а не absolute) */
  .khero__content { position: relative; z-index: 2; flex: 1 1 auto; inset: auto; height: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .khero__title { position: static; display: block; width: auto; height: auto; }
  .khero__title-thin, .khero__title-bold { position: static; left: auto; top: auto; bottom: auto; display: block; }
  .khero__title-thin { font: 400 60px/64px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; }
  .khero__title-bold { font: 700 56px/56px "adineue PRO Cyr", sans-serif; letter-spacing: -0.03em; }
  .khero__sub { position: static; left: auto; right: auto; top: auto; bottom: auto; width: auto; margin-top: 16px; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
  .khero__btn { position: static; left: auto; right: auto; top: auto; bottom: auto; margin-top: 24px; align-self: flex-start; }

  /* #1 kjobs: не наезжает на хиро (margin 0), скругление 32 */
  .kjobs { width: 100%; margin-top: 0; border-radius: 32px; padding: 48px 15px; }
  .kjobs__inner { width: 100%; max-width: 100%; }
  .kjobs__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .kjobs__heading .t-h2-thin, .kjobs__heading .t-h2 { font-size: 40px; line-height: 48px; }
  .kjobs__sub { align-self: flex-start; white-space: normal; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
  .kjobs__list { margin-top: 24px; }
  .kjobs__empty { min-height: 0; padding: 32px 20px; border-radius: 24px; gap: 24px; }
  .kjobs__empty-inner { gap: 16px; }
  .kjobs__empty-title { font-size: 28px; line-height: 34px; }
  .kjobs__empty-btn { width: 100%; }
  .kjobs__empty-btn .btn-split__text { flex: 1 1 auto; justify-content: center; }
  /* #моб карточка вакансии: тёмная обёртка, светлый верх (title+meta), «Zobacz rekrutację» снизу (580:2802) */
  .kjob { flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 12px; }
  .kjob__inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; padding: 24px; min-height: 0; }
  .kjob__title { font-size: 24px; line-height: 32px; }
  .kjob__meta { white-space: nowrap; }
  .kjob__status { display: none; }
  .kjob__cta { justify-content: center; gap: 10px; padding-top: 10px; }
  .kjob__cta-text { display: inline; color: var(--light-white); }

  /* #3 kproces: рецесс ПОД kjobs (сверху) и kopinie (снизу); по 88px = 48 видимых + 40 скрытых; карусель + пейджер (580:2039) */
  .kproces { width: 100%; margin-top: -40px; border-radius: 0; padding: 88px 0; }
  .kproces__inner { width: 100%; max-width: 100%; }
  .kproces__head { padding: 0 16px; }
  .kproces__heading .t-h2-thin, .kproces__heading .t-h2 { font-size: 40px; line-height: 48px; }
  .kproces__cards {
    flex-direction: row; gap: 12px; margin-top: 32px; padding: 0 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .kproces__cards::-webkit-scrollbar { display: none; }
  .kpcard { flex: 0 0 88%; max-width: 88%; height: 428px; scroll-snap-align: center; }
  .kproces__pager { display: flex; width: 343px; max-width: calc(100% - 64px); margin: 24px auto 0; }   /* #1 на всю ширину как в блоке kopinie (311px @375) */

  /* #2 kopinie: скругление 32, наезжает сверху на kproces; свайп-карусель + пейджер (597:11234) */
  .kopinie { width: 100%; margin-top: -40px; border-radius: 32px; padding: 48px 0; }
  .kopinie__inner { width: 100%; max-width: 100%; }
  .kopinie__head { padding: 0 16px; }
  .kopinie__heading .t-h2-thin, .kopinie__heading .t-h2 { font-size: 40px; line-height: 48px; }
  .kopinie__viewport {
    margin: 40px 0 0; padding: 0 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .kopinie__viewport::-webkit-scrollbar { display: none; }
  .kopinie__track { transform: none !important; transition: none; }
  .kop-card { flex-basis: 88%; max-width: 88%; padding: 24px; scroll-snap-align: center; }
  .kop-card__quote { font-size: 22px; line-height: 28px; }
  .kopinie__nav { margin: 24px 16px 0; justify-content: center; }
  .kopinie__arrow { display: none; }
  .kopinie__counter { width: 343px; max-width: calc(100% - 32px); justify-content: center; }

  /* модалка деталей — bottom-sheet на всю ширину, скруглён только верх, 3 плитки в столбик (597:13130) */
  .vacm { padding: 72px 0 0; }
  .vacm__panel { width: 100%; border-radius: 32px 32px 0 0; transform: translateY(40px); }
  .vacm__stats { flex-direction: column; gap: 8px; }
  .vacm__stat { flex: none; width: 100%; }
}

/* ============================================================================
   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 — Block 4: Liczby  (Figma node 444:6253, 1440×448)
   Карточка-баннер со статистикой: фото склада + затемнение, 4 ячейки-цифры
   в шахматном порядке, разделённые пунктирными вертикалями. Уголки на ячейках.
   ========================================================================== */

.stats {
  position: relative;
  z-index: 2;                 /* над наезжающим белым блоком projects (#7) */
  width: var(--frame-w);
  max-width: 100%;
  height: 448px;
  margin: 0 auto;
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
}
/* обводку (gframe-кольцо) поднимаем над фото/затемнением */
.stats::before { z-index: 5; }

.stats__bg {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  width: 100%;
  height: 150%;                /* выше блока → сильный параллакс не открывает края */
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.stats__overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-48);
  z-index: 1;
  pointer-events: none;
}

/* верхний пунктир-сепаратор (как в Hero) */
.stats__sep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 4;
  background-image: url('/assets/ui/dash-line.svg');
  background-size: 1440px 16px;
  background-repeat: no-repeat;
  background-position: center top;
  pointer-events: none;
}

/* сетка 4 колонок с пунктирными вертикалями */
.stats__grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1254px;
  max-width: 100%;
  display: flex;
  z-index: 2;
}
.stats__col {
  position: relative;
  flex: 1 0 0;
  border-left: 1px solid var(--light-16);
}
.stats__col:last-child { border-right: 1px solid var(--light-16); }

/* уголки ячеек статистики случайно «мерцают» (анимацию рандомит stats.js) */
@keyframes corner-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ячейка-цифра (border-light 12% + уголки от .gframe), шахматка top/bottom */
.stats__cell {
  position: absolute;
  left: 0;
  right: 0;
  height: 138px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 0 31px;
  color: var(--light-white);
  --glass-border: var(--border-light);
}
.stats__cell--top { top: 64px; }
.stats__cell--bottom { bottom: 59px; }

.stats__num {
  font: 700 72px/72px "adineue PRO Cyr", sans-serif;
  letter-spacing: -0.01em;
}
.stats__label { color: var(--light-white); max-width: 254px; }

/* ---- мобайл (≤767, фрейм 375 — node 444:5791): 4 карточки в колонку ----
   Pixel-perfect: затемнённое фото (есть) + верхний пунктир (есть) + 2 сплошные
   вертикали white 12% по краям карточек (x=16/359) + 4 карточки border light/8%
   с уголками, число 48/56 + лейбл 18/26 — БЕЛЫЕ. Шаг карточек 146 (h114 + gap32),
   сверху/снизу по 44 → блок 640. */
@media (max-width: 1024px) {
  .stats { width: 100%; height: auto; border-radius: 32px; }
  .stats__sep { background-size: 1976px 16px; }

  .stats__grid {
    position: relative; left: auto; top: auto; bottom: auto; transform: none;
    width: 100%;
    flex-direction: column; gap: 32px;
    padding: 44px 16px;
  }
  /* вертикальные сплошные линии white 12% (Figma Line 77/78), на всю высоту блока */
  .stats__grid::before, .stats__grid::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
    background: var(--border-light); pointer-events: none;
  }
  .stats__grid::before { left: 16px; }
  .stats__grid::after  { right: 16px; }

  .stats__col { flex: none; border: 0; }
  .stats__col:last-child { border: 0; }
  .stats__col + .stats__col { background: none; }   /* убрать гориз. пунктир между колонками */

  /* карточка-блок: border light/8% (gframe-кольцо) + уголки + текст белый */
  .stats__cell {
    position: static; top: auto; bottom: auto; height: auto;
    padding: 16px 24px; gap: 0;
    --glass-border: var(--light-8);
  }
  .stats__cell--top, .stats__cell--bottom { top: auto; bottom: auto; }
  /* на мобайле уголки статичные (без мерцания stats.js) — pixel-perfect */
  .stats .corner { animation: none !important; opacity: 1 !important; }
  .stats__num { font-size: 48px; line-height: 56px; letter-spacing: 0; }
  .stats__label {
    font: 700 18px/26px "adineue PRO Cyr", sans-serif;
    letter-spacing: 0.02em; max-width: none;
  }
}

/* ============================================================================
   SIGVIN — Block 5: Nasze Realizacje  (Figma node 444:6615; hover 250:8278)
   Светлый блок: шапка (в контейнере) + full-bleed карусель карточек-проектов.
   Карточки рендерит projects.js. Hover: фото на всю карточку + тёмный градиент,
   инфо-подложка тает, текст белеет (как в макете 250:8278). Стрелки влево/вправо.
   ========================================================================== */

.projects {
  position: relative;
  z-index: 1;                 /* под stats (#7: белым закрывает чёрные углы) */
  width: 100%;
  background: var(--light-white);
  margin-top: -40px;          /* наезжает под закругление stats */
  padding: 160px 0 120px;     /* +40 сверху компенсирует наезд */
}
.projects__container {
  width: 1280px;
  max-width: calc(100% - 160px);
  margin: 0 auto 40px;
}

/* ---- header --------------------------------------------------------- */
.projects__head { display: flex; flex-direction: column; gap: 25px; }
.projects__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.projects__title { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.projects__heading { color: var(--dark-black); white-space: nowrap; }

/* ---- filter tabs ---------------------------------------------------- */
.proj-tabs {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 4px;
  background: var(--light-light);
  border-radius: var(--r-pill);
}
.proj-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--dark-64);
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease;
}
.proj-tab:hover { color: var(--dark-black); }
.proj-tab.is-active {
  background: var(--light-white);
  border-radius: var(--r-pill);
  color: var(--dark-black);
}
.proj-tab:not(.is-active) + .proj-tab:not(.is-active)::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 0.643px;
  background: var(--dark-24);
  transform: translateY(-50%);
}

/* ---- carousel (full-bleed) ------------------------------------------ */
.projects__carousel { position: relative; }
.projects__row {
  display: flex;
  gap: 24px;
  height: 393px;
  padding: 0 80px;                 /* левый край = край контейнера (1280@1440) */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.projects__row::-webkit-scrollbar { display: none; }

/* стрелки скролла: появляются на hover карусели, только в доступную сторону */
.projects__arrow {
  position: absolute;
  top: 50%;
  width: 116px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--dark-black);
  color: var(--light-white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(1);
  transition: opacity .3s ease, transform .25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3;
}
.projects__arrow--right { right: 24px; }
.projects__arrow--left  { left: 24px; }
.projects__arrow--left svg { transform: rotate(180deg); }
.projects__carousel.can-right:hover .projects__arrow--right,
.projects__carousel.can-left:hover  .projects__arrow--left {
  opacity: 1;
  pointer-events: auto;
}
.projects__arrow:hover  { transform: translateY(-50%) scale(1.07); }
.projects__arrow:active { transform: translateY(-50%) scale(0.92); }
.projects__arrow svg { width: 24px; height: 24px; }

/* ---- card (рендерится в projects.js) -------------------------------- */
.proj-card {
  position: relative;               /* якорь для растянутой ссылки (клик по всей карточке) */
  flex: 0 0 411px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  background: var(--dark-black);
  border-radius: 24px;
  cursor: pointer;
}
.proj-card__inner {
  position: relative;
  width: 100%;
  flex: 1 0 0;
  min-height: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--light-light);
}

/* фото — верхняя часть (default); на hover «вырастает» на всю карточку (bottom→0) */
.proj-card__media {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--mb, 160px);       /* высота фото подгоняется под текст (projects.js): 1 строка — как было, 2 строки — поджато */
  /* обводка — inset box-shadow (НЕ border): не резервирует 1px, под который
     просвечивал светлый фон inner (та самая белая полоска снизу на ховере) */
  box-shadow: inset 0 0 0 1px var(--light-white);
  border-radius: 24px;
  overflow: hidden;
  transition: bottom .5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .5s ease;
}
/* на hover фото вырастает; обводка уходит ПОЛНОСТЬЮ (без полоски снизу) */
.proj-card:hover .proj-card__media {
  bottom: 0;
  box-shadow: inset 0 0 0 1px transparent;
}
.proj-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover .proj-card__img { transform: scale(1.05); }
.proj-card__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.64) 100%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.proj-card:hover .proj-card__grad { opacity: 1; }

/* инфо — фиксировано снизу; фон прозрачный. В default лежит на светлой подложке
   inner; на hover фото вырастает под него (+градиент), текст белеет. */
.proj-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.proj-card__head { display: flex; flex-direction: column; gap: 8px; }
.proj-card__cat { display: flex; align-items: center; gap: 16px; }
.proj-card__dot {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 1.285px;
  background: var(--dark-black);
  transition: background-color .45s ease;
}
.proj-card:hover .proj-card__dot { background: var(--light-white); }
.proj-card__cat-text { color: var(--dark-48); transition: color .45s ease; }
.proj-card:hover .proj-card__cat-text { color: var(--light-white); }
.proj-card__title {
  color: var(--dark-black);
  transition: color .45s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proj-card:hover .proj-card__title { color: var(--light-white); }
.proj-card__loc { padding: 8px 12px; justify-content: center; }   /* текст по центру баджа */
.proj-card:hover .proj-card__loc {
  --glass-border: var(--light-16);
  --corner-color: var(--light-white);
}
.proj-card__loc-text { color: var(--dark-64); transition: color .45s ease; }
.proj-card:hover .proj-card__loc-text { color: var(--light-white); }

.proj-card__cta { display: flex; align-items: center; gap: 8px; color: var(--light-white); }
/* растянутая ссылка: кликабельна вся карточка, а не только текст «Zobacz projekt» */
.proj-card__cta::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.proj-card__cta svg {
  width: 20px;
  height: 20px;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
/* на hover стрелка разворачивается в правый-верхний угол (↗) */
.proj-card:hover .proj-card__cta svg { transform: rotate(-45deg); }

/* ---- мобайл (≤767, фрейм 375 — node 446:7258) ---- */
@media (max-width: 1024px) {
  /* #3 padding-top 88: бейдж в 48px от низа Stats (наезд section.projects -40 + 48 = 8 было слишком близко) */
  .projects { padding: 88px 0 48px; }
  /* #2 наезд: Stats (z-index 2) налазит на белый Projects → его скруглённые
     нижние углы заполняются БЕЛЫМ (Projects сзади), а не чёрным. section.projects —
     перебивает глобальное `.projects{margin-top:0}`. Верхние 40px — пустой padding. */
  section.projects { margin-top: -40px; }
  .projects__container { width: 100%; max-width: 100%; padding: 0 16px; margin-bottom: 24px; }
  .projects__head { gap: 24px; }
  .projects__head-row { flex-direction: column; align-items: stretch; gap: 24px; }
  /* кнопка «Wszystkie realizacje» — на всю ширину, текст по центру (не выходит за экран) */
  .projects__head-row .btn-split { width: 100%; }
  .projects__head-row .btn-split .btn-split__text { flex: 1 1 auto; justify-content: center; }
  .projects__heading { white-space: normal; font-size: 40px; line-height: 48px; }
  .proj-tabs { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .proj-tabs::-webkit-scrollbar { display: none; }
  .proj-tab { flex: 0 0 auto; }
  .projects__row { padding: 0 16px; gap: 16px; height: 420px; }
  .proj-card { flex: 0 0 280px; }
  /* светлая часть скруглена со ВСЕХ сторон (как на десктопе) — нижние углы 24,
     как у чёрной кнопки ниже (клиент: «закругления как в кнопке черной») */
  .proj-card__inner { border-radius: 24px; }
  .projects__arrow { display: none; }
  /* #3 кнопка «Zobacz wszystkie…» — внизу блока (перенесена projects.js) */
  .projects > .btn-split--dark { margin: 24px 16px 0; width: calc(100% - 32px); }   /* учитываем боковые margin 16 (иначе width:100% из responsive.css вылазит на 16px и режет иконку) */
  /* #4 бейдж локации — текст в 2 строки, не вылазит за границы баджа */
  .proj-card__loc { max-width: 100%; white-space: normal; }
  .proj-card__loc-text { white-space: normal; text-align: center; }
}

/* ---------------------------------------------------------------------------
   Инвертированная цветовая тема .projects/.proj-card (переиспользуется на
   странице статьи блога для блока «Czytaj także», Figma 708:2653) — та же
   карусель/hover-механика 1:1, просто светлая карточка на тёмной секции
   вместо тёмной карточки на светлой. Резервируем hover-переход текста не
   нужен: подложка карточки тёмная и в default, и на hover (растущее фото
   просто перекрывает её тем же тёмным фоном), поэтому текст остаётся светлым
   всегда — меняется только само фото/градиент. Только CTA («Czytaj więcej»),
   лежащий прямо на белом фоне карточки (не на тёмной inner-подложке),
   перекрашивается в тёмный.
   --------------------------------------------------------------------------- */
.projects--inverse { background: var(--dark-black); }
.projects--inverse .projects__heading { color: var(--light-white); }
.projects--inverse .proj-card { background: var(--light-white); }
.projects--inverse .proj-card__inner { background: var(--dark-light); }
.projects--inverse .proj-card__media { box-shadow: inset 0 0 0 1px var(--dark-black); }
.projects--inverse .proj-card:hover .proj-card__media { box-shadow: inset 0 0 0 1px transparent; }
.projects--inverse .proj-card__title { color: var(--light-white); }
.projects--inverse .proj-card__loc { --glass-border: var(--light-16); --corner-color: var(--light-48); }
.projects--inverse .proj-card__loc-text { color: var(--light-64); }
.projects--inverse .proj-card__cta { color: var(--dark-black); }
.projects--inverse .proj-card:hover .proj-card__cta svg { color: var(--dark-black); }

/* ============================================================================
   SIGVIN — Block 9 «Opinie / Clienci o współpracy z Nami» (Figma 450:7975, 1440×865)
   Тёмный блок (как block 6): СЛЕВА переключатель фирм (окно из 3 карточек + счётчик
   01/05), СПРАВА меняется отзыв (проект / период / стоимость / цитата / автор + фото).
   Все обводки = Linear 8% (дефолтный gframe, как block 6). Логика — reviews.js.
   Схема-чередование: блок RECESSED (z-index 1) — блок 8 наезжает сверху.
   ========================================================================== */

.reviews {
  position: relative;
  z-index: 1;                          /* под блоком 8 (он выступает) */
  width: var(--frame-w);
  max-width: 100%;
  /* тянется на весь экран: видимая тёмная полоса = высота − 144 (наезд блока 8
     сверху + блока 10 снизу по 72px) ≥ 100vh, поэтому на фуллскрине виден ТОЛЬКО
     чёрный блок без белых кромок соседей; минимум 800px */
  min-height: max(800px, calc(100vh + 144px));
  margin: -72px auto 0;                /* наезд предыдущего блока сверху */
  border-radius: var(--r-card);        /* 40 */
  background: var(--dark-black);
  overflow: hidden;
  isolation: isolate;
}
.reviews__grid {
  position: absolute;
  inset: 0;                            /* паттерн по центру всего блока, за контентом */
  background: url('/assets/ui/grid-dark.svg') center / 1440px auto no-repeat;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
/* контент по ЦЕНТРУ ВИДИМОЙ части блока: сверху наезжает блок 8, снизу — блок 10
   (по 72px), поэтому компенсируем оба наезда вертикальным padding 72/72 и центруем —
   контент ровно по середине видимой тёмной полосы (без перекоса к низу/верху). */
.reviews__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  padding: 72px 80px;
}

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

/* ---- body ---------------------------------------------------------- */
.reviews__body {
  position: relative;
  width: 1280px; max-width: 100%;
  height: 432px;
  display: flex; gap: 25px;
}

/* ---- слева: переключатель фирм -------------------------------------- */
.reviews__nav { width: 325px; flex: none; display: flex; flex-direction: column; gap: 26px; }
.reviews__cards { height: 370px; overflow: hidden; }
.reviews__track {
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1);
}
.review-tab {
  flex: none;
  height: 118px;
  padding: 8px;
  border-radius: 20px;
  background: var(--dark-light);
  cursor: pointer;
  text-align: left;
}
.review-tab__inner {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  border-radius: 12px;
  background: var(--dark-32);
  overflow: hidden;
  transition: background-color .4s ease;
}
.review-tab.is-active .review-tab__inner { background: var(--dark-black); }
.review-tab__num {
  position: absolute; top: 12px; right: 16px;
  color: var(--light-32);
  transition: color .4s ease;
}
.review-tab.is-active .review-tab__num { color: var(--light-white); }
.review-tab__logo {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: auto;
  max-height: 64px;                 /* высокие лого (PROJPRZEM) не перерастают карточку */
  object-fit: contain;              /* НЕ растягивать: сохраняем пропорции (фикс PROJPRZEM) */
  filter: brightness(0) invert(1);  /* лого БЕЛОЕ, как в Figma */
  opacity: .38;
  transition: opacity .4s ease;
}
.review-tab.is-active .review-tab__logo { opacity: 1; }

.reviews__counter { width: 100%; justify-content: center; }
.reviews__counter b { color: var(--light-white); font-weight: inherit; }
.reviews__counter i { color: var(--light-32); font-style: normal; }

/* ---- справа: панель отзыва ------------------------------------------ */
.reviews__panel {
  position: relative;
  flex: 1 0 0; min-width: 0;
  height: 432px;
  border-radius: 24px;
  background: var(--dark-light);
  overflow: hidden;
}
.reviews__content {
  position: relative; z-index: 1;
  width: 604px;
  height: 100%;
  padding: 40px 48px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
}
.reviews__top { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; width: 508px; }
.reviews__project {
  width: 100%;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 16px;
  background: var(--dark-black);
}
.reviews__project-label { color: var(--light-48); }
.reviews__project-name { color: var(--light-white); }
.reviews__meta { display: flex; flex-direction: column; gap: 8px; }
.reviews__meta-row { display: flex; align-items: center; gap: 16px; color: var(--light-48); }
.reviews__meta-row b { color: var(--light-white); font-weight: inherit; }
.reviews__quote {
  width: 509px; max-width: 100%;
  color: var(--light-white);
  font: 700 28px/32px "adineue PRO Cyr", sans-serif;
  letter-spacing: 0.02em;
}
.reviews__author { display: flex; align-items: center; gap: 16px; color: var(--light-48); }
.reviews__dot {
  flex: none; width: 4px; height: 4px;
  background: var(--light-white);
  border-radius: 0 1.5px 0 1.5px;
}

/* попап с фото проекта */
.reviews__popup {
  position: absolute; left: 604px; top: 12px;
  width: 314px; height: 408px;
  border-radius: 12px;
  background: var(--dark-black);
  display: flex; flex-direction: column; gap: 10px;
  padding-bottom: 12px;
  align-items: center;
}
.reviews__photo {
  flex: 1 0 0; width: 100%; min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}
.reviews__photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reviews__photo:hover .reviews__photo-img { transform: scale(1.06); }   /* зум фото на ховере */
.reviews__cta { display: flex; align-items: center; gap: 8px; color: var(--light-white); white-space: nowrap; }
.reviews__cta svg { width: 20px; height: 20px; transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1); }
.reviews__cta:hover svg { transform: rotate(-45deg); }   /* стрелка → ↗ */

/* декоративные кавычки */
.reviews__qmark {
  position: absolute; z-index: 0;
  width: 77px; height: 65px;
  background: var(--light-8);
  -webkit-mask: url('/assets/reviews/quote-mark.svg') center / contain no-repeat;
          mask: url('/assets/reviews/quote-mark.svg') center / contain no-repeat;
  pointer-events: none;
  transition: opacity .4s ease, filter .4s ease, transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.reviews__qmark--open  { left: 16px;  top: 197px; }
.reviews__qmark--close { left: 480px; top: 351px; transform: rotate(180deg); }   /* левее, чтобы не наезжать на фото */

/* смена контента: fade + blur (как block 6) */
.reviews__project, .reviews__meta, .reviews__quote, .reviews__author, .reviews__photo-img {
  transition: opacity .4s ease, filter .4s ease, transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.reviews__panel.is-switching .reviews__project,
.reviews__panel.is-switching .reviews__meta,
.reviews__panel.is-switching .reviews__quote,
.reviews__panel.is-switching .reviews__author,
.reviews__panel.is-switching .reviews__photo-img {
  opacity: 0; filter: blur(10px); transform: translateY(10px);
}
/* кавычки тоже появляются при переключении (#1) — сохраняем rotate у закрывающей */
.reviews__panel.is-switching .reviews__qmark--open  { opacity: 0; filter: blur(10px); transform: translateY(10px); }
.reviews__panel.is-switching .reviews__qmark--close { opacity: 0; filter: blur(10px); transform: rotate(180deg) translateY(10px); }

@media (prefers-reduced-motion: reduce) {
  .reviews__track, .review-tab__inner, .review-tab__num, .review-tab__logo, .reviews__qmark,
  .reviews__project, .reviews__meta, .reviews__quote, .reviews__author, .reviews__photo-img { transition: none; }
}

/* ---- мобайл (≤767, фрейм 375 — node 463:5886): в колонку ---- */
@media (max-width: 1024px) {
  .reviews { width: 100%; min-height: 0; height: auto; margin-top: 0; }
  .reviews__inner { position: static; padding: 48px 16px; gap: 32px; }
  .reviews__heading { white-space: normal; font-size: 40px; line-height: 48px; text-wrap: balance; }   /* balance — 3 сбалансированные строки вместо 4 с висячим «o» */
  .reviews__body { flex-direction: column; width: 100%; height: auto; gap: 24px; }
  /* переключатель фирм — горизонтальный скролл */
  .reviews__nav { width: 100%; }
  .reviews__cards { height: auto; overflow-x: auto; overflow-y: hidden; }
  .reviews__cards::-webkit-scrollbar { display: none; }
  .reviews__track { flex-direction: row; gap: 8px; transform: none !important; }
  /* #8 плашки-фирмы 276px. Плашка активного = ТЁМНАЯ (как было, дефолт .is-active),
     белеет САМО лого (дефолт: filter brightness(0) invert(1), opacity .38→1) — не трогаем. */
  .review-tab { flex: 0 0 276px; height: 96px; }
  .reviews__counter { display: none; }

  /* #9 панель отзыва 1:1 с Figma 463:5942: тёмная rounded-24, контент → карточка-фото снизу,
     кавычки видимы (декор за контентом) */
  .reviews__panel {
    width: 100%; height: auto; min-height: 0; flex: none;
    display: flex; flex-direction: column; gap: 24px;
    padding: 24px 12px 12px;
  }
  .reviews__content {
    position: relative; z-index: 1;
    width: 100%; height: auto; padding: 0 12px; gap: 16px;
    justify-content: flex-start;
  }
  .reviews__top { width: 100%; }
  .reviews__quote { width: 100%; font-size: 20px; line-height: 28px; }
  /* карточка-фото снизу (была скрыта) */
  .reviews__popup {
    position: static; left: auto; top: auto;
    width: 100%; height: 190px;
  }
  /* кавычки-скобки видимы, позиции по Figma (декор, за контентом) */
  .reviews__qmark { display: block; }
  .reviews__qmark--open  { left: 16px;  top: 196px; }
  .reviews__qmark--close { left: 244px; top: 350px; transform: rotate(180deg); }
}

/* ============================================================================
   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 — страница «Dla Inwestorów» (Figma 580:*). Собрана из ГОТОВЫХ блоков:
     1 khero      — hero (kariera.css .khero) «Inwestujesz? My to Budujemy»
     2 ikorzysci  — «Co zyskujesz wybierając Sigvin» (степпер на process.* + кнопка + гекс)
     3 stats      — «Liczby» (stats.css)
     4 projects   — «Wybrane Realizacje» (projects.css)
     5 reviews    — «Clienci o współpracy z Nami» (reviews.css, данные 1:1)
     6 cta        — «Omówimy Twój projekt» (cta.css)
     7 footer     — стандартный
   Тут только: блок ikorzysci + наезд/z-index-цепочка (scoped .page--inwestorzy).
   ========================================================================== */

/* ===================== BLOCK 2: CO ZYSKUJESZ (benefits stepper) ==== */
.ikorzysci {
  position: relative; z-index: 3;    /* #2 ikorzysci ПОВЕРХ блока с цифрами (stats) */
  margin-top: -40px;                 /* наезжает на hero сверху */
}
.ikorzysci .process__block { height: 800px; }   /* #2 высота блока 800px */
.ikorzysci .process__heading { color: var(--light-white); }
/* правая панель: картинка-иконка активного шага (меняется по пункту, fade через .process__photo) */
.ikorzysci__pic { display: contents; }
.ikorzysci__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== НАЕЗД-ЦЕПОЧКА страницы (scoped) ============= */
.page--inwestorzy .khero { z-index: 1; }
.page--inwestorzy .stats {
  position: relative; z-index: 2; margin-top: -40px;    /* под ikorzysci — блок наезжает сверху */
  width: var(--frame-w); max-width: 100%; margin-left: auto; margin-right: auto;
  border-radius: 0;                  /* блок с цифрами — без скруглений (рецесс, без просветов) */
  height: 520px;                     /* выше базового (448) на 72px */
}
/* projects: высота 800, отступ сверху 96, стрелки компактнее, скругление 40 */
.page--inwestorzy .projects {
  position: relative; z-index: 5;    /* ПОВЕРХ reviews */
  margin-top: -40px; height: 800px; padding-top: 96px;
  border-radius: var(--r-card);      /* #2 скругление блока 40px */
}
.page--inwestorzy .projects__arrow { width: 72px; height: 72px; }
/* #2 reviews — под блоком Wybrane Realizacje */
.page--inwestorzy .reviews { position: relative; z-index: 4; margin-top: -40px; }
/* cta оставляем sticky z1 (reviews наезжает сверху, футер снизу — как на др. страницах) */

/* ============================ MOBILE (≤1024) ==================== */
@media (max-width: 1024px) {
  /* Мобайл = аккордеон, как блок «Jak Działamy» на главной (process.css ≤1024):
     белый контейнер, тёмные свёрнутые шаги, активный белый + описание и картинка
     под ним. Панель переносит под активный шаг inwestorzy-korzysci.js (placePanel). */
  .ikorzysci { margin-top: 0; }                        /* #2 не наезжает на hero сверху */
  .ikorzysci .process__block { height: auto; padding: 48px 16px; border-radius: 32px; }   /* #2 скругление блока 32px */
  .ikorzysci .process__heading { white-space: normal; }
  .ikorzysci .process__heading .t-h2-thin, .ikorzysci .process__heading .t-h2 { font-size: 40px; line-height: 48px; }
  .ikorzysci .process__body { flex-direction: column; gap: 16px; margin-top: 32px; }
  .ikorzysci .process__rail { display: none; }
  .ikorzysci .process__nav { flex-direction: column; gap: 16px; flex: none; }

  /* белый контейнер-аккордеон */
  .ikorzysci .process__list {
    width: 100%; background: var(--light-white);
    border-radius: 32px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .ikorzysci .process__panel + .proc-step { border-top-left-radius: 32px; border-top-right-radius: 32px; }

  /* раскрытая панель внутри белого контейнера, под активным шагом */
  .ikorzysci .process__panel {
    flex: none; 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;
  }
  .ikorzysci .process__panel::before { display: none; }    /* gframe-кольцо панели */
  .ikorzysci .process__panel > .corner { display: none; }  /* уголки панели */
  .ikorzysci .process__details { position: static; left: auto; top: auto; width: auto; padding: 0; gap: 0; }
  .ikorzysci .process__detail-top { gap: 0; }
  .ikorzysci .process__num { display: none; }              /* дубль номера шага */
  .ikorzysci .process__title { display: none; }            /* дубль названия шага */
  .ikorzysci .process__panel .btn-split { display: none; } /* в макете кнопки нет */
  .ikorzysci .process__desc {
    padding: 0 12px;
    font: 300 14px/20px "Geologica Cursive", sans-serif; letter-spacing: -0.05em;
    color: var(--dark-64);
  }

  /* картинка-карточка (тёмная, rounded-12, высота 128) внутри панели — как на главной */
  .ikorzysci .process__popup {
    flex: none; display: block; position: relative; right: auto; top: auto;
    width: 100%; height: 128px; aspect-ratio: auto; margin-top: 0;
    border-radius: 12px; background: var(--dark-black); overflow: hidden;
  }
  .ikorzysci .process__photo { inset: 0; margin: 0; width: 100%; height: 100%; object-fit: cover; padding: 0; }

  /* #1 ikorzysci наезжает на stats: stats поднят -40 под ikorzysci (z3 > z2),
     нижние скругления 32px ikorzysci видны — сквозь них проглядывает stats */
  .page--inwestorzy .stats { width: 100%; margin-top: -40px; }

  /* #1 projects (Wybrane Realizacje): блок 812px, контент по центру по вертикали.
     padding:0 — центрирует flex'ом; верхние ~90px пусты → наезд под stats остаётся */
  .page--inwestorzy .projects {
    height: 812px; padding: 0;
    display: flex; flex-direction: column; justify-content: center;
  }

  /* #1 reviews (Clienci o współpracy): наезд под projects всего 88px = 40 скрытых
     (margin-top -40 уходит под projects) + 48 видимых (padding-top 88 − 40 = 48) */
  .page--inwestorzy .reviews__inner { padding-top: 88px; }

  /* #1 hero-кнопка на всю ширину экрана с отступами 16px (как на других страницах);
     left+right вместо right:auto → width авто = вьюпорт − 32; текст центрируется общей .btn-split */
  .page--inwestorzy .khero__btn { left: 16px; right: 16px; width: auto; }
}

/* ============================================================================
   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; }
}
