/* ============================================================================
   SIGVIN — Страница «O nas» (Figma 550:3106). Десктоп.
   Переиспуемые компоненты: navbar/gframe/tag/btn-split (hero.css), corners.js,
   CTA (cta.css), Footer (footer.css), счёт цифр (stats.js). Тут — 5 блоков:
   1 hero · 2 «Nasza Historia» (timeline) · 3 «Czym się kierujemy» (values) ·
   4 «Poznaj Nasz Zespół» (team) · 5 «Certyfikaty i Uprawnienia».
   Наезд-цепочка: белые блоки (historia, certy) наезжают на тёмные, radius 40.
   ========================================================================== */

/* общий тег на СВЕТЛОМ блоке (historia/certy): тёмный текст + тёмные уголки/кольцо */
.ohistoria .tag,
.ocerty .tag { color: var(--dark-black); --glass-border: var(--border-dark); --corner-color: var(--dark-black); }

/* ===================== BLOCK 1: HERO ================================= */
.ohero {
  position: relative; z-index: 1;
  width: var(--frame-w); max-width: 100%;
  min-height: 100vh; margin: 0 auto;   /* hero на весь экран → нижний блок полностью под фолдом */
  overflow: hidden; isolation: isolate;
  background: var(--dark-black);
}
.ohero__bg { position: absolute; top: -5%; left: 0; width: 100%; height: 110%; object-fit: cover; object-position: center 28%; z-index: 0; }
.ohero__overlay {                       /* фото яркое (день) → усиленный градиент: темнее слева (заголовок) и снизу (статы) */
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17,17,17,0.62) 0%, rgba(17,17,17,0.12) 55%),
    linear-gradient(180deg, rgba(17,17,17,0.16) 0%, rgba(17,17,17,0.10) 38%, rgba(17,17,17,0.56) 100%);
}
.ohero__content { text-shadow: 0 1px 22px rgba(17,17,17,0.35); }   /* белый текст читаем на любом кадре фото */
.ohero .hero__sep { z-index: 2; }
.ohero__nav {
  position: absolute; top: var(--margin); left: var(--margin);
  width: calc(var(--frame-w) - var(--margin) * 2);
  max-width: calc(100% - var(--margin) * 2);
  z-index: 5;
}
.ohero__content { position: absolute; left: 80px; top: 160px; width: var(--content-w); max-width: calc(100% - 160px); z-index: 2; }
/* заголовок как в дизайне (Figma 550:3448): тонкая строка left:0/top:0, БОЛД строка
   сдвинута вправо +257 и вверх (наезд строк, top-offset 114) — паттерн как в phero */
.ohero__title { position: relative; height: 273px; color: var(--light-white); text-shadow: none; }   /* без тени на заголовке */
.ohero__title-thin { position: absolute; left: 0; top: 0; font: 400 146px/156px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; white-space: nowrap; }
.ohero__title-bold { position: absolute; left: 257px; top: 114px; font: 700 146px/156px "adineue PRO Cyr", sans-serif; letter-spacing: -0.03em; white-space: nowrap; }
.ohero__desc { margin-top: 24px; max-width: 954px; color: var(--light-white); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
/* ховер цифр — «прокрутка в блюре» (тот же keyframe stat-num-roll из scroll-fx.css, как на главной/Projekty) */
.ohero__stat:hover .ohero__stat-num { animation: stat-num-roll .62s cubic-bezier(0.5, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .ohero__stat:hover .ohero__stat-num { animation: none; } }
.ohero__bar { display: flex; align-items: stretch; gap: 32px; margin-top: 40px; }
.ohero__stats { flex: 1 0 0; display: flex; align-items: stretch; }
.ohero__stat {
  flex: 1 0 0; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 16px 32px; margin-right: -1px;
  color: var(--light-white); --glass-border: var(--border-light);
}
.ohero__stat:last-child { margin-right: 0; }
.ohero__stat-num { font: 700 64px/72px "adineue PRO Cyr", sans-serif; }
.ohero__stat-label { color: var(--light-white); }
.ohero__btn { flex: none; align-self: center; }

/* ===================== BLOCK 2: NASZA HISTORIA (timeline) =========== */
.ohistoria {
  position: relative; z-index: 4;
  width: var(--frame-w); max-width: 100%;
  margin: 0 auto; padding: 96px 0;      /* БЕЗ наезда на hero → hero-фото на весь экран, этот блок целиком под фолдом (как projekt) */
  background: var(--light-white); border-radius: var(--r-card);
  overflow: hidden;
}
.ohistoria__inner { width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.ohistoria__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ohistoria__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ohistoria__heading .t-h2-thin, .ohistoria__heading .t-h2 { color: var(--dark-black); }
.ohistoria__sub { align-self: flex-end; max-width: 480px; color: var(--dark-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ohistoria__sub b { color: var(--dark-black); }

.ohistoria__timeline { position: relative; margin-top: 56px; height: 490px; }
/* фоновые полоски-график = ГОТОВЫЙ SVG из Figma (клиент сохранил, 1300×423); чуть увеличен (110% высоты).
   контейнер фона шире контента на 8px с каждой стороны → отступы по бокам 72px (было 80), SVG растянут на всю ширину */
.ohistoria__bars { position: absolute; left: -8px; right: -8px; bottom: 30px; top: 0; z-index: 0; background: url('/assets/onas/Lines 2.svg') bottom center / 100% 110% no-repeat; }  /* #3 Lines 2 — с подписями годов */
.ohistoria__cards { position: relative; z-index: 1; height: 100%; }
.ohistoria__card {
  position: absolute; width: 292px; padding: 22px 24px;
  /* поблочное x/y (из Figma, кадр 1440): --x от левого края кадра (margin 80), --y от верха секции.
     контейнер карточек = контент-ширина (левый край = 80) и ниже шапки (~220) → вычитаем эти оффсеты */
  left: calc(var(--x) - 80px);
  top: calc(var(--y) - 220px);
  background: var(--light-light); border-radius: 0;              /* острые углы (без скругления) */
  --corner-color: var(--dark-black); --glass-border: transparent; /* только острые уголки-скобки, без кольца */
  display: flex; flex-direction: column; gap: 12px;
  transition: background-color .35s ease;
}
/* тёмный фон плажки — ТОЛЬКО на ховер */
.ohistoria__card:hover { background: var(--dark-black); --corner-color: var(--light-white); }
.ohistoria__date { display: flex; align-items: center; gap: 10px; color: var(--dark-64); transition: color .35s ease; }
.ohistoria__card:hover .ohistoria__date { color: var(--light-64); }
.ohistoria__sq { width: 6px; height: 6px; flex: none; background: var(--dark-black); transition: background-color .35s ease; }
.ohistoria__card:hover .ohistoria__sq { background: var(--light-white); }
.ohistoria__card-title { color: var(--dark-black); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; transition: color .35s ease; }
.ohistoria__card:hover .ohistoria__card-title { color: var(--light-white); }
/* подтекст — Geist Mono (как в дизайне) */
.ohistoria__card-text { color: var(--dark-64); font: 400 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; transition: color .35s ease; }
.ohistoria__card:hover .ohistoria__card-text { color: var(--light-64); }
.ohistoria__heading .t-h2-thin { margin-right: 0.12em; }        /* воздух между «Nasza» и «Historia» */

/* ===================== BLOCK 3: CZYM SIĘ KIERUJEMY (values) ========= */
.owartosci {
  position: relative; z-index: 3;
  width: var(--frame-w); max-width: 100%;
  height: 864px;                                 /* видимых 800 + по 32px сверху/снизу скрыто под соседними блоками */
  margin: -32px auto 0; padding: 128px 0 96px;   /* верх: 96px ВИДИМЫХ до баджа + 32px скрыто под наездом ohistoria (z4) = 128 */
  background: var(--dark-black); border-radius: var(--r-card);
  overflow: hidden; isolation: isolate;
}
.owartosci__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--light-4) 1px, transparent 1px), linear-gradient(90deg, var(--light-4) 1px, transparent 1px);
  background-size: 80px 80px; opacity: .6;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 30%, #000 20%, transparent 75%);
}
.owartosci__inner { position: relative; z-index: 1; width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.owartosci__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.owartosci__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.owartosci__heading .t-h2-thin, .owartosci__heading .t-h2 { color: var(--light-white); }
.owartosci__sub { align-self: flex-end; max-width: 420px; color: var(--light-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.owartosci__sub b { color: var(--light-white); }

/* тело блока переиспользует process.* (Jak Działamy); тут — оверрайды под 4 пункта */
.owartosci__body { margin-top: 56px; }
.owartosci .proc-step { height: 108px; }                    /* 4×108 = 432 = высота панели */
.owartosci .proc-bullets { padding-top: 42px; gap: 84px; }  /* центры буллетов = центры 108-px шагов */
.owartosci .process__list { width: 340px; }
/* shield-инсет вместо фото-попапа: лого по центру тёмной карточки (не cover) */
.owartosci__shield { display: flex; align-items: center; justify-content: center; background: var(--dark-black); }
.owartosci__shield img { position: static; width: 132px; height: auto; object-fit: contain; }

/* ===================== BLOCK 4: POZNAJ NASZ ZESPÓŁ (team) ========== */
.ozespol {
  position: relative; z-index: 5;                 /* НАД соседями (block3 z3, block5 z4) — наезжает и сверху (block3), и снизу (block5), как в дизайне */
  width: var(--frame-w); max-width: 100%;
  height: 848px; margin: -32px auto 0;            /* наезд на block3 снизу — 32px (owartosci прячет низ под ozespol); z5 сверху */
  overflow: hidden; isolation: isolate;
  border-radius: var(--r-card); background: var(--dark-black);
}
.ozespol__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.ozespol__overlay { position: absolute; inset: 0; background: var(--dark-32); z-index: 1; pointer-events: none; }
.ozespol .hero__sep { z-index: 2; }
.ozespol__inner { position: relative; z-index: 2; width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; padding-top: 96px; }
.ozespol__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ozespol__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ozespol .tag { color: var(--light-white); }
.ozespol__heading .t-h2-thin, .ozespol__heading .t-h2 { color: var(--light-white); }
.ozespol__sub { align-self: flex-end; color: var(--light-white); font: 700 24px/28px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

.ozespol__body {                                   /* сплошная рамка УБРАНА (было gframe+padding+radius) */
  position: relative; margin-top: 44px;
  display: flex; align-items: stretch; gap: 24px;
}
/* фото на СТЕКЛЯННОЙ плашке: backdrop-blur + liquid glass + sheen как в хедере */
.ozespol__photo { flex: none; width: 332px; height: 428px; padding: 8px; border-radius: 32px; overflow: hidden; }
.ozespol__photo-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; border-radius: 24px; transition: opacity .3s ease, filter .3s ease; }
/* рамка для имени (правый блок) — острые углы → corners.js ставит уголки-скобки (550:4090) */
.ozespol__info {
  flex: 1 1 auto; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; border-radius: 0;
  --glass-border: var(--border-light); --corner-color: var(--light-48);
}
.ozespol__counter { position: absolute; top: 16px; right: 24px; font: 400 14px/20px "Geist Mono", monospace; }
.ozespol__counter-cur { color: var(--light-white); }
.ozespol__counter-total { color: var(--light-48); }
.ozespol__person { text-align: center; transition: opacity .3s ease, filter .3s ease; }
.ozespol__name-thin { display: block; font: 400 48px/56px "Geologica Cursive", sans-serif; color: var(--light-white); letter-spacing: -0.08em; }
.ozespol__name-bold { display: block; font: 700 48px/56px "adineue PRO Cyr", sans-serif; color: var(--light-white); }
.ozespol__role { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--light-64); }
.ozespol__role-dot { width: 6px; height: 6px; flex: none; background: var(--light-white); }
/* стрелки — дитя .ozespol__body; центрируем по инфо-плашке (правый блок):
   178px = (фото 332 + gap 24) / 2 → сдвиг центра от центра всего body к центру плашки */
.ozespol__nav { position: absolute; bottom: 32px; left: calc(50% + 178px); transform: translateX(-50%); display: flex; gap: 8px; }
.ozespol__arrow {
  width: 72px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); background: var(--light-16); color: var(--light-white);
  cursor: pointer; --glass-border: var(--border-light); transition: background .3s ease;
}
.ozespol__arrow:hover { background: var(--light-32); }
.ozespol__arrow svg { width: 24px; height: 24px; }
.ozespol__arrow--prev svg { transform: rotate(180deg); }
.ozespol__body.is-switching .ozespol__photo-img,
.ozespol__body.is-switching .ozespol__person { opacity: 0; filter: blur(6px); }

/* кнопка «Zobacz detale» (Figma 657:1693) — split-кнопка на стекле (тёмный герой → белый текст) */
.ozespol__details { margin-top: 24px; transition: opacity .3s ease, filter .3s ease; }
.ozespol__body.is-switching .ozespol__details { opacity: 0; filter: blur(6px); }
.ozespol__details .btn-split__text,
.ozespol__details .btn-split__icon {
  background: var(--light-8); background-image: var(--glass-sheen);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--light-white); box-shadow: inset 0 0 0 1px var(--light-16);
}
/* на широком десктопе кнопку — в правый-нижний угол плашки, стрелки остаются по центру.
   Только ≥1201: на более узкой плашке кнопка наезжает на центрированные стрелки, поэтому
   там остаётся центрированной под именем (fallback). */
@media (min-width: 1201px) {
  .ozespol__details { position: absolute; right: 32px; bottom: 32px; margin-top: 0; }
}

/* ==== ДРАВЕР ДЕТАЛЕЙ ЧЛЕНА КОМАНДЫ (Figma 648:1115) — калька модалки вакансий (kariera .vacm) ==== */
.tmodal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; justify-content: flex-end; align-items: stretch;
  padding: 48px 24px 24px;
  background: var(--dark-64);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.tmodal.is-open { opacity: 1; visibility: visible; }
body.tmodal-lock { overflow: hidden; }

.tmodal__panel {
  position: relative; width: 550px; max-width: 100%;
  display: flex; flex-direction: column;
  background: var(--light-white); border-radius: 32px;
  transform: translateX(32px); opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
.tmodal.is-open .tmodal__panel { transform: none; opacity: 1; }

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

/* верх — белый: фото + имя + должность */
.tmodal__info { display: flex; align-items: center; gap: 24px; padding: 32px; }
.tmodal__photo { flex: none; padding: 4px; background: var(--dark-8); border-radius: 18px; }
.tmodal__photo-img { display: block; width: 96px; height: 96px; object-fit: cover; object-position: top center; border-radius: 16px; }
.tmodal__id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tmodal__name { color: var(--dark-black); font: 700 32px/40px "adineue PRO Cyr", sans-serif; }
.tmodal__role {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 0;
  color: var(--dark-64); font: 500 13px/20px "Geist Mono", monospace; letter-spacing: 0.02em; text-transform: uppercase;
  --glass-border: var(--border-dark); --corner-color: var(--dark-48);
}

/* середина — серая, прокручиваемая */
.tmodal__scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--light-light); border-radius: 24px;
  scrollbar-width: thin;
}
.tmodal__stat {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px;
  background: var(--light-white); border: 1px dashed var(--dark-16);
}
.tmodal__stat-label { color: var(--dark-64); font: 500 14px/20px "Geist Mono", monospace; letter-spacing: -0.01em; text-transform: uppercase; }
.tmodal__stat-val { color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.tmodal__list { display: flex; flex-direction: column; gap: 12px; }
.tmodal__sec {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px;
  border: 1px dashed var(--dark-16);
}
.tmodal__sec-dot { width: 4px; height: 4px; flex: none; background: var(--dark-black); border-radius: 0 1.285px; }
.tmodal__sec-text { flex: 1 1 auto; min-width: 0; color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }

/* ===================== BLOCK 5: CERTYFIKATY I UPRAWNIENIA =========== */
.ocerty {
  position: relative; z-index: 4;
  width: var(--frame-w); max-width: 100%;
  margin: -40px auto 0; padding: 96px 0;
  background: var(--light-white); border-radius: 0 0 var(--r-card) var(--r-card);  /* верхние углы острые — team-блок наезжает сверху */
}
.ocerty__inner { width: var(--content-w); max-width: calc(100% - 160px); margin: 0 auto; }
.ocerty__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ocerty__head-left { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ocerty__heading .t-h2-thin, .ocerty__heading .t-h2 { color: var(--dark-black); }
.ocerty__sub { align-self: flex-end; max-width: 460px; color: var(--dark-64); font: 700 24px/32px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ocerty__sub b { color: var(--dark-black); }

.ocerty__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; perspective: 1000px; }
.ocerty__card {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 32px 20px; background: var(--light-light); border-radius: 24px;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .4s ease, background-color .4s ease;
}
.ocerty__card:hover {                              /* тактильность: фон чуть ТЕМНЕЕ, без тени */
  transform: translateY(-4px); background: #e8e8e8;
}
.ocerty__name { display: flex; align-items: center; gap: 10px; color: var(--dark-black); font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
.ocerty__dot { width: 6px; height: 6px; flex: none; background: var(--dark-black); }
.ocerty__img {                                     /* параллакс по наведению — onas-certs.js двигает transform */
  width: auto; height: 236px; object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.22));
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform;
}
.ocerty__cap { color: var(--dark-64); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .ocerty__card, .ocerty__card:hover { transform: none; transition: none; }
  .ocerty__img { transition: none; }
}

/* ===================== МОБАЙЛ / ПЛАНШЕТ ≤1024 (Figma 550:1184, 375) ===== */
@media (max-width: 1024px) {
  /* ---------------- BLOCK 1: HERO ---------------- */
  .ohero { height: auto; min-height: 100svh; border-radius: 0; }
  .ohero__overlay { background: rgba(17, 17, 17, 0.48); }   /* дизайн: ровный dark/48% */
  /* хедер как на др. страницах: navbar с отступами 16px по бокам + 16 сверху (не во всю ширину).
     left/top:0 — сбрасываем десктопные абсолютные оффсеты (иначе relative сдвигает вправо/вниз) */
  .ohero__nav { position: relative; z-index: 3; width: 100%; max-width: none; left: 0; top: 0; padding: 16px 16px 0; }
  /* position:relative (не static) — иначе z-index не работает и overlay накрывает текст (был засвет);
     left/top:0 — сбрасываем десктопные абсолютные оффсеты */
  .ohero__content { position: relative; z-index: 2; left: 0; top: 0; padding: 72px 16px calc(40px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; text-shadow: none; }
  .ohero__title { position: static; height: auto; }
  /* заголовок inline → естественный перенос «Firma z» / «Charakterem» (как в дизайне) */
  .ohero__title-thin { position: static; display: inline; font: 400 60px/64px "Geologica Cursive", sans-serif; letter-spacing: -0.08em; white-space: normal; }
  .ohero__title-bold { position: static; display: inline; font: 700 56px/54px "adineue PRO Cyr", sans-serif; letter-spacing: 0; white-space: normal; margin: 0; }
  .ohero__desc { margin-top: 24px; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
  .ohero__bar { flex-direction: column; gap: 0; margin-top: 24px; }
  .ohero__stats { flex-direction: column; }
  .ohero__stat { margin-right: 0; margin-bottom: -1px; padding: 12px 20px; gap: 4px; }
  .ohero__stat-num { font-size: 40px; line-height: 48px; }
  .ohero__stat-label { font-size: 18px; line-height: 26px; letter-spacing: 0.02em; }
  .ohero__btn { display: none; }   /* по дизайну на мобилке кнопки в hero нет (только phone-FAB) */

  /* ---------------- секции 2–5: общие ---------------- */
  .ohistoria { padding: 48px 16px; border-radius: 32px; }
  /* #2 моб: блок ≥812px, контент по центру вертикали; отступ до соседей 88px (48 ВИДИМЫХ + 40 скрыто под наездом ohistoria сверху / ozespol снизу) */
  .owartosci { min-height: 812px; height: auto; margin-top: -40px; padding: 88px 16px; border-radius: 0; display: flex; flex-direction: column; justify-content: center; }
  /* #5 моб: блок ≥812px; сверху 88px (48 ВИДИМЫХ + 40 скрыто под наездом ozespol z5), снизу 48; контент Fill */
  .ocerty { min-height: 812px; padding: 88px 16px 48px; border-radius: 0 0 32px 32px; display: flex; flex-direction: column; }
  .ocerty__inner { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .ohistoria__inner, .owartosci__inner, .ocerty__inner { width: 100%; max-width: 100%; }
  .ohistoria__head, .owartosci__head, .ocerty__head, .ozespol__head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .ohistoria__sub, .owartosci__sub, .ocerty__sub, .ozespol__sub { align-self: flex-start; text-align: left; max-width: 100%; font: 700 18px/26px "adineue PRO Cyr", sans-serif; letter-spacing: 0.02em; }
  /* заголовки секций inline 40/48 — переносятся естественно (Nasza Historia — 1 строка, остальные 2) */
  .ohistoria__heading .t-h2-thin, .ohistoria__heading .t-h2,
  .owartosci__heading .t-h2-thin, .owartosci__heading .t-h2,
  .ocerty__heading .t-h2-thin, .ocerty__heading .t-h2,
  .ozespol__heading .t-h2-thin, .ozespol__heading .t-h2 { font-size: 40px; line-height: 48px; }

  /* ---------------- BLOCK 2: HISTORIA (стопка карточек) ---------------- */
  .ohistoria__timeline { height: auto; margin-top: 32px; }
  .ohistoria__bars, .ohistoria__axis { display: none; }
  .ohistoria__cards { display: flex; flex-direction: column; gap: 12px; }   /* #1 меньше отступ между карточками */
  /* position:relative (не static) → абсолютные уголки-скобки corners.js держатся ЗА карточкой, а не за таймлайном */
  .ohistoria__card { position: relative; width: 100%; left: auto; top: auto; bottom: auto; padding: 16px; }
  .ohistoria__card-title { font-size: 18px; line-height: 26px; }
  .ohistoria__card-text { font-size: 13px; line-height: 18px; }

  /* ---------------- BLOCK 3: VALUES (аккордеон process.css) — 1:1 Figma 550:1227 ---------------- */
  .owartosci__grid { background-size: 48px 48px; }
  .owartosci__body { flex-direction: column; margin-top: 32px; }        /* дизайн: gap шапка→карта 32 */
  .owartosci .process__list { border-radius: 24px; }
  .owartosci .proc-step { height: 72px; min-height: 0; padding: 12px; }  /* дизайн: свёрнутые шаги h-72, p-12 */
  .owartosci .proc-step__num { --glass-border: var(--border-linear); }   /* #2 кружок номера — Linear-обводка (прозрачная, как в хедере), не сплошная белая */
  .owartosci .process__popup { height: 128px; }                          /* дизайн: карточка-иконка h-128 */
  .owartosci__shield { background: var(--dark-black); }
  /* остальное — мобильный аккордеон из process.css (актив белый + desc + shield, свёрнутые тёмные) */

  /* ---------------- BLOCK 4: TEAM — Figma 574:888 ---------------- */
  .ozespol { height: auto; margin-top: -40px; border-radius: 32px; }   /* #2 наезд 40 на низ owartosci (его «40 скрытых») */
  .ozespol__inner { width: 100%; max-width: 100%; padding: 48px 16px; }
  /* колонка: фото → инфо-плашка → ряд стрелок (стрелки вынесены из плашки в .ozespol__body) */
  .ozespol__body { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; }
  .ozespol__photo { width: 100%; height: 204px; padding: 8px; border-radius: 20px; }
  .ozespol__photo-img { object-position: center 22%; border-radius: 12px; }
  /* инфо-плашка: имя+должность по центру, кнопка на всю ширину (574:847 — p-24, gap-20) */
  .ozespol__info {
    align-self: stretch; padding: 24px; border-radius: 0; --glass-border: var(--light-32);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
  }
  .ozespol__counter { display: none; }                  /* на мобилке счётчика нет */
  /* фикс-высота под имя + должность (до 2 строк) → при листании плашка НЕ меняет
     высоту (иначе длинные должности типа «Kierownik działu prac elewacyjnych»
     переносятся на 2 строки и блок дёргается/«ужимается») */
  .ozespol__person { text-align: center; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .ozespol__role { margin-top: 4px; }                   /* gap имя→должность 4 (574:893) */
  .ozespol__name-thin, .ozespol__name-bold { font-size: 32px; line-height: 40px; }
  /* кнопка «Zobacz detale» на всю ширину, БЕЗ круга-стрелки (664:1722) */
  .ozespol__details { width: 100%; margin: 0; }
  .ozespol__details .btn-split { width: 100%; }
  .ozespol__details .btn-split__icon { display: none; }
  .ozespol__details .btn-split__text { flex: 1 1 auto; justify-content: center; }
  /* стрелки — отдельным рядом ПОД плашкой, по центру, круги 72×56 (664:1737) */
  .ozespol__nav { position: static; left: auto; bottom: auto; transform: none; margin-top: 12px; gap: 12px; justify-content: center; }
  .ozespol__arrow { width: 72px; height: 56px; }
  .ozespol__arrow svg { width: 24px; height: 24px; }

  /* дравер деталей: панель на всю ширину, выезжает снизу (как модалка вакансий на мобиле) */
  .tmodal { padding: 72px 0 0; }
  .tmodal__panel { width: 100%; border-radius: 32px 32px 0 0; transform: translateY(40px); }
  .tmodal__info { padding: 24px; gap: 16px; }

  /* ---------------- BLOCK 5: CERTY (горизонтальный скролл) ---------------- */
  .ocerty__grid {
    flex: 1 1 auto; min-height: 0; align-items: stretch;         /* тянется на всю оставшуюся высоту, карточки Fill по высоте */
    display: flex; grid-template-columns: none; gap: 12px; margin-top: 32px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 0 16px;   /* карточки уходят под края экрана */
  }
  .ocerty__grid::-webkit-scrollbar { display: none; }
  .ocerty__card { flex: 0 0 246px; min-height: 0; scroll-snap-align: center; justify-content: center; gap: 20px; padding: 24px 20px; }
  .ocerty__name { margin-top: 0; }
  .ocerty__img { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; }   /* Fill: картинка растягивается на доступную высоту карточки */
  .ocerty__cap { padding: 0; }
}
