/*
Theme Name: Nowakowski & Góźdź
Description: Motyw strony Nowakowski Gd zbudowany na podstawie dostarczonego projektu graficznego Adobe XD, 1920 px. Projekty, strony i teksty w dwóch językach edytuje się prostymi polami w panelu. Kod i wdrożenie: Monika Tytoń. Autorstwo nie obejmuje projektu graficznego.
Author: Monika Tytoń
Author URI: https://nowakowskigozdz.com/humans.txt
Version: 1.6.10
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ng

Development: Monika Tytoń — kod i wdrożenie strony na podstawie dostarczonego projektu graficznego.
*/

/* ------------------------------------------------------------------
   Fonty
   ------------------------------------------------------------------ */
@font-face{font-family:"Neue Plak";src:url("assets/fonts/NeuePlak-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;ascent-override:77.1%;descent-override:22.9%;line-gap-override:0%}
@font-face{font-family:"Neue Plak";src:url("assets/fonts/NeuePlak-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap;ascent-override:77%;descent-override:23%;line-gap-override:0%}
@font-face{font-family:"Neue Plak Extended";src:url("assets/fonts/NeuePlak-ExtendedBold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;ascent-override:76.8%;descent-override:23.2%;line-gap-override:0%}

/* ------------------------------------------------------------------
   Podstawy
   Projekt ma 1920 px szerokości. Jednostka --u to 1 px projektu
   przeliczony na aktualną szerokość strony, więc układ skaluje się
   proporcjonalnie. Teksty mają dolne limity czytelności.
   ------------------------------------------------------------------ */
:root{--bg:#fafafa;--ink:#000;--footer:#161616;--line:rgba(0,0,0,.3);--u:calc(100vw / 1920)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:"Neue Plak","Helvetica Neue",Arial,sans-serif;font-weight:400;font-size:16px;line-height:1.4;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
h1,h2,h3,p,dl,dd,figure{margin:0;font-weight:400}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:#000;color:#fff;padding:10px 14px}
.skip-link:focus{left:10px;top:10px}
.screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.site{position:relative;min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
@supports (width:1cqw){
	.site{container-type:inline-size;--u:calc(100cqw / 1920)}
}
.site-main{flex:1 0 auto}

/* Style tekstu z projektu: rozmiar / interlinia w px przy 1920.
   Przesunięcie „top” ustawia pierwszą linię tak jak w XD
   (tekst przy górnej krawędzi ramki, światło pod spodem). */
.t-nav,.t-h1,.t-h2,.t-body,.t-small,.t-cap,.t-meta,.t-label{font-size:var(--fs);line-height:var(--lh);position:relative;top:calc((var(--fs) * var(--lh) - var(--fs)) / -2)}
.t-nav{--fs:max(15px,calc(21 * var(--u)));--lh:calc(25 / 21);font-weight:300}
.t-h1{--fs:max(18px,calc(26 * var(--u)));--lh:calc(38 / 26);letter-spacing:.02em;text-transform:uppercase}
.t-h2{--fs:max(16px,calc(22 * var(--u)));--lh:calc(32 / 22);letter-spacing:.02em;text-transform:uppercase}
.t-body{--fs:max(14px,calc(18 * var(--u)));--lh:calc(25 / 18)}
.t-small{--fs:max(13px,calc(16 * var(--u)));--lh:calc(25 / 16)}
.t-cap{--fs:max(11px,calc(15 * var(--u)));--lh:calc(25 / 15);text-transform:uppercase}
.t-meta{--fs:max(11px,calc(15 * var(--u)));--lh:calc(16 / 15);letter-spacing:.02em;text-transform:uppercase}
.t-label{--fs:max(10px,calc(13 * var(--u)));--lh:calc(16 / 13);letter-spacing:.02em;text-transform:uppercase}
.t-h1,.t-h2,.t-body,.t-small{white-space:pre-line}

.arrow{display:block;width:calc(25 * var(--u));min-width:18px;flex:none}
.arrow svg{display:block;width:100%;height:auto;overflow:visible}
.arrow--left{transform:scaleX(-1)}
.br-d{display:inline}

/* ------------------------------------------------------------------
   Nagłówek
   ------------------------------------------------------------------ */
/* Na górze strony nagłówek leży na zdjęciu i przewija się razem ze stroną.
   Przy przewijaniu w górę wraca jako pasek przyklejony do górnej krawędzi (is-pinned + is-shown). */
.site-header{position:absolute;top:0;left:0;right:0;z-index:20;flex:none;height:0;color:#000;transition:color .4s ease}
.site-header.is-light{color:#fafafa}
.site-header__bar{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;height:calc(105 * var(--u) + 1px);min-height:46px;padding:calc(40 * var(--u)) calc(40 * var(--u)) 0;border-bottom:1px solid transparent;transition:background-color .3s ease,border-color .3s ease}
.site-header.is-pinned{position:sticky;color:#000}
.site-header.is-pinned .site-header__bar{background:var(--bg);border-bottom-color:var(--line);transform:translateY(-102%);transition:transform .35s ease,background-color .3s ease,border-color .3s ease}
.site-header.is-pinned.is-shown .site-header__bar{transform:none}
.admin-bar .site-header.is-pinned{top:32px}
@media (max-width:782px){.admin-bar .site-header.is-pinned{top:46px}}
.site-logo{display:block;width:max(175px,calc(316 * var(--u)));flex:none}
.site-logo svg{display:block;width:100%;height:auto;overflow:visible}
.site-nav{display:flex;gap:max(22px,calc(79 * var(--u)));align-items:flex-start}
.site-nav__link{white-space:nowrap;flex:none;font-size:max(15px,calc(21 * var(--u)));line-height:calc(25 / 21);font-weight:300;position:relative;top:calc(max(15px,calc(21 * var(--u))) * (25 / 21 - 1) / -2);transition:opacity .2s ease}
.site-nav__link:hover{opacity:.55}
.site-nav__langs{display:flex;gap:max(8px,calc(14 * var(--u)))}
.site-nav__lang{opacity:.45}
.site-nav__lang[aria-current],.site-nav__lang:hover{opacity:1}
.menu-toggle{display:none;background:none;border:0;padding:0;margin:0;cursor:pointer;line-height:0;color:inherit}
.menu-toggle svg{display:block;width:100%;height:auto;overflow:visible}

/* ------------------------------------------------------------------
   Zdjęcie na górze strony / pokaz slajdów
   ------------------------------------------------------------------ */
.hero{position:relative;height:calc(990 * var(--u));overflow:hidden;background:#ececec}
.hero__slide{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.hero__slide.is-active{opacity:1}
.hero__slide picture{display:block;width:100%;height:100%}
.hero__slide img{width:100%;height:100%;object-fit:cover}
.hero__dots{position:absolute;left:0;right:0;bottom:calc(40 * var(--u));z-index:2;display:flex;justify-content:center;gap:max(8px,calc(11 * var(--u)))}
.hero__dot{width:max(10px,calc(16 * var(--u)));height:max(10px,calc(16 * var(--u)));padding:0;border:1px solid #fff;border-radius:50%;background:transparent;cursor:pointer;transition:background-color .3s ease}
.hero__dot.is-active{background:#fff}

/* Nagłówek + wstęp pod zdjęciem */
.intro{padding:calc(91 * var(--u)) calc(40 * var(--u)) 0}
.intro__text{margin-top:calc(28 * var(--u))}

/* ------------------------------------------------------------------
   Work: siatka projektów
   ------------------------------------------------------------------ */
.work-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:calc(40 * var(--u));row-gap:calc(160 * var(--u));padding:calc(93 * var(--u)) calc(40 * var(--u)) calc(260 * var(--u))}
.tile{display:block;min-width:0}
.tile__media{position:relative;aspect-ratio:900 / 1000;overflow:hidden;background:#f1f1f1}
.tile__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tile__img--hover{opacity:0;transition:opacity .3s ease-out}
.tile:focus-visible .tile__img--hover{opacity:1}
@media (hover:hover){.tile:hover .tile__img--hover{opacity:1}}
.tile__caption{margin-top:calc(15 * var(--u));width:fit-content;padding-bottom:.4em;margin-bottom:-.4em}
/* Najazd (1.6.1): zdjęcie lekko szarzeje, pod podpisem wysuwa się linia od lewej (znika w prawo). */
.tile__media::after{content:"";position:absolute;inset:0;background:#000;opacity:0;transition:opacity .3s ease-out;pointer-events:none}
.hb__caption a{padding-bottom:.4em}
.tile__caption,.hb__caption a{background:linear-gradient(currentColor,currentColor) no-repeat right 100% / 0 1px;transition:background-size .45s ease}
.tile:focus-visible .tile__media::after,.hb:has(a:focus-visible) .hb__img::after{opacity:.35}
.tile:focus-visible .tile__caption,.hb:has(a:focus-visible) .hb__caption a{background-position:left 100%;background-size:100% 1px}
@media (hover:hover){
	.tile:hover .tile__media::after,.hb:has(a:hover) .hb__img::after{opacity:.35}
	.tile:hover .tile__caption,.hb:has(a:hover) .hb__caption a{background-position:left 100%;background-size:100% 1px}
}

/* ------------------------------------------------------------------
   Strona główna: bloki z projektami
   ------------------------------------------------------------------ */
.home-blocks{padding:calc(200 * var(--u)) calc(40 * var(--u)) calc(160 * var(--u))}
.hb + .hb{margin-top:calc(160 * var(--u))}
.hb__media{display:flex;align-items:flex-end}
.hb__img{position:relative;display:block;flex:none;overflow:hidden;background:#f1f1f1}
.hb__img::after{content:"";position:absolute;inset:0;background:#000;opacity:0;transition:opacity .3s ease-out;pointer-events:none}
.hb__img img{width:100%;height:100%;object-fit:cover}
.hb__caption{margin-top:calc(15 * var(--u))}
.hb__img--1{width:calc(900 * var(--u));aspect-ratio:900 / 1000}
.hb__img--2{width:calc(432 * var(--u));aspect-ratio:432 / 540;margin-left:auto}
.hb--b .hb__img--1{margin-left:calc(40 * var(--u))}
.hb--b .hb__img--2{order:-1;width:calc(685 * var(--u));aspect-ratio:685 / 750;margin-left:calc(215 * var(--u))}
.hb--b .hb__caption,.hb--f .hb__caption{text-align:right}
.hb--c .hb__img--1{width:calc(1370 * var(--u));aspect-ratio:1370 / 1000}
.hb--d .hb__img--1{width:calc(685 * var(--u));aspect-ratio:685 / 800}
.hb--e .hb__img--2{margin-left:calc(40 * var(--u))}
.hb--f .hb__img--1{width:calc(1370 * var(--u));aspect-ratio:1370 / 800;margin-left:auto}
.hb--h .hb__img--1{width:calc(1155 * var(--u));aspect-ratio:1155 / 1000}
/* Blok dowolny (makieta 09): szerokość z makiety, wysokość wg zdjęcia. */
.hb--free .hb__media{gap:calc(40 * var(--u))}
.hb--free.is-align-right .hb__media{justify-content:flex-end}
.hb--free.is-align-between .hb__media{justify-content:space-between}
.hb--free.is-valign-top .hb__media{align-items:flex-start}
.hb--free .hb__img{aspect-ratio:auto;margin:0;background:transparent}
.hb--free .hb__img img{height:auto}
.hb--free .hb__img--w1625{width:calc(1625 * var(--u))}
.hb--free .hb__img--w1370{width:calc(1370 * var(--u))}
.hb--free .hb__img--w1262{width:calc(1262 * var(--u))}
.hb--free .hb__img--w1157{width:calc(1157 * var(--u))}
.hb--free .hb__img--w968{width:calc(968 * var(--u))}
.hb--free .hb__img--w920{width:calc(920 * var(--u))}
.hb--free .hb__img--w900{width:calc(900 * var(--u))}
.hb--free .hb__img--w685{width:calc(685 * var(--u))}
.hb--free .hb__img--w578{width:calc(578 * var(--u))}
.hb--free .hb__img--w472{width:calc(472 * var(--u))}
.hb--free .hb__img--w432{width:calc(432 * var(--u))}
.hb--free.is-align-right .hb__caption{text-align:right}
/* Przezroczyste grafiki (np. rysunki) nie dostają szarego tła. */
.hb__img:has(img[src$=".png"]),.pg-img:has(img[src$=".png"]),.about-s2__sketch{background:transparent}

/* ------------------------------------------------------------------
   Projekt
   ------------------------------------------------------------------ */
.project-meta{margin-top:calc(73 * var(--u));padding:0 calc(40 * var(--u));display:grid;row-gap:calc(13 * var(--u))}
.project-meta__row{display:grid;grid-template-columns:max(80px,calc(215 * var(--u))) 1fr}
.project-gallery{margin-top:calc(167 * var(--u));padding:0 calc(40 * var(--u))}
.pg-row{display:flex;align-items:flex-end;gap:calc(40 * var(--u))}
.pg-row + .pg-row{margin-top:calc(100 * var(--u))}
.pg-img{flex:1 1 0;min-width:0;overflow:hidden;background:#f1f1f1}
.pg-img img{width:100%;height:100%;object-fit:cover}
.pg-row--full .pg-img{aspect-ratio:1840 / 1000}
.pg-row--two .pg-img,.pg-row--two-row .pg-img{aspect-ratio:900 / 1000}
.pg-row--three .pg-img{aspect-ratio:586.667 / 540}
.pg-row--big-small .pg-img:first-child{flex:none;width:calc(900 * var(--u));aspect-ratio:900 / 1000}
.pg-row--big-small .pg-img:last-child:not(:first-child){flex:none;width:calc(430 * var(--u));aspect-ratio:430 / 800;margin-left:auto}
/* Układ dowolny: szerokości z makiety (1840 = cała treść), wysokość wg proporcji zdjęcia. */
.pg-row--free{justify-content:flex-start}
.pg-row--free.is-align-right{justify-content:flex-end}
.pg-row--free.is-align-center{justify-content:center}
.pg-row--free.is-align-between{justify-content:space-between}
.pg-row--free.is-valign-top{align-items:flex-start}
.pg-row--free .pg-img{flex:none;background:transparent}
.pg-row--free .pg-img img{height:auto}
.pg-row--free .pg-img--w1840{width:calc(1840 * var(--u))}
.pg-row--free .pg-img--w1747{width:calc(1747 * var(--u))}
.pg-row--free .pg-img--w1625{width:calc(1625 * var(--u))}
.pg-row--free .pg-img--w1548{width:calc(1548 * var(--u))}
.pg-row--free .pg-img--w1390{width:calc(1390 * var(--u))}
.pg-row--free .pg-img--w1248{width:calc(1248 * var(--u))}
.pg-row--free .pg-img--w1003{width:calc(1003 * var(--u))}
.pg-row--free .pg-img--w749{width:calc(749 * var(--u))}
.pg-row--free .pg-img--w1410{width:calc(1410 * var(--u))}
.pg-row--free .pg-img--w1370{width:calc(1370 * var(--u))}
.pg-row--free .pg-img--w1350{width:calc(1350 * var(--u))}
.pg-row--free .pg-img--w1253{width:calc(1253 * var(--u))}
.pg-row--free .pg-img--w1155{width:calc(1155 * var(--u))}
.pg-row--free .pg-img--w1024{width:calc(1024 * var(--u))}
.pg-row--free .pg-img--w900{width:calc(900 * var(--u))}
.pg-row--free .pg-img--w847{width:calc(847 * var(--u))}
.pg-row--free .pg-img--w686{width:calc(686 * var(--u))}
.pg-row--free .pg-img--w645{width:calc(645 * var(--u))}
.pg-row--free .pg-img--w634{width:calc(634 * var(--u))}
.pg-row--free .pg-img--w587{width:calc(587 * var(--u))}
.pg-row--free .pg-img--w430{width:calc(430 * var(--u))}
.pg-row--free .pg-img--wrest{flex:1 1 0;min-width:0}
/* Galeria bez wiersza „Client / Year” zaczyna się w tym samym miejscu, co w makiecie (y = 1500). */
.project-gallery--no-meta{margin-top:calc(303 * var(--u))}
.project-nav{display:flex;justify-content:space-between;align-items:center;padding:calc(300 * var(--u)) calc(40 * var(--u)) 0;margin-bottom:calc(103 * var(--u));top:0}
.project-nav--empty{padding-top:calc(60 * var(--u))}
.project-nav__link{display:flex;align-items:center;gap:calc(12 * var(--u));transition:opacity .2s ease}
.project-nav__link:hover{opacity:.55}

/* ------------------------------------------------------------------
   About
   ------------------------------------------------------------------ */
.about{padding-top:calc(200 * var(--u))}
.about-s1,.about-s2,.about-s3{display:flex;padding:0 calc(40 * var(--u))}
.about-s1{align-items:flex-end;gap:calc(40 * var(--u))}
.about-s1__img{flex:none;width:calc(900 * var(--u));aspect-ratio:900 / 1000;overflow:hidden;background:#f1f1f1}
.about-s1__img img,.about-s2__img img,.about-s3__img img,.about-strip__img img{width:100%;height:100%;object-fit:cover}
.about-text{width:calc(900 * var(--u));margin-bottom:calc(-9 * var(--u))}
.about-text .t-small{margin-top:calc(30 * var(--u))}
.rule{border:0;border-top:1px solid var(--line);margin:calc(150 * var(--u)) calc(40 * var(--u)) calc(150 * var(--u) - 1px);height:0}
.about-s2{justify-content:space-between;align-items:stretch}
.about-s2__left{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}
.about-s2__sketch{width:calc(430 * var(--u));aspect-ratio:430 / 550;overflow:hidden}
.about-s2__sketch:empty{display:none}
.about-s2__left:has(.about-s2__sketch:empty){justify-content:flex-end}
.about-s2__sketch img{width:100%;height:100%;object-fit:cover}
.about-s2__img,.about-s3__img{flex:none;width:calc(685 * var(--u));aspect-ratio:685 / 800;overflow:hidden;background:#f1f1f1}
.about-s3{align-items:flex-start;justify-content:space-between}
.awards{width:calc(900 * var(--u))}
.about-s3__img{width:calc(900 * var(--u));aspect-ratio:900 / 800}
@media (min-width:601px){
	/* Zdjęcie obok listy: wysokość dopasowana do listy, dół z niewielkim zapasem pod ostatnim wierszem; nie niższe niż 400. */
	.about-s3{align-items:stretch}
	.about-s3__img{position:relative;aspect-ratio:auto;min-height:calc(400 * var(--u));margin-bottom:calc(5 * var(--u))}
	.about-s3__img img{position:absolute;inset:0}
}
.awards__list{display:flex;flex-direction:column;gap:0;margin-top:calc(44 * var(--u))}
.awards__group{display:grid;grid-template-columns:calc(164 * var(--u)) 1fr;column-gap:0;align-items:baseline}
.awards__year{font-weight:400;text-transform:uppercase;letter-spacing:.02em;font-size:max(15px,calc(19 * var(--u)));line-height:calc(32 / 22)}
.awards__items{font-size:max(13px,calc(16 * var(--u)));line-height:calc(25 / 16)}
.awards__nb{white-space:nowrap}
.awards__year:empty{display:none}
.awards__group:has(.awards__year:empty){grid-template-columns:calc(164 * var(--u)) 1fr}
.awards__group:has(.awards__year:empty) .awards__items{grid-column:2}
.awards__title{font-family:"Neue Plak Extended","Neue Plak",sans-serif;font-weight:700;font-size:max(14px,calc(18 * var(--u)));line-height:calc(22 / 18);text-transform:uppercase;position:relative;top:calc(max(14px,calc(18 * var(--u))) * (22 / 18 - 1) / -2)}
.awards__cols{display:grid;grid-template-columns:1fr 1fr;column-gap:calc(40 * var(--u));margin-top:calc(36 * var(--u))}
.awards__col{white-space:pre-line}
.awards__col strong{font-weight:700}
.about-strip{display:flex;gap:calc(40 * var(--u));height:calc(550 * var(--u));margin:calc(200 * var(--u)) 0 calc(80 * var(--u))}
.about-strip__img{flex:470 1 0;min-width:0;overflow:hidden;background:#f1f1f1}
.about-strip__img--2{flex-grow:900}

/* ------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------ */
.contact-direct{padding:calc(73 * var(--u)) calc(40 * var(--u)) 0}
.contact-direct__email{margin-top:calc(18 * var(--u));font-family:"Neue Plak Extended","Neue Plak",sans-serif;font-weight:700;white-space:normal}
.contact-row{display:flex;align-items:flex-start;gap:calc(40 * var(--u));padding:calc(138 * var(--u)) calc(40 * var(--u)) calc(260 * var(--u))}
.contact-row__img{flex:none;width:calc(686 * var(--u));aspect-ratio:686 / 540;overflow:hidden;background:#f1f1f1}
.contact-row__img img{width:100%;height:100%;object-fit:cover}
.cf{flex:1 1 0;min-width:0}
.cf__body{display:flex;flex-direction:column;height:calc(540 * var(--u))}
.cf__fields{display:flex;gap:calc(40 * var(--u))}
.cf__field{display:block;flex:1 1 0;min-width:0}
.cf__label{display:block;top:0;transform:translateY(calc((var(--fs) * var(--lh) - var(--fs)) / -2))}
.cf__input{display:block;width:100%;margin:calc(7.5 * var(--u)) 0 0;padding:0 0 calc(6.5 * var(--u));border:0;border-bottom:1px solid #000;border-radius:0;background:transparent;color:inherit;font-family:inherit;font-size:max(14px,calc(18 * var(--u)));line-height:calc(25 / 18);height:calc(max(14px,calc(18 * var(--u))) * 25 / 18 + 6.5 * var(--u) + 1px);box-shadow:none;-webkit-appearance:none;appearance:none}
.cf__input:focus{outline:none;border-bottom-color:#000}
.cf__input:focus-visible{outline:none}
.cf__field--message{flex:1 1 auto;display:flex;flex-direction:column;margin-top:calc(20 * var(--u))}
.cf__textarea{flex:1 1 auto;height:auto;min-height:80px;margin-top:calc(18.5 * var(--u));padding-bottom:calc(10 * var(--u));resize:none}
.cf__trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.cf__actions{display:flex;justify-content:flex-end;align-items:center;gap:calc(24 * var(--u));margin-top:calc(20 * var(--u));min-height:calc(20 * var(--u));top:0}
.cf__status{margin-right:auto;text-transform:none;letter-spacing:0}
.cf__status:empty{display:none}
.cf__send{display:flex;align-items:center;gap:calc(12 * var(--u));background:none;border:0;padding:0;margin:0;cursor:pointer;text-transform:inherit;letter-spacing:inherit;font-size:inherit;line-height:inherit;transition:opacity .2s ease}
.cf__send:hover{opacity:.55}
.cf__send[disabled]{opacity:.4;cursor:default}
.cf__thanks{display:none;text-align:right}
.cf.is-sent .cf__send,.cf.is-sent .cf__status{display:none}
.cf.is-sent .cf__thanks{display:block}

/* ------------------------------------------------------------------
   Zwykła strona tekstowa / 404
   ------------------------------------------------------------------ */
.text-page{padding:max(120px,calc(200 * var(--u))) calc(40 * var(--u)) calc(160 * var(--u));max-width:calc(1410 * var(--u))}
.text-page__content{margin-top:calc(28 * var(--u));white-space:normal}
.text-page__content > * + *{margin-top:1em}
.text-page__content > h2,.text-page__content > h3{margin-top:2em}
.text-page__content ul,.text-page__content ol{padding-left:1.2em}
.text-page__content a{text-decoration:underline;text-underline-offset:.15em}
.text-page__content h2,.text-page__content h3{font-size:1.2em;font-weight:400;text-transform:uppercase;letter-spacing:.02em}

/* ------------------------------------------------------------------
   Index: spis projektów (nazwa, klient, rok)
   Siatka 4 kolumn z projektu: trzy kolumny tekstu, w czwartej zdjęcie
   projektu, nad którym jest kursor.
   ------------------------------------------------------------------ */
.pindex{padding:max(120px,calc(200 * var(--u))) calc(40 * var(--u)) calc(160 * var(--u))}
.pindex__title{max-width:calc(1370 * var(--u))}
.pindex__intro{margin-top:calc(28 * var(--u));max-width:calc(1370 * var(--u))}
.pindex__title + .pindex__grid,.pindex__intro + .pindex__grid{margin-top:calc(93 * var(--u))}
.pindex__grid{display:grid;grid-template-columns:calc(1370 * var(--u)) calc(430 * var(--u));column-gap:calc(40 * var(--u));align-items:start}
.pindex__head,.pindex__row{display:grid;grid-template-columns:calc(430 * var(--u)) calc(430 * var(--u)) 1fr;column-gap:calc(40 * var(--u))}
.pindex__head{top:0;padding-bottom:calc(14 * var(--u));border-bottom:1px solid var(--line)}
.pindex__rows{list-style:none;margin:0;padding:0}
.pindex__row{padding:calc(17 * var(--u)) 0;border-bottom:1px solid var(--line);font-size:max(14px,calc(18 * var(--u)));line-height:calc(25 / 18);transition:opacity .2s ease}
.pindex__row > span{min-width:0;overflow-wrap:anywhere}
@media (hover:hover){.pindex__rows:has(a:hover) .pindex__row:not(:hover){opacity:.4}}
.pindex__preview{position:sticky;top:calc(145 * var(--u));aspect-ratio:430 / 478}
.pindex__preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .3s ease-out}
.pindex__preview img.is-active{opacity:1}

/* ------------------------------------------------------------------
   Strzałka do góry strony. Przyklejona do dołu ekranu, przy końcu
   strony zatrzymuje się nad stopką. Jasne koło z cienką linią, żeby
   była czytelna także na zdjęciach.
   ------------------------------------------------------------------ */
.to-top{--tt:max(40px,calc(44 * var(--u)));position:sticky;bottom:0;z-index:15;flex:none;height:0;pointer-events:none}
.to-top__btn{position:absolute;right:calc(40 * var(--u));bottom:calc(40 * var(--u));display:flex;align-items:center;justify-content:center;width:var(--tt);height:var(--tt);padding:0;margin:0;border:1px solid var(--line);border-radius:50%;background:var(--bg);color:#000;cursor:pointer;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}
.to-top.is-visible .to-top__btn{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .3s ease}
.to-top .arrow{width:calc(18 * var(--u));min-width:15px;transform:rotate(-90deg);transition:opacity .2s ease}
.to-top__btn:hover .arrow{opacity:.55}

/* ------------------------------------------------------------------
   Stopka
   ------------------------------------------------------------------ */
.site-footer{flex:none;display:flex;justify-content:space-between;align-items:flex-start;height:calc(80 * var(--u));min-height:48px;padding:0 calc(40 * var(--u));background:var(--footer);box-shadow:inset 0 0 0 1px #707070}
.social{display:flex;gap:calc(15 * var(--u));margin-top:calc(25 * var(--u))}
.social__link{display:block;width:max(18px,calc(25 * var(--u)));color:#ededed;transition:opacity .2s ease}
.social__link:hover{opacity:.6}
.social__link svg{display:block;width:100%;height:auto}
.site-footer__copy{margin-left:auto;margin-top:calc(36.4 * var(--u));font-size:max(10px,calc(15 * var(--u)));line-height:1;color:rgba(255,255,255,.5);text-align:right}
.site-footer__credit{display:block;margin-top:calc(8 * var(--u));font-size:max(9px,calc(11 * var(--u)));color:rgba(255,255,255,.3)}

/* Menu mobilne (poza .site). Wymiary z projektu 375 px, skalowane do szerokości ekranu. */
.mobile-menu{--mu:calc(100vw / 375);position:fixed;inset:0;z-index:100;background:#000;color:#fafafa;display:flex;flex-direction:column;overflow-y:auto;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s}
.mobile-menu[hidden]{display:none}
.mobile-menu.is-open{opacity:1;visibility:visible;transition:opacity .25s ease}
.mobile-menu__top{flex:none;display:flex;justify-content:space-between;align-items:flex-start;height:calc(64.5 * var(--mu) + 1px);padding:calc(23 * var(--mu)) calc(15 * var(--mu)) 0;border-bottom:1px solid #333}
.mobile-menu .site-logo{width:calc(253.5 * var(--mu))}
.mobile-menu .menu-toggle{display:block;width:calc(35 * var(--mu));margin:calc(-7 * var(--mu)) calc(-2.6 * var(--mu)) 0 0}
.mobile-menu__nav{flex:none;display:flex;flex-direction:column;margin-top:calc(-.75 * var(--mu))}
.mobile-menu__nav a{display:block;padding:0 calc(15 * var(--mu));font-weight:300;font-size:calc(24 * var(--mu));line-height:calc(80 * var(--mu))}
.mobile-menu__bottom{margin-top:auto;display:flex;justify-content:space-between;align-items:center;padding:calc(20 * var(--mu)) calc(17 * var(--mu)) calc(15 * var(--mu)) calc(24 * var(--mu))}
.mobile-menu .social{margin:0;gap:calc(15 * var(--mu))}
.mobile-menu .social__link{width:calc(25 * var(--mu));color:#fafafa}
.mobile-menu__langs{display:flex;gap:calc(21 * var(--mu));position:relative;top:calc(4 * var(--mu));font-weight:300;font-size:calc(17 * var(--mu));line-height:1;text-transform:uppercase}
.mobile-menu__langs a{color:rgba(250,250,250,.5)}
.mobile-menu__langs a[aria-current]{color:#fafafa}
html.menu-open{overflow:hidden}

/* ------------------------------------------------------------------
   Telefony: układ z projektu mobilnego (375 px szerokości).
   Jednostka --u to 1 px tego projektu przeliczony na szerokość ekranu.
   ------------------------------------------------------------------ */
@media (max-width:600px){
	:root{--u:calc(100vw / 375)}
	@supports (width:1cqw){
		.site{--u:calc(100cqw / 375)}
	}
	.br-d{display:none}
	.t-h1,.t-h2{--fs:max(14px,calc(16 * var(--u)));--lh:1.25}
	.t-body,.t-small{--fs:max(13px,calc(14 * var(--u)));--lh:calc(20 / 14)}
	.t-cap{--fs:max(12px,calc(14 * var(--u)));--lh:calc(20 / 14)}
	.t-meta{--fs:max(10px,calc(11 * var(--u)));--lh:calc(16 / 11)}
	.t-label{--fs:max(10px,calc(11 * var(--u)));--lh:calc(13 / 11)}

	.site-header__bar{height:calc(64.5 * var(--u) + 1px);min-height:0;padding:calc(23 * var(--u)) calc(15 * var(--u)) 0}
	.admin-bar .site-header.is-pinned{top:0}
	.site-logo{width:calc(253.5 * var(--u))}
	.site-nav{display:none}
	.site-header .menu-toggle{display:block;width:calc(35 * var(--u));margin:calc(-7 * var(--u)) calc(-2.6 * var(--u)) 0 0}

	.hero{height:calc(550 * var(--u))}
	.single-ng_project .hero{height:calc(360 * var(--u))}
	.hero__dots{bottom:calc(30 * var(--u));gap:calc(12 * var(--u))}
	.hero__dot{width:calc(15 * var(--u));height:calc(15 * var(--u))}

	.intro{padding:calc(80 * var(--u)) calc(15 * var(--u)) 0}
	.single-ng_project .intro{padding-top:calc(80 * var(--u))}
	.intro__text{margin-top:calc(31 * var(--u))}

	/* Work */
	.work-grid{grid-template-columns:1fr;row-gap:calc(54.4 * var(--u));padding:calc(94 * var(--u)) calc(15 * var(--u)) calc(94.5 * var(--u))}
	.tile__media{aspect-ratio:345 / 386}
	.tile__caption{margin-top:calc(14 * var(--u))}

	/* Strona główna: zdjęcie, podpis, drugie zdjęcie */
	.home-blocks{padding:calc(80 * var(--u)) calc(15 * var(--u)) calc(100 * var(--u))}
	.hb{display:flex;flex-direction:column}
	.hb + .hb{margin-top:calc(99.5 * var(--u))}
	.hb--n1 + .hb{margin-top:calc(93 * var(--u))}
	.hb--n1:last-child{margin-bottom:calc(-7 * var(--u))}
	.hb__media{display:contents}
	.hb .hb__img--1{order:1;width:100%;margin:0;aspect-ratio:345 / 386}
	.hb .hb__caption{order:2;margin-top:calc(14 * var(--u));text-align:left}
	.hb .hb__img--2{order:3;width:calc(207 * var(--u));aspect-ratio:207 / 258;margin:calc(26 * var(--u)) 0 0;align-self:flex-start}
	.hb--c .hb__img--1,.hb--f .hb__img--1{aspect-ratio:345 / 252}
	.hb--d .hb__img--1{width:calc(277 * var(--u));aspect-ratio:277 / 303;align-self:flex-start}
	.hb--h .hb__img--1{width:calc(277 * var(--u));aspect-ratio:277 / 244;align-self:flex-start}
	.hb--b .hb__img--2{width:calc(277 * var(--u));aspect-ratio:277 / 302.5;align-self:flex-end}
	.hb--e .hb__img--2{align-self:flex-end}
	.hb--b .hb__caption,.hb--f .hb__caption{text-align:right}
	.hb--free .hb__img--1{aspect-ratio:auto;width:100%}
	.hb--free .hb__img--2{aspect-ratio:auto;width:calc(207 * var(--u));align-self:flex-start}
	.hb--free.is-align-right .hb__caption{text-align:left}

	/* Projekt */
	.project-meta{margin-top:calc(61 * var(--u));padding:0 calc(15 * var(--u));row-gap:calc(9 * var(--u))}
	.project-meta__row{grid-template-columns:calc(180 * var(--u)) 1fr}
	.project-gallery{margin-top:calc(86 * var(--u));padding:0 calc(15 * var(--u))}
	.pg-row{flex-direction:column;align-items:stretch;gap:calc(37 * var(--u))}
	.pg-row + .pg-row{margin-top:calc(37 * var(--u))}
	.pg-img{flex:none}
	.pg-row--full .pg-img{aspect-ratio:345 / 204}
	.pg-row--two .pg-img{aspect-ratio:345 / 389}
	.pg-row--two-row{flex-direction:row;gap:calc(15 * var(--u))}
	.pg-row--two-row .pg-img{flex:1 1 0;aspect-ratio:165 / 189}
	.pg-row--three .pg-img{width:calc(301 * var(--u));aspect-ratio:301 / 277;align-self:flex-end}
	.pg-row--big-small .pg-img:first-child{width:100%;aspect-ratio:345 / 389}
	.pg-row--big-small .pg-img:last-child:not(:first-child){width:calc(172 * var(--u));aspect-ratio:172 / 307;margin-left:0;align-self:flex-end}
	/* Układ dowolny na telefonie: jedno pod drugim, na całą szerokość; małe (do 587) węższe, do prawej. */
	.pg-row--free{gap:calc(40 * var(--u))}
	.pg-row--free + .pg-row{margin-top:calc(40 * var(--u))}
	.pg-row--free .pg-img{width:100%;align-self:stretch}
	.pg-row--free .pg-img--w634,.pg-row--free .pg-img--w587,.pg-row--free .pg-img--w430{width:calc(275 * var(--u));align-self:flex-end}
	.project-gallery--no-meta{margin-top:calc(177 * var(--u))}
	.project-nav{padding:calc(83 * var(--u)) calc(15 * var(--u)) 0;margin-bottom:calc(46 * var(--u))}
	.project-nav--empty{padding-top:calc(39 * var(--u))}
	.project-nav__link{gap:calc(10 * var(--u))}
	.arrow{width:calc(20 * var(--u));min-width:0}

	/* About */
	.about{padding-top:calc(80 * var(--u))}
	.about-s1,.about-s2,.about-s3{flex-direction:column;align-items:stretch;gap:0;padding:0 calc(15 * var(--u))}
	.about-text{width:100%;margin:0}
	.about-text .t-small{margin-top:calc(31 * var(--u))}
	.about-s1 .about-text{order:1}
	.about-s1__img{order:2;width:100%;margin-top:calc(54 * var(--u));aspect-ratio:345 / 386}
	.rule{margin:calc(59 * var(--u)) calc(15 * var(--u)) calc(60 * var(--u) - 1px)}
	.about-s2__left{display:contents}
	.about-s2__sketch{order:1;width:calc(165 * var(--u));aspect-ratio:165 / 212}
	.about-s2 .about-text{order:2;margin-top:calc(58 * var(--u))}
	.about-s2__img{order:3;width:calc(278 * var(--u));aspect-ratio:278 / 304;margin-top:calc(54 * var(--u));align-self:flex-end}
	.awards{order:1;width:100%;margin:0}
	.awards__title{font-size:max(14px,calc(16 * var(--u)));line-height:1.25;top:calc(max(14px,calc(16 * var(--u))) * .25 / -2)}
	.awards__cols{grid-template-columns:1fr;row-gap:calc(20 * var(--u));margin-top:calc(32 * var(--u))}
	.about-s3__img{order:2;width:100%;aspect-ratio:345 / 302;margin-top:calc(54 * var(--u));align-self:flex-start}
	.awards__list{gap:calc(4 * var(--u));margin-top:calc(30 * var(--u))}
	.awards__group{grid-template-columns:calc(124 * var(--u)) 1fr}
	.awards__year{top:0;font-size:max(14px,calc(15 * var(--u)));line-height:1.3}
	.awards__items{font-size:max(13px,calc(14 * var(--u)));line-height:calc(20 / 14)}
	.about-strip{justify-content:flex-start;gap:calc(15 * var(--u));height:calc(172.5 * var(--u));margin:calc(98 * var(--u)) 0 calc(28 * var(--u));overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 calc(114 * var(--u))}
	.about-strip::-webkit-scrollbar{display:none}
	.about-strip__img{flex:none;width:calc(147 * var(--u));scroll-snap-align:center}
	.about-strip__img--2{width:calc(255 * var(--u))}

	/* Contact: najpierw formularz, potem zdjęcie */
	.contact-direct{padding:calc(56 * var(--u)) calc(15 * var(--u)) 0}
	.contact-direct__email{margin-top:calc(25 * var(--u))}
	.contact-row{flex-direction:column;align-items:stretch;gap:0;padding:calc(72 * var(--u)) calc(15 * var(--u)) calc(100 * var(--u))}
	.cf{order:1;flex:none}
	.contact-row__img{order:2;width:100%;aspect-ratio:345 / 250;margin-top:calc(79 * var(--u))}
	.cf__body{height:auto}
	.cf__fields{flex-direction:column;gap:calc(15 * var(--u) - 1px)}
	.cf__field{flex:none}
	/* 16 px w polach zapobiega automatycznemu powiększaniu ekranu na iPhonie. */
	.cf__input{font-size:16px;line-height:1.375;margin-top:calc(9.5 * var(--u));padding-bottom:calc(7 * var(--u));height:calc(28.5 * var(--u) + 1px)}
	.cf__field--message{flex:none;margin-top:calc(15 * var(--u) - 1px)}
	.cf__textarea{flex:none;height:calc(268.75 * var(--u) + 1px);min-height:0;margin-top:calc(9.5 * var(--u))}
	.cf__actions{--fs:max(13px,calc(14 * var(--u)));--lh:calc(16.5 / 14);gap:calc(14 * var(--u));margin-top:calc(19 * var(--u));min-height:calc(16.5 * var(--u));flex-wrap:wrap}
	.cf__send{gap:calc(10 * var(--u))}
	.cf__status{flex-basis:100%;font-size:max(12px,calc(13 * var(--u)))}

	.text-page{padding:calc(110 * var(--u)) calc(15 * var(--u)) calc(94 * var(--u));max-width:none}

	/* Index */
	.pindex{padding:calc(110 * var(--u)) calc(15 * var(--u)) calc(94 * var(--u))}
	.pindex__title,.pindex__intro{max-width:none}
	.pindex__intro{margin-top:calc(31 * var(--u))}
	.pindex__title + .pindex__grid,.pindex__intro + .pindex__grid{margin-top:calc(54 * var(--u))}
	.pindex__grid{display:block}
	.pindex__head,.pindex__row{grid-template-columns:1fr calc(105 * var(--u)) calc(42 * var(--u));column-gap:calc(12 * var(--u))}
	.pindex__head{padding-bottom:calc(10 * var(--u))}
	.pindex__row{padding:calc(13 * var(--u)) 0;font-size:max(13px,calc(14 * var(--u)));line-height:calc(20 / 14)}
	.pindex__head > :last-child,.pindex__year{text-align:right}
	.pindex__preview{display:none}

	.to-top{--tt:calc(40 * var(--u))}
	.to-top__btn{right:calc(15 * var(--u));bottom:calc(15 * var(--u))}
	.to-top .arrow{width:calc(16 * var(--u));min-width:0}

	/* Stopka */
	.site-footer{height:calc(65.25 * var(--u));min-height:0;padding:0 calc(15 * var(--u)) 0 calc(16 * var(--u))}
	.social{margin-top:calc(20 * var(--u));gap:calc(15 * var(--u))}
	.social__link{width:calc(25 * var(--u))}
	.site-footer__copy{margin-top:calc(17.6 * var(--u));max-width:calc(120 * var(--u));font-size:max(9px,calc(11 * var(--u)));line-height:calc(15 / 11)}
	.site-footer__credit{margin-top:calc(2 * var(--u));font-size:max(8px,calc(9 * var(--u)))}
}

@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
