/* ============================================================================
   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 — Страница ПРОЕКТА (деталь, /projekty/<slug>). ШАБЛОН.
   Переиспользует navbar/gframe/tag/btn-split (hero.css), CTA (cta.css),
   Footer (footer.css). Тут: hero проекта + блоки 2–6 (характеристики/описание/
   галерея/процесс/похожие). Все значения — кастомные под каждый проект.
   ========================================================================== */

/* ===================== HERO проекта (Figma 328:2044, 1440×848) ============= */
.dhero {
  position: relative;
  width: var(--frame-w);
  max-width: 100%;
  min-height: 100vh;                        /* фото-hero на всю высоту экрана (было фикс 848) */
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark-black);
}
.dhero__bg {
  position: absolute;
  top: -8%; left: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  z-index: 0;
}
.dhero__overlay {
  position: absolute; inset: 0;
  background: rgba(17, 17, 17, 0.32);     /* dark/32% */
  z-index: 1;
  pointer-events: none;
}
.dhero__nav {                              /* navbar — тот же компонент, позиция как на главной */
  position: absolute;
  top: var(--margin); left: var(--margin);
  width: calc(var(--frame-w) - var(--margin) * 2);
  max-width: calc(100% - var(--margin) * 2);
  z-index: 3;
}

/* контент: хлебные крошки + заголовок проекта 100px + локация */
.dhero__content {
  position: absolute;
  left: 80px; bottom: 128px;                /* привязка к низу (в 848-фрейме = top:404; на высоком экране — держится внизу) */
  width: 916px;
  max-width: calc(100% - 160px);
  z-index: 2;
  display: flex; flex-direction: column; gap: 16px;
}
.dhero__crumbs { display: flex; align-items: center; gap: 12px; }
.dhero__crumbs .tag { --glass-border: var(--light-16); padding: 8px 12px; }   /* рамка 16% */
.dhero__crumb-parent { color: var(--light-32); transition: color .2s ease; }  /* родитель — тусклее */
a.dhero__crumb-parent:hover { color: var(--light-white); }
.dhero__crumb-cur { color: var(--light-white); }
.dhero__crumb-div { width: 2px; height: 2px; flex: none; border-radius: 0.643px; background: var(--light-32); }

.dhero__title {                            /* «Amazon» (thin) / «WRO1 / WRO2» (bold) — 100px */
  display: flex; flex-direction: column;
  color: var(--light-white);
}
.dhero__title-thin { font: 400 100px/108px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; white-space: nowrap; }
.dhero__title-bold { font: 700 100px/108px "adineue PRO Cyr", sans-serif; letter-spacing: -0.03em; white-space: nowrap; }
.dhero__loc { color: var(--light-white); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

/* ===================== BLOCK 2: характеристики проекта (Figma 520:7784) =====
   Таблица 3×2: ячейки с лейблом (20) + значением (32), общие 1px-границы #e2e2e2,
   уголки-скобки на пересечениях (gframe+corners.js), чередование bg, Klient = тёмная с лого. */
.pspecs {
  position: relative;
  z-index: 3;                              /* ВЫШЕ block3 → белым наезжает и на hero, и на block3 */
  width: var(--frame-w);
  max-width: 100%;
  margin: 0 auto;                          /* БЕЗ наезда на hero → фото-hero виден целиком на весь экран */
  padding: 80px 0;                         /* контент 80px от верхней и нижней грани фона */
  background: var(--light-white);
  border-radius: var(--r-card);
  display: flex; flex-direction: column;
}
/* грид адаптируется по числу ячеек (data-count): 6 → 3×2, 4 → 2×2, 2 → 2×1.
   Ячейки без клиента растягиваются на всю ширину (подтверждено с клиентом). */
.pspecs__grid {
  flex: 0 0 auto;
  width: var(--content-w);
  max-width: calc(100% - 160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* дефолт (6 ячеек) */
  grid-auto-rows: minmax(145px, auto);     /* ряд ≥145, растёт под длинный текст */
  gap: 1px;
  background: #e2e2e2;                      /* цвет линий просвечивает в 1px-зазорах */
  border: 1px solid #e2e2e2;
}
.pspecs__grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.pspecs__grid[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
.pspecs__grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); }
.pspec {
  position: relative;
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
  min-height: 145px;
  padding: 32px;
  background: var(--light-white);
  --glass-border: transparent;             /* кольцо gframe прячем — границы даёт грид */
  --corner-color: var(--dark-black);       /* ЧЁРНЫЕ уголки на светлых ячейках (было серые) */
}
.pspec:nth-child(even) { background: var(--light-light); }   /* #f5f5f5 в шахмат */
.pspec--client {                           /* Klient — тёмная ячейка с лого (лого по левому краю) */
  background: var(--dark-black);
  --corner-color: var(--light-white);
  align-items: flex-start;
}
.pspec__label { color: var(--dark-64); }                     /* t-label-xl 20/28 */
.pspec--client .pspec__label { color: var(--light-white); }
.pspec__value { display: inline-block; color: var(--dark-black); font: 700 32px/40px "adineue PRO Cyr", sans-serif; }
.pspec__value sup { font-size: 0.645em; vertical-align: super; line-height: 0; }
.pspec__logo { height: 40px; width: auto; max-width: 100%; display: block; filter: brightness(0) invert(1); }   /* лого клиента ВСЕГДА белое (по просьбе) */
.pspec__logo-text { color: var(--light-white); font: 700 28px/34px "adineue PRO Cyr", sans-serif; letter-spacing: 0.4px; }   /* фолбэк когда нет webp-лого */
/* hover: значение «прокручивается» в блюре (как цифры статистики на главной) */
.pspec:hover .pspec__value { animation: stat-num-roll .62s cubic-bezier(0.5, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .pspec:hover .pspec__value { animation: none; } }

/* ===================== BLOCK 3: Wyzwanie i Zakres Prac (Figma 520:7905/342:236)
   Таб-блок: 2 таба слева (Wyzwanie/Zakres Prac) → панель справа меняет контент. */
.ptask {
  position: relative;
  z-index: 1;                              /* RECESSED: block2 (сверху) и block4 (снизу) НАЕЗЖАЮТ на этот */
  width: var(--frame-w); max-width: 100%;
  height: 880px;                            /* 136 + 608 контент + 136 */
  margin: -40px auto 0;                     /* наезд на block2 (умеренный — блоки не «съедаются») */
  padding: 136px 0;                        /* 40 компенс. наезда + 96 → ВИДИМЫЕ 96px от соседних блоков до претайтла/низа */
  background: var(--dark-black);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
}
.ptask__grid {
  position: absolute; inset: 0; z-index: 0;
  background: url('/assets/ui/grid-dark.svg') center top / 1440px auto no-repeat;
  opacity: .5; pointer-events: none;
}
.ptask > :not(.ptask__grid) { position: relative; z-index: 1; }

.ptask__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto;
}
.ptask__head-left { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ptask__heading { color: var(--light-white); white-space: nowrap; }   /* t-h2-thin + t-h2 (64) */
.ptask__sub { width: 552px; max-width: 45%; color: var(--light-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ptask__sub b { color: var(--light-white); }

.ptask__body {
  display: flex; gap: 25px;
  width: var(--content-w); max-width: calc(100% - 160px); margin: 48px auto 0;
  height: 428px;
}

/* левая колонка — 2 таба */
.ptask__tabs { display: flex; flex-direction: column; gap: 12px; flex: 1 0 0; min-width: 0; }
.ptask__tab {
  flex: 1 0 0; min-height: 0;
  position: relative;
  padding: 8px;
  background: var(--dark-light);
  border-radius: 20px;
  --glass-border: var(--border-linear-soft);   /* Linear-обводка вдвое прозрачнее */
  cursor: pointer;
  text-align: left;
}
/* кольцо-обводка таба (собственное ::before — как у пилюли, чтобы уживалось с corners.js) */
.ptask__tab::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; padding: 1px;
  background: var(--glass-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.ptask__tab-inner {
  display: block;
  position: relative; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(17, 17, 17, 0.32);
  transition: background-color .4s ease;
}
.ptask__tab.is-active .ptask__tab-inner { background-color: var(--dark-black); }
.ptask__tab-inner::before {                /* фоновый паттерн кнопки (Figma 520:7928): неактив 48%, актив 100% */
  content: ""; position: absolute; inset: 0;
  background: url('/assets/projekt/tab-pattern.webp') center / cover no-repeat;
  opacity: .48; pointer-events: none;
  transition: opacity .4s ease;
}
.ptask__tab.is-active .ptask__tab-inner::before { opacity: 1; }
.ptask__tab-icon { position: absolute; left: 20px; top: 20px; width: 80px; height: 80px; opacity: .64; transition: opacity .4s ease; }
.ptask__tab.is-active .ptask__tab-icon { opacity: 1; }
.ptask__tab-icon img { width: 100%; height: 100%; display: block; }
.ptask__tab-label { position: absolute; left: 20px; bottom: 24px; font: 700 32px/40px "adineue PRO Cyr", sans-serif; color: var(--light-48); transition: color .4s ease; }
.ptask__tab.is-active .ptask__tab-label { color: var(--light-white); }

/* правая панель */
.ptask__panel {
  position: relative;
  flex: 0 0 930px; max-width: calc(100% - 334px);
  height: 100%;
  background: var(--dark-light);
  border-radius: 24px;
  overflow: hidden;
  --glass-border: var(--border-linear-soft);   /* Linear-обводка вдвое прозрачнее */
}
/* кольцо-обводка панели (::before остаётся на месте под overflow:hidden) */
.ptask__panel::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: var(--glass-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.ptask__list {
  position: absolute; left: 23px; top: 23px; right: 351px; bottom: 23px;
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px;
  background: var(--dark-black);
  border-radius: 20px;
  overflow: clip;                          /* clip content: пункты не вылазят за область */
}
.ptask__item {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 20px;
  background: var(--light-4);
  border-radius: 12px;
}
.ptask__list--fill .ptask__item { flex: 1 0 0; min-height: 0; }   /* Wyzwanie: 3 карточки тянутся */
.ptask__item-pill {
  position: relative;
  flex: none;
  width: 60px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; -webkit-appearance: none; appearance: none;
  border-radius: var(--r-pill);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.12) 100%);
  --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);   /* вдвое прозрачнее (было .36/.12) */
  --corner-color: var(--light-white);      /* БЕЛЫЕ уголки (Figma 520:7990) */
  color: var(--light-white);
}
/* кольцо-обводка пилюли (собственное, НЕ gframe — иначе corners.js стирает ручные уголки) */
.ptask__item-pill::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: var(--glass-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* уголки-скобки на bounding-box пилюли (вручную через CORNERS в ptask.js) */
.ptask__item-pill .corner { z-index: 2; }
.ptask__item-pill.t-label-xxl { font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ptask__item-pill svg { width: 20px; height: 20px; }
.ptask__item-text { flex: 1 0 0; min-width: 0; color: var(--light-white); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
/* Zakres Prac — аккордеон (FAQ-логика): head + раскрываемое описание.
   Компактные строки (pill 40, padding 8/16) — 5 пунктов + открытое описание влезают в 382px-бокс. */
.ptask__item--plus {
  flex-direction: column; align-items: stretch; gap: 0; justify-content: flex-start;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color .35s ease;
}
.ptask__item--plus .ptask__item-pill { height: 40px; }
/* натуральная высота (закрытая ~56px, открытая = head + описание): плавная анимация max-height, без flex-снапа */
.ptask__list--acc .ptask__item--plus { flex: 0 0 auto; }
.ptask__item--plus.is-open { background: var(--light-8); }
.ptask__item-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ptask__item-a {
  max-height: 0; opacity: 0; margin-top: 0; overflow: hidden;
  color: var(--light-64);
  font: 300 16px/24px "Geologica Cursive", sans-serif; letter-spacing: -0.05em;
  transition: max-height .45s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s ease, margin-top .45s ease;
}
.ptask__item--plus.is-open .ptask__item-a { max-height: 120px; opacity: 1; margin-top: 10px; }
/* «+» → «−» (горизонталь всегда, вертикаль скрывается на раскрытии) */
.ptask__plus-icon { position: relative; width: 20px; height: 20px; color: var(--light-white); }
.ptask__plus-icon::before,
.ptask__plus-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor; transition: opacity .3s ease, transform .35s ease;
}
.ptask__plus-icon::before { width: 13px; height: 1.6px; transform: translate(-50%, -50%); }   /* «+/−» чуть меньше (было 16) */
.ptask__plus-icon::after  { width: 1.6px; height: 13px; transform: translate(-50%, -50%); }
.ptask__item--plus.is-open .ptask__plus-icon::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .ptask__item-a, .ptask__item--plus, .ptask__plus-icon::after { transition: none; }
}

.ptask__img {
  position: absolute; right: 11px; top: 11px;
  width: 314px; height: 408px;
  background: var(--dark-black);
  border-radius: 12px;
  overflow: hidden;
}
.ptask__img img { width: 100%; height: 100%; object-fit: cover; display: block; }   /* PNG = вся панель (сетка+уголки+иконка) */

/* ===================== BLOCK 4: Галерея zdjęć (Figma 520:8065) =============
   Фуллбли активное фото + затемнение; тег, подпись+индекс снизу; колонка миниатюр
   + стрелки справа. Интерактивно (pgallery.js). */
.pgallery {
  position: relative;
  z-index: 2;
  width: var(--frame-w); max-width: 100%;
  height: 848px;
  margin: -40px auto 0;                     /* умеренный наезд на block3 */
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  background: var(--dark-black);
}
.pgallery__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pgallery__overlay { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.32); z-index: 1; pointer-events: none; }
.pgallery .hero__sep { z-index: 3; }

.pgallery__tag { position: absolute; left: 80px; top: 96px; z-index: 2; }

.pgallery__caption { position: absolute; left: 80px; bottom: 96px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.pgallery__cap-row { display: flex; align-items: center; gap: 16px; }
.pgallery__cap-dot { width: 4px; height: 4px; flex: none; border-radius: 1.285px; background: var(--light-white); }
.pgallery__cap-text { color: var(--light-white); }
.pgallery__index { color: var(--light-white); white-space: nowrap; display: flex; align-items: baseline; }
.pgallery__index-cur { font: 700 146px/156px "adineue PRO Cyr", sans-serif; letter-spacing: -0.03em; }
.pgallery__index-total { font: 400 64px/72px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; }

.pgallery__thumbs { position: absolute; right: 80px; top: 96px; z-index: 2; width: 189px; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.pgallery__thumbs-strip {
  position: relative;
  width: 100%; padding: 8px;
  background-color: var(--light-16); border-radius: 20px;   /* -color: чтобы .glass-sheen (background-image) не сбрасывался */
  overflow: hidden;                         /* обрезаем скролл-трек по скруглению; рамка ::before остаётся на месте */
}
.pgallery__thumbs-strip::before {           /* градиентная обводка как у кнопок хедера */
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* внутренний скролл-трек: 9 миниатюр не влезают в блок → вертикальный скролл (скрытый скроллбар) */
.pgallery__thumbs-track {
  position: relative;                       /* offsetParent миниатюр = трек (для scrollTo активной) */
  max-height: 528px;                        /* ~5 миниатюр + пик 6-й (сигнал скролла) */
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pgallery__thumbs-track::-webkit-scrollbar { display: none; }
.pgallery__thumb {
  position: relative; flex: none;           /* НЕ сжимать в скролл-треке — держать 96px, трек скроллит */
  width: 173px; height: 96px;
  border-radius: 12px; overflow: hidden;
  cursor: pointer;
}
.pgallery__thumb::after {                    /* градиентная обводка как у кнопок хедера */
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.pgallery__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pgallery__thumb-ov { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.64); transition: opacity .35s ease; }
.pgallery__thumb.is-active .pgallery__thumb-ov { opacity: 0; }
.pgallery__thumb-num { position: absolute; right: 12px; top: 11px; color: var(--light-48); font: 500 14px/20px "Geist Mono", monospace; transition: color .35s ease; }
.pgallery__thumb.is-active .pgallery__thumb-num { color: var(--light-white); }

.pgallery__nav { display: flex; gap: 12px; }
.pgallery__nav-btn {
  position: relative;
  width: 72px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background-color: var(--light-16);          /* тинт под frosted-glass (обводка+блюр = .glass .gframe + data-liquid-glass) */
  --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.12) 100%);
  color: var(--light-white); cursor: pointer;
  transition: background-color .3s ease, transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}
.pgallery__nav-btn:hover { background-color: var(--light-32); transform: scale(1.05); }
.pgallery__nav-btn svg { position: relative; z-index: 2; width: 24px; height: 24px; }
.pgallery__nav-prev svg { transform: rotate(180deg); }

/* ===================== BLOCK 5: Opinia clienta (Figma 520:8384) ============
   Тёмный блок: слева тег+заголовок, справа карточка-отзыв (лого+период/стоимость+
   цитата+компания+кавычки). Статичный шаблон. */
.popinion {
  position: relative; z-index: 1;          /* RECESSED: block4 (сверху) наезжает на этот */
  width: var(--frame-w); max-width: 100%;
  height: 800px;
  margin: -40px auto 0;                     /* умеренный наезд на block4 */
  background: var(--dark-black);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  display: flex; align-items: center;      /* контент по центру фикс-высоты 800 */
}
.popinion__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;
}
.popinion__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 24px;
  width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto;
  padding: 120px 0;
}
.popinion__left { width: 411px; flex: none; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.popinion__heading { width: 367px; max-width: 100%; color: var(--light-white); }

.popinion__card {
  position: relative;
  flex: 1 0 0; min-width: 0;
  display: flex; flex-direction: column; gap: 32px; align-items: flex-start;
  padding: 40px 48px;
  background: var(--dark-light);
  border-radius: 24px;
  --glass-border: var(--border-linear-soft);   /* вдвое прозрачнее */
  overflow: hidden;
}
/* Linear-обводка плажки отзыва (::before-кольцо под overflow:hidden) */
.popinion__card::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: var(--glass-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.popinion__top { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; width: 100%; position: relative; z-index: 1; }
.popinion__logo { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); }   /* лого клиента ВСЕГДА белое */
.popinion__logo-text { color: var(--light-white); font: 700 22px/28px "adineue PRO Cyr", sans-serif; letter-spacing: 0.4px; }   /* фолбэк без webp-лого */
.popinion__meta { display: flex; flex-direction: column; gap: 8px; }
.popinion__meta-row, .popinion__company { display: flex; align-items: center; gap: 16px; color: var(--light-48); }
.popinion__meta-row b, .popinion__meta-row span:not(.popinion__dot) { font-weight: 500; }
.popinion__meta-row b { color: var(--light-white); }
.popinion__dot { width: 4px; height: 4px; flex: none; border-radius: 1.285px; background: var(--light-white); }
.popinion__quote { position: relative; z-index: 1; color: var(--light-white); font: 700 32px/40px "adineue PRO Cyr", sans-serif; }
.popinion__company { position: relative; z-index: 1; }

.popinion__qmark {
  position: absolute; z-index: 0;
  width: 77px; height: 65px;
  background: var(--light-8);                /* вдвое прозрачнее (было --light-16) */
  -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;
}
.popinion__qmark--open  { left: 24px;  top: 172px; }
.popinion__qmark--close { right: 48px; bottom: 86px; transform: rotate(180deg); }

/* ===================== BLOCK 6: Więcej Realizacji (Figma 520:8478) =========
   Переиспользуем .projects (карусель + .proj-card + projects.js), без табов.
   projekt.css грузится ТОЛЬКО на этой странице → оверрайды наезда безопасны. */
.projects {
  z-index: 2;                  /* белым наезжает на тёмный block5 (на главной было z1) */
  height: 800px;               /* фикс-высота блока (как FAQ) */
  margin-top: -40px;           /* умеренный наезд на block5 */
  padding: 96px 0 0;           /* block6 ВЫСТУПАЕТ (z2, верх не перекрыт) → 96 = видимый отступ от верхней грани до претайтла (БЕЗ компенсации наезда) */
  border-radius: var(--r-card);  /* скругление блока 40px */
  overflow: hidden;
  isolation: isolate;
}
.projects__head { gap: 0; }    /* нет табов — лишний gap не нужен */
/* карточки вписаны в контентную ширину (выровнены с шапкой, без вылета вправо) — ограничиваем РЯД,
   а не карусель: карусель остаётся на всю ширину блока → стрелки скролла точно как на главной
   (position/size/24px-от-граней наследуются из базового .projects__arrow, без оверрайдов). */
.projects .projects__row {
  width: var(--content-w); max-width: calc(100% - 160px);
  margin: 0 auto; padding: 0;
}

/* ============================================================================
   МОБАЙЛ (≤767, фрейм 375) — рефлоу блоков страницы проекта.
   Переиспользуем существующие компоненты: гасим фикс-высоты/десктоп-наезды,
   складываем в колонку (тёмный body-bg → тёмные блоки бесшовно, белые = карточки).
   Figma: Hero 520:5617 · specs 520:5965 · task 520:5566 · gallery 534:636 ·
          opinion 534:1068 · projects 535:1291 · CTA 520:5528 · footer 520:6587.
   ========================================================================== */
@media (max-width: 1024px) {

  /* ---------- BLOCK 1: Hero (dhero) — как index-hero: лого+бургер, контент внизу ---------- */
  /* образец O nas: hero растёт под контент, контент в ПОТОКЕ (не absolute) → ничего не режется/не наезжает */
  .dhero { width: 100%; height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .dhero__overlay { background: var(--dark-48); }                 /* мобайл темнее для читаемости */
  .dhero__nav { position: relative; z-index: 3; flex: none; top: 0; left: 0; right: auto; width: 100%; max-width: none; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; }
  .dhero__content { position: relative; z-index: 2; flex: 1 1 auto; inset: auto; left: auto; right: auto; top: auto; bottom: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 16px calc(40px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; }
  .dhero__title-thin { font: 400 64px/72px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; white-space: normal; margin-bottom: -13px; }
  .dhero__title-bold { font: 700 64px/51px "adineue PRO Cyr", sans-serif; letter-spacing: 0; white-space: normal; }
  .dhero__loc { font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

  /* ---------- BLOCK 2: specs — грид 3×2 → одна колонка из 6 строк ---------- */
  .pspecs { height: auto; margin-top: 0; padding: 16px; border-radius: 32px; }  /* margin-top:0 — НЕ наезжаем на hero, чтобы фото было на весь экран (нижний блок под фолдом) */
  /* [data-count] — чтобы перебить десктопные .pspecs__grid[data-count="N"] (равная специфичность, но mobile ниже по файлу) */
  .pspecs__grid,
  .pspecs__grid[data-count] { flex: 0 0 auto; grid-template-columns: 1fr; grid-auto-rows: auto; grid-template-rows: none; width: 100%; max-width: 100%; }
  .pspec { min-height: 0; padding: 16px 20px; gap: 8px; }
  .pspec--client { min-height: 92px; }
  .pspec--client .pspec__logo { height: 32px; }
  .pspec__logo-text { font-size: 22px; line-height: 28px; }
  .pspec__label { font-size: 14px; line-height: 20px; letter-spacing: 0.28px; }
  .pspec__value { font-size: 24px; line-height: 32px; letter-spacing: 0.48px; white-space: nowrap; }

  /* ---------- BLOCK 3: task — 2 колонки → колонка: табы стопкой, панель под ними, фото скрыто ---------- */
  .ptask { height: auto; margin-top: 0; padding: 48px 16px; border-radius: 0; }
  .ptask__head { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; max-width: 100%; }
  .ptask__heading { white-space: normal; }
  .ptask__heading .t-h2-thin { display: block; }                 /* тонкая часть на строке 1, болд с новой строки (Figma) */
  .ptask__sub { display: none; }                                 /* сабтайтл на мобайле не показывается (Figma) */
  .ptask__body { flex-direction: column; gap: 16px; width: 100%; max-width: 100%; height: auto; margin-top: 32px; }
  .ptask__tabs { flex: none; gap: 8px; width: 100%; }
  .ptask__tab { flex: none; height: 80px; }
  /* таб-контент → ряд: иконка 52 слева, лейбл справа (десктоп: иконка сверху / лейбл снизу) */
  .ptask__tab-inner { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0 20px; }
  .ptask__tab-inner::before { background-image: url('/assets/projekt/tab-pattern-mobile.webp'); }   /* мобильный фон переключалок (широкий, под ряд) */
  .ptask__tab-icon { position: static; left: auto; top: auto; width: 52px; height: 52px; flex: none; margin-left: -16px; }   /* иконка на 16px левее (в уголок-рамку фона) */
  .ptask__tab-label { position: static; left: auto; bottom: auto; font-size: 24px; line-height: 32px; }
  .ptask__panel { flex: none; width: 100%; max-width: 100%; height: auto; padding: 12px; border-radius: 28px; }
  .ptask__list { position: static; inset: auto; width: 100%; height: auto; }
  .ptask__img { display: none; }
  .ptask__list--fill .ptask__item { flex: none; }               /* нумерованные — натуральная высота */
  .ptask__item { flex-direction: column; align-items: flex-start; gap: 12px; }   /* пилюля сверху, текст снизу */
  .ptask__item--plus { gap: 0; align-items: stretch; }           /* head на всю ширину → текст fill, кнопка +/− по правому краю */
  .ptask__item-head { width: 100%; }
  .ptask__item--plus .ptask__item-pill { margin-left: auto; }    /* auto-отступ: кнопка прижата вправо */

  /* ---------- BLOCK 4: gallery — фуллбли фото, тумбы скрыты, подпись+индекс+стрелки внизу ---------- */
  .pgallery { height: 640px; margin-top: 0; border-radius: 32px; }
  .pgallery__tag { left: 16px; top: 48px; }   /* претайтл «Galeria zdjęć» — сверху слева (был скрыт) */
  .pgallery__thumbs-strip { display: none; }
  .pgallery__thumbs { left: auto; right: 16px; top: auto; bottom: 40px; width: auto; align-items: flex-end; gap: 0; }   /* стрелки по правому краю (16px) */
  .pgallery__caption { left: 16px; right: 16px; bottom: 112px; }
  .pgallery__index-cur   { font-size: 120px; line-height: 128px; }   /* чуть меньше (было 146) — меньше перекрывает фото */
  .pgallery__index-total { font-size: 52px; line-height: 60px; }

  /* ---------- BLOCK 5: opinion — 2 колонки → колонка: заголовок сверху, карточка снизу ---------- */
  .popinion { height: auto; margin-top: 0; border-radius: 0; align-items: stretch; }
  .popinion__inner { flex-direction: column; align-items: stretch; gap: 0; width: 100%; max-width: 100%; padding: 48px 16px 88px; }   /* низ 88 = 48 видимый отступ карточки до след. блока + 40 компенс. наезда projects */
  .popinion__left { width: 100%; margin-bottom: 36px; }
  .popinion__heading { width: 100%; }
  .popinion__heading .t-h2-thin { display: block; }             /* тонкая часть строкой выше болда */
  .popinion__card { flex: none; width: 100%; padding: 48px 24px; gap: 24px; border: none; }
  /* обводка карточки — градиент 4% (вместо сплошной белой) */
  .popinion__card::before {
    content: ""; position: absolute; inset: 0; z-index: 2;
    border-radius: inherit; padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
  }
  .popinion__top { gap: 16px; }
  .popinion__quote { font: 700 20px/28px "adineue PRO Cyr", sans-serif; letter-spacing: 0.4px; }
  .popinion__qmark--open { left: 16px; top: 132px; }
  .popinion__qmark--close { right: 16px; bottom: 48px; }

  /* ---------- BLOCK 6: projects — гасим ДЕСКТОП-оверрайды (mobile из projects.css берёт верх) ---------- */
  .projects { height: auto; overflow: visible; padding: 48px 0 48px; border-radius: 32px; }   /* верх=низ=48 → контент по центру по вертикали (было 88 верх → сверху лишний воздух) */
  .projects .projects__row { width: auto; max-width: none; margin: 0; padding: 0 16px; }
}

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