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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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