/* ============================================================
   KORTECH SPAW — multipage components
   (loaded after styles.css on every page)
   ============================================================ */

/* ---------- VIDEO HERO / BANER GŁÓWNY ---------- */
.vhero { position: relative; min-height: 90vh; display: flex; align-items: center; background: var(--ink); overflow: hidden; }
.vhero__media { position: absolute; inset: 0; }
.vhero__media video { width: 100%; height: 100%; object-fit: cover; }
.vhero__media .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.vhero__media .ph::before, .vhero__media .ph::after { display: none; }
/* 50% darken + left-weighted gradient for readability */
.vhero__overlay { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15,15,18,.86) 0%, rgba(15,15,18,.66) 46%, rgba(15,15,18,.42) 100%),
  rgba(15,15,18,.5); }
.vhero__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); z-index: 2; }
[data-red="low"] .vhero__rail { background: #fff; }
.vhero .container { position: relative; z-index: 2; }
.vhero__inner { max-width: 860px; color: #fff; padding: 80px 0; }
.vhero .eyebrow { color: #d2d4d8; }
.vhero h1 { color: #fff; margin-bottom: 26px; }
.vhero .lead { color: #d4d6da; max-width: 60ch; }
.vhero .cta-row { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.vhero__flag { position: absolute; right: var(--gutter); bottom: 26px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: #9a9da3;
  display: flex; align-items: center; gap: 9px; }
.vhero__flag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 2s ease-in-out infinite; }
[data-red="low"] .vhero__flag .dot { background: #fff; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.vhero__stats { display: flex; gap: 0; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.16); }
.vhero__stats .st { padding: 22px 32px 0 0; margin-right: 32px; border-right: 1px solid rgba(255,255,255,.16); }
.vhero__stats .st:last-child { border-right: 0; }
.vhero__stats .st b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1; }
.vhero__stats .st b .u { color: var(--red); }
[data-red="low"] .vhero__stats .st b .u { color: #fff; }
.vhero__stats .st span { font-size: 13.5px; color: #a9acb1; display: block; margin-top: 7px; }

/* ---------- SERVICES (Czym się zajmujemy) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.svc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-strong); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; z-index: 3; }
.svc:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc:hover::before { transform: scaleX(1); }
.svc__media { aspect-ratio: 4/5; position: relative; }
.svc__media .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.svc__num { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: #fff; background: var(--ink); padding: 5px 9px; }
.svc__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { font-size: 19px; margin-bottom: 9px; letter-spacing: -.01em; }
.svc__body p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; line-height: 1.55; }
.svc__body .tlink { margin-top: auto; font-size: 14px; }

/* ---------- REASONS (Dlaczego my) ---------- */
.reasons__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.reasons__media { position: relative; aspect-ratio: 5/6; }
.reasons__media .ph { width: 100%; height: 100%; }
.reasons__media .tag { position: absolute; left: -26px; bottom: 34px; background: var(--red); color: #fff; padding: 18px 22px; max-width: 220px; box-shadow: var(--shadow-lg); }
[data-red="low"] .reasons__media .tag { background: var(--ink); }
.reasons__media .tag b { font-family: var(--font-head); font-weight: 900; font-size: 16px; display: block; line-height: 1.2; }
.reasons__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.reason { padding: 26px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background .2s; }
.reason:nth-child(2n) { border-right: 0; }
.reason:nth-last-child(-n+2) { border-bottom: 0; }
.reason:hover { background: var(--bg); }
.reason__ic { width: 30px; height: 30px; color: var(--accent-strong); margin-bottom: 16px; }
.reason h3 { font-size: 17px; margin-bottom: 7px; }
.reason p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }

/* ---------- CTA BANNER (background + CTA) ---------- */
.cta-banner { position: relative; padding: 64px 0; overflow: hidden; color: #fff; }
.cta-banner__bg { position: absolute; inset: 0; }
.cta-banner__bg .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.cta-banner__bg .ph::before, .cta-banner__bg .ph::after { display: none; }
.cta-banner__ov { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,18,.9), rgba(15,15,18,.62)); }
.cta-banner__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); z-index: 2; }
[data-red="low"] .cta-banner__rail { background: #fff; }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner__inner { max-width: 680px; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #cfd1d5; font-size: 19px; margin: 18px 0 0; max-width: 52ch; }
.cta-banner .cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; align-items: center; }
.cta-banner .phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: #fff; white-space: nowrap; }
.cta-banner .phone svg { color: var(--red); }
[data-red="low"] .cta-banner .phone svg { color: #fff; }

/* ---------- SUBPAGE HERO + BREADCRUMB ---------- */
.pagehero { position: relative; background: var(--ink); color: #fff; padding: 60px 0 64px; overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; opacity: .22; }
.pagehero__bg .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.pagehero__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); }
[data-red="low"] .pagehero__rail { background: #fff; }
.pagehero .container { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: #9a9da3; margin-bottom: 26px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: #4a4a50; }
.breadcrumb .cur { color: var(--red); }
[data-red="low"] .breadcrumb .cur { color: #fff; }
.pagehero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); max-width: 18ch; }
.pagehero .lead { color: #c4c6ca; margin-top: 20px; }
.pagehero__meta { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.pagehero__meta .m { font-family: var(--font-mono); font-size: 12.5px; color: #9a9da3; display: flex; align-items: center; gap: 8px; }
.pagehero__meta .m b { color: #fff; font-family: var(--font-head); }

/* ---------- CATEGORY SECTION ---------- */
.catsec { padding: 92px 0; border-top: 1px solid var(--line); }
.catsec--mist { background: var(--bg); }
.catsec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.catsec__grid.flip .catsec__media { order: 2; }
.catsec__media { position: relative; aspect-ratio: 4/3; }
.catsec__media .ph { width: 100%; height: 100%; }
.catsec__copy .eyebrow { margin-bottom: 16px; }
.catsec__copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.catsec__copy > p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 24px; }
.benefits { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.benefits li svg { flex: none; width: 20px; height: 20px; color: var(--accent-strong); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 7px 13px; background: var(--paper); }
.catsec__apps-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* video module inside category section (1 large + up to 2 small) */
.vidmod { margin-top: 40px; }
.vidmod__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.vidmod__grid.single { grid-template-columns: 1fr; }
.vidmod .video-card { position: relative; overflow: hidden; cursor: pointer; border-radius: var(--r); }
.vidmod .video-card .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.vidmod__main { aspect-ratio: 16/9; }
.vidmod__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.vidmod__side .video-card .playbadge { width: 50px; height: 50px; }

/* ---------- REAL MEDIA (photos & videos placed into slots) ---------- */
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: inherit; background: #0e0e11; }
.catsec__media .media-fill { border-radius: var(--r); }
/* product renders on white — let them breathe instead of cropping */
.media-fill.is-contain { object-fit: contain; background: #f4f4f6; }

/* gallery: a main frame + thumbnail row, swappable */
.catsec__media:has(.gallery) { aspect-ratio: auto; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__main { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #0e0e11; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.gallery__thumbs button { position: relative; aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 0; cursor: pointer; background: #0e0e11; transition: border-color .15s, transform .15s; }
.gallery__thumbs button:hover { transform: translateY(-2px); }
.gallery__thumbs button.is-active { border-color: var(--red); border-width: 2px; }
.gallery__thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .gallery__thumbs { grid-template-columns: repeat(4, 1fr); } }

/* ---------- ZOOM AFFORDANCE + LIGHTBOX ---------- */
.is-zoomable { cursor: zoom-in; }
.is-zoomable::after {
  content: ""; position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(15,15,18,.62)
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%3E%3Ccircle%20cx='11'%20cy='11'%20r='7'/%3E%3Cpath%20d='m20%2020-3.2-3.2'/%3E%3Cpath%20d='M11%208v6M8%2011h6'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  opacity: 0; transform: scale(.88); transition: opacity .18s ease, transform .18s ease;
  pointer-events: none; backdrop-filter: blur(2px);
}
.is-zoomable:hover::after { opacity: 1; transform: scale(1); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(9,9,11,.93); padding: 5vh 4vw;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__stage { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; align-items: center; justify-content: center; }
.lightbox__stage img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: var(--r); background: #0e0e11;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  transform: scale(.97); transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.lightbox.open .lightbox__stage img { transform: scale(1); }
.lightbox__stage img.is-contain-shot { background: #f4f4f6; padding: clamp(12px, 2.5vmin, 28px); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.07); color: #fff; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); }
.lightbox__close { top: 20px; right: 22px; width: 46px; height: 46px; font-size: 22px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 56px; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: #c4c6ca;
}
@media (max-width: 720px) {
  .lightbox__nav { width: 44px; height: 48px; font-size: 26px; }
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
}

/* ---------- SUBPAGE QUICK NAV (jump to section) ---------- */
.jumpnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jumpnav a {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: #c4c6ca;
  border: 1px solid rgba(255,255,255,.2); padding: 9px 15px; border-radius: var(--r);
  transition: color .15s, border-color .15s, background .15s; white-space: nowrap;
}
.jumpnav a:hover { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

/* ---------- OFFER HUB intro ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- ABOUT values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); margin-top: 8px; }
.value { padding: 34px 28px; border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value__ic { width: 34px; height: 34px; color: var(--accent-strong); margin-bottom: 18px; }
.value h3 { font-size: 18px; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: 14px; margin: 0; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.about-stat { text-align: center; }
.about-stat b { font-family: var(--font-head); font-weight: 900; font-size: clamp(38px, 4.5vw, 58px); line-height: 1; letter-spacing: -.03em; display: block; }
.about-stat b .u { color: var(--accent-strong); }
.about-stat b .u, .vhero__stats .st b .u, .hero-stats .st b .u { display: inline; }
.about-stat span { color: var(--muted); font-size: 14.5px; display: block; margin-top: 10px; }

/* ---------- CONTACT page extras ---------- */
.contactpage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cinfo--light li { border-top-color: var(--line); }
.cinfo--light li:last-child { border-bottom-color: var(--line); }
.cinfo--light .ci { color: var(--accent-strong); }
.cinfo--light .k { color: var(--muted); }
.cinfo--light .v { color: var(--ink); }
.cinfo--light a.v:hover { color: var(--red); }
[data-red="low"] .cinfo--light a.v:hover { color: var(--ink); }

/* ---------- file attachment field ---------- */
.filedrop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 6px; padding: 26px 20px; cursor: pointer;
  border: 1.5px dashed var(--line-strong); background: var(--bg);
  border-radius: var(--r); transition: border-color .15s, background .15s, color .15s; color: var(--ink-2);
}
.filedrop:hover, .filedrop.drag { border-color: var(--red); background: var(--red-tint); }
[data-red="low"] .filedrop:hover, [data-red="low"] .filedrop.drag { border-color: var(--ink); background: var(--mist); }
.filedrop svg { width: 28px; height: 28px; color: var(--accent-strong); }
.filedrop__txt { font-size: 14.5px; }
.filedrop__txt b { font-weight: 700; color: var(--red); }
[data-red="low"] .filedrop__txt b { color: var(--ink); }
.filedrop__hint { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: .03em; }
.filelist { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.filelist li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 9px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.filelist li svg { width: 16px; height: 16px; color: var(--accent-strong); flex: none; }
.filelist li .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist li .sz { font-family: var(--font-mono); font-size: 11px; color: var(--faint); flex: none; }
.filelist li .rm { flex: none; border: 0; background: none; color: var(--muted); font-size: 17px; line-height: 1; padding: 0 2px; cursor: pointer; }
.filelist li .rm:hover { color: var(--red); }

/* =====================================================================
   RESPONSIVE (multipage components)
   ===================================================================== */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .reasons__grid { grid-template-columns: 1fr; gap: 44px; }
  .reasons__media { aspect-ratio: 16/10; max-width: 560px; }
  .reasons__media .tag { left: auto; right: 24px; }
  .catsec__grid { grid-template-columns: 1fr; gap: 36px; }
  .catsec__grid.flip .catsec__media { order: 0; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .contactpage__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .vhero { min-height: 78vh; }
  .vhero__inner { padding: 48px 0; }
  .vhero__stats { flex-wrap: wrap; }
  .vhero__stats .st { padding: 16px 18px 0 0; margin-right: 18px; }
  .vhero__flag { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .reasons__list { grid-template-columns: 1fr; }
  .reason { border-right: 0; }
  .reason:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .cta-banner { padding: 44px 0; }
  .cta-banner p { font-size: 17px; }
  .vidmod__grid { grid-template-columns: 1fr; }
  .vidmod__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-stat { padding: 20px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--rad); text-align: center; box-shadow: 0 2px 8px rgba(20,20,26,.06); }
  .about-stat b { font-size: clamp(30px, 8vw, 42px); }
  .about-stat span { font-size: 12px; line-height: 1.4; }
  .hub-grid { grid-template-columns: 1fr; }
  .pagehero__meta { gap: 16px; }
}
