/* =========================================================
   Michał Kolanowski - foto, film, dron
   Jasny, minimalistyczny układ z panelem bocznym (jak dotychczasowa strona).
   ========================================================= */

@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff") format("woff"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #999999;
  --soft: #f4f4f4;
  --line: #e2e2e2;
  --accent: #f5a100;
  --accent-dark: #db8f00;
  --dark: #222222;
  --star: #f5a100;
  --ok: #3f8a4f;
  --err: #c2452f;

  --font: "proxima-nova", "Figtree", "Helvetica Neue", Arial, sans-serif;
  --font-title: "futura-pt", "Jost", "Futura", "Century Gothic", sans-serif;

  --side: clamp(250px, 25.7vw, 370px);
  --pad: 20px;
  --gap: 8px;
  --bar: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--dark); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 13px; height: 13px; }
.linklike { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Przyciski: prostokątne, cienkie, z szerokim odstępem liter ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 30px; border: 1px solid transparent; border-radius: 0; font-family: var(--font-title); font-size: 13px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn--line { border-color: var(--text); color: var(--text); background: transparent; }
.btn--line:hover { background: var(--text); color: #fff; }
.btn--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn--dark:hover { background: #000; }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--block { width: 100%; min-height: 50px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- Panel boczny (komputer) ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 50; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 50px 30px 40px; }
.side::-webkit-scrollbar { display: none; }
.logo { display: block; width: min(280px, 100%); margin: 0 auto; }
.logo img { width: 100%; }
.nav { margin-top: 34px; text-align: center; }
.nav__list li { line-height: 1.25; }
.nav__list a { display: inline-block; padding: 3px 0; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav__list a:hover, .nav__list a[aria-current] { color: var(--text); }
.nav__list:first-child li a { padding: 5px 0; }
.nav__head { margin: 22px 0 8px; }
.nav__head a { font-family: var(--font-title); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.nav__head a:hover { color: var(--accent); }
.nav .social { justify-content: center; margin-top: 30px; }
.social { display: flex; gap: 4px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); transition: color .15s; }
.social a:hover { color: var(--text); }
.social .icon { width: 17px; height: 17px; }
.nav-toggle { display: none; }

.main { margin-left: var(--side); padding: 0 var(--pad) 0 0; min-height: 100vh; display: flex; flex-direction: column; }
.is-home .main { margin-left: 0; padding: 0; }

/* ---------- Pasek u góry (telefon / tablet) ---------- */
@media (max-width: 1023px) {
  .side { position: sticky; top: 0; inset: auto; width: 100%; height: auto; overflow: visible; padding: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  /* bez backdrop-filter: inaczej menu (position: fixed) zamyka sie w pasku i jest ucięte */
  .side__top { display: flex; align-items: center; justify-content: space-between; height: var(--bar); padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
  .logo { width: 170px; margin: 0; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; align-items: flex-end; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: fixed; inset: calc(var(--bar) + env(safe-area-inset-top, 0px)) 0 0 0; margin: 0; background: var(--bg); overflow-y: auto; padding: 24px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .nav-open .nav { display: block; }
  .nav-open { overflow: hidden; }
  .nav { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; z-index: 60; }
  .nav__list a { font-size: 20px; padding: 9px 0; }
  .nav__list:first-child li a { padding: 9px 0; }
  .nav__head { margin: 30px 0 6px; }
  .nav__head a { font-size: 17px; }
  .main { margin-left: 0; padding: 0; min-height: 0; }
}

/* ---------- Nagłówek podstrony ---------- */
.head { text-align: center; padding: 40px 16px 34px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.title { font-family: var(--font-title); font-weight: 400; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; color: var(--text); text-wrap: balance; }
.title--left { text-align: left; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.subtitle { font-family: var(--font-title); font-weight: 400; font-size: 26px; text-transform: uppercase; text-align: center; margin: 70px 0 28px; }
.callout { font-family: var(--font-title); font-size: 17px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; margin-top: 18px; }
.callout a:hover { color: var(--accent); }
.prose { font-size: 16px; line-height: 1.7; color: #444; }
.prose > * + * { margin-top: 1em; }
.prose strong { color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { font-family: var(--font-title); font-weight: 400; font-size: 22px; color: var(--text); margin-top: 1.8em; }
.prose h3 { font-size: 17px; color: var(--text); margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose--center { text-align: center; max-width: 62ch; margin-left: auto; margin-right: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px 80px; }
.empty a { color: var(--text); text-decoration: underline; }
.narrow { max-width: 760px; margin: 0 auto; padding: 50px 16px 80px; }
.narrow .title { text-align: center; margin-bottom: 20px; }
.narrow .lead { margin: 0 auto 24px; text-align: center; }
.page-404 { text-align: center; padding-top: 18vh; }

/* ---------- Strona główna: dwie połowy ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100svh; }
.split__intro { order: -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px clamp(20px, 3vw, 48px); }
.split__logo { width: min(100%, 560px); }
.split__logo img { width: 100%; }
.split__btns { display: flex; justify-content: center; width: min(100%, 560px); margin-top: 44px; gap: 18px; }
.split__btns .btn { min-width: 150px; }
.split__links { display: flex; gap: 22px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.split__links a:hover { color: var(--text); }
.split__media { position: relative; overflow: hidden; background: var(--soft); }
.split__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.split__slide.is-active { opacity: 1; }
.split__slide picture, .split__slide img, .split__video { width: 100%; height: 100%; object-fit: cover; }
.split__video { position: absolute; inset: 0; }
.split__slide--empty { background: linear-gradient(160deg, #eee, #ddd); }
@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { height: 62vh; height: 62svh; min-height: 380px; }
  .split__intro { order: 0; padding: 48px 20px 56px; }
  .split__btns { flex-direction: column; align-items: center; gap: 22px; margin-top: 28px; }
  .split__btns .btn { min-width: 200px; }
}

/* ---------- Kafle (portfolio, realizacje) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); }
.tile picture, .tile img { width: 100%; height: 100%; object-fit: cover; }
.tile img { transform: scale(var(--cz, 1)); transition: transform .8s var(--ease); }
.tile__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; background: rgba(0,0,0,.42); color: #fff; opacity: 0; transition: opacity .3s var(--ease); }
.tile__label span { font-family: var(--font-title); font-size: clamp(20px, 2vw, 30px); text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.tile:hover .tile__label, .tile:focus-visible .tile__label { opacity: 1; }
.tile:hover img { transform: scale(calc(var(--cz, 1) * 1.03)); }
@media (hover: none) {
  .tile__label { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%); align-items: flex-end; justify-content: flex-start; text-align: left; }
  .tile__label span { font-size: 18px; }
}
@media (max-width: 599px) { .tiles { grid-template-columns: 1fr; } }
.ph { display: block; width: 100%; height: 100%; min-height: 200px; background: linear-gradient(160deg, #f1f1f1, #e4e4e4); }
.ph--portrait { aspect-ratio: 4 / 5; }

/* ---------- Galerie zdjęć ---------- */
.gallery__item { display: block; position: relative; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.gallery__item picture, .gallery__item img { width: 100%; height: auto; }
.js .gallery__item img[loading="lazy"] { opacity: 0; transition: opacity .5s var(--ease); }
.js .gallery__item img.is-loaded { opacity: 1; }
.gallery--justified { --rh: 210px; display: flex; flex-wrap: wrap; gap: var(--gap); }
.gallery--justified .gallery__item { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * var(--rh)); }
.gallery--justified::after { content: ""; flex-grow: 999999; flex-basis: calc(var(--rh) * .5); }
@media (min-width: 1700px) { .gallery--justified { --rh: 300px; } }
@media (max-width: 1023px) { .gallery--justified { --rh: 200px; --gap: 6px; } .gallery { padding: 0 6px; } }
@media (max-width: 599px) { .gallery--justified { --rh: 130px; --gap: 4px; } .gallery { padding: 0 4px; } }
/* Male zestawy (do 8 zdjec) - wieksze kadry */
.gallery--justified.gallery--few { --rh: 360px; }
@media (min-width: 1700px) { .gallery--justified.gallery--few { --rh: 460px; } }
@media (max-width: 1023px) { .gallery--justified.gallery--few { --rh: 280px; } }
@media (max-width: 599px) { .gallery--justified.gallery--few { --rh: 200px; } }
.gallery--columns { columns: 4; column-gap: var(--gap); }
.gallery--columns .gallery__item { break-inside: avoid; margin-bottom: var(--gap); }
@media (max-width: 1200px) { .gallery--columns { columns: 3; } }
@media (max-width: 599px) { .gallery--columns { columns: 2; column-gap: 4px; } .gallery--columns .gallery__item { margin-bottom: 4px; } }
.gallery--wide { display: flex; flex-direction: column; gap: var(--gap); }
.next { text-align: center; padding: 60px 16px 10px; }
.next a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.next a span { color: var(--muted); font-size: 13px; margin-right: 6px; }
.next a:hover { color: var(--accent); }

/* ---------- Wideo ---------- */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 22px; align-items: start; padding: 0 2px; }
@media (min-width: 1700px) { .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .vgrid { gap: 36px 14px; padding: 0 10px; } }
@media (max-width: 599px) { .vgrid { grid-template-columns: 1fr; gap: 34px; padding: 0 8px; } }
.vgrid__cell.is-hidden { display: none; }
.vcard { position: relative; min-width: 0; }
/* jednakowa ramka 16:9 dla kazdego filmu; pionowe rolki wysrodkowane na ciemnym tle */
.vcard__frame { position: relative; aspect-ratio: 16 / 9; background: #141414; overflow: hidden; isolation: isolate; display: flex; justify-content: center; align-items: center; }
.vcard__frame > .vcard__media, .vcard__frame > .fbembed--video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.vcard__frame > .fbembed--vertical { position: relative; inset: auto; height: 100%; width: auto; aspect-ratio: 9 / 16; z-index: 1; }
@media (max-width: 599px) { .vcard--vertical .vcard__frame { aspect-ratio: 4 / 5; } }
.vcard__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #1b1b1b; isolation: isolate; }
.vcard__media > picture, .vcard__media > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; color: transparent; font-size: 0; transition: transform .8s var(--ease); }
.vcard__media.is-vertical img { object-fit: contain; }
.vcard__bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.6); z-index: -1; }
.vcard__media:hover img { transform: scale(1.03); }
.vcard__shade { position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background .3s; }
.vcard__media:hover .vcard__shade { background: rgba(0,0,0,.4); }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--dark); transition: transform .3s var(--ease), background .2s, color .2s; }
.vcard__play .icon { width: 22px; height: 22px; margin-left: 3px; }
.vcard__media:hover .vcard__play { transform: scale(1.08); background: var(--accent); color: #fff; }
.vcard__badge { position: absolute; left: 14px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.vcard__dur { position: absolute; right: 14px; top: 12px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 100px; }
.vcard__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #2b2b2b, #161616); color: #888; }
.vcard__ph .icon { width: 34px; height: 34px; }
.vcard__meta { padding: 14px 6px 0; text-align: center; }
.vcard__title { font-family: var(--font-title); font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.4; text-wrap: balance; }
.vcard__sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.vcard__meta .fbembed__open { margin-top: 6px; }
.vcard__media.is-playing { background: #000; }
.vcard__media.is-playing iframe, .vcard__media.is-playing video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 599px) { .vcard__title { font-size: 14px; } .vcard__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } }

/* ---------- Bloki wideo na stronach galerii (naglowek nad filmem) ---------- */
.vblock { max-width: 980px; margin: 0 auto 90px; padding: 0 12px; }
.vblock--multi { max-width: 1140px; }
.vblock__head { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.vblock__title { font-family: var(--font-title); font-weight: 400; font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; letter-spacing: .04em; line-height: 1.3; text-wrap: balance; }
.vblock__meta { margin-top: 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.vblock__desc { margin-top: 14px; }
.vblock__items { display: flex; flex-wrap: wrap; gap: 36px 24px; justify-content: center; align-items: flex-start; }
.vblock__item { flex: 1 1 100%; min-width: 0; }
.vblock__item--vertical { flex: 0 1 380px; }
.vblock__item--vertical .vcard__media, .vblock__item--vertical .fbembed { aspect-ratio: 9 / 16; }
.vblock__item--post { flex: 0 1 500px; display: flex; flex-direction: column; align-items: center; }
.vblock--multi .vblock__item--post { flex: 1 1 340px; max-width: 500px; }
.vblock--multi .vblock__item--wide { flex: 1 1 440px; }
@media (max-width: 599px) { .vblock { margin-bottom: 64px; padding: 0 8px; } .vblock__head { padding: 0 8px; } .vblock__item--vertical { flex-basis: 100%; max-width: 360px; } }

/* ---------- Osadzenia Facebooka ---------- */
.fbembed { position: relative; width: 100%; background: #f2f2f2; }
.fbembed--video { aspect-ratio: 16 / 9; background: #141414; }
.fbembed--vertical { aspect-ratio: 9 / 16; }
.fbembed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; overflow: hidden; }
/* post: wysokosc dopasowuje widzet Facebooka, przed wczytaniem rezerwujemy miejsce */
.fbembed--post { max-width: 500px; min-height: 520px; margin: 0 auto; overflow: hidden; }
.fbembed--post.is-loaded { min-height: 0; background: transparent; }
.fbembed--post .fb-post, .fbembed--post .fb-post > span, .fbembed--post iframe { max-width: 100% !important; }
.fbembed__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: #555; font-size: 14px; }
.fbembed--video .fbembed__ph { color: #bbb; }
.fbembed--video .fbembed__ph .btn--line { color: #fff; border-color: #fff; }
.fbembed__ph .icon { width: 34px; height: 34px; color: #1877f2; }
.fbembed__ph small { max-width: 280px; font-size: 12px; color: #999; line-height: 1.4; }
.vcard__frame .fbembed--vertical .fbembed__ph small { display: none; }
.fbembed.is-loaded .fbembed__ph { display: none; }
.fbembed__ph--img { background-size: cover; background-position: center; color: #fff; }
.fbembed__ph--img::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.fbembed__ph--img > * { position: relative; }
.fbembed__ph--img .icon { color: #fff; }
.fbembed__ph--img small { color: rgba(255,255,255,.75); }
.fbembed__ph--img .btn--line { color: #fff; border-color: #fff; }
.btn--sm { min-height: 38px; padding: 0 20px; font-size: 11px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { height: 34px; padding: 0 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; color: #666; transition: all .2s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.vmodal { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,10,.95); display: grid; place-items: center; padding: max(56px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); }
.vmodal__frame { position: relative; width: min(1400px, 94vw, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.vmodal__frame.is-9x16 { aspect-ratio: 9 / 16; width: min(94vw, calc((100svh - 100px) * 9 / 16)); }
.vmodal__frame.is-1x1 { aspect-ratio: 1; width: min(94vw, calc(100svh - 100px)); }
.vmodal__frame.is-4x5 { aspect-ratio: 4 / 5; width: min(94vw, calc((100svh - 100px) * 4 / 5)); }
.vmodal__frame iframe, .vmodal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(255,255,255,.98); touch-action: none; user-select: none; -webkit-user-select: none; }
.lightbox__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: max(60px, env(safe-area-inset-top)) clamp(0px, 6vw, 90px) max(50px, env(safe-area-inset-bottom)); }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s var(--ease), opacity .3s; }
.lightbox__stage.is-dragging img { transition: none; }
.lightbox__count { position: absolute; left: 20px; top: max(20px, env(safe-area-inset-top)); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: var(--text); transition: background .2s; }
.vmodal .lightbox__btn { color: #fff; }
.lightbox__btn:hover { background: rgba(0,0,0,.06); }
.lightbox__close { right: 10px; top: max(8px, env(safe-area-inset-top)); }
.lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lightbox__prev, .lightbox__next { top: auto; bottom: max(6px, env(safe-area-inset-bottom)); transform: none; } .lightbox__stage { padding-inline: 0; } }

/* ---------- Opinie ---------- */
.stars { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.stars .icon { width: 18px; height: 18px; }
.stars--sm .icon { width: 14px; height: 14px; }
.stars__bg, .stars__fg { display: flex; gap: 2px; }
.stars__bg { color: #e3e3e3; }
.stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); white-space: nowrap; }
.rev { padding: 0 16px; max-width: 1100px; margin: 0 auto; width: 100%; }
.rev__summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; padding: 28px; background: var(--soft); margin-bottom: 28px; }
.rev__score { display: flex; align-items: center; gap: 16px; }
.rev__num { font-family: var(--font-title); font-size: 64px; line-height: 1; }
.rev__count { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; margin-top: 6px; }
.rev__dist { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.rev__row { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 10px; padding: 3px 6px; font-size: 12px; color: #666; border-radius: 4px; }
.rev__row span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.rev__row:hover:not(:disabled), .rev__row[aria-pressed="true"] { background: #fff; color: var(--text); }
.rev__row:disabled { opacity: .4; cursor: default; }
.rev__bar { height: 4px; background: #e2e2e2; border-radius: 2px; position: relative; overflow: hidden; }
.rev__bar span { position: absolute; inset: 0 auto 0 0; background: var(--star); }
.rev__actions { display: flex; flex-direction: column; gap: 8px; }
.rev .chips { margin-bottom: 22px; }
.rev__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rev__cell { min-width: 0; }
.rev__cell.is-hidden { display: none; }
@media (max-width: 1200px) { .rev__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .rev__list { grid-template-columns: 1fr; } .rev__summary { padding: 22px 16px; } }
.review { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); background: #fff; }
.review__top { display: flex; justify-content: space-between; align-items: center; }
.review__text { font-size: 15px; line-height: 1.65; color: #444; }
.review--clamp .review__text p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-open .review__text p { -webkit-line-clamp: unset; display: block; }
.review__more { align-self: flex-start; font-size: 13px; color: var(--text); margin-top: -6px; }
.review.is-open .review__more { display: none; }
.review__by { display: flex; align-items: center; gap: 10px; }
.review__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.review__avatar--txt { display: grid; place-items: center; background: var(--soft); font-weight: 600; font-size: 14px; color: #666; }
.review__name { display: block; font-weight: 600; font-size: 14px; }
.review__date { display: block; font-size: 12px; color: var(--muted); }

/* ---------- O mnie / kontakt ---------- */
.contact { width: min(560px, 100%); margin: 0 auto; padding: 10px 16px 60px; }
.contact__lead { color: #666; text-align: center; margin-bottom: 24px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 2px; font-size: 16px; color: var(--text); -webkit-appearance: none; appearance: none; transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #aaa; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); }
.field--qty { max-width: 140px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #666; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.check a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { min-height: 46px; padding: 0 34px; background: var(--accent); color: #fff; font-family: var(--font-title); font-weight: 400; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; transition: background .2s; }
.btn-send:hover { background: var(--accent-dark); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; color: #444; margin-bottom: 18px; }
.notice a { text-decoration: underline; }
.notice--ok .icon { color: var(--ok); }
.notice--error { border-color: #e7b9ae; background: #fbefec; color: #7a2817; }
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px 40px; align-items: center; max-width: 1000px; margin: 0 auto; padding: 0 16px 50px; }
.bio__photo img { width: 100%; }
.bio__text { max-width: none; }
@media (max-width: 799px) { .bio { grid-template-columns: 1fr; } .bio__photo { max-width: 420px; margin: 0 auto; } }
.clients { padding: 0 16px 50px; }
.callme { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px 60px; text-align: center; font-family: var(--font-title); font-size: 17px; letter-spacing: .04em; }
.callme__head { font-weight: 600; font-size: 20px; text-transform: uppercase; margin-bottom: 6px; }
.callme a:hover { color: var(--accent); }
.award { max-width: 900px; margin: 0 auto; padding: 0 16px 60px; text-align: center; }
.award figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- Sklep ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--gap); }
@media (max-width: 1023px) { .pgrid { grid-template-columns: repeat(2, 1fr); padding: 0 6px; } }
@media (max-width: 499px) { .pgrid { grid-template-columns: 1fr; padding: 0; } }
.pcard { display: block; text-align: center; }
.pcard__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--soft); }
.pcard__img picture, .pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img img { transition: transform .8s var(--ease), opacity .4s; }
.pcard__alt { position: absolute; inset: 0; }
.pcard__alt img { opacity: 0; }
.pcard:hover .has-alt .pcard__alt img { opacity: 1; }
.pcard:hover .pcard__img img { transform: scale(1.03); }
.pcard__meta { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; }
.pcard__title { font-family: var(--font-title); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.pcard__price { font-size: 14px; color: #666; font-variant-numeric: tabular-nums; }
.tag { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--text); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 100px; }
.shop-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 28px; max-width: 1000px; margin: 60px auto 0; padding: 28px 16px 0; border-top: 1px solid var(--line); }
.shop-info li { display: flex; gap: 10px; font-size: 14px; color: #555; }
.shop-info .icon { color: var(--accent); margin-top: 3px; }
.shop-info--compact { grid-template-columns: 1fr; margin: 30px 0 0; padding: 22px 0 0; }
.product { padding: 40px 0 20px; }
.product__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product__media { display: flex; flex-direction: column; gap: var(--gap); }
.product__img { display: block; cursor: zoom-in; background: var(--soft); }
.product__img img { width: 100%; }
.product__sticky { position: sticky; top: 30px; padding-right: 10px; }
.crumbs { display: flex; gap: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.product__edition { margin-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.product__price { font-family: var(--font-title); font-size: 28px; margin: 16px 0 18px; font-variant-numeric: tabular-nums; }
.product .prose { margin-bottom: 24px; }
.variants { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.variants legend { font-size: 13px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant__box { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; font-size: 15px; transition: border-color .2s; font-variant-numeric: tabular-nums; }
.variant input:checked + .variant__box { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.variant input:focus-visible + .variant__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.order-steps { display: flex; flex-direction: column; gap: 16px; padding: 6px 0 14px; }
.form__row { display: grid; gap: 16px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.form__row--zip { grid-template-columns: 120px 1fr; }
@media (max-width: 600px) { .form__row--2 { grid-template-columns: 1fr; } }
.order-sum { font-size: 15px; color: #555; padding: 12px 0; border-block: 1px solid var(--line); }
.order-sum strong { color: var(--text); font-size: 18px; }
.order-box { border: 1px solid var(--line); background: var(--soft); padding: 20px 22px; margin: 22px 0; display: flex; flex-direction: column; gap: 4px; color: #444; }
.order-box__total { color: var(--text); font-size: 19px; margin-top: 6px; font-weight: 600; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
@media (max-width: 1023px) {
  .product { padding: 20px 0; }
  .product__grid { grid-template-columns: 1fr; gap: 24px; }
  .product__sticky { position: static; padding: 0 16px; }
  .product__media { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .product__media::-webkit-scrollbar { display: none; }
  .product__img { flex: 0 0 88%; scroll-snap-align: center; }
}

/* Bloki wyśrodkowane w kolumnie flex muszą mieć pełną szerokość */
.shop-info, .bio, .award, .clients, .narrow, .rev, .callme { width: 100%; }

/* ---------- Stopka ---------- */
.foot { margin-top: auto; padding: 70px 16px 34px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.foot__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 15px; }
.foot__contact a:hover { color: var(--accent); }
.foot__contact span { color: var(--muted); }
.foot__small { font-size: 12px; color: var(--muted); }
.foot__small a:hover, .foot__small button:hover { color: var(--text); }

/* ---------- Pasek cookies (jak w Adobe Portfolio) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 16px 64px calc(16px + env(safe-area-inset-bottom, 0px)) 20px; background: #eceeed; font-size: 14px; color: var(--text); }
.consent a { text-decoration: underline; }
.consent__actions { display: flex; gap: 14px; }
.consent__actions button { font-size: 14px; }
.consent__opts { display: flex; gap: 16px; }
.consent__x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; }
@media (max-width: 600px) { .consent { justify-content: flex-start; padding-left: 16px; } }

/* ---------- Opinie: źródło Google i mapa ---------- */
.review__src { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.review__src:hover { color: var(--text); }
.rev__live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); margin-top: 4px; }
.rev__live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.gmap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.gmap__box { position: relative; aspect-ratio: 16 / 9; max-height: 520px; width: 100%; background: var(--soft); overflow: hidden; }
.gmap__box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gmap__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; background: repeating-linear-gradient(45deg, #f6f6f6, #f6f6f6 14px, #f1f1f1 14px, #f1f1f1 28px); }
.gmap__rating { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; background: #fff; padding: 10px 16px; border-radius: 100px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.gmap__rating strong { font-size: 18px; }
.gmap__rating > span:last-child { color: #666; font-size: 13px; }
.gmap__note { font-size: 12px; color: var(--muted); max-width: 40ch; }
.gmap__link { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 5px; align-items: center; }
@media (max-width: 600px) { .gmap__box { aspect-ratio: 4 / 5; } }

/* ---------- Zestawy (sesje w kategorii) ---------- */
.sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); }
@media (max-width: 1023px) { .sets { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 6px; gap: 28px 6px; } }
.setcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.setcard__img { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); margin-bottom: 12px; }
.setcard__img picture, .setcard__img img { width: 100%; height: 100%; object-fit: cover; }
.setcard__img img { transition: transform .8s var(--ease), opacity .3s; }
.setcard:hover .setcard__img img { transform: scale(1.03); opacity: .92; }
.setcard__title { font-family: var(--font-title); font-size: 18px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.25; padding: 0 8px; }
.setcard__meta { font-size: 13px; color: var(--muted); }
@media (max-width: 599px) { .setcard__title { font-size: 15px; } .setcard__meta { font-size: 12px; } }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.back:hover { color: var(--text); }
.setmeta { font-size: 14px; color: var(--muted); letter-spacing: .04em; margin-top: -8px; }
.next { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; }

.vblocks--after { margin-top: 80px; }
.fbembed__open { display: block; margin-top: 10px; text-align: center; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.fbembed__open:hover { color: var(--text); }
.subtitle--first { margin-top: 10px; }
.vlist .chips { margin: -6px 0 30px; padding: 0 12px; }

/* ---------- Tworcy (Zdjęcia / Dron / Montaż): role obok siebie, nazwiska jedno pod drugim ---------- */
.credits { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 14px 44px; margin: 18px auto 0; max-width: 820px; }
.credits > div { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.credits dt { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.credits dd { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; line-height: 1.4; color: var(--text); text-align: center; }
.credits dd span { display: block; white-space: nowrap; }
.credits--compact { gap: 8px 26px; margin-top: 10px; }
.credits--compact dt { font-size: 9.5px; letter-spacing: .18em; }
.credits--compact dd { font-size: 12.5px; color: #555; gap: 1px; }
@media (max-width: 599px) { .credits { gap: 12px 26px; } .credits dd { font-size: 13px; } .credits dd span { white-space: normal; } }

/* Utrudnione pobieranie zdjec (wlaczane w panelu: Bezpieczenstwo) */
.protect img { -webkit-user-drag: none; user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect picture, .protect .gallery a { -webkit-touch-callout: none; }
.gala { max-width: 1100px; margin: 0 auto; padding: 0 16px 70px; }
.gala .subtitle { margin-top: 10px; }
.gala .gallery { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.gala .gallery__item { width: auto !important; height: auto !important; flex: none !important; aspect-ratio: 3 / 2; margin: 0 !important; }
.gala .gallery__item picture, .gala .gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 599px) { .gala .gallery { grid-template-columns: 1fr; } }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gala { padding-top: 10px; padding-bottom: 50px; }
.gala__title { font-family: var(--font-title); font-weight: 400; font-size: 19px; line-height: 1.25; text-transform: uppercase; text-align: center; max-width: 820px; margin: 0 auto 12px; letter-spacing: .01em; }
.gala__cap { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.award__cap { font-size: 13px; color: #333; margin: 0 0 26px !important; }
@media (max-width: 599px) { .gala__title { font-size: 16px; } }
.award { max-width: 1100px; }
.award { padding-bottom: 10px; }
.award img { display: block; }
.award + .foot, .gala + .foot { padding-top: 26px; }
.next { display: flex; justify-content: center; gap: 18px 46px; flex-wrap: wrap; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; align-items: start; }
.shots--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.shots--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.shots--3 { grid-template-columns: repeat(3, 1fr); }
.shots__i { display: block; width: auto !important; height: auto !important; margin: 0 !important; }
.shots__i img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
@media (max-width: 899px) { .shots, .shots--3 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Elementy dodatkowe dodane w trybie edycji (te same style co reszta strony) ---------- */
.xzone { margin: 34px 0; }
.xzone:empty { display: none; }
.xzone > * + * { margin-top: 26px; }
.xzone .subtitle { margin: 50px 0 20px; }
.xzone .xb-title, .xzone h2.title { text-align: center; }
.xb-small { font-family: var(--font-title); font-weight: 400; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; text-align: center; color: var(--muted); }
.xb-lead { margin-left: auto; margin-right: auto; text-align: center; }
.xb-lead.xb-left { text-align: left; margin-left: 0; }
.xb-lead > * + * { margin-top: .8em; }
.xb-smalltext { font-size: 14px; color: var(--muted); }
.xb-btn { text-align: center; }
.xb-btn .btn { white-space: normal; text-align: center; }
.xb-photo { margin-left: auto; margin-right: auto; }
.xb-photo--medium { max-width: 720px; }
.xb-photo--small { max-width: 420px; }
.xb-photo .gallery__item { display: block; }
.xb-photo img { width: 100%; height: auto; display: block; }
.xb-photos .gala__cap { text-align: center; }
.xb-space--s { height: 20px; }
.xb-space--m { height: 50px; }
.xb-space--l { height: 100px; }
.split__intro .xzone { margin: 26px 0 0; text-align: center; }

/* ---------- Strona glowna (z menu bocznym) ---------- */
.home-head { padding-top: 54px; }
.home-lead { font-size: 17px; }
.home-btns { margin-top: 0; }
.home-sec { margin-top: 10px; }
.home-sec .subtitle a:hover { color: var(--accent); }
.home-sec > .btns { margin-top: 30px; }
.home-score { display: flex; justify-content: center; align-items: center; gap: 8px; margin: -12px 0 24px; color: var(--muted); font-size: 15px; }
.home-score b { color: var(--text); }
.home-end { margin: 80px 0 20px; padding: 46px 16px; text-align: center; background: var(--soft); }
.home-end .prose { font-size: 18px; color: var(--text); }
.home-head { padding-top: 40px; padding-bottom: 26px; gap: 16px; }
.home-head .title { font-size: clamp(24px, 2.6vw, 38px); }
.home-head + .home-sec .subtitle, .home-sec:first-of-type .subtitle { margin-top: 26px; }
@media (max-width: 1023px) {
  .home-head { padding: 22px 16px 10px; gap: 12px; }
  .home-head .title { font-size: 22px; }
  .home-lead { font-size: 15px; }
  .home-btns .btn--line { display: none; }
  .home-btns .btn { min-height: 42px; }
  .home-sec .subtitle { margin: 34px 0 16px; font-size: 20px; }
}
/* kafle: zdjecie wypelnia kafel z zapasem 1 px - bez jasnych szczelin przy ulamkowych szerokosciach kolumn */
.tile picture { position: absolute; inset: -1px; width: auto; height: auto; max-width: none; }
.tile picture img { width: 100%; height: 100%; }
.tile .ph { position: absolute; inset: 0; min-height: 0; }
/* grupy kategorii (menu i kafle) */
.nav__grp { margin: 14px 0 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; }
.nav__grp + .nav__list { margin-top: 0; }
.nav__list--solo { margin-top: 12px; }
.nav__empty { font-size: 10px; color: #c0392b; letter-spacing: 0; }
.tiles__grp { margin: 34px 0 14px; font-family: var(--font-title); font-weight: 400; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; text-align: center; color: var(--muted); }
.tiles__grp:first-of-type { margin-top: 0; }
.tiles--solo { margin-top: 48px; }
@media (max-width: 599px) { .tiles--solo { margin-top: 34px; } }
.nav__grp { margin: 16px 0 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--text); }
/* naglowki grup jako linki do stron grup (np. /portfolio/dla-firm) */
.nav__grp a { color: inherit; display: inline-block; padding: 2px 0; transition: color .15s; }
.nav__grp a:hover, .nav__grp a[aria-current] { color: var(--accent); }
.tiles__grp a { color: inherit; transition: color .15s; }
.tiles__grp a:hover { color: var(--accent); }
.vlist--after { margin-top: 48px; }
/* Telefon/tablet: pasek z logo i menu chowa sie przy przewijaniu w dol i wraca przy przewijaniu w gore */
@media (max-width: 1023px) {
  /* bez will-change: transform na .side zmienialby punkt odniesienia dla menu (position: fixed) i menu mialoby wysokosc paska */
  .side { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .3s var(--ease); }
  .side.is-hidden { transform: translateY(-100%); }
  .nav-open .side, .nav-open .side.is-hidden { transform: none; transition: none; }
  .main { padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px)); }
  html { scroll-padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 12px); }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .side { transition: none; } }
/* Kafle kategorii: same kwadraty. 2 w rzedzie, a grupy po 3 (i nieparzyste) - 3 w rzedzie od 600 px.
   Siatka ma podwojna liczbe kolumn (kafel = 2 kolumny), dzieki temu niepelny ostatni rzad mozna wysrodkowac.
   Kafle zachodza na siebie o 1 px (Safari nie pokazuje wtedy szczelin na ulamkach pikseli). */
.tiles { grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.tile { grid-column: span 2; aspect-ratio: 1; margin: 0 -1px -1px 0; }
.tile--c2 { grid-column: 2 / span 2; }
@media (min-width: 600px) {
  .tiles--3 { grid-template-columns: repeat(6, 1fr); }
  .tiles--3 .tile--c2 { grid-column: span 2; }
  .tiles--3 .tile--c3one { grid-column: 3 / span 2; }
  .tiles--3 .tile--c3two { grid-column: 2 / span 2; }
}
.tiles .tile--wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; margin-right: 0; }
@media (max-width: 599px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles .tile { grid-column: auto; margin-right: 0; }
  .tiles .tile--wide { aspect-ratio: 1; }
}
