/* ============================================================================
   SIGVIN — Block 2: Slogan  (Figma node 443:1232, 1440×800)
   Слова mix-blend-difference поверх знака-змейки. Змейка «заполняется цветом».
   ========================================================================== */

.slogan {
  position: relative;
  width: var(--frame-w);
  height: 800px;
  margin: 0 auto;              /* без наезда на Hero (Hero теперь 100vh) → нет белой полоски */
  background: var(--light-white);
  border-radius: var(--r-card);
  overflow: hidden;
  z-index: 5;
  isolation: isolate;          /* блендинг слов остаётся внутри блока — дешевле и корректнее на Android */
}

/* ---- знак-змейка ----------------------------------------------------- */
.snake__layer {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* нижний слой — светло-серый, смещён (даёт глубину/«тень»).
   --snake-zoom (1→) масштабирует знак при заполнении → эффект «ныряния». */
.snake__shadow {
  width: 1027.68px;
  height: 802.18px;
  transform: translate(calc(-50% - 3.26px), calc(-50% + 0.75px)) scale(var(--snake-zoom, 1));
  background: var(--light-light);
  -webkit-mask-image: url("/assets/ui/sign-light.svg");
  mask-image: url("/assets/ui/sign-light.svg");
  transition: transform .7s cubic-bezier(0.22, 1, 0.36, 1);   /* плавный зум */
}

/* верхний слой — ДУБЛЬ светло-серой змейки (та же форма/размер), покрашен тёмным
   и проявляется маской СВЕРХУ ВНИЗ по прогрессу скролла (--snake-p 0..1) */
.snake__fill {
  width: 1027.68px;
  height: 802.18px;
  transform: translate(calc(-50% - 3.26px), calc(-50% + 0.75px)) scale(var(--snake-zoom, 1));
  background: var(--dark-black);
  -webkit-mask-image: url("/assets/ui/sign-light.svg");
  mask-image: url("/assets/ui/sign-light.svg");
  /* p=0 → нижний inset 100% (пусто); p=1 → 0 (залито). Заполнение сверху вниз. */
  clip-path: inset(0 0 calc(100% - var(--snake-p, 0) * 100%) 0);
  /* плавная, «текучая» заливка + зум (значения подтягиваются за скроллом) */
  transition: clip-path .7s cubic-bezier(0.22, 1, 0.36, 1), transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- слова (проявляются поверх знака по прогрессу --wp 0..1) ---------- */
.slogan__word {
  position: absolute;
  font: 400 100px/108px "Geologica Cursive", sans-serif;
  letter-spacing: -0.08em;
  color: var(--light-white);
  mix-blend-mode: difference;
  white-space: nowrap;
  opacity: var(--wp, 0);
  filter: blur(calc((1 - var(--wp, 0)) * 8px));   /* было 14px — тот же blur-in на глаз, но заметно дешевле на слабых Android GPU */
  transition: opacity .7s ease-out, filter .7s ease-out, transform .7s cubic-bezier(0.22, 1, 0.36, 1);
}
/* will-change держим только пока блок реально в зоне анимации (класс вешает slogan.js) —
   постоянный will-change держит лишний GPU-слой в памяти без пользы на телефонах */
.slogan.is-inview .slogan__word { will-change: transform, opacity, filter; }
.slogan__word--bold { font-family: "adineue PRO Cyr", sans-serif; font-weight: 700; }

.word-solidnie  { left: calc(50% - 589.5px);  top: 139.77px; transform: translateX(calc((1 - var(--wp, 0)) * -70px)); }
.word-zawsze    { left: calc(50% - 336.86px); top: 548.23px; transform: translateY(calc((1 - var(--wp, 0)) * 70px)); }
.word-terminowo { left: calc(50% + 175.5px);  top: 304.72px; transform: translateX(calc((1 - var(--wp, 0)) * 70px)); }

@media (prefers-reduced-motion: reduce) {
  .slogan__word { opacity: 1; filter: none; transform: none; }
  .snake__fill { clip-path: inset(0 0 0 0); }
}

/* ---- мобайл (≤767, фрейм 375 — node 444:5622) ----
   На мобайле знак-змейка = ОТДЕЛЬНЫЙ адаптированный вектор (Figma 444:5620,
   чуть другие пропорции). Размер/позиция = контент вектора с учётом инсетов:
   567.44×671.57 @ left -95, top 55.94 (большая завитушка, кровит влево/вниз). */
@media (max-width: 1024px) {
  .slogan { width: 100%; height: 640px; }
  .snake__shadow, .snake__fill {
    left: -95px; top: 0;
    width: 567.44px; height: 639.94px;        /* обновлённый знак (Figma 444:5620: top 0, h 639.94) — не обрезается */
    transform: scale(var(--snake-zoom, 1));   /* без -50% центрирования: абсолютная позиция из Figma */
    transform-origin: center;
    -webkit-mask-image: url("/assets/ui/sign-mobile.svg");
            mask-image: url("/assets/ui/sign-mobile.svg");
  }
  .slogan__word {
    font: 400 40px/44px "Geologica Cursive", sans-serif; letter-spacing: -0.08em;
    transform: none;          /* без слайда — только fade+blur по --wp */
  }
  .slogan__word--bold { font-family: "adineue PRO Cyr", sans-serif; font-weight: 700; }
  /* позиции слов 1:1 с Figma 444:5622 */
  .word-solidnie  { left: 40px;    top: 64px;  }
  .word-terminowo { left: 84px;    top: 292px; }
  .word-zawsze    { left: 173.5px; right: auto; top: 520px; }
}

/* ============================================================================
   SIGVIN — Block 3: Co budujemy  (Figma node 444:5728, 1440×896)
   Авто-листающиеся карточки услуг: активная — широкая, белая, с описанием и
   прогресс-баром; по заполнении бара активной становится следующая. Клик —
   тоже активирует. Логика в services.js.
   ========================================================================== */

.services {
  position: relative;
  width: 100%;
  background: var(--dark-black);
  padding: 144px 80px;
  overflow: hidden;
}

/* фон-паттерн сетки (Grid bg_dark.svg), центр по вертикали +24px */
.services__grid {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% + 24px);
  transform: translateY(-50%);
  height: 800px;
  background: url('/assets/ui/grid-dark.svg') center / 1440px 800px no-repeat;
  pointer-events: none;
  z-index: 0;
}

.services__container {
  position: relative;
  z-index: 1;
  width: 1280px;
  max-width: 100%;
  margin: 0 auto;
  height: 608px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---- header --------------------------------------------------------- */
.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: 0 0 auto;
}
.services__title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.services__heading {
  color: var(--light-white);
  white-space: nowrap;
}

/* ---- card list ------------------------------------------------------ */
.services__list {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex: 1 0 0;
  min-height: 0;
  width: 100%;
}

/* карточка: ширина анимируется через flex-grow (255 ⇄ 480 как ratio) */
.svc-card {
  position: relative;
  flex: 255 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-radius: 24px;
  background: var(--dark-light);
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow .6s cubic-bezier(0.22, 1, 0.36, 1),
              background-color .5s ease;
}
.svc-card.is-active {
  flex-grow: 480;
  background: var(--light-white);
  cursor: default;
}

.svc-card__title {
  flex: 0 0 auto;
  color: var(--light-white);
  transition: color .5s ease;
}
.svc-card.is-active .svc-card__title { color: var(--dark-black); }

/* медиа-контейнер с фото */
.svc-card__media {
  position: relative;
  flex: 1 0 0;
  min-height: 0;
  align-self: stretch;
  border-radius: 24px;
  overflow: hidden;
}
.svc-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1), filter .35s ease;
}

/* hover на неактивных карточках — подсветка (зум+яркость фото), даёт сигнал кликабельности */
.svc-card:not(.is-active):hover .svc-card__img {
  transform: scale(1.05);
  filter: brightness(1.15);
}
.svc-card:not(.is-active):hover .svc-card__title { color: var(--light-white); }

@media (prefers-reduced-motion: reduce) {
  .svc-card__img { transition: filter .35s ease; }
  .svc-card:not(.is-active):hover .svc-card__img { transform: none; }
}

/* затемнение под текст активной карточки */
.svc-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-48);
  opacity: 0;
  transition: opacity .5s ease;
}
.svc-card.is-active .svc-card__overlay { opacity: 1; }

/* инфо-блок снизу (фикс. ширина 480 → стабилен при смене ширины карточки) */
.svc-card__info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 480px;
  max-width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transition: opacity .5s ease;
}
.svc-card.is-active .svc-card__info { opacity: 1; }

.svc-card__desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.svc-card__desc-title { color: var(--light-white); }
.svc-card__desc-body  { color: var(--light-64); }

/* прогресс-бар (Solid 12% обводка + уголки от .gframe) */
.svc-card__progress {
  position: relative;
  height: 18px;
  width: 100%;
  --glass-border: var(--border-light);
}
.svc-card__progress-track {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  overflow: hidden;
}
.svc-card__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--light-white) 0 1px, transparent 1px 8px);
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-card__overlay,
  .svc-card__num,
  .svc-card__info { transition: none; }
}

/* ---- мобайл (≤767, фрейм 375 — node 444:5660): заголовок → гор.скролл карточек → кнопка ---- */
@media (max-width: 1024px) {
  .services { padding: 48px 0; }
  .services__grid { display: none; }
  .services__container { width: 100%; height: auto; gap: 24px; }
  .services__head { display: contents; }
  .services__title { order: 1; padding: 0 16px; gap: 16px; }
  .services__heading { white-space: normal; font-size: 40px; line-height: 48px; }
  .services__list {
    order: 2; flex: none; height: 440px; gap: 12px;
    overflow-x: auto; padding: 0 0 0 16px;    /* левый 16; правый — margin последней карточки (надёжнее padding-right при скролле) */
    scroll-snap-type: x mandatory; scroll-padding-left: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;                     /* #2 убрать системную полоску скролла */
  }
  .services__list::-webkit-scrollbar { display: none; }
  .svc-card { flex: 0 0 256px; width: 256px; scroll-snap-align: start; }
  .svc-card.is-active { flex: 0 0 292px; width: 292px; }
  .svc-card:last-child { margin-right: 16px; }   /* нативный 16px справа при скролле до последней */
  .svc-card__info { width: 100%; padding: 24px; }
  /* #1 кнопка 343px (текст+стрелка), не вылазит (было width:100% + margin:0 16px) */
  .services__head > .btn-split { order: 3; width: 343px; max-width: calc(100% - 32px); margin: 0 auto; }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================================================
   SIGVIN — Block 7 «O NAS»  (Figma 447:7794, 1440×911)
   Полноэкранное видео с затемнением (как hero), которое проигрывается по скроллу
   (about.js скрабит currentTime). Контент: тег, крупный заголовок, абзац, CTA.
   Наезд (схема-чередование): блок recessed (z-index 1) — предыдущий блок 6 наезжает
   сверху, следующий блок 8 наезжает снизу. Параллакс фона + reveal контента.
   ========================================================================== */

.about {
  position: relative;
  z-index: 1;                         /* под блоками 6 и 8 (они выступают) */
  width: var(--frame-w);
  max-width: 100%;
  height: 911px;
  margin: -72px auto 0;               /* наезд предыдущего блока сверху */
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark-black);
}

/* фон-видео — выше блока для вертикального параллакса (как hero) */
.about__bg {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  z-index: 0;
}
/* затемняющий оверлей #111111 48% (как hero) */
.about__overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-48);
  z-index: 1;
  pointer-events: none;
}

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

.about__content {
  position: absolute;
  left: 80px;
  top: 472px;
  z-index: 2;
  width: 1200px;                        /* вмещает самый длинный перевод заголовка (EN «a company with character» ~1146px) в 2 строки */
  max-width: calc(100% - 160px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--light-white);
}
.about__title-bold {
  font: 700 108px/108px "adineue PRO Cyr", sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: -16px;               /* строки слегка наезжают (Figma) */
}
.about__title-thin {
  font: 400 108px/108px "Geologica Cursive", sans-serif;
  letter-spacing: -0.08em;
}
.about__desc {
  color: var(--light-white);
  max-width: 926px;
}

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

/* ---- мобайл (≤767, фрейм 375 — node 447:7635) ----
   full-bleed как в Figma: фото эджем, БЕЗ скруглений — блок примыкает прямо
   под предыдущим (не «плавающая» rounded-карточка с уголками-вырезами). */
@media (max-width: 1024px) {
  .about { width: 100%; height: auto; min-height: 100svh; border-radius: 0; }
  /* #7 наезд: Proces (z-index 2) налазит на About (z-index 1) — как на десктопе.
     section.about — выше специфичность глобального `.about{margin-top:0}` в responsive.css. */
  section.about { margin-top: -40px; }
  .about__tag { left: 16px; top: 72px; right: auto; }   /* +40: компенсация наезда, бейдж не под Proces */
  .about__cta { left: 16px; right: 16px; top: auto; bottom: 48px; width: auto; }
  .about__cta.btn-split { width: auto; }   /* перебиваем .btn-split{width:100%} из responsive.css — иначе right:16 игнорится и кнопка вылазит на 16px */
  .about__content {
    left: 16px; right: 16px; top: auto; bottom: 136px;
    width: auto; max-width: none; gap: 8px;
  }
  .about__title-bold, .about__title-thin { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; }
  .about__title-bold { margin-bottom: 0; }
  .about__desc { max-width: none; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
}

/* ============================================================================
   SIGVIN — Block 8 «Partnerzy» (Figma 447:7826, 1440×800)
   Светлый блок: шапка (тег + заголовок + CTA) и горизонтальная карусель карточек
   партнёров (лого). Ховеры карточек + скролл-стрелки в нашем стиле (как projects).
   Схема-чередование: блок ВЫСТУПАЕТ (z-index 2) — наезжает на блок 7 (видео).
   ========================================================================== */

.partners {
  position: relative;
  z-index: 2;                         /* выступает: наезжает на блок 7 */
  width: var(--frame-w);
  max-width: 100%;
  height: 800px;
  margin: -72px auto 0;               /* наезд на предыдущий блок (видео) */
  border-radius: var(--r-card);       /* 40px */
  background: var(--light-white);
  overflow: hidden;
  isolation: isolate;
}

/* ---- шапка ---------------------------------------------------------- */
.partners__head {
  position: absolute;
  left: 80px;
  top: 96px;
  width: 1280px;
  max-width: calc(100% - 160px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  z-index: 2;
}
.partners__headline { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.partners__heading { color: var(--dark-black); white-space: nowrap; }

/* ---- карусель ------------------------------------------------------- */
.partners__carousel { position: absolute; left: 0; right: 0; top: 252px; height: 468px; }
.partners__row {
  display: flex;
  gap: 12px;
  height: 468px;
  padding: 16px 80px;                 /* верт. отступ = место для подъёма карточек на ховере
                                         (overflow-x:auto принудительно клипает по Y — поэтому
                                         не обрезаем подъём, а даём ему запас внутри паддинга);
                                         левый край = край контейнера */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.partners__row::-webkit-scrollbar { display: none; }

.partner-card {
  position: relative;
  flex: 0 0 311px;
  width: 311px;
  height: 436px;
  background: var(--light-light);
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.partner-card:hover { transform: translateY(-10px); }   /* только подъём — без тени и заливки */
.partner-card__num {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--dark-64);
}
.partner-card__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  height: auto;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}
.partner-card:hover .partner-card__logo { transform: translate(-50%, -50%) scale(1.05); }
/* текстовый логотип-фолбэк (когда нет графики) */
.partner-card__logo--text {
  font: 700 30px/1 "adineue PRO Cyr", sans-serif;
  letter-spacing: 0.04em;
  color: var(--dark-black);
  white-space: nowrap;
}
.partner-card__label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 262px;
  color: var(--dark-64);
}
.partner-card__dot {
  flex: none;
  width: 4px;
  height: 4px;
  margin-top: 8px;                    /* выровнять с первой строкой текста */
  background: var(--dark-black);
  border-radius: 0 1.5px 0 1.5px;     /* мини-«уголок» как в макете */
}

/* ---- скролл-стрелки (как в projects) -------------------------------- */
.partners__arrow {
  position: absolute;
  top: 50%;                           /* центр карточек */
  width: 116px;                       /* как в projects (block 5) */
  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;
}
.partners__arrow--right { right: 24px; }
.partners__arrow--left  { left: 24px; }
.partners__arrow--left svg { transform: rotate(180deg); }
.partners__carousel.can-right:hover .partners__arrow--right,
.partners__carousel.can-left:hover  .partners__arrow--left {
  opacity: 1;
  pointer-events: auto;
}
.partners__arrow:hover  { transform: translateY(-50%) scale(1.07); }
.partners__arrow:active { transform: translateY(-50%) scale(0.92); }
.partners__arrow svg { width: 24px; height: 24px; }

/* ---- мобайл (≤767, фрейм 375 — node 463:5711) ---- */
@media (max-width: 1024px) {
  .partners {
    width: 100%; height: auto; margin-top: 0; padding: 48px 0;
    display: flex; flex-direction: column; gap: 32px;
  }
  .partners__head { display: contents; }
  .partners__headline { order: 1; padding: 0 16px; gap: 16px; max-width: none; }
  .partners__heading { white-space: normal; font-size: 40px; line-height: 48px; }
  .partners__head > .btn-split { order: 3; margin: 0 16px; width: calc(100% - 32px); }   /* учитываем боковые margin 16 (иначе width:100% вылазит на 16px и режет иконку) */
  .partners__carousel { order: 2; position: static; left: auto; right: auto; top: auto; height: auto; }
  .partners__row { padding: 0 16px; gap: 12px; height: 420px; }
  .partner-card { flex: 0 0 280px; width: 280px; height: 100%; }
  .partners__arrow { display: none; }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================================================
   SIGVIN — Block 10 «FAQ / Najczęstsze Pytania» (Figma 458:8086, 1440×800)
   Светлый блок: шапка, СЛЕВА тёмный селектор тем («Wybierz temat», 6 тем),
   СПРАВА аккордеон вопросов (один раскрыт — белый, минус; остальные — тёмная
   пилюля с плюсом). Клик по теме → меняются вопросы; клик по вопросу → раскрытие.
   Схема-чередование: блок ВЫСТУПАЕТ (z-index 2) — наезжает на блок 9. Логика — faq.js.
   ========================================================================== */

.faq {
  position: relative;
  z-index: 2;                          /* выступает: наезжает на блок 9 */
  width: var(--frame-w);
  max-width: 100%;
  height: 800px;
  margin: -72px auto 0;                /* наезд на предыдущий блок */
  border-radius: var(--r-card);        /* 40 */
  background: var(--light-white);
  overflow: hidden;
  isolation: isolate;
}

/* ---- шапка ---------------------------------------------------------- */
.faq__header {
  position: absolute;
  left: 80px; top: 96px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.faq__heading { color: var(--dark-black); white-space: nowrap; }

/* ---- СЛЕВА: селектор тем -------------------------------------------- */
.faq__topics {
  position: absolute;
  left: 60px; top: 272px;
  width: 580px;
  max-width: calc(100% - 140px);
  background: var(--dark-black);
  border-radius: 24px;
  padding-top: 12px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.faq__topics-title { color: var(--light-white); text-align: center; width: 100%; }
.faq__topics-list {
  width: 100%;
  background: var(--light-light);
  border-radius: 24px;
  padding: 4px;
  display: flex; flex-direction: column;
}
.faq-topic {
  height: 62px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--light-light);
  color: var(--dark-64);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;          /* темы капсом */
  transition: background-color .35s ease, color .35s ease;
}
.faq-topic.is-active { background: var(--light-white); color: var(--dark-black); }

/* ---- СПРАВА: аккордеон вопросов ------------------------------------- */
.faq__list {
  position: absolute;
  left: 696px; top: 156px;
  width: 665px;
  max-width: calc(100% - 776px);
  display: flex; flex-direction: column; gap: 8px;
}
.faq-q {
  background: var(--light-light);
  border-radius: 20px;
  padding: 8px;
  cursor: pointer;
}
.faq-q__inner {
  background: var(--light-48);          /* closed */
  border-radius: 12px;
  padding: 12px 12px 12px 20px;
  overflow: hidden;
  transition: background-color .35s ease;
}
.faq-q.is-open .faq-q__inner { background: var(--light-white); }
.faq-q__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px;
}
.faq-q__q {
  color: var(--dark-black);
  font: 700 20px/28px "adineue PRO Cyr", sans-serif;
  letter-spacing: 0.02em;
}
.faq-q__a {
  max-height: 0; opacity: 0; margin-top: 0;
  color: var(--dark-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;
}
.faq-q.is-open .faq-q__a { max-height: 160px; opacity: 1; margin-top: 12px; }

/* переключатель: closed — тёмная пилюля с «+»; open — рамка с уголками и «−» */
.faq-q__toggle {
  position: relative;
  flex: none;
  width: 60px; height: 48px;
  border-radius: var(--r-pill);
  background: var(--dark-black);
  color: var(--light-white);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .35s ease, border-radius .35s ease, color .35s ease;
}
.faq-q__toggle .corner { --corner-color: var(--dark-48); opacity: 0; transition: opacity .35s ease; }
.faq-q.is-open .faq-q__toggle {
  background: transparent;
  border-radius: 0;
  color: var(--dark-black);
}
.faq-q.is-open .faq-q__toggle .corner { opacity: 1; }
/* «+»/«−»: горизонтальная всегда, вертикальная скрывается на раскрытии */
.faq-q__icon { position: relative; width: 12px; height: 12px; }
.faq-q__icon::before,
.faq-q__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor; transition: opacity .3s ease, transform .35s ease;
}
.faq-q__icon::before { width: 12px; height: 1.6px; transform: translate(-50%, -50%); }      /* — */
.faq-q__icon::after  { width: 1.6px; height: 12px; transform: translate(-50%, -50%); }      /* | */
.faq-q.is-open .faq-q__icon::after { opacity: 0; }                                          /* + → − */

@media (prefers-reduced-motion: reduce) {
  .faq-q__a, .faq-q__inner, .faq-q__toggle, .faq-q__icon::after, .faq-topic { transition: none; }
}

/* ---- мобайл (≤767, фрейм 375 — node 463:6050): шапка → темы → аккордеон ---- */
/* ---- мобайл (≤767, фрейм 375 — node 463:6050): темы + вопросы в ОДНОЙ панели,
   вопросы вложены faq.js сразу после активной темы (как в Figma) ---- */
@media (max-width: 1024px) {
  .faq {
    width: 100%; height: auto; margin-top: 0; padding: 48px 16px;
    display: flex; flex-direction: column; gap: 32px;
    border-radius: 32px;
  }
  .faq__header { position: static; left: auto; top: auto; }
  .faq__heading { white-space: normal; font-size: 40px; line-height: 48px; }

  /* тёмная панель «Wybierz temat» */
  .faq__topics { position: static; left: auto; top: auto; width: 100%; max-width: none; padding-top: 8px; gap: 8px; }
  /* светлая внутренняя панель: табы + (после активного) список вопросов, gap 4 */
  .faq__topics-list { gap: 4px; }

  /* табы тем 48px, текст 16/24 */
  .faq-topic { height: 48px; }
  .faq-topic span { font-size: 16px; line-height: 24px; }

  /* список вопросов — внутри панели (перенесён faq.js): не абсолют, gap 4 */
  .faq__list { position: static; left: auto; top: auto; width: 100%; max-width: none; gap: 4px; }
  /* карточка = одиночный бокс (без внешней рамки light-light + padding 8) */
  .faq-q { background: transparent; padding: 0; border-radius: 12px; }
  .faq-q__head { min-height: 40px; gap: 12px; }
  .faq-q__q { font-size: 16px; line-height: 24px; }
  .faq-q.is-open .faq-q__inner { padding-bottom: 20px; }
  .faq-q.is-open .faq-q__a { max-height: 360px; }
  /* тоггл 52×40 (Figma) */
  .faq-q__toggle { width: 52px; height: 40px; }
}

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