/* ============================================================================
   SIGVIN — страница конкретной статьи блога (Figma 677:4597 hero / 677:5743 body).
   Тело статьи ПОЛНОСТЬЮ переиспользует .poldoc/.poltoc/.polsec (polityka.css,
   scroll-spy — polityka.js без изменений), CTA и Footer — те же секции, что
   на listing-странице блога. Тут — только компактный фото-hero статьи.
   ========================================================================== */

.bhero {
  position: relative;
  width: var(--frame-w);
  max-width: 100%;
  min-height: 572px;
  margin: 0 auto;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--dark-black);
}
.bhero__bg {
  position: absolute; top: -8%; left: 0;
  width: 100%; height: 116%;
  object-fit: cover;
  z-index: 0;
}
.bhero__overlay { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.32); z-index: 1; pointer-events: none; }
.bhero__nav {
  position: relative; z-index: 3; flex: none;
  width: calc(var(--frame-w) - var(--margin) * 2); max-width: calc(100% - var(--margin) * 2);
  margin: var(--margin) auto 0;
}

/* низ hero: крошки+заголовок слева, мета-инфо справа — координаты 1:1 из Figma
   (679:5932: main top:248, meta top:325.5, оба left/right:80). .bhero__main/
   __meta позиционируются АБСОЛЮТНО от .bhero (не от .bhero__row — иначе
   отсчёт шёл бы от низа навбара, а не от верха всего hero, как в Figma). */
.bhero__row { flex: 1 1 auto; }
.bhero__main { position: absolute; z-index: 2; left: 80px; top: 248px; display: flex; flex-direction: column; gap: 15px; max-width: 900px; }
.bhero__crumbs { display: flex; align-items: center; gap: 12px; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bhero__crumbs::-webkit-scrollbar { display: none; }
.bhero__crumb {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; padding: 8px 12px; white-space: nowrap;
  font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--light-32); background: transparent;
  --glass-border: var(--light-16); --corner-color: var(--light-48);
  transition: background-color .25s ease, color .25s ease;
}
a.bhero__crumb:hover { background: var(--light-8); color: var(--light-white); }
.bhero__crumb-cur { color: var(--light-white); }
.bhero__crumb-div { width: 2px; height: 2px; flex: none; border-radius: 0.643px; background: var(--light-32); }
.bhero__title {
  color: var(--light-white);
  font-size: 64px; line-height: 72px; letter-spacing: 0;
}
.bhero__title .thin { font-family: "Geologica Cursive", sans-serif; font-weight: 400; letter-spacing: -0.08em; }
.bhero__title .bold { font-family: "adineue PRO Cyr", sans-serif; font-weight: 700; }

.bhero__meta { position: absolute; z-index: 2; right: 80px; top: 325.5px; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.bhero__meta-row { display: flex; align-items: center; gap: 16px; }
.bhero__meta-dot { width: 4px; height: 4px; flex: none; background: var(--light-white); border-radius: 0 1.285px; }
.bhero__meta-label { color: var(--light-48); margin-right: -8px; }
.bhero__meta-val { color: var(--light-white); }

/* блок «Czytaj także» — переиспользует .projects/.proj-card (Więcej Realizacji,
   projects.css) с инверсией цвета (.projects--inverse); тут только оборачиваем
   его в отдельную скруглённую карточку (на homepage .projects — не самостоятельный
   блок, а часть непрерывной "ленты", поэтому там нет своего радиуса/оверфлоу).
   Фикс. высота 758 + z-index выше CTA(1)/Footer(2) — блок «наезжает» на них
   сверху: CTA сам подтягивается на -72px (cta.css), Footer — на -40px поверх
   CTA; здесь z-index:3 держит Czytaj także визуально НАД обоими при наезде. */
.blog-related.projects {
  position: relative; z-index: 3;
  width: var(--frame-w); max-width: 100%; height: 758px; margin: 40px auto 0;
  padding: 0; border-radius: 40px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
}
.blog-related .projects__container { margin-bottom: 40px; }
.blog-related .projects__row { padding-left: 40px; padding-right: 40px; }

/* ============================ MOBILE (≤1024) ==================== */
@media (max-width: 1024px) {
  .blog-related.projects { height: auto; margin-top: 32px; padding: 40px 0; border-radius: 24px; }
  .blog-related .projects__container { margin-bottom: 24px; }
  .blog-related .projects__row { padding-left: 16px; padding-right: 16px; }
  .bhero { width: 100%; height: auto; min-height: 100svh; }
  .bhero__overlay { background: var(--dark-48); }
  .bhero__nav { width: 100%; max-width: none; margin: 0; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; }
  /* на мобилке — обратно в обычный поток (абсолютные top/left/right только для десктопа) */
  .bhero__row { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 24px; padding: 24px 16px calc(136px + env(safe-area-inset-bottom, 0px)); min-width: 0; }
  .bhero__main { position: static; left: auto; top: auto; max-width: none; width: 100%; min-width: 0; }
  .bhero__title { font-size: 40px; line-height: 48px; }
  .bhero__meta { position: static; right: auto; top: auto; align-items: flex-start; gap: 8px; }
  /* активная крошка на мобилке — не скроллим, а обрезаем в многоточие, если не влезает */
  .bhero__crumbs { overflow-x: visible; }
  .bhero__crumb-cur { flex: 1 1 auto; min-width: 0; justify-content: flex-start; text-align: left; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================================
   SIGVIN — «Polityka Prywatności» (Figma 403:23396 hero / 411:25368 контент).
   Hero (тёмное фото + 146px заголовок + дата) → док-секция: липкий SPIS TREŚCI
   слева (активный пункт = чёрный фон, скруглён сверху, scroll-spy) + 8 разделов.
   ========================================================================== */

/* ---------------- HERO ---------------- */
.polhero {
  position: relative; z-index: 1;
  width: var(--frame-w); max-width: 100%;
  height: 718px; margin: 0 auto;
  overflow: hidden; isolation: isolate;
  background: var(--dark-black);
}
.polhero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.polhero__overlay { position: absolute; inset: 0; background: var(--dark-32); z-index: 1; pointer-events: none; }
.polhero .hero__sep { z-index: 2; }
.polhero__nav {
  position: absolute; top: var(--margin); left: 50%; transform: translateX(-50%);
  width: calc(var(--frame-w) - var(--margin) * 2); max-width: calc(100% - var(--margin) * 2);
  z-index: 5;
}
.polhero__content { position: absolute; inset: 0; z-index: 2; }
.polhero__title { position: absolute; left: 80px; top: 210px; color: var(--light-white); }
.polhero__title span { display: block; white-space: nowrap; }
.polhero__title-thin { font: 400 146px/156px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; }
/* «Prywatności» — вторая строка со сдвигом вправо (x319 = 80+239) и вертикальным нахлёстом (Figma 611:1040) */
.polhero__title-bold { margin-left: 239px; margin-top: -42px; font: 700 146px/156px "adineue PRO Cyr", sans-serif; letter-spacing: -0.03em; }
.polhero__date { position: absolute; left: 80px; bottom: 140px; display: flex; flex-direction: column; gap: 8px; }
.polhero__date-label { color: var(--light-48); font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase; }
.polhero__date-val { color: var(--light-white); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

/* ---------------- ДОКУМЕНТ (SPIS TREŚCI + разделы) ---------------- */
.poldoc {
  position: relative; z-index: 2;
  width: var(--frame-w); max-width: 100%; margin: -48px auto 0;
  background: var(--light-white); border-radius: 40px;   /* низ тоже 40px — CTA (z1, наезд -72) виден за скруглениями */
  padding: 96px 0 120px;
}
.poldoc__inner {
  width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto;
  display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: start;
}

/* липкое оглавление = навигация + прогресс-бар чтения (Figma 408:25159) */
.poltoc { position: sticky; top: 40px; align-self: start; }

/* шапка SPIS TREŚCI: бокс с уголками + горизонтальный серый филл, растущий по скроллу */
.poltoc__head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; width: 100%; padding: 8px 16px; margin-bottom: 24px;
  color: var(--dark-black); --glass-border: var(--border-dark); --corner-color: var(--dark-48);
}
.poltoc__head-fill {
  position: absolute; inset: 0; width: 100%;
  background: var(--light-light); transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease; z-index: 0;
}
.poltoc__head-text { position: relative; z-index: 1; }

/* список: серый контейнер со скруглением, строки-пункты с разделителями; активный — тёмный */
.poltoc__list {
  display: flex; flex-direction: column;
  background: var(--light-light); border: 1px solid var(--light-white);
  border-radius: 20px; overflow: hidden;
}
.poltoc__item {
  position: relative; display: flex; align-items: center; min-height: 40px;
  padding: 10px 16px; text-decoration: none;
  color: var(--dark-64); font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase;
  border-bottom: 1px solid var(--dark-8);
  transition: background-color .3s ease, color .3s ease, border-radius .3s ease;
}
.poltoc__item:last-child { border-bottom: 0; }
.poltoc__item:hover { color: var(--dark-black); }
.poltoc__item.is-active {
  position: relative; z-index: 2;
  background: var(--dark-black); color: var(--light-white);
  border-radius: 12px 12px 0 0; border-bottom-color: transparent;
}
/* S-образный переход низа активного пункта в серый список (Figma 677:5762) —
   готовый ассет уголка (assets/ui/toc-corner.svg, «Vector 1» из макета), а не
   самодельный radial-gradient: слева как есть, справа — зеркально по X */
.poltoc__item.is-active::before,
.poltoc__item.is-active::after {
  content: ""; position: absolute; top: 100%; width: 32px; height: 24px;
  background: url("/assets/ui/toc-corner.svg") no-repeat; background-size: 100% 100%;
}
.poltoc__item.is-active::before { left: 0; }
.poltoc__item.is-active::after { right: 0; transform: scaleX(-1); }
.poltoc__item.is-active + .poltoc__item { border-radius: 12px 12px 0 0; }

/* разделы контента */
.poldoc__content { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.polsec { scroll-margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.polsec__title { color: var(--dark-black); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.01em; }
.polsec__num { color: var(--dark-black); }
.polsec__text { color: var(--dark-64); font: 300 15px/24px "Geologica Cursive", sans-serif; letter-spacing: -0.05em; }
.polsec__list { display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; list-style: none; }
.polsec__list li {
  position: relative; padding-left: 20px;
  color: var(--dark-64); font: 300 15px/24px "Geologica Cursive", sans-serif; letter-spacing: -0.05em;
}
.polsec__list li::before { content: "—"; position: absolute; left: 0; color: var(--dark-48); }
.polsec__text a, .polsec__list a { color: var(--dark-black); text-decoration: none; }
.polsec__text a:hover, .polsec__list a:hover { text-decoration: underline; }

/* подзаголовок пункта внутри секции статьи (напр. каждая "красная флага" из списка 10) —
   вместо жирного текста в начале абзаца ("1. Tytuł.") — так это раньше выглядело как
   реферат школьника; теперь отдельный подзаголовок с приглушённым номером */
.polsec__subhead {
  display: flex; align-items: baseline; gap: 10px; margin-top: 8px;
  color: var(--dark-black); font: 700 17px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.01em;
}
.polsec__subhead-num { flex: none; color: var(--dark-32); font: 700 13px/20px "Geist Mono", monospace; letter-spacing: -0.01em; }
.polsec__text + .polsec__subhead { margin-top: 20px; }

/* Таблица сравнений/расценок внутри статьи блога — компонент Table (Figma 702:2407),
   1:1 структура: серая карточка (паддинг 4, радиус 16) → внутри ЗАГОЛОВОК лежит
   прямо на сером фоне (не в белой рамке), а строки данных — в отдельной белой
   рамке (border 1px dark-4%, радиус 16) ниже. Div-грид, не <table> — так и в
   макете (компонент "slot-table-rows" собран из div'ов, не из table/thead/tbody). */
.polsec__table-card { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.polsec__table-frame { width: 100%; padding: 4px; border-radius: 16px; background: var(--dark-4); display: flex; flex-direction: column; }
.polsec__table-head { display: flex; width: 100%; }
.polsec__table-head .polsec__table-cell { color: var(--dark-48); font: 300 16px/24px "Geologica Cursive", sans-serif; letter-spacing: -0.05em; padding-top: 10px; padding-bottom: 10px; }
.polsec__table-rows { width: 100%; overflow: hidden; border-radius: 16px; border: 1px solid rgba(17, 17, 17, 0.04); background: var(--light-white); }
.polsec__table-row { display: flex; width: 100%; border-bottom: 1px solid rgba(17, 17, 17, 0.08); }
.polsec__table-row:last-child { border-bottom: 0; }
.polsec__table-cell {
  flex: 1 1 0; min-width: 0; min-height: 40px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 16px;
  color: var(--dark-black); font: 700 16px/24px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em;
}
.polsec__table-cell:first-child { min-width: 200px; }
.polsec__table-cell strong { color: var(--dark-black); }

/* ============================ MOBILE (≤1024) — таблица статьи ==================== */
@media (max-width: 1024px) {
  .polsec__table-frame { border-radius: 12px; }
  .polsec__table-rows { border-radius: 12px; }
  .polsec__table-card { overflow-x: auto; }
  .polsec__table-head, .polsec__table-row { min-width: 480px; }
  .polsec__table-cell { padding: 10px 12px; font-size: 14px; line-height: 22px; }
  .polsec__table-cell:first-child { min-width: 160px; }
}

/* ---------------------------------------------------------------------------
   Блочки статьи блога для «разнообразия» контента (Figma 677:5780):
   • .polsec__callout — цветная плашка-контекст (важное/предостережение/подсказка)
   • .polsec__numlist — жирный нумерованный список (крупнее и заметнее .polsec__list)
   --------------------------------------------------------------------------- */
.polsec__callout {
  display: flex; align-items: center; width: 100%;
  padding: 12px 16px 12px 24px;
  border-left: 3px solid var(--dark-black);
  background: var(--dark-4);
  border-radius: 24px;
}
.polsec__callout-text {
  flex: 1 1 0; margin: 0;
  color: var(--dark-black); font: 700 16px/24px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em;
}
.polsec__callout-lead { display: block; }
.polsec__callout-sub { display: block; margin-top: 4px; font-weight: 400; }
.polsec__callout--danger { border-left-color: #ff3838; background: rgba(255, 56, 56, 0.08); }
.polsec__callout--warn { border-left-color: #ffbd38; background: rgba(255, 189, 56, 0.08); }
.polsec__callout--tip { border-left-color: #49ba5c; background: rgba(73, 186, 92, 0.08); }

.polsec__numlist { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.polsec__numlist li { display: flex; gap: 4px; align-items: flex-start; width: 100%; }
.polsec__numlist-num { flex: none; width: 22px; color: var(--dark-black); font: 700 16px/24px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.polsec__numlist li p { flex: 1 1 0; margin: 0; color: var(--dark-black); font: 700 16px/24px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

/* ============================ MOBILE (≤1024) — блочки статьи ==================== */
@media (max-width: 1024px) {
  .polsec__callout { padding: 10px 12px 10px 16px; border-radius: 16px; }
  .polsec__callout-text { font-size: 14px; line-height: 22px; }
  .polsec__table-card { border-radius: 12px; }
}

/* ---------------------------------------------------------------------------
   Встроенный мини-CTA внутри статьи (Figma 702:2449 «Inquiry container») —
   тёмная карточка с сеточной текстурой, заголовком и .btn-split (реюз кнопки
   с главного CTA-блока, cta.css/hero.css — те же стили, тот же JS свап).
   --------------------------------------------------------------------------- */
.polsec__cta {
  position: relative; z-index: 1;
  width: 100%; min-height: 366px; overflow: hidden; isolation: isolate;
  border-radius: 40px; background: var(--dark-black);
  display: flex; flex-direction: column; align-items: center;
  padding: 51px 24px 24px;
}
.polsec__cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("/assets/ui/dot-grid-cta.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.polsec__cta-body {
  position: relative; z-index: 1; flex: 1 1 auto; width: 100%; max-width: 746px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
}
.polsec__cta-title { color: var(--light-white); font: 400 48px/56px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; margin-bottom: 24px; }
.polsec__cta-title strong { font-family: "adineue PRO Cyr", sans-serif; font-weight: 700; letter-spacing: normal; }
.polsec__cta-sub { color: var(--light-white); font: 700 20px/28px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.polsec__cta-desc { color: var(--light-64); font: 300 16px/24px "Geologica Cursive", sans-serif; letter-spacing: -0.05em; }
.polsec__cta .btn-split { position: relative; z-index: 1; width: 100%; margin-top: 32px; }
.polsec__cta .btn-split .btn-split__text { flex: 1 1 auto; justify-content: center; }

/* ---------------------------------------------------------------------------
   Мини-отзыв команды внутри статьи (Figma 702:2461 «Review container») —
   светлая карточка с сеточной текстурой: аватар + имя/роль (реальные люди со
   страницы O nas), цитата, разделитель, деталь, и .btn-split в подвале.
   Скругления 24px, кроме левого верхнего угла (квадратный, Figma 702:2462).
   --------------------------------------------------------------------------- */
.polsec__review { width: 100%; border-radius: 24px; overflow: hidden; background: var(--dark-black); }
.polsec__review-content {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px 24px; border-left: 3px solid var(--dark-black);
  border-radius: 0 24px 24px 24px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.04) 0%, rgba(17, 17, 17, 0.04) 100%), var(--light-white);
}
.polsec__review-content::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("/assets/ui/dot-grid.svg") center top/cover no-repeat;
  pointer-events: none;
}
.polsec__review-head, .polsec__review-quote, .polsec__review-line, .polsec__review-detail { position: relative; z-index: 1; }
.polsec__review-head { display: flex; gap: 16px; align-items: center; }
.polsec__review-avatar { flex: none; width: 64px; height: 64px; border-radius: 100px; border: 1px solid var(--light-white); overflow: hidden; }
.polsec__review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.polsec__review-who { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.polsec__review-name { color: var(--dark-black); font: 700 20px/28px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.polsec__review-role { color: var(--dark-64); font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase; }
.polsec__review-quote { color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.polsec__review-line { height: 0; width: 100%; border-top: 1px dashed rgba(17, 17, 17, 0.08); }
.polsec__review-detail { color: var(--dark-64); font: 300 15px/24px "Geologica Cursive", sans-serif; letter-spacing: -0.05em; }
.polsec__review .btn-split { width: calc(100% - 24px); margin: 12px; }
.polsec__review .btn-split .btn-split__text { flex: 1 1 auto; justify-content: center; }

/* «Czytaj także» — см. .projects/.proj-card + .projects--inverse в projects.css
   (переиспользуем блок «Więcej Realizacji» 1:1, только перекрашен) */

/* ============================ MOBILE (≤1024) — CTA/отзыв ==================== */
@media (max-width: 1024px) {
  .polsec__cta { padding: 32px 16px 16px; border-radius: 24px; min-height: 0; }
  .polsec__cta-title { font-size: 28px; line-height: 34px; margin-bottom: 16px; }
  .polsec__cta .btn-split { margin-top: 24px; }
  .polsec__review-content { padding: 14px 16px; border-radius: 0 16px 16px 16px; }
  .polsec__review { border-radius: 16px; }
  .polsec__review .btn-split { margin: 8px; width: calc(100% - 16px); }
}

/* ============================ MOBILE (≤1024) ==================== */
@media (max-width: 1024px) {
  /* образец O nas: hero растёт под контент, контент в ПОТОКЕ (не absolute) → ничего не режется/не наезжает */
  .polhero { width: 100%; height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .polhero__nav { position: relative; z-index: 3; flex: none; top: 0; left: 0; transform: none; width: 100%; max-width: none; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 0; }
  /* контент в потоке, заголовок+дата прижаты к низу (flex-end); низ 72 — выше наезда poldoc (-48) */
  .polhero__content { position: relative; z-index: 2; flex: 1 1 auto; inset: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 16px calc(72px + env(safe-area-inset-bottom, 0px)); }
  .polhero__title { position: static; left: auto; top: auto; bottom: auto; }
  .polhero__title-thin { font: 400 60px/64px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; }
  .polhero__title-bold { margin: 0; font: 700 60px/64px "adineue PRO Cyr", sans-serif; letter-spacing: -0.03em; }
  .polhero__date { position: static; left: auto; bottom: auto; margin-top: 12px; }

  /* +64px снизу: последний раздел не прячется под закреплённой панелью якорей */
  .poldoc { width: 100%; border-radius: 32px; padding: 48px 0 128px; }
  .poldoc__inner { width: 100%; max-width: 100%; padding: 0 16px; grid-template-columns: 1fr; gap: 32px; }
  .poldoc__inner > * { min-width: 0; }   /* иначе ряд-оглавление распирает грид-колонку */
  /* оглавление на мобилке — закреплённая снизу панель якорей на белом фоне (scroll-spy) */
  .poltoc {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 40; margin: 0; min-width: 0;
    background: var(--light-white);
    border-top: 1px solid var(--dark-16);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -6px 20px rgba(17, 17, 17, 0.06);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .poltoc__head { display: none; }   /* «Spis treści» + прогресс скрыты — на панели только якоря */
  .poltoc__list { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0; min-width: 0; background: transparent; border: 0; border-radius: 0; overflow-y: visible; }
  .poltoc__list::-webkit-scrollbar { display: none; }
  .poltoc__item { flex: 0 0 auto; height: auto; white-space: nowrap; border-radius: 999px; padding: 9px 14px; background: var(--light-light); border-bottom: 0; font-size: 13px; transition: background .2s ease, color .2s ease; }
  .poltoc__item.is-active { background: var(--dark-black); color: var(--light-white); border-radius: 999px; border-bottom-color: transparent; }
  .poltoc__item.is-active + .poltoc__item { border-radius: 999px; }
  /* плавающую кнопку-телефон приподнимаем над закреплённой панелью якорей
     (специфичность body[data-page] бьёт responsive.css, который грузится позже) */
  body[data-page="polityka"] .hero__phone { bottom: calc(59px + 16px + env(safe-area-inset-bottom)); }
}

/* ============================================================================
   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 — модалки формы (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; }
}

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