/*
Theme Name: Twoje Nowe 2027
Theme URI: https://twojenowe.pl
Author: Twoje Nowe Studio Projektowe
Description: Motyw Twoje Nowe 2027 – bloki ACF (flexible content).
Version: 1.0
Requires PHP: 8.1
Update URI: false
Text Domain: twojenowe
*/

/* ==========================================================================
   Fonts (self-hosted, only the cuts that are used)
   ========================================================================== */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url(assets/fonts/dmsans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:100 1000;font-display:swap;src:url(assets/fonts/dmsans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Tenor Sans';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/tenorsans-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/roboto-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:100 900;font-display:swap;src:url(assets/fonts/roboto-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Roboto';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/roboto-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:italic;font-weight:100 900;font-display:swap;src:url(assets/fonts/roboto-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Founders Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/founders-grotesk-400.woff2) format('woff2')}
@font-face{font-family:'Founders Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/founders-grotesk-500.woff2) format('woff2')}
@font-face{font-family:'Tenor Sans';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/tenorsans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root
{
	--c-dark: #111111;
	--c-text: #111111; /* text on light backgrounds is always #111 (was #666 in the old theme) */
	--c-muted: #c2c2c2;
	--c-white: #ffffff;
	--c-beige: #f1f2eb;
	--c-red: #be2d2d;
	--c-line: rgba(17, 17, 17, .15);
	--c-line-light: rgba(255, 255, 255, .15);

	--f-head: 'Tenor Sans', 'Helvetica Neue', Arial, sans-serif;
	--f-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
	--f-ui: 'Founders Grotesk', 'DM Sans', Arial, sans-serif;

	--container: 1290px;
	--gutter: 15px;
	--edge: 50px;
	--ease: cubic-bezier(.645, .045, .355, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html
{
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 120px;
}

body
{
	margin: 0;
	background: var(--c-white);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 15px;
	line-height: 1.6667;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--c-dark); text-decoration: none; transition: color .25s var(--ease), opacity .25s var(--ease); }
a:hover { color: var(--c-dark); }

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6, .heading
{
	margin: 0 0 .5em;
	color: var(--c-dark);
	font-family: var(--f-head);
	font-weight: 400;
}

h1, h2, .heading { font-size: 40px; line-height: 60px; }
h3 { font-size: 30px; line-height: 40px; }
h4 { font-size: 24px; line-height: 34px; }

/* Heading size chosen in the editor ("Rozmiar"), independent from the tag – wins over block defaults */
.heading.heading--size.heading--size-xl { font-size: 70px; line-height: 80px; }
.heading.heading--size.heading--size-h1 { font-size: 50px; line-height: 60px; }
.heading.heading--size.heading--size-h2 { font-size: 40px; line-height: 60px; }
.heading.heading--size.heading--size-h3 { font-size: 30px; line-height: 40px; }
.heading.heading--size.heading--size-h4 { font-size: 24px; line-height: 34px; }
.heading.heading--size.heading--size-h5 { font-size: 20px; line-height: 30px; }
.heading.heading--size.heading--size-h6 { font-size: 17px; line-height: 26px; }

@media (max-width: 767px)
{
	.heading.heading--size.heading--size-xl { font-size: 40px; line-height: 50px; }
	.heading.heading--size.heading--size-h1 { font-size: 36px; line-height: 46px; }
	.heading.heading--size.heading--size-h2 { font-size: 30px; line-height: 40px; }
	.heading.heading--size.heading--size-h3 { font-size: 26px; line-height: 36px; }
}

hr
{
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--c-line);
}

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button { font: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn:focus-visible { outline-color: var(--btn-bg); outline-offset: 6px; }
.theme--dark :focus-visible, .page-header :focus-visible, .page-footer :focus-visible, .menu-overlay :focus-visible, .popup :focus-visible { outline-color: var(--c-white); }

.visually-hidden,
.screen-reader-text
{
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link
{
	position: absolute;
	top: -100px;
	left: 10px;
	z-index: 1000;
	padding: 10px 20px;
	background: var(--c-white);
	color: var(--c-dark);
}

.skip-link:focus { top: 10px; }

.container
{
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container-wide
{
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	padding: 0 var(--edge);
}

/* Same geometry as an Elementor boxed section (1320px, columns have their own 15px padding) */
.container-el
{
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
}

/* Text from WYSIWYG fields */
.text-block
{
	font-size: 17px;
	line-height: 30px;
}

.text-block > *:last-child { margin-bottom: 0; }
.text-block p { margin-bottom: 25px; }
.text-block strong, .text-block b { color: var(--c-dark); font-weight: 600; }
.text-block a { color: inherit; text-decoration: underline; text-underline-offset: 3px; } /* same colour as the text around it: #111 on light, white / grey on dark sections */
.text-block h2 { margin: 40px 0 20px; font-size: 32px; line-height: 44px; }
.text-block h3 { margin: 35px 0 15px; font-size: 26px; line-height: 36px; }
.text-block h4 { margin: 30px 0 15px; font-size: 22px; line-height: 32px; }
.text-block ul, .text-block ol { margin-bottom: 25px; }
.text-block li { margin-bottom: 6px; }
.text-block figure { margin: 0 0 25px; }
.text-block figure, .text-block .wp-caption { width: auto !important; max-width: 100%; }
.text-block img { max-width: 100%; height: auto; }
.text-block figcaption, .text-block .wp-caption-text { margin-top: 10px; font-size: 13px; font-style: italic; text-align: center; }

/* Eyebrow (small uppercase label with a dot) */
.eyebrow
{
	margin: 0 0 11px;
	color: var(--c-dark);
	font-family: var(--f-body);
	font-size: 13px;
	line-height: 30px;
	letter-spacing: 3.9px;
	text-transform: uppercase;
}

.eyebrow span { position: relative; padding-left: 14px; }
.eyebrow span::before { content: ''; position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: currentColor; }

/* ==========================================================================
   Buttons – "crop mark" corners like the original theme
   ========================================================================== */
.btn
{
	--btn-bg: var(--c-dark);
	--btn-color: var(--c-white);
	--btn-corner: var(--c-dark);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 35px 0 36px;
	border: 1px solid rgba(245, 242, 229, .15);
	background: var(--btn-bg);
	color: var(--btn-color);
	font-family: var(--f-head);
	font-size: 15px;
	line-height: 52px;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: .25s var(--ease);
	max-width: 100%;
}

.btn:hover { color: var(--btn-color); }

.btn--light { --btn-bg: var(--c-white); --btn-color: var(--c-dark); --btn-corner: var(--c-white); }
.btn--dark { --btn-bg: var(--c-dark); --btn-color: var(--c-white); --btn-corner: var(--c-dark); }

.btn::before, .btn::after,
.btn .btn__text::before, .btn .btn__text::after
{
	content: '';
	position: absolute;
	z-index: 1;
	width: 8px;
	height: 8px;
	border: 0 solid var(--btn-corner);
	transition: all .5s ease-in-out;
}

.btn::before { top: -8px; left: -8px; border-right-width: 1px; border-bottom-width: 1px; transform-origin: bottom right; }
.btn::after { right: -8px; bottom: -8px; border-top-width: 1px; border-left-width: 1px; transform-origin: top left; }
.btn .btn__text::before { bottom: -8px; left: -8px; border-top-width: 1px; border-right-width: 1px; transform-origin: top right; }
.btn .btn__text::after { top: -8px; right: -8px; border-bottom-width: 1px; border-left-width: 1px; transform-origin: bottom left; }

.btn:hover::before, .btn:hover::after,
.btn:hover .btn__text::before, .btn:hover .btn__text::after { transform: scale(0); }

.btn__icon { display: inline-flex; line-height: 0; }
.btn .icon--arrow { width: 37px; height: auto; }

/* Simple button (header): arrow on the right, drawn in on hover */
.btn:not(.btn--fx) .btn__icon--right { margin-left: 21px; }
.btn:not(.btn--fx) .icon--arrow { width: 36px; }
.btn:not(.btn--fx) .btn__icon--right { transition: transform .4s var(--ease); }
.btn:not(.btn--fx):hover .btn__icon--right { transform: translateX(6px); }


/* Button with text effect: letters slide right, arrow jumps to the left */
.btn--fx { padding: 0 34px 0 2px; }
.btn--fx .btn__icon { transition: opacity .4s .25s, transform .6s .25s, margin .6s .25s; transition-timing-function: cubic-bezier(.1, .75, .25, 1); }
.btn--fx .btn__icon--left { opacity: 0; transform: translateX(-1em); transition-delay: 0s; }
.btn--fx .btn__icon--right { margin-left: 16px; }
.btn--fx .btn__chars { display: block; transition: transform .6s .125s cubic-bezier(.1, .75, .25, 1); }
.btn--fx .btn__chars span { position: relative; display: inline-block; }
.btn--fx:hover .btn__icon--right { opacity: 0; transform: translateX(1em); transition-delay: 0s; }
.btn--fx:hover .btn__icon--left { opacity: 1; transform: translateX(25px); transition-delay: .225s; }
.btn--fx:hover .btn__chars { transform: translateX(39px); transition-delay: .1s; }
.btn--fx:hover .btn__chars span { animation: tn-liquid .6s calc(var(--i, 0) * .03s) cubic-bezier(.23, 1, .32, 1) both alternate; }

@keyframes tn-liquid { 50% { opacity: 0; transform: translateX(.3em); } 51% { opacity: 0; transform: translateX(-.3em); } to { opacity: 1; transform: none; } }

.buttons
{
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	margin-top: 40px;
}

.buttons--center { justify-content: center; }

.link-arrow
{
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--c-dark);
	font-family: var(--f-head);
	font-size: 17px;
	line-height: 36px;
}

.link-arrow .icon--arrow { width: 37px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon--arrow { transform: translateX(5px); }

/* ==========================================================================
   Header
   ========================================================================== */
.page-header
{
	position: relative;
	z-index: 100;
	background: var(--c-dark);
	color: var(--c-muted);
}

.header-top .container-wide
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
}

.header-top .container-wide + .container-wide { min-height: 0; }

.header-divider { width: 100%; background: rgba(241, 242, 235, .15); }

/* draws from the left on page load – same timing as the old theme (divider "animated normal") */
.header-divider { transform-origin: 0 100%; animation: tn-line-draw 1.8s cubic-bezier(.77, 0, .175, 1) .2s both; }
@keyframes tn-line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.contact-list
{
	display: flex;
	flex-wrap: wrap;
	gap: 0 25px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list a { color: inherit; }
.contact-list a:hover { color: var(--c-white); }

.contact-list--dots li { position: relative; padding-left: 12px; }
.contact-list--dots li::before { content: ''; position: absolute; top: 50%; left: 0; width: 4px; height: 4px; margin-top: -2px; background: var(--c-white); }

.socials
{
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.socials a
{
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .25s var(--ease);
}

.socials--circle a
{
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-white);
	color: var(--c-dark);
}

.socials--circle .icon { width: auto; height: 18px; }
.socials a:hover { opacity: .8; color: var(--c-dark); }


.header-main { background: var(--c-dark); }

.header-main .container-wide
{
	display: flex;
	align-items: center;
	height: 107px;
}

.header-sticky
{
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 999;
	visibility: hidden;
	transform: translateY(-120%);
	transition: transform .6s cubic-bezier(.24, .74, .58, 1), visibility 0s .6s;
}

.header-sticky.is-visible { visibility: visible; transform: none; transition: transform .6s cubic-bezier(.24, .74, .58, 1), visibility 0s; }
.admin-bar .header-sticky { top: 32px; }

.page-logo { display: block; flex: 0 0 auto; color: var(--c-white); }
.page-logo .logo-svg { display: block; width: auto; height: 50px; }

.page-nav { flex: 1 1 auto; padding-left: 100px; }

.page-nav ul
{
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.page-nav li { position: relative; margin-right: 44px; }
.page-nav li:last-child { margin-right: 0; }

.page-nav li:not(:last-child)::after
{
	content: '/';
	position: absolute;
	top: 50%;
	right: -25px;
	color: var(--c-white);
	font-family: var(--f-head);
	font-size: 15px;
	transform: translateY(-50%);
	pointer-events: none;
}

.page-nav a
{
	position: relative;
	display: block;
	color: var(--c-white);
	font-family: var(--f-head);
	font-size: 15px;
	line-height: 107px;
	text-transform: uppercase;
}


.page-nav a:hover { color: var(--c-white); }
.page-nav .menu-text { position: relative; display: inline-block; }
.page-nav > ul > li > a .menu-text { line-height: 25px; vertical-align: middle; }

.page-nav > ul > li > a .menu-text::after
{
	content: '';
	position: absolute;
	right: 0;
	bottom: -6px;
	width: 0;
	height: 1px;
	background: var(--c-white);
	transition: width .3s var(--ease);
}

.page-nav > ul > li > a:hover .menu-text::after,
.page-nav > ul > li:focus-within > a .menu-text::after,
.page-nav > ul > li.current-menu-item > a .menu-text::after,
.page-nav > ul > li.current-menu-ancestor > a .menu-text::after,
.page-nav > ul > li.current-menu-parent > a .menu-text::after,
.page-nav > ul > li.current-page-ancestor > a .menu-text::after { right: auto; left: 0; width: 100%; }


.header-cta { flex: 0 0 auto; }

.menu-toggle
{
	display: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
	cursor: pointer;
}

.menu-toggle-bars { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.menu-toggle-bars i { display: block; width: 28px; height: 2px; background: currentColor; }
.menu-toggle-bars i:nth-child(2) { width: 20px; }

.menu-overlay
{
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	padding: 18px 20px 40px;
	overflow-y: auto;
	background: var(--c-dark);
	color: var(--c-muted);
}

.menu-overlay[hidden] { display: none; }

.menu-overlay-head { display: flex; align-items: center; justify-content: space-between; }
.menu-overlay .page-logo .logo-svg { height: 44px; }

.menu-close
{
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	background: none;
	color: var(--c-white);
	cursor: pointer;
}

.menu-overlay-body { padding: 50px 0 40px; }

.menu-top-mobile { margin: 0; padding: 0; list-style: none; }
.menu-top-mobile li { border-bottom: 1px solid var(--c-line-light); }

.menu-top-mobile a
{
	display: block;
	padding: 16px 0;
	color: var(--c-white);
	font-family: var(--f-head);
	font-size: 20px;
	text-transform: uppercase;
}

.menu-overlay-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; margin-top: auto; }
.menu-overlay-foot .contact-list { flex-direction: column; }

/* ==========================================================================
   Sections & colour themes
   ========================================================================== */
.page-content { display: block; }

/* ==========================================================================
   Block: image
   ========================================================================== */
.block--image { margin-bottom: 50px; }
.image-full img, .image-boxed img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Block: text_split ("Idea projektowa")
   ========================================================================== */
.block--text-split { padding: 10px 0; margin-bottom: 50px; }
.text-split { max-width: 1300px; margin: 0 auto; }
.text-split__title { margin: 0 0 var(--head-gap); }
.text-split__lead { margin: 0; color: var(--c-dark); font-family: var(--f-ui); font-weight: 400; }
.text-split__text { color: var(--c-dark); line-height: 32px; }

.text-split--columns .text-split__body { display: grid; grid-template-columns: 508px 1fr; gap: 20px; margin-top: 20px; }
.text-split--columns .text-split__lead { font-size: 25px; line-height: 40px; }

.block--text-split:has(.text-split--stacked) { padding: 80px 0 0; margin-bottom: 0; }
.text-split--stacked { max-width: 1260px; padding: 0 15px; }
.text-split--stacked .text-split__title { margin-bottom: 51px; font-size: 70px; line-height: 80px; }
.text-split--stacked .text-split__lead { font-size: 20px; line-height: 32px; }
.text-split--stacked .text-split__text { max-width: 694px; margin: 42px 0 0 auto; color: var(--c-text); }
.text-split--stacked .text-split__text p { margin-bottom: 24px; }

/* Project details: phones – label left, value right, one row each */
.project-details { margin: 0 0 45px; padding: 0; border-top: 1px solid var(--c-line); }
.project-details__item { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.project-details__label { margin: 0; color: var(--c-dark); font-family: var(--f-body); font-size: 13px; line-height: 20px; letter-spacing: .12em; text-transform: uppercase; }
.project-details__value { margin: 0; color: var(--c-dark); font-family: var(--f-head); font-size: 20px; line-height: 28px; text-align: right; }

@media (min-width: 768px)
{
	.project-details { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; margin-bottom: 70px; border-bottom: 1px solid var(--c-line); }
	.project-details__item { display: block; padding: 28px 30px 30px; border-bottom: 0; }
	.project-details__item:first-child { padding-left: 0; }
	.project-details__item + .project-details__item { border-left: 1px solid var(--c-line); }
	.project-details__label { margin-bottom: 10px; }
	.project-details__value { font-size: 25px; line-height: 34px; text-align: left; }
}


.block { position: relative; }

.theme--dark { background: var(--c-dark); color: var(--c-muted); }
.theme--dark .heading, .theme--dark h2, .theme--dark h3, .theme--dark h4 { color: var(--c-white); }
.theme--dark .text-block, .theme--dark .text-block strong { color: var(--c-white); }
.cta-slider__content .text-block strong, .cta-slider__content .text-block a,
.quote-panel__text .text-block strong, .quote-panel__text .text-block a { color: var(--c-white); }
.theme--beige { background: var(--c-beige); }
.theme--red { background: var(--c-red); color: var(--c-white); }
.theme--red .heading, .theme--red h2, .theme--red .text-block, .theme--red .text-block strong { color: var(--c-white); }

/* Breadcrumb */
.breadcrumb ol
{
	display: flex;
	flex-wrap: wrap;
	gap: 0 13px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--f-ui);
	font-size: 15px;
	font-weight: 400;
	line-height: 26px;
	text-transform: capitalize;
}

.breadcrumb li { color: var(--c-dark); }
/* light slash between the items (hidden from screen readers: the list already separates them) */
.breadcrumb li + li::before { content: "/"; content: "/" / ""; margin-right: 13px; color: rgba(17, 17, 17, .35); }
.breadcrumb [aria-current] { color: var(--c-dark); }
.breadcrumb a { color: var(--c-dark); }
.breadcrumb a:hover { opacity: .7; }

/* ==========================================================================
   Block: hero_home
   ========================================================================== */
.block--hero-home { padding: 0 34px 34px; }

.hero-home
{
	display: grid;
	grid-template-columns: 50.73fr 49.27fr;
	grid-template-rows: auto 1fr;
	max-width: 1850px;
	margin: 0 auto;
}

.hero-home__slider { position: relative; overflow: hidden; }
/* at least 880px; grows with the text column (e.g. when a button is added) so both end on one line */
.hero-home__slider--main { grid-row: 1 / span 2; min-height: 880px; margin-left: 15px; }

.hero-home__sides,
.hero-home__content { margin: 0 6px 0 15px; } /* 15px from the big slider – same as the gap between the two small ones */

.hero-home__sides
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.hero-home__sides .hero-home__slider { height: 540px; }

.hero-home .swiper,
.hero-home .swiper-wrapper,
.hero-home .swiper-slide { height: 100%; }

.hero-home .swiper-slide img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* fade sliders (home hero, showcase, image band): until Swiper starts only the first slide is laid out, so the browser
   does not lazy-load the photos of the slides lying beside it (they load on demand: scripts.js lazySlides) */
.js-hero-main:not(.swiper-initialized) .swiper-slide:not(:first-child),
.js-hero-side:not(.swiper-initialized) .swiper-slide:not(:first-child),
.js-fade-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }

.hero-home__content { padding: 30px 0 0 60px; }
.hero-home__text { padding-right: 60px; }
.hero-home__title { margin-bottom: 20px; color: var(--c-white); font-size: 40px; line-height: 60px; }
.hero-home__text { color: var(--c-white); }

/* autoplay progress: 5px bar along the bottom edge of the big photo */
.hero-progress { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; height: 5px; pointer-events: none; }
.hero-progress__bar { display: block; width: 100%; height: 100%; background: #000; opacity: .5; transform: scaleX(0); transform-origin: 0 50%; }
.hero-home__buttons { margin-top: 40px; }
/* a section that receives focus from a scroll button is not itself interactive */
.block[tabindex="-1"]:focus { outline: 0; }

/* pager: arrow – dots – arrow, same 32px line as the play button */
.hero-pager { position: absolute; bottom: 20px; left: 50%; z-index: 3; display: flex; align-items: center; height: 32px; transform: translateX(-50%); }
.hero-home .swiper .hero-pager .swiper-pagination, .showcase .swiper .hero-pager .swiper-pagination, .image-cards .swiper .hero-pager .swiper-pagination { position: static; display: flex; align-items: center; width: auto; height: 32px; margin: 0 4px; transform: none; }
.hero-pager__arrow { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--c-white); cursor: pointer; opacity: .8; transition: opacity .25s var(--ease); }
.hero-pager__arrow .icon { width: 8px; height: 14px; filter: drop-shadow(0 0 2px rgba(17, 17, 17, .45)); transition: transform .4s var(--ease); }
.hero-pager__arrow--prev .icon { transform: scaleX(-1); }
.hero-pager__arrow:hover, .hero-pager__arrow:focus-visible { opacity: 1; }
.hero-pager__arrow--prev:hover .icon { transform: scaleX(-1) translateX(3px); }
.hero-pager__arrow--next:hover .icon { transform: translateX(3px); }

/* pause / play for auto-playing sliders (WCAG 2.2.2) */
.slider-toggle
{
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 17, 17, .55);
	color: var(--c-white);
	cursor: pointer;
	opacity: .75;
	transition: opacity .25s var(--ease);
}

.slider-toggle:hover, .slider-toggle:focus-visible { opacity: 1; }
.slider-toggle .icon { width: 12px; height: 12px; }
.slider-toggle .icon--play { display: none; }
.slider-toggle[aria-pressed="true"] .icon--pause { display: none; }
.slider-toggle[aria-pressed="true"] .icon--play { display: block; }
.swiper .swiper-pagination-bullet { width: 7.2px; height: 7.2px; margin: 0 6px !important; background: var(--c-white); opacity: .5; box-shadow: 0 0 0 1px rgba(17, 17, 17, .35); }
:root { --swiper-theme-color: #111111; --swiper-pagination-color: #111111; }
.swiper .swiper-pagination-bullet-active { background: var(--c-dark); opacity: 1; }
.hero-home .swiper .swiper-pagination-bullet, .showcase .swiper .swiper-pagination-bullet, .image-cards .swiper .swiper-pagination-bullet { width: 10px; height: 10px; box-shadow: none; }

/* ==========================================================================
   Block: page_intro
   ========================================================================== */
.page-intro__title { margin: 0; }

.page-intro--split
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px 60px;
}

.page-intro__subtitle { font-size: 30px; line-height: 40px; }

/* page: breadcrumb, 70/80 title, then lead (left) and text (right) */
.page-intro-wrap--page { max-width: 1320px; margin: 0 auto; padding: 0 15px; }
.page-intro-wrap--page .breadcrumb { margin-bottom: 25px; }
.page-intro-wrap--page .page-intro__title { margin-bottom: 35px; font-size: 70px; line-height: 80px; }
.page-intro__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.page-intro__lead-text { margin: 0; color: var(--c-dark); font-family: var(--f-ui); font-size: 25px; font-weight: 400; line-height: 40px; }
.page-intro__text { line-height: 32px; }
.page-intro__text--full { color: var(--c-dark); }
.block--page-intro:has(.page-intro-wrap--page) { margin-bottom: 89px; padding-top: 75px; } /* on the section: block settings can change it per page */

/* project (new projects): breadcrumb + 40px title in a 1300px container */
.page-intro-wrap--project { max-width: 1300px; margin: 0 auto; padding: 50px 10px 20px; }
.page-intro-wrap--project .breadcrumb { margin-bottom: 20px; }
.page-intro-wrap--project .page-intro__title { margin-bottom: 15px; }

/* project_old: large 70/80 title in a 1630px container */
.page-intro-wrap--project_old { max-width: 1630px; margin: 0 auto; padding: 96px 15px 50px; }

/* centered: title + text (Kontakt, Proces, FAQ) */
.page-intro-wrap--centered { max-width: 1120px; margin: 0 auto; padding: 0 15px; text-align: center; }
.page-intro-wrap--centered .page-intro--split { display: block; }
.page-intro-wrap--centered .page-intro__title { margin-bottom: 30px; }
.page-intro-wrap--centered .text-block { margin-top: 0; }
/* spacing sits on the section, so "Odstępy" in the block settings can change it per page */
.block--page-intro:has(.page-intro-wrap--centered) { margin-bottom: 55px; padding-top: 65px; }

/* knowledge entries: breadcrumb + 40px title in 1300px */
.page-intro-wrap--knowledge { max-width: 1300px; margin: 0 auto; padding: 75px 0 20px; }
.page-intro-wrap--knowledge .breadcrumb { margin: 0 0 25px 5px; }
.page-intro-wrap--project_old .page-intro__title { margin-bottom: 30px; font-size: 70px; line-height: 80px; }

/* ==========================================================================
   Block: media_text
   ========================================================================== */
.block--media-text { padding: 100px 0; }

.media-text
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
}

/* boxed: Elementor columns with 15px padding on every side */
.container-el .media-text > * { padding: 15px; }

.media-text--image-right .media-text__media { order: 2; }

.media-text__media { position: relative; }
.media-text__image img { display: block; width: 100%; height: auto; }
/* both photos in one grid cell, each layer with its own sideways parallax (opposite directions) */
/* both photos in one grid cell (same place, same parallax); the class is toggled by scripts.js initImageSwap */
.media-text__image--swap { display: grid; align-items: end; }
.media-text__swap-layer { grid-area: 1 / 1; }
/* opacity / position are set by scripts.js initImageSwap from the scroll position; without JS only the first photo shows */
.media-text__swap-layer img { will-change: opacity, transform; }
.media-text__swap-layer--b img { opacity: 0; }

.media-text__content .heading { margin-bottom: var(--head-gap); }
.media-text__content .text-block { max-width: var(--text-width, none); }

/* wide (full width section, 30px column padding) – home "oferta" */
.media-text-wide { max-width: 1930px; margin: 0 auto; padding: 0 35px; }

/* article: text and photo 50/50 (knowledge entries) */
.media-text-article { max-width: 1300px; margin: 0 auto; }
.media-text-article .media-text { gap: 20px; }
.media-text-article .media-text__content .text-block { color: var(--c-dark); line-height: 32px; }
.block--media-text:has(.media-text-article) { margin-bottom: 70px; padding: 10px 0; }

/* text blocks of knowledge entries */
.text-article-wrap { max-width: 1300px; margin: 0 auto; }

/* 1300px boxes (no side padding in the old theme): below ~1400px the text keeps at least --edge from the screen edge */
.text-split--columns,
.page-intro-wrap--knowledge,
.media-text-article,
.text-article-wrap,
.gallery-wrap:not(.gallery-wrap--carousel2)
{
	padding-left: max(0px, min(var(--edge), calc(var(--edge) - (100vw - 1300px) / 2)));
	padding-right: max(0px, min(var(--edge), calc(var(--edge) - (100vw - 1300px) / 2)));
}
.block--text:has(.text-article-wrap) { margin-bottom: 70px; padding: 10px 0; }
.text-section--article .text-block { color: var(--c-dark); line-height: 32px; }

/* FAQ list printed by Rank Math (FAQPage schema) */
.rank-math-list-item { margin-bottom: 30px; }
.rank-math-list-item:last-child { margin-bottom: 0; }
.rank-math-question { margin: 0 0 15px; color: var(--c-dark); font-family: var(--f-head); font-size: 30px; font-weight: 400; line-height: 35px; }
.rank-math-answer p { margin: 0; }
.rank-math-list-item img { display: none !important; }
.text-section--note .text-block { color: var(--c-dark); line-height: 32px; }
.text-section--note .text-block p { margin: 0; }
.text-section--note .text-block a { color: var(--c-dark); font-size: 15px; line-height: 25px; text-decoration: none; }
.text-section--note .text-block a:hover { opacity: .7; }
.single-wiedza .cta { max-width: 1320px; }
.block--text + .block--cta { margin-top: 0; }
.single-wiedza .page-content, .single-portfolio .page-content { padding-bottom: 110px; }
.page-plain__content { padding: 0 15px 110px; }
.media-text-wide .media-text > * { padding: 0 30px; }
.block--media-text:has(.media-text-wide) { padding: 120px 0 88px; }

/* Two images side by side (collage) – the taller image sets the height, text is centred */
.media-text--two-images { align-items: center; }
.media-text--two-images .media-text__collage { display: flex; align-items: center; }
.media-text--two-images .media-text__image--1 { position: relative; z-index: 1; flex: 0 0 42.8%; }
.media-text--two-images .media-text__image--2 { flex: 1 1 auto; margin-left: 1.5%; }
/* the old theme capped the collage photos at 621 / 731px height (portrait photos would grow far taller) */
.media-text--two-images .media-text__image--1 img { width: auto; max-width: 100%; max-height: 621px; }
.media-text--two-images .media-text__image--2 img { width: auto; max-width: 100%; max-height: 731px; }

.link-list
{
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.link-list a
{
	display: inline-flex;
	align-items: center;
	color: var(--c-dark);
	font-family: var(--f-body);
	font-size: 18px;
	font-weight: 500;
	line-height: 40px;
}

.link-list a:hover { opacity: .7; }

/* Spacing between widgets, as on the original */
.media-text__content .text-block + .buttons { margin-top: 40px; }
.media-text__content .link-list + .buttons { margin-top: 30px; }
.media-text__content .accordion + .buttons { margin-top: 50px; }
.media-text__content .text-block + .accordion { margin-top: 13px; }

/* Cut-out portrait on the big logo ("Poznajmy się") */
.block--media-text:has(.media-text--decor) { padding: 0; overflow: hidden; }

.decor-logo
{
	position: absolute;
	inset: 0;
	background: url(assets/img/bg-logo.png) center / auto no-repeat fixed;
	pointer-events: none;
}

.media-text--cutout { position: relative; }
.container-el .media-text--cutout > * { padding: 0; }
.media-text--cutout .media-text__media { padding-top: 100px; }
.media-text--cutout .media-text__content { align-self: center; padding-top: 190px; }
.media-text--cutout .text-block { color: var(--c-dark); }

/* ==========================================================================
   Accordion – framed variant (FAQ page): Tenor titles, arrow, decorative frame
   ========================================================================== */
/* frame: full-width lines top and bottom, vertical lines 24px inside that run past the corners (left from the top, right from the bottom) */
.accordion-framed-wrap { position: relative; max-width: 1138px; margin: 0 auto; }
.accordion-framed-wrap::before,
.accordion-framed-wrap::after { content: ''; position: absolute; right: 0; left: 0; height: 1px; background: rgba(17, 17, 17, .1); }
.accordion-framed-wrap::before { top: 0; transform-origin: 0 50%; }
.accordion-framed-wrap::after { bottom: 0; transform-origin: 100% 50%; }
.accordion-section--framed { position: relative; padding: 23px 80px; }
.accordion-section--framed::before,
.accordion-section--framed::after { content: ''; position: absolute; width: 1px; height: calc(50% + 19px); background: rgba(17, 17, 17, .1); }
.accordion-section--framed::before { top: -23px; left: 24px; transform-origin: 50% 0; }
.accordion-section--framed::after { right: 24px; bottom: -25px; transform-origin: 50% 100%; }
.accordion-section--framed .accordion { margin: 0; }

/* the lines draw in when the frame scrolls into view (same timing as the old theme: 2.5s) */
.js .js-draw.accordion-framed-wrap::before,
.js .js-draw.accordion-framed-wrap::after { transform: scaleX(0); transition: transform 2.5s cubic-bezier(.77, 0, .175, 1); }
.js .js-draw .accordion-section--framed::before,
.js .js-draw .accordion-section--framed::after { transform: scaleY(0); transition: transform 2.5s cubic-bezier(.77, 0, .175, 1); }
.js .js-draw.is-drawn.accordion-framed-wrap::before,
.js .js-draw.is-drawn.accordion-framed-wrap::after { transform: scaleX(1); }
.js .js-draw.is-drawn .accordion-section--framed::before,
.js .js-draw.is-drawn .accordion-section--framed::after { transform: scaleY(1); }
.accordion--arrow .accordion__item:last-child { border-bottom: 0; }
.accordion--arrow .accordion__title { padding: 0 15px 0 0; font-family: var(--f-head); font-size: 22px; font-weight: 500; line-height: 69px; }
.accordion--arrow .accordion__title .icon--acc-arrow { position: absolute; top: 50%; right: 0; width: 14px; height: 14px; margin-top: -7px; transform: rotate(270deg); transition: transform .3s linear; }
.accordion--arrow .accordion__item[open] .icon--acc-arrow { transform: rotate(90deg); }
.accordion--arrow .accordion__inner { padding: 21px 0 25px; }
.block--accordion:has(.accordion-section--framed) { padding: 0 0 85px; }
/* Cennik: FAQ right after the price panels gets normal section spacing (heading 100px under the panel) */
.block--media-text:has(.media-text--panel) + .block--accordion:has(.accordion-section--framed) { padding-top: 85px; }

/* ==========================================================================
   Accordion
   ========================================================================== */
.accordion { margin-top: 20px; }

.accordion__item { border-bottom: 1px solid var(--c-line); }

.accordion__title
{
	position: relative;
	display: block;
	padding: 0 30px 0 0;
	color: var(--c-dark);
	font-family: var(--f-body);
	font-size: 18px;
	font-weight: 500;
	line-height: 70px;
	list-style: none;
	cursor: pointer;
}

.accordion__title::-webkit-details-marker { display: none; }

.accordion__title .icon--plus
{
	position: absolute;
	top: 50%;
	right: 0;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
}

.accordion__title .icon--plus::before,
.accordion__title .icon--plus::after
{
	content: '';
	position: absolute;
	top: 10px;
	left: 5px;
	width: 12px;
	height: 2px;
	background: currentColor;
	transition: transform .3s var(--ease);
}

.accordion__title .icon--plus::after { transform: rotate(90deg); }
.accordion__item[open] .icon--plus::after { transform: rotate(0deg); }

/* the answer sits right under the question; its box slides open/closed (scripts.js), padding lives on the inner wrapper */
/* the answer opens downwards under the question (height animated in scripts.js); padding lives on the inner wrapper */
.accordion__content { overflow: hidden; }
.accordion__inner { padding: 0 0 31px; }
.accordion__inner.text-block { font-size: 15px; line-height: 25px; }
.accordion__inner .link-more { color: var(--c-dark); font-family: var(--f-ui); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.accordion__inner .link-more:hover { text-decoration-color: transparent; }
.accordion__item.is-closing .icon--plus::after { transform: rotate(90deg); }
.accordion--arrow .accordion__item.is-closing .icon--acc-arrow { transform: rotate(270deg); }

.theme--dark .accordion__item { border-color: var(--c-line-light); }
.theme--dark .accordion__title { color: var(--c-white); }

/* ==========================================================================
   Block: contact (dark: data + photo + form)
   ========================================================================== */
.block--contact { margin-bottom: 40px; padding: 50px 0 25px; }
.contact-block { max-width: 1120px; margin: 0 auto; padding: 0 15px; }
.contact-block__title { margin: 15px 0 40px; text-align: center; }
.contact-block__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 10px; }
.contact-block__info .text-block { color: var(--c-white); }
.contact-block__image img { display: block; width: 100%; height: auto; }

/* contact page form: tighter rows than in the popups (116px vs 126px, measured on the old theme) */
.contact-block__info a { color: inherit; }
.contact-block .wrap-ctf-page .row > div { margin-bottom: 20px; }
/* no contact data / photo: the form alone on the whole width of the block */
.contact-block--form-only .contact-block__grid { grid-template-columns: minmax(0, 1fr); }
/* same space under the button as above the heading (65px) */
.block--contact:has(.contact-block--form-only) { padding-bottom: 65px; }
.wrap-ctf-page .field-hint { margin: 12px 0 0; color: var(--c-muted); font-size: 14px; line-height: 22px; }
/* consent: checkbox + text in the light grey of the form, link white and underlined */
.wrap-ctf-page .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wrap-ctf-page .wpcf7-acceptance label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--c-muted); font-size: 14px; line-height: 22px; cursor: pointer; }
.wrap-ctf-page .wpcf7-acceptance input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-white); cursor: pointer; }
.wrap-ctf-page .wpcf7-acceptance a { color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }
.wrap-ctf-page .wpcf7-acceptance a:hover { text-decoration-thickness: 2px; }
.contact-block .wrap-ctf-page .row > div:has(textarea) { margin-bottom: 27px; }

/* ==========================================================================
   Block: process (numbered steps)
   ========================================================================== */
.block--process { margin-bottom: 0; padding: 15px 0; }
.process { max-width: 1290px; margin: 0 auto; padding: 0; list-style: none; }
/* step: line + number on the left (30px), photo at 137px, text 46 + 39px after the photo; grey line under every step but the last */
.process__step { position: relative; display: flex; align-items: center; margin-left: 30px; padding: 50px 50px 50px 107px; border-bottom: 1px solid #d3d5d6; }
.process__step:last-child { border-bottom-color: transparent; }
.process__step::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #e1e1e1; }
.process__number { position: absolute; top: 50%; left: -30px; z-index: 1; width: 61px; height: 61px; margin-top: -30.5px; border-radius: 50%; color: var(--c-white); font-family: var(--f-ui); font-size: 20px; font-weight: 500; line-height: 61px; text-align: center; }
.process__number::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #121c27; transition: inset .45s cubic-bezier(.645, .045, .355, 1); }
.process__step:hover .process__number::before { inset: -13px; }
.process__image { flex: none; width: 300px; height: 300px; margin-right: 46px; overflow: hidden; border-radius: 50%; }
.process__image img { width: 100%; height: 100%; object-fit: cover; }
.process__content { flex: 1; min-width: 0; padding-left: 39px; }
.process__title { margin: 0 0 var(--head-gap); font-size: 40px; line-height: 60px; }
.process__text { line-height: 32px; }
/* bullets drawn like the old theme: dot flush with the text column, text 24px in; nested lists 20px in with rings and 10px above/below */
.process__text ul { margin: 24px 0 0; padding: 0; color: var(--c-dark); list-style: none; }
.process__text ul ul { margin: 10px 0 16px; padding-left: 20px; }
.process__text li { position: relative; margin: 0; padding-left: 24px; }
.process__text li + li { margin-top: 6px; }
.process__text li::before { content: ''; position: absolute; top: 13px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.process__text li li::before { width: 7px; height: 7px; border: 1px solid currentColor; background: none; }

/* ==========================================================================
   Block: cta_slider (photo slider + dark panel)
   ========================================================================== */
.block--cta-slider { margin: 120px 0 90px; padding: 0 50px; }
.cta-slider { display: grid; grid-template-columns: 56.7% 1fr; max-width: 1820px; margin: 0 auto; }
.cta-slider__media { position: relative; min-width: 0; }
.cta-slider__media .swiper-slide img { display: block; width: 100%; height: 584px; object-fit: cover; }
.cta-slider__content { display: flex; flex-direction: column; justify-content: center; padding: 60px 15px 60px 111px; background: var(--c-dark); }
.cta-slider__title { margin: 0 0 var(--head-gap); color: var(--c-white); font-size: 40px; line-height: 60px; }
.cta-slider__content .text-block { max-width: 510px; color: #c2c2c2; }
.cta-slider__content .buttons { margin-top: 40px; }

/* ==========================================================================
   media_text "portrait": photo on the full height of a dark section, text on the right (O mnie)
   ========================================================================== */
.block--media-text:has(.media-text--portrait) { padding: 60px 0 0; }
.container-el .media-text--portrait > * { padding: 0; }
.media-text--portrait { align-items: stretch; }
.media-text--portrait .media-text__image img { height: 657px; object-fit: contain; object-position: center bottom; }
.media-text--portrait .media-text__media { background: url(assets/img/home1-team-2.webp) left center / auto no-repeat; }
.media-text--portrait .media-text__content { align-self: center; padding-right: max(0px, min(var(--edge), calc(var(--edge) - (100vw - 1320px) / 2))); padding-left: 80px; }
.media-text--portrait .heading { margin-bottom: 46px; font-size: 35px; line-height: 41px; }
.media-text--portrait .text-block { max-width: 555px; line-height: 32px; }

/* ==========================================================================
   Block: quote_panel (dark text column, photo strip, beige quote)
   ========================================================================== */
.block--quote-panel { padding: 0 50px; }
.quote-panel { display: grid; grid-template-columns: 60% 14% 26%; max-width: 1820px; min-height: 658px; margin: 0 auto; }
.quote-panel__text { display: flex; flex-direction: column; justify-content: center; padding: 40px 19px 40px 17.92vw; background: url(assets/img/ab-02.webp) left center / auto no-repeat var(--c-dark); }
.quote-panel__title { margin: 0 0 var(--head-gap); color: var(--c-white); }
.quote-panel__body { max-width: 630px; color: #c2c2c2; line-height: 30px; }
.quote-panel .buttons { margin-top: 0; }
.quote-panel__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.quote-panel__quote { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 70px 59px 80px; background: var(--c-beige); }
.quote-panel__quote blockquote { margin: 0; color: var(--c-dark); font-family: var(--f-head); font-size: 22px; line-height: 35px; }
.quote-panel__quote blockquote p { margin: 0; }
.quote-panel__quote figcaption { color: var(--c-dark); font-family: var(--f-head); font-size: 17px; line-height: 35px; }

/* ==========================================================================
   Block: image_columns
   ========================================================================== */
.block--image-columns { padding: 80px 0 60px; }
.block--image-columns:has(.image-columns)::before { content: ''; position: absolute; inset: 0; background: url(assets/img/home-2-s101.png) center / auto no-repeat; opacity: .1; pointer-events: none; }
.block--image-columns:has(.image-columns) > * { position: relative; }
.image-columns { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); margin: 0; padding: 0; list-style: none; }
.image-columns--2 { --cols: 2; }
.image-columns--4 { --cols: 4; }
.image-columns__item { padding: 15px; }
.image-columns__image img { display: block; width: 100%; max-width: 367px; height: auto; }
/* 4 columns: photos of mixed formats in one row get the same portrait crop, so the texts below start on one line */
.image-columns--4 .image-columns__image img { aspect-ratio: 3 / 4; object-fit: cover; }
.image-columns__text { margin-top: 40px; line-height: 31px; }
/* heading + lead above the columns / cards, left-aligned with the grid */
.image-columns__head { max-width: 860px; margin: 0 15px 40px; text-align: left; }
.image-columns__lead { margin-top: 20px; }
/* style "cards": 2 × 2 grid, 16:9 photos, slider (arrows + dots) without autoplay */
.image-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 30px; margin: 0; padding: 0 15px; list-style: none; }
.image-cards__item { min-width: 0; } /* a grid item must be allowed to shrink, or the Swiper inside grows to the width of all slides */
.image-cards__media { position: relative; overflow: hidden; }
.image-cards__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.image-cards__text { margin-top: 30px; line-height: 31px; }

/* ==========================================================================
   Block: pricing_tabs
   ========================================================================== */
.block--pricing-tabs { margin-bottom: 50px; padding-top: 7px; }
.pricing-tabs { max-width: 1290px; margin: 0 auto; }
@media (max-width: 1400px) { .pricing-tabs { max-width: none; padding: 0 max(0px, min(var(--edge), calc(var(--edge) - (100vw - 1290px) / 2))); } }
.pricing-tabs__list { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; }
.pricing-tabs__tab { display: inline-flex; align-items: center; gap: 8px; padding: 14px 35px 12px; border: 1px solid rgba(17, 17, 17, .15); background: none; color: var(--c-dark); font-family: var(--f-ui); font-size: 15px; font-weight: 500; line-height: 25px; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.pricing-tabs__tab:hover { border-color: var(--c-dark); }
.pricing-tabs__tab[aria-selected="true"] { border-color: #121c27; background: var(--c-dark); color: var(--c-white); }
.pricing-tabs__tab .icon { width: 14px; height: 14px; }
.pricing-tabs__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 54px 75px 69px; background: var(--c-beige); }
.pricing-tabs__panel[hidden] { display: none; }
.pricing-tabs__head { display: flex; align-items: center; gap: 21px; margin-top: 17px; }
.pricing-tabs__icon { display: flex; align-items: center; justify-content: center; flex: none; width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; background: var(--c-dark); color: var(--c-white); }
.pricing-tabs__icon .icon { width: 20px; height: 20px; }
.pricing-tabs__title { margin: 0; color: var(--c-dark); font-family: var(--f-ui); font-size: 30px; font-weight: 400; line-height: 36px; }
.pricing-tabs__text { max-width: 345px; margin-top: 7px; font-size: 15px; line-height: 26px; }
.pricing-tabs__divider { max-width: 408px; margin: 30px 0 12px; background: rgba(17, 17, 17, .15); }
.pricing-tabs__price { margin: 0 0 25px; color: var(--c-dark); font-family: var(--f-head); font-size: 56px; font-weight: 300; line-height: 67px; }
.pricing-tabs__note { max-width: 345px; margin: 0; color: var(--c-dark); font-family: var(--f-head); font-size: 17px; line-height: 30px; }
.pricing-tabs__side { padding-top: 13px; }
.pricing-tabs__label { margin: 0 0 36px; font-size: 15px; line-height: 26px; }
.pricing-tabs__group { border-bottom: 1px solid rgba(17, 17, 17, .15); }
.pricing-tabs__group + .pricing-tabs__group { margin-top: 20px; }
.pricing-tabs__group-title { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 0 15px; color: var(--c-dark); font-family: var(--f-head); font-size: 17px; font-weight: 500; line-height: 27px; list-style: none; cursor: pointer; }
.pricing-tabs__group-title::-webkit-details-marker { display: none; }
.pricing-tabs__toggle { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c-dark); }
.pricing-tabs__toggle::before, .pricing-tabs__toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 1.5px; margin: -.75px 0 0 -4px; background: var(--c-white); transition: transform .3s var(--ease); }
.pricing-tabs__toggle::after { transform: rotate(90deg); }
.pricing-tabs__group[open] .pricing-tabs__toggle::after { transform: rotate(0deg); }
.pricing-tabs__items { margin: 0; padding: 25px 0 20px; list-style: none; }
.pricing-tabs__items li { position: relative; padding-left: 15px; color: var(--c-text); font-size: 15px; line-height: 25px; }
.pricing-tabs__items li + li { margin-top: 8px; }
.pricing-tabs__items li::before { content: '›'; position: absolute; left: 0; color: var(--c-dark); }

/* media_text "panel": photo covering one half, beige panel with a centered text (Cennik) */
.block--media-text:has(.media-text--panel) { padding: 0 50px; }
.block--media-text:has(.media-text--panel) .container-el { max-width: 1820px; }
.media-text--panel { align-items: stretch; border-top: 1px solid rgba(17, 17, 17, .15); background: var(--c-beige); }
.container-el .media-text--panel > * { padding: 0; }
/* the photo fills its half; the text decides the height of the panel */
.media-text--panel .media-text__media { position: relative; min-height: 500px; }
.media-text--panel .media-text__image { position: absolute; inset: 0; }
.media-text--panel .media-text__image img { height: 100%; object-fit: cover; }
.media-text--panel .media-text__content { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 100px; text-align: center; }
.media-text--panel .eyebrow { margin: 0; color: var(--c-dark); font-family: var(--f-head); font-size: 25px; line-height: 60px; }
.media-text--panel .heading { margin: 0 0 19px; font-size: 40px; line-height: 1; }
.media-text--panel .text-block { max-width: 520px; line-height: 32px; }

/* ==========================================================================
   Block: showcase (photo slider + two small photos overlapping its corners)
   ========================================================================== */
.block--showcase { margin-bottom: 80px; padding-bottom: 15px; overflow-x: clip; }
.showcase { position: relative; max-width: 1290px; margin: 0 auto; }
.showcase__main img { display: block; width: 100%; aspect-ratio: 1290 / 726; object-fit: cover; }
.showcase__decor { position: absolute; z-index: 2; width: 400px; }
.showcase__decor img { display: block; width: 100%; height: auto; }
.showcase__decor--1 { top: var(--decor-top, -192px); left: -15px; }
.showcase__decor--2 { right: -69px; bottom: 65px; }
/* option "decor_sync": one small photo per slide, stacked in one grid cell and crossfaded with the slider (same 1s as the fade) */
.showcase__decor-stack { display: grid; }
.showcase__decor--2 .showcase__decor-stack { align-items: end; }
.showcase__decor-item { grid-area: 1 / 1; opacity: 0; transition: opacity 1s var(--ease); }
.showcase__decor-item.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .showcase__decor-item { transition: none; } }

/* ==========================================================================
   Gallery "strip": photos from the container's left edge to the screen's right edge, arrows on the left
   ========================================================================== */
.block--gallery:has(.gallery-wrap--strip) { margin-bottom: 0; padding: 0 0 80px; }
.gallery-wrap.gallery-wrap--strip { max-width: none; padding: 0; }
.gallery-strip { position: relative; margin-left: max(0px, calc((100vw - 1320px) / 2)); padding-left: 300px; }
.gallery-strip__nav { position: absolute; top: 50%; left: 183px; z-index: 2; display: flex; flex-direction: column; gap: 18px; transform: translateY(-50%); }
.gallery-strip__arrow { display: flex; align-items: center; justify-content: center; width: 67px; height: 67px; padding: 0; border: 0; background: var(--c-dark); color: var(--c-white); cursor: pointer; transition: opacity .3s var(--ease); }
.gallery-strip__arrow:hover { opacity: .8; }
.gallery-strip__arrow .icon { width: 18px; height: 16px; }
.gallery-strip__arrow--prev .icon { transform: scaleX(-1); }
.gallery-strip .swiper { overflow: hidden; }
.gallery-strip .swiper-slide { width: 930px; }
.gallery-strip .swiper-slide img { display: block; width: 100%; height: 523px; object-fit: cover; }

/* ==========================================================================
   Block: features (dark tiles with an icon; rows alternate tile / photo, or 4 columns)
   ========================================================================== */
.block--features { margin-bottom: 80px; padding: 80px 0; }
.features { max-width: 1320px; margin: 0 auto; }
.features__head { margin-bottom: 70px; padding: 0 15px; text-align: center; }
.features__title { margin: 0 0 var(--head-gap); }
.features__text { line-height: 32px; }
.features__list { margin: 0; padding: 0; list-style: none; }
.features__tile { display: flex; flex-direction: column; align-items: center; padding: 40px 30px; background: var(--c-dark); text-align: center; }
.features__icon { display: block; margin-bottom: 20px; color: var(--c-white); line-height: 0; }
.features__icon .icon { width: 40px; height: 40px; }
.features__item-title { margin: 0 0 16px; color: var(--c-white); font-family: var(--f-head); font-size: 25px; font-weight: 400; line-height: 36px; }
.features__item-text { margin: 0; color: var(--c-white); font-size: 17px; line-height: 32px; }
.features--rows .features__item { display: grid; grid-template-columns: 1fr 1fr; }
.features--rows .features__item--reverse .features__tile { order: 2; }
.features__image img { display: block; width: 100%; height: 100%; min-height: 371px; object-fit: cover; }
.features--columns .features__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.features--columns .features__item-title { margin-bottom: 15px; font-size: 18px; line-height: 26px; }

/* FAQ with a frame: heading and text above the frame */
.accordion-framed-head { max-width: 1320px; margin: 0 auto 20px; padding: 15px 15px 0; text-align: center; }
.accordion-framed-head .heading { margin-bottom: var(--head-gap); }
.accordion-framed-head .text-block { color: var(--c-dark); font-family: 'Roboto', var(--f-body); line-height: 32px; } /* core text widget of the old theme: Roboto */

/* ==========================================================================
   Block: shortcode (Google reviews)
   ========================================================================== */
.block--shortcode { padding: 80px 0; }
.shortcode-block__title { margin: 0 0 var(--head-gap); text-align: center; }
.shortcode-block--left .shortcode-block__title { margin-bottom: var(--head-gap); text-align: left; }
.shortcode-block__text { margin-bottom: 20px; }
.shortcode-block__buttons { margin-top: 45px; }

/* Trustindex reviews on a dark section (the widget itself is styled for white) */
.theme--dark .ti-widget.ti-goog .ti-widget-container,
.theme--dark .ti-widget.ti-goog .ti-name,
.theme--dark .ti-widget.ti-goog .ti-review-content,
.theme--dark .ti-widget.ti-goog .ti-rating-text,
.theme--dark .ti-widget.ti-goog .ti-rating-text strong,
.theme--dark .ti-widget.ti-goog .ti-rating-text span,
.theme--dark .ti-widget.ti-goog .ti-rating-text strong span,
.theme--dark .ti-widget.ti-goog .ti-footer,
.theme--dark .ti-widget.ti-goog .ti-footer strong,
.theme--dark .ti-widget.ti-goog .ti-footer span { color: var(--c-white) !important; }
.theme--dark .ti-widget.ti-goog .ti-date { color: var(--c-muted) !important; }
.theme--dark .ti-widget.ti-goog .ti-read-more span { color: var(--c-muted) !important; opacity: 1; }
.theme--dark .ti-widget.ti-goog .ti-read-more span:hover { color: var(--c-white) !important; }
.theme--dark .ti-widget.ti-goog .ti-controls .ti-prev,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-next { background-color: transparent; }
.theme--dark .ti-widget.ti-goog .ti-controls .ti-prev:before,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-next:before { border-color: var(--c-white); }
.theme--dark .ti-widget.ti-goog .ti-controls .ti-prev:hover,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-prev:focus,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-next:hover,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-next:focus { background-color: var(--c-white) !important; outline-color: var(--c-white) !important; }
.theme--dark .ti-widget.ti-goog .ti-controls .ti-prev:hover:before,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-prev:focus:before,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-next:hover:before,
.theme--dark .ti-widget.ti-goog .ti-controls .ti-next:focus:before { border-color: var(--c-dark) !important; }
.theme--dark .ti-widget.ti-goog .ti-controls-line { background: rgba(255, 255, 255, .25); }
.theme--dark .ti-widget.ti-goog .ti-controls-line .dot { background: var(--c-white); }
.theme--dark .ti-widget.ti-goog .ti-tooltip,
.theme--dark .ti-widget.ti-goog .ti-verified-tooltip { color: var(--c-dark) !important; background-color: var(--c-white) !important; --ti-border-arrow-color: var(--c-white); }

/* ==========================================================================
   Posts grid as a list section (Wiedza page): left heading, boxed cards of the old [get_wiedza]
   ========================================================================== */
.block--posts-grid:has(.posts-section--left) { padding: 10px 0 25px; }
.posts-section--left { max-width: 1330px; }
.posts-section--left .section-head { margin: 0; }
.posts-section--left .section-head .heading { margin: 0 0 var(--head-gap); font-size: 25px; line-height: 34px; }
.posts-section--left .section-intro { margin: 0 0 45px; color: var(--c-dark); line-height: 32px; }
.post-grid.post-grid--boxed { grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card--boxed { display: flex; flex-direction: column; height: 100%; padding: 20px; border: 1px solid #d3d5d6; }
.post-card--boxed .post-card__image { display: block; overflow: hidden; }
.post-card--boxed .post-card__image img { display: block; width: 100%; aspect-ratio: 371 / 209; object-fit: cover; }
.post-card--boxed .post-card__title { margin: 24px 0 20px; font-family: var(--f-ui); font-size: 25px; font-weight: 500; line-height: 35px; }
.post-card--boxed .post-card__title a { color: var(--c-dark); }
.post-card--boxed .post-card__excerpt { color: var(--c-dark); font-size: 15px; line-height: 25px; }
.post-card--boxed .post-card__more { margin-top: auto; padding-top: 35px; color: var(--c-dark); font-family: 'Roboto', var(--f-body); font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 25px; text-align: right; text-transform: none; }

/* ==========================================================================
   Block: projects_grid (all projects, two columns – the old [get_projekty])
   ========================================================================== */
.block--projects-grid { margin-bottom: 50px; }
.projects-grid-wrap { max-width: 1330px; margin: 0 auto; }
.projects-grid__title { margin: 0 15px 15px; }
.projects-grid { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.projects-grid__item { width: 50%; margin-bottom: 30px; padding: 0 15px; }
.projects-grid__link { display: block; overflow: hidden; color: var(--c-white); }
.projects-grid__item img { display: block; width: 100%; aspect-ratio: 635 / 357; object-fit: cover; transition: transform .6s var(--ease); }
.projects-grid__link:hover img { transform: scale(1.03); }
.projects-grid__desc { position: relative; padding: 15px 15px 17px; background: var(--c-dark); }
.projects-grid__name { margin: 0; padding-bottom: 10px; color: var(--c-white); font-family: var(--f-head); font-size: 18px; font-weight: 400; line-height: 24.5px; }
.projects-grid__more { color: var(--c-white); font-family: var(--f-head); font-size: 14px; line-height: 32px; }

/* ==========================================================================
   Block: projects_carousel
   ========================================================================== */
.block--projects-carousel { padding: 76px 0 75px; overflow: hidden; }

.split-head
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	margin-bottom: 57px;
}

.split-head .heading { margin: 0; }
.split-head__text { max-width: 588px; }
.block--projects-carousel .container-el { padding: 0; }
/* 1320px boxes whose columns have no padding: keep the text --edge away from the screen edge on narrower screens */
.block--projects-carousel .split-head,
.container-el .media-text--cutout .media-text__content
{
	padding-left: max(0px, min(var(--edge), calc(var(--edge) - (100vw - 1320px) / 2)));
	padding-right: max(0px, min(var(--edge), calc(var(--edge) - (100vw - 1320px) / 2)));
}

.projects-carousel { position: relative; max-width: 1350px; margin: 0 auto; }

/* side slides visible, slightly blurred and dimmed */
.projects-carousel .swiper-slide { opacity: .5; filter: blur(1.5px); transition: opacity .6s var(--ease), filter .6s var(--ease); }
.projects-carousel .swiper-slide-active { opacity: 1; filter: none; }
.projects-carousel .swiper { overflow: visible; }
.projects-carousel .swiper-slide { width: 100%; padding: 15px; }

.project-slide { position: relative; display: block; overflow: hidden; }
.project-slide__image { display: block; aspect-ratio: 1320 / 743; }
.project-slide__image img { width: 100%; height: 100%; object-fit: cover; }

.project-slide__title
{
	position: absolute;
	right: 30px;
	bottom: 30px;
	padding: 10px 20px;
	background: var(--c-dark);
	color: var(--c-white);
	font-family: var(--f-head);
	font-size: 22px;
	line-height: 32px;
	opacity: 0;
	transform: translateX(60px);
	transition: opacity .3s var(--ease), transform .3s var(--ease);
}

/* label slides in once the slide has arrived */
.swiper-slide-active .project-slide__title { opacity: 1; transform: none; transition: opacity .6s var(--ease) .6s, transform .8s cubic-bezier(.23, 1, .32, 1) .6s; }

/* short caption under the project name (type · place · size), ACF field "carousel_caption" */
.project-slide__caption { display: block; color: var(--c-muted); font-family: var(--f-body); font-size: 14px; line-height: 22px; letter-spacing: .02em; }

@media (max-width: 767px)
{
	.project-slide__caption { font-size: 12px; line-height: 18px; }
}


.carousel-nav
{
	display: flex;
	justify-content: center;
	margin-top: 35px;
}

.carousel-nav button
{
	display: flex;
	align-items: center;
	width: 78px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-white);
	cursor: pointer;
}

.carousel-nav button { justify-content: center; }
.carousel-nav__prev .icon { transform: rotate(180deg); }

.carousel-nav .icon { width: 26px; height: 28px; }
.carousel-nav button:hover { opacity: .7; }
.theme--light .carousel-nav button { color: var(--c-dark); }

.block--projects-carousel .buttons { margin-top: 58px; }
.block--projects-carousel .carousel-nav { margin-top: 35px; }

/* ==========================================================================
   Block: image_band
   ========================================================================== */
.image-band
{
	position: relative;
	height: var(--band-height, 805px);
	overflow: hidden;
}

.image-band__inner
{
	position: absolute;
	top: -100px;
	right: 0;
	bottom: -100px;
	left: 0;
	will-change: transform;
}

.image-band__inner img { width: 100%; height: 100%; object-fit: cover; }
/* not taller than the photo needs on narrower screens: 805px on wide screens, 62vw on tablets, at least 400px on phones */
.image-band { height: min(var(--band-height, 805px), max(400px, 62vw)); }

/* slider variant: Swiper's own .swiper rules must not undo the parallax layer box */
.image-band__inner.swiper { position: absolute; z-index: 0; margin: 0; overflow: hidden; }
.image-band--slider .swiper-slide { height: 100%; }
.image-band--slider .hero-pager .swiper-pagination { position: static; display: flex; align-items: center; width: auto; height: 32px; margin: 0 4px; transform: none; }
.image-band--slider .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 6px !important; background: var(--c-white); opacity: .5; }
.image-band--slider .swiper-pagination-bullet-active { background: var(--c-dark); opacity: 1; }

/* ==========================================================================
   Block: posts_grid & post cards
   ========================================================================== */
.block--posts-grid { padding: 15px 0 115px; }
.block--posts-grid .buttons { margin-top: 73px; }

.section-head { margin-bottom: 30px; }
.section-head--center { text-align: center; }
.section-intro { margin-bottom: 40px; }

.post-grid
{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 73px 30px;
}

.post-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__title
{
	margin: 28px 0 19px;
	color: var(--c-dark);
	font-family: var(--f-ui);
	font-size: 22px;
	font-weight: 500;
	line-height: 30px;
}

.post-card__title a
{
	background: linear-gradient(transparent calc(100% - 1px), var(--c-dark) 1px) no-repeat 0 0 / 0 100%;
	transition: background-size .4s var(--ease);
}

.post-card__title a:hover { background-size: 100% 100%; }
.post-card__excerpt { margin-bottom: 23px; }

/* ==========================================================================
   Blocks: text, accordion, cta, gallery, project section
   ========================================================================== */
.block--text,
.block--accordion,
.block--project-section { padding: 60px 0; }

.text-section--narrow { max-width: 900px; }
.text-section--align-center { text-align: center; }
.block--text .text-section > .heading { margin-bottom: var(--head-gap); }
.block--text.theme--dark { padding: 80px 0; }

/* cards with a thumbnail linking to subpages (under a text section) */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 400px)); justify-content: center; gap: 30px; margin: 50px 0 0; padding: 0; list-style: none; text-align: left; }
.link-cards__link { display: block; color: var(--c-dark); text-decoration: none; }
.theme--dark .link-cards__link { color: var(--c-white); }
.link-cards__image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(127, 127, 127, .15); }
.link-cards__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.link-cards__title { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0 0; font-family: var(--f-head); font-size: 22px; line-height: 30px; }
.link-cards__title .icon { flex: none; width: 37px; transition: transform .3s var(--ease); }
.link-cards__link:hover img { transform: scale(1.04); }
.link-cards__link:hover .icon { transform: translateX(6px); }
.block--text.theme--dark .text-block { line-height: 32px; }

.accordion-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }

.block--cta { margin: 20px 0; background: none; }
.block--cta + .block--cta { margin-top: 0; }

.cta
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1300px;
	margin: 0 auto;
}

.cta--image-left .cta__image { order: -1; }

.cta__content
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 20px;
	background: var(--c-dark);
	text-align: center;
}

.cta__title { margin: 0 0 var(--head-gap); color: var(--c-white); font-size: 30px; line-height: 40px; }
.cta__content .buttons { margin-top: 0; }
.cta__content .text-block { margin-bottom: 30px; color: var(--c-white); }

.cta--cover .cta__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cta__image { background: url(assets/img/home5-s1-grid-01.webp) 0 0 repeat, url(assets/img/home1-team-2.webp) center / auto no-repeat, var(--c-dark); }
.cta--contain .cta__image { display: flex; justify-content: center; padding-top: 30px; }
.cta--contain .cta__image img { display: block; width: 300px; height: 300px; object-fit: contain; }


.gallery-wrap { max-width: 1300px; margin: 0 auto; }
.gallery__title { margin: 0 0 15px; }
.gallery { display: grid; gap: 30px; margin-top: 20px; }
.gallery__row { display: grid; gap: 30px 20px; }
.gallery__row--2 { grid-template-columns: 1fr 1fr; }
.gallery__row--3 { grid-template-columns: repeat(3, 1fr); }
.gallery__row--4 { grid-template-columns: repeat(4, 1fr); }
.gallery__item img { display: block; width: 100%; height: auto; }
.gallery--grid { grid-template-columns: repeat(4, 1fr); }
.gallery--grid .gallery__row { display: contents; }
.gallery--grid .gallery__item img { aspect-ratio: 1; object-fit: cover; }

.block--gallery { padding: 10px 0 40px; margin-bottom: 50px; }

/* "Inspiracje" – two square images per view */
.block--gallery:has(.gallery-wrap--carousel2) { padding: 90px 0 15px; margin-bottom: 0; }
.gallery-wrap--carousel2 { max-width: 1320px; padding: 15px 15px 0; }
.gallery-wrap--carousel2 .gallery__title { margin-bottom: 65px; font-size: 70px; line-height: 80px; }
.gallery-pairs .swiper-slide img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Inspiracje: caption panel slides in from the left over the lower part of the photo (old theme: pxl-image-carousel3) */
.gallery-pairs__item { position: relative; margin: 0; overflow: hidden; }
.gallery-pairs__caption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; padding: 75px 45px 59px; background: var(--c-dark); transform: translateX(-102%); transition: transform .65s cubic-bezier(.19, 1, .22, 1); }
.gallery-pairs__title { margin: 0; padding-bottom: 19px; color: var(--c-white); font-family: var(--f-body); font-size: 25px; font-weight: 500; line-height: 32px; }
.gallery-pairs__text { max-width: 285px; margin: 5px 0 0; color: #c2c2c2; font-family: var(--f-ui); font-size: 17px; line-height: 26px; }
.gallery-pairs__title,
.gallery-pairs__text { opacity: 0; transform: translateX(30px); transition: transform 1s .4s cubic-bezier(.19, 1, .22, 1), opacity 1s .4s cubic-bezier(.19, 1, .22, 1); }
.gallery-pairs__item--caption:hover .gallery-pairs__caption,
.gallery-pairs__item--caption:focus-visible .gallery-pairs__caption { transform: none; }
.gallery-pairs__item--caption:hover .gallery-pairs__title,
.gallery-pairs__item--caption:hover .gallery-pairs__text,
.gallery-pairs__item--caption:focus-visible .gallery-pairs__title,
.gallery-pairs__item--caption:focus-visible .gallery-pairs__text { opacity: 1; transform: none; }
.gallery-pairs__item--caption:focus-visible { outline: 2px solid var(--c-dark); outline-offset: 3px; }

/* touch screens have no hover: the caption sits under the photo */
@media (hover: none)
{
	.gallery-pairs__caption { position: static; padding: 30px 25px; transform: none; }
	.gallery-pairs__title, .gallery-pairs__text { opacity: 1; transform: none; }
	.gallery-pairs__text { max-width: none; }
}

/* ==========================================================================
   Block: project_section (room with slider, old projects)
   ========================================================================== */
.block--project-section { padding: 127px 0 0; }

.project-room
{
	display: grid;
	grid-template-columns: 60.8% 1fr;
	align-items: start;
	max-width: 1820px;
	margin: 0 auto;
}

.project-room--slider-right { grid-template-columns: 38.6% 1fr; }
.project-room--slider-right .project-room__media { order: 2; }

.project-room__media { min-width: 0; }
.project-room .swiper-slide img { display: block; width: 100%; height: 574px; object-fit: cover; }
.project-room--cols-2 .swiper-slide img { height: 636px; }
.room-nav
{
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 67px;
	height: 67px;
	padding: 0;
	border: 0;
	background: var(--c-white);
	color: var(--c-dark);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .3s var(--ease);
}

.room-nav--prev { left: 50px; }
.room-nav--next { right: 50px; }
.room-nav--prev .icon { transform: scaleX(-1); }
.room-nav .icon { width: 18px; height: 18px; }
.room-nav.swiper-button-disabled { opacity: .5; cursor: default; }

.project-room__content { padding: 15px 15px 15px 106px; }
.project-room__area { margin: 0 0 -8px; color: var(--c-dark); font-family: var(--f-head); font-size: 60px; font-weight: 300; line-height: 100px; }
.project-room__area span { margin-left: 12px; font-size: 20px; }
.project-room__title { margin: 0 0 var(--head-gap); }
.project-room__content .text-block { max-width: 420px; line-height: 32px; }

.check-list { margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin-bottom: 7px; padding-left: 26px; color: var(--c-dark); font-size: 15px; line-height: 25px; }
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before { content: ''; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; background: currentColor; -webkit-mask: url(assets/img/icon-tick.svg) center / contain no-repeat; mask: url(assets/img/icon-tick.svg) center / contain no-repeat; }

/* ==========================================================================
   Post single / blog
   ========================================================================== */
.post-single__banner { position: relative; height: 325px; overflow: hidden; }
.post-single__banner-inner { position: absolute; top: -144px; right: 0; left: 0; height: 929px; will-change: transform; }
.post-single__banner img { width: 100%; height: 100%; object-fit: cover; }

.post-single__wrap { max-width: 1320px; margin: 0 auto; padding: 60px 0 0; }
.post-single__head { margin: 0 15px; padding-bottom: 60px; border-bottom: 1px solid var(--c-line); }
.post-single__title { max-width: 1000px; margin: 0; font-size: 50px; line-height: 60px; }

.post-single__grid
{
	display: grid;
	/* 880 + 440 at the full 1320px, shrinking 2:1 below that (fixed px widths pushed the sidebar off screen between 992 and 1320px) */
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	padding: 50px 0 100px;
}

.post-single__content { min-width: 0; padding: 0 44px 0 15px; }
.post-single__sidebar { position: relative; padding: 0 15px 0 13px; }

/* article text – Roboto like the old theme; colour #111 like all text on light backgrounds */
.entry-content { color: var(--c-dark); font-family: 'Roboto', var(--f-body); font-size: 15px; line-height: 25px; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 20px; }
.entry-content strong, .entry-content b { color: var(--c-dark); font-size: 16px; font-weight: 700; }
.entry-content :is(h1, h2, h3, h4, h5, h6) :is(strong, b) { color: inherit; font: inherit; }
.entry-content a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2 { margin: 0 0 20px; color: var(--c-dark); font-family: var(--f-head); font-size: 48px; font-weight: 400; line-height: 65px; }
.entry-content h3 { margin: 0 0 15px; color: var(--c-dark); font-family: var(--f-head); font-size: 30px; font-weight: 400; line-height: 40px; }
.entry-content h4 { margin: 0 0 15px; color: var(--c-dark); font-family: var(--f-head); font-size: 24px; font-weight: 400; line-height: 34px; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; font-size: 14.25px; line-height: 23.75px; }
.entry-content ul { padding-left: 0; list-style: none; }
.entry-content ul li { position: relative; padding-left: 20px; }
.entry-content ul li::before { content: ''; position: absolute; top: 9px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--c-dark); }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content figure, .entry-content .wp-caption { width: auto !important; max-width: 100%; margin: 0 0 20px; }
.entry-content figcaption, .entry-content .wp-caption-text { margin-top: 10px; font-size: 13.125px; font-style: italic; line-height: 21.875px; text-align: center; }
.entry-content hr { margin: 40px 0; background: var(--c-line); }
.entry-content #toc_container { margin-bottom: 40px; padding: 0 0 40px; border: 0; border-bottom: 1px solid var(--c-line); background: none; font-size: 14.25px; line-height: 23.75px; }
.entry-content #toc_container ul li { padding-left: 0; }
.entry-content #toc_container ul li::before { display: none; }

.post-faq { margin-top: 40px; }
.post-single__blocks { margin-top: 40px; }
.post-single__blocks .block--cta { margin: 0 0 30px; }
.post-single__blocks .cta { max-width: none; }
.post-single__blocks .cta__content { padding: 40px 20px; }

.author-box
{
	padding: 35px 56px 43px;
	background: var(--c-beige);
	text-align: center;
}

.author-box__image { width: 300px; max-width: 100%; margin: 0 auto 29px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.author-box__image img { width: 100%; height: 100%; object-fit: cover; }
.author-box__name { margin: 0 0 1px; color: var(--c-dark); font-family: var(--f-ui); font-size: 17px; line-height: 23px; }
.author-box__tagline { margin: 0; }
.author-box hr { margin: 28px 0 27px; }
.author-box__links { display: flex; justify-content: center; gap: 15px; margin: 0; padding: 22px 0; list-style: none; font-family: var(--f-ui); font-size: 15px; }
.author-box__links a { color: var(--c-dark); }

/* Blog list (archive cards) */
.blog-list__posts { display: grid; gap: 50px; align-content: start; }
.post-card--archive { padding: 27px; border: 1px solid rgba(17, 17, 17, .1); }
.post-card--archive .post-card__image { aspect-ratio: 767 / 364; }
.post-card--archive .post-card__body { padding: 39px 39px 13px; }
.post-card--archive .post-card__title { margin: 0 0 24px; font-size: 30px; line-height: 40px; }
.post-card--archive .post-card__excerpt { margin: 0; }
.post-card__footer { margin-top: 35px; padding-top: 33px; border-top: 1px solid rgba(17, 17, 17, .1); text-align: right; }
.post-card__more { color: var(--c-dark); font-family: var(--f-ui); font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.post-card__more:hover { opacity: .7; }
.blog-list .post-single__grid { padding-top: 0; }

.nav-links { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-family: var(--f-body); }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--c-line); }
.nav-links .page-numbers.current { background: var(--c-dark); color: var(--c-white); }
.nav-links .icon { width: 30px; }

.page-content--archive, .page-content--index { padding: 60px 0 100px; }
.page-title { margin: 20px 0 50px; }

.error-404 { padding: 120px 0 0; overflow: hidden; }
.error-404__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 60px; align-items: end; }
.error-404__content { padding-bottom: 120px; }
.error-404__text { max-width: 560px; margin: 0 0 40px; font-size: 17px; line-height: 30px; }
.error-404__text a { color: var(--c-dark); text-decoration: underline; text-underline-offset: 3px; }
.error-404__image img { display: block; width: 100%; height: auto; }
.error-404__grid--single { grid-template-columns: minmax(0, 1fr); text-align: center; }
.error-404__grid--single .error-404__text { margin-right: auto; margin-left: auto; }
.error-404__grid--single .buttons { justify-content: center; }

@media (max-width: 991px)
{
	.error-404 { padding-top: 80px; }
	.error-404__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
	.error-404__content { padding-bottom: 0; }
	.error-404__text { margin-right: auto; margin-left: auto; }
	.error-404 .buttons { justify-content: center; }
	.error-404__image { width: min(420px, 85%); margin: 0 auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.page-footer { background: var(--c-dark); color: var(--c-muted); }
.page-footer a { color: inherit; }
.page-footer a:hover { color: var(--c-white); }

.footer-cta
{
	padding: 107px 0 94px;
	border: 1px solid var(--c-line);
	text-align: center;
}

.footer-cta__title { margin: 0 0 15px; color: var(--c-white); font-size: 40px; line-height: 60px; }
.footer-cta__title + .footer-cta__divider { position: relative; margin-top: -29px; margin-bottom: 28px; }
.footer-cta__divider { width: 100vw; max-width: none; margin: 0 calc(50% - 50vw); background: var(--c-line-light); }
.footer-cta__text { max-width: 673px; margin: 0 auto 74px; color: var(--c-white); font-size: 17px; line-height: 30px; }
.footer-cta__text p:last-child { margin: 0; }

.footer-cta__boxes
{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 338px));
	justify-content: center;
	justify-items: center;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.icon-box
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 198px;
	height: 198px;
	border-radius: 50%;
	background: var(--c-line-light);
	color: var(--c-white);
	font-family: var(--f-head);
	font-size: 17px;
	line-height: 25px;
	text-align: center;
	transition: background-color .35s var(--ease), color .35s var(--ease);
}

.icon-box:hover,
.page-footer .icon-box:hover { background: var(--c-white); color: var(--c-dark); }
.footer-cta .icon-box { color: var(--c-white); }
.icon-box__icon { line-height: 0; }
.icon-box__icon .icon { width: 53px; height: 53px; }

.contact-list--lines { justify-content: center; gap: 0 56px; margin-top: 91px; color: var(--c-white); }
.contact-list--lines li + li { position: relative; }

.contact-list--lines li + li::before { content: ''; position: absolute; top: 50%; left: -36px; width: 15px; height: 1px; background: rgba(255, 255, 255, .16); }

.footer-main { padding: 85px 0 65px; }

.footer-main .container
{
	display: grid;
	grid-template-columns: minmax(0, 330px) minmax(0, 330px) minmax(0, 277px) 1fr; /* last column takes the rest: the map ends at the container's right edge */
	max-width: 1350px;
}

.footer-col { padding: 0 15px; }

.page-logo--footer { margin-bottom: 30px; }
.page-logo--footer .logo-svg { height: 65px; }
.footer-col--brand p { margin: 0 0 15px; line-height: 25px; }

.socials--plain { gap: 12px; margin-top: 22px; }
.socials--plain a { width: 50px; height: 50px; border: 1px solid var(--c-line-light); border-radius: 50%; color: var(--c-white); }
.socials--plain .icon { width: auto; height: 15px; }
.socials--plain a:hover { color: var(--c-white); opacity: .7; }

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 11px; }
.footer-links a { display: inline-flex; align-items: center; gap: 10px; line-height: 25px; }
.footer-links .icon { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.footer-links a:hover .icon { opacity: 1; transform: none; }

.map-embed { position: relative; max-width: 300px; height: 300px; background: #222; filter: saturate(0); }
.footer-col--map .map-embed { margin-left: auto; }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

.map-embed__load
{
	position: absolute;
	inset: 0;
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--c-white);
	font-family: var(--f-body);
	cursor: pointer;
}

.footer-bottom { padding: 29px 0 27px; border-top: 1px solid var(--c-line-light); color: var(--c-white); font-family: var(--f-head); line-height: 25px; }
.footer-bottom .container { max-width: 1350px; padding: 0 30px; } /* same box as the grid above (1350 + 15px container + 15px column): logo on the left, map on the right */
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; }
.footer-bottom p { margin: 0; }
.footer-legal a { color: var(--c-white); }

/* ==========================================================================
   Popups (contact forms)
   ========================================================================== */
/* The <dialog> covers the whole viewport and scrolls like a page; the dark box (.popup__inner) never gets its own scrollbar.
   A click on the transparent area around the box hits the <dialog> itself, so "click outside closes" keeps working. */
.popup
{
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 0;
	background: transparent;
	color: var(--c-white);
}

.popup[open] { display: flex; }
.popup::backdrop { background: rgba(255, 255, 255, .15); backdrop-filter: blur(2px); }
/* margin: auto centres the box; when it is taller than the window it starts at the top and the dialog scrolls */
.popup__inner { position: relative; width: min(1069px, 100%); margin: auto; padding: max(30px, 3.39vw) max(20px, 6.51vw); background: var(--c-dark); }
.popup__title { margin-bottom: 15px; color: var(--c-white); text-align: center; }

.popup__close
{
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	padding: 12px;
	border: 0;
	background: none;
	color: var(--c-white);
	cursor: pointer;
}

/* Contact Form 7 – markup of the existing forms */
.wrap-ctf-page .row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.wrap-ctf-page .row > div { width: 100%; margin-bottom: 30px; padding: 0 15px; }
.wrap-ctf-page .row > div:has(textarea) { margin-bottom: 38px; }

@media (min-width: 576px)
{
	.wrap-ctf-page .col-sm-6 { width: 50% !important; }
}

.wrap-ctf-page label.field { display: block; margin: 0; }
.wrap-ctf-page .field__label,
.wrap-ctf-page .field-caption { display: block; margin: 0 0 -10px; color: var(--c-white); font-size: 17px; }

/* boxed fields; the line is .2 in the old theme – .45 gives 3:1 against #111 (WCAG 1.4.11) */
.wrap-ctf-page { --field-line: rgba(245, 242, 229, .45); }

.wrap-ctf-page input[type="text"],
.wrap-ctf-page input[type="email"],
.wrap-ctf-page input[type="tel"],
.wrap-ctf-page input[type="url"],
.wrap-ctf-page textarea
{
	display: block;
	width: 100%;
	height: 52px;
	padding: 6px 25px;
	border: 1px solid var(--field-line);
	border-radius: 0;
	background: transparent;
	color: var(--c-white);
	font: inherit;
	font-size: 15px;
}

.wrap-ctf-page textarea { height: 200px; padding: 18px 25px; resize: vertical; }
.wrap-ctf-page input:focus, .wrap-ctf-page textarea:focus { outline: 0; border-color: var(--c-white); }

/* corner marks: every border runs 7px past the corner (8x8 L-pieces on .cm-divider and .ip-divider) */
.wrap-ctf-page .cm-divider { position: relative; display: block; margin-top: 26px; }
.wrap-ctf-page .cm-divider::before,
.wrap-ctf-page .cm-divider::after,
.wrap-ctf-page .ip-divider::before,
.wrap-ctf-page .ip-divider::after { content: ''; position: absolute; z-index: 1; width: 8px; height: 8px; border: 0 solid var(--field-line); pointer-events: none; transition: border-color .25s cubic-bezier(.645, .045, .355, 1); }
.wrap-ctf-page .cm-divider::before { top: -7px; left: -7px; border-width: 0 1px 1px 0; }
.wrap-ctf-page .cm-divider::after { right: -7px; bottom: -7px; border-width: 1px 0 0 1px; }
.wrap-ctf-page .ip-divider { position: absolute; inset: 0; pointer-events: none; }
.wrap-ctf-page .ip-divider::before { bottom: -7px; left: -7px; border-width: 1px 1px 0 0; }
.wrap-ctf-page .ip-divider::after { top: -7px; right: -7px; border-width: 0 0 1px 1px; }
.wrap-ctf-page .cm-divider:focus-within::before,
.wrap-ctf-page .cm-divider:focus-within::after,
.wrap-ctf-page .cm-divider:focus-within .ip-divider::before,
.wrap-ctf-page .cm-divider:focus-within .ip-divider::after { border-color: var(--c-white); }

/* file upload (Drag and Drop Multiple File Upload) – thin frame like the fields, no counter */
.wrap-ctf-page .codedropz-upload-handler { margin: 26px 0 10px; border: 1px solid var(--field-line); border-radius: 5px; }
.wrap-ctf-page .codedropz-upload-inner,
.wrap-ctf-page .codedropz-upload-inner span,
.wrap-ctf-page .cd-upload-btn { color: var(--c-white); font-size: 15px; }
.wrap-ctf-page .cd-upload-btn { text-decoration: underline; text-underline-offset: 3px; }
.wrap-ctf-page .dnd-upload-counter { display: none; }

.wrap-ctf-page .pxl-flex-center { display: flex; justify-content: center; margin-bottom: 0 !important; }

.wpcf7-btn-ct
{
	position: relative;
	min-height: 0;
	margin-top: 4px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--c-white);
	background: none;
	color: var(--c-white);
	font-family: var(--f-ui);
	font-size: 20px;
	line-height: 44px;
	cursor: pointer;
	transition: opacity .3s var(--ease);
}

.wpcf7-btn-ct:hover { opacity: .7; }
.wpcf7-btn-ct:focus-visible { outline: 2px solid var(--c-white); outline-offset: 4px; }

.wpcf7-not-valid-tip { margin-top: 6px; color: #ff8a8a; font-size: 13px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 15px; border-color: var(--c-line-light); color: var(--c-white); }
.wpcf7-spinner { margin: 0 0 0 15px; }

/* ==========================================================================
   Motion (reveal on scroll) – respects reduced motion
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce)
{
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.decor-logo { background-attachment: scroll; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1366px)
{
	/* heading and text columns of the projects slider must not touch */
	.split-head { column-gap: 40px; }
	.page-nav { padding-left: 60px; }
	.page-nav li { margin-right: 34px; }
	.page-nav li:not(:last-child)::after { right: -20px; }
	.header-cta { padding: 0 20px; }
}

@media (max-width: 1200px)
{
	:root { --edge: 30px; }
	.page-nav { padding-left: 30px; }
	.page-nav a { font-size: 13px; }
	.footer-main .container { grid-template-columns: 1fr 1fr; row-gap: 40px; }

	/* price panels: with 100px padding the text column got ~255px at 1024 and each panel over 1000px tall – photo above, text below */
	.media-text--panel { grid-template-columns: 1fr; }
	.media-text--panel.media-text--image-right .media-text__media { order: 0; }
	.media-text--panel .media-text__media { min-height: 0; aspect-ratio: 16 / 9; }
	.media-text--panel .media-text__content { padding: 60px 40px; }

	/* O mnie hero: the text is taller than the photo here – keep it off the top and bottom edge of the dark section */
	.media-text--portrait .media-text__content { padding-top: 40px; padding-bottom: 40px; }
}

/* the five menu items + the contact button only fit on one line from 1100px: below that the header uses the burger */
@media (max-width: 1099px)
{
	.header-top { display: none; }
	.header-main .container-wide { height: 80px; }
	.page-nav, .header-cta { display: none; }
	.menu-toggle { display: block; }
	.page-logo .logo-svg { height: 44px; }
}

@media (max-width: 991px)
{
	:root { --edge: 20px; }

	/* stacked portrait section: text right under the cut-out photo, photo not wider than 600px */
	.media-text--cutout .media-text__media { width: 100%; max-width: 600px; margin: 0 auto; padding-top: 40px; }
	.container-el .media-text--cutout .media-text__content { padding: 30px 20px 40px; }


	.block--hero-home { padding: 0 0 60px; }
	.hero-home { grid-template-columns: 1fr; padding-left: 0; }
	.hero-home__slider--main { grid-row: auto; height: auto; min-height: 0; aspect-ratio: 4 / 5; }
	.hero-home__sides { display: none; }
	.hero-home__content { padding: 40px 20px 0; }

	.media-text,
	.page-intro--split,
	.split-head,
	.cta,
	.cta-slider,
	.accordion-columns { grid-template-columns: 1fr; }

	.media-text--image-right .media-text__media,
	.project-room--slider-right .project-room__media { order: 0; }

	.project-room, .project-room--slider-right { grid-template-columns: 1fr; }
	.contact-block__grid { grid-template-columns: 1fr; }
	.page-intro__cols { grid-template-columns: 1fr; }
	.pricing-tabs { padding: 0 20px; }
	.pricing-tabs__list { gap: 10px; margin-bottom: 30px; }
	.pricing-tabs__tab { padding: 10px 18px 8px; font-size: 13px; }
	.pricing-tabs__panel { grid-template-columns: 1fr; padding: 40px 20px; }
	.pricing-tabs__price { font-size: 40px; line-height: 50px; }
	.block--media-text:has(.media-text--panel) { padding: 0; }
	.media-text--panel .media-text__media { min-height: 0; aspect-ratio: 4 / 3; }
	.media-text--panel .media-text__content { padding: 50px 20px; }
	.media-text--portrait .media-text__image img { height: auto; max-height: 520px; }
	.media-text--portrait .media-text__content { padding: 40px 20px 60px; }
	.block--quote-panel { padding: 0; }
	.quote-panel { grid-template-columns: 1fr; }
	.quote-panel__text { padding: 60px 20px; }
	.quote-panel__image img { height: 420px; }
	.quote-panel__quote { padding: 50px 20px; }
	.image-columns { grid-template-columns: 1fr; padding: 0 5px; }
	.image-columns__image img { margin: 0 auto; }
	.image-columns__head { margin: 0 20px 30px; }
	.image-cards { grid-template-columns: 1fr; gap: 45px; padding: 0 20px; }
	.post-grid.post-grid--boxed { grid-template-columns: 1fr 1fr; row-gap: 30px; }
	.gallery-strip { margin-left: 20px; padding-left: 0; padding-bottom: 87px; }
	.gallery-strip__nav { top: auto; bottom: 0; left: 0; flex-direction: row; transform: none; }
	.gallery-strip .swiper-slide { width: 80vw; }
	.gallery-strip .swiper-slide img { height: auto; aspect-ratio: 930 / 523; }
	.features--rows .features__item { grid-template-columns: 1fr; }
	.features--rows .features__item--reverse .features__tile { order: 0; }
	.features__image img { min-height: 0; aspect-ratio: 660 / 371; }
	.features--columns .features__list { grid-template-columns: 1fr 1fr; }
	.block--features { padding: 60px 0; }
	.showcase { margin: 0 20px; }
	.showcase__decor--1 { top: calc(var(--decor-top, -192px) * .55); left: -5px; width: 250px; }
	/* bottom 60px: above the 52px line of dots, arrows and pause button */
	.showcase__decor--2 { right: -5px; bottom: 60px; width: 180px; }
	.block--text.theme--dark { padding: 60px 0; }
	.block--text.theme--dark .container { padding: 0 20px; }
	.process { padding: 0 20px; }
	.process__step { display: block; margin-left: 0; padding: 50px 0; }
	.process__step::before { display: none; }
	.process__number { top: 50px; left: 20px; margin-top: 0; }
	.process__image { width: 200px; height: 200px; margin: 0 auto 30px; }
	.process__content { padding-left: 0; }
	.block--cta-slider { margin: 80px 0; padding: 0; }
	.cta-slider { grid-template-columns: 1fr; }
	.cta-slider__media .swiper-slide img { height: 380px; }
	.cta-slider__content { padding: 50px 20px; }
	.accordion-section--framed { padding: 20px; }
	.project-room__content { padding: 30px 20px 0; }
	.text-split--columns .text-split__body { grid-template-columns: 1fr; }
	.cta { grid-template-columns: 1fr; }
	.cta--image-left .cta__image { order: 0; }
	.page-intro-wrap--page .page-intro__title,
	.page-intro-wrap--project_old .page-intro__title, .text-split--stacked .text-split__title, .gallery-wrap--carousel2 .gallery__title { font-size: 44px; line-height: 54px; }
	.block--project-section { padding-top: 60px; }

	.block--media-text { padding: 80px 0; }
	.media-text--two-images .media-text__media { min-height: 0; }

	.post-grid { grid-template-columns: 1fr 1fr; }
	.post-single__grid { grid-template-columns: minmax(0, 1fr); gap: 50px; } /* minmax: the 300px author photo must not widen the column past the screen */
	.media-text-wide { padding: 0; }
	.media-text-wide .media-text > * { padding: 0 20px; }
	.post-single__content { padding: 0 20px; }
	.post-single__sidebar { padding: 0 20px; }
	.post-single__title { font-size: 36px; line-height: 46px; }
	.post-single__head { margin: 0 20px; }

	.footer-cta__boxes { gap: 30px; }
}

@media (max-width: 767px)
{
	/* article headings: 48px H2 ran past the text column on phones ("Funkcjonalność", "Podsumowanie") */
	.entry-content h2 { font-size: 32px; line-height: 42px; }
	.entry-content h3 { font-size: 26px; line-height: 34px; }
	.entry-content :is(h2, h3, h4) { overflow-wrap: break-word; }

	h1, h2, .heading, .hero-home__title, .footer-cta__title { font-size: 30px; line-height: 40px; }
	.text-block { line-height: 32px; }

	.post-grid { grid-template-columns: 1fr; gap: 50px; }
	.gallery__row--2, .gallery__row--3, .gallery__row--4 { grid-template-columns: 1fr; }
	.gallery--grid { grid-template-columns: 1fr 1fr; }

	.footer-cta { padding: 80px 0; }
	.footer-cta__boxes { grid-template-columns: 1fr; row-gap: 20px; }
	.footer-main { padding: 80px 0 20px; }
	.footer-main .container { grid-template-columns: 1fr; }
	.footer-bottom { padding: 30px 0; text-align: center; }
	.footer-bottom .container { flex-direction: column; align-items: center; }
	.contact-list--lines { flex-direction: column; align-items: center; }
	.contact-list--lines li + li::before { display: none; }
	.block--media-text:has(.media-text--decor) { padding-top: 60px; }
	.author-box { padding: 35px 20px 40px; }
	.showcase__decor--1 { top: calc(var(--decor-top, -192px) * .35); width: 160px; }
	.showcase__decor--2 { bottom: 60px; width: 110px; }
	.page-intro-wrap--page { padding: 0 20px; }
	.block--page-intro:has(.page-intro-wrap--page) { padding-top: 40px; }
	.page-intro__lead-text { font-size: 20px; line-height: 32px; }
	.features--columns .features__list { grid-template-columns: 1fr; }
	.projects-grid__item { width: 100%; }
	.post-grid.post-grid--boxed { grid-template-columns: 1fr; gap: 30px; }
	.projects-grid-wrap { padding: 0 5px; }
	.features__tile { padding: 35px 20px; }
	.post-card--archive { padding: 15px; }
	.post-card--archive .post-card__body { padding: 25px 5px 5px; }
	.post-card--archive .post-card__title { font-size: 24px; line-height: 32px; }
	/* questions that wrap: normal line spacing instead of the 70px desktop line */
	.accordion__title { padding: 10px 30px 10px 0; line-height: 28px; }
	.accordion--arrow .accordion__title { padding: 18px 30px 18px 0; font-size: 20px; line-height: 30px; }
}

/* Footer CTA background image with dark overlay */
.footer-cta { position: relative; overflow: hidden; }
.footer-cta > .container { position: relative; z-index: 1; }
.footer-cta__bg { position: absolute; inset: 0; }
.footer-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.footer-cta__bg::after { content: ''; position: absolute; inset: 0; background: rgba(17, 17, 17, .7); }

/* Dropdown menu (desktop) – same as Maiko "slide up" sub menu */
.page-nav .sub-menu
{
	position: absolute;
	top: 100%;
	left: -26px; /* item text lines up with the parent menu word */
	z-index: 99;
	display: block;
	min-width: 325px;
	margin: 0;
	padding: 18px 0;
	background: var(--c-dark);
	box-shadow: 0 15px 30px -10px rgba(0, 0, 0, .09);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	clip-path: inset(0 0 100% 0);
	transition: clip-path .4s var(--ease), opacity .3s linear, visibility 0s .4s;
}

.page-nav li:hover > .sub-menu,
.page-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; pointer-events: auto; clip-path: inset(0 0 0 0); transition: clip-path .4s var(--ease), opacity .3s linear, visibility 0s; }

.page-nav .sub-menu li { margin: 0; }
.page-nav .sub-menu li::after { display: none; }

.page-nav .sub-menu a
{
	padding: 9px 26px;
	color: rgba(255, 255, 255, .8);
	font-size: 15px;
	line-height: 25px;
	text-transform: none;
	white-space: nowrap;
}

.page-nav .sub-menu .menu-text { transition: .3s ease-out; }
.page-nav .sub-menu .menu-text::before { content: ''; position: absolute; top: calc(50% - 1px); left: 0; width: 0; height: 1px; background: var(--c-white); transition: .3s ease-out; }
.page-nav .sub-menu li:hover > a,
.page-nav .sub-menu .current-menu-item > a { color: var(--c-white); }
.page-nav .sub-menu li:hover > a .menu-text,
.page-nav .sub-menu .current-menu-item > a .menu-text { padding-left: 50px; }
.page-nav .sub-menu li:hover > a .menu-text::before,
.page-nav .sub-menu .current-menu-item > a .menu-text::before { width: 30px; }

.menu-top-mobile .sub-menu { margin: 0; padding: 0 0 12px 15px; list-style: none; }
.menu-top-mobile .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.menu-top-mobile .menu-item-has-children > .sub-menu { grid-column: 1 / -1; overflow: hidden; transition: height .35s var(--ease); }
.submenu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--c-white); cursor: pointer; }
.submenu-toggle .icon { width: 8px; height: 14px; transform: rotate(90deg); transition: transform .3s var(--ease); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
/* without JS the submenu is simply open and the button would do nothing */
html:not(.js) .submenu-toggle { display: none; }
.menu-top-mobile .sub-menu li { border: 0; }
.menu-top-mobile .sub-menu a { padding: 8px 0; color: var(--c-muted); font-size: 16px; }

/* ==========================================================================
   Mobile pass (home): see _dev/patch-css-27.js
   ========================================================================== */
:root { --head-gap: 30px; }

@media (max-width: 991px)
{
	/* hero: photo slider on the full width in 16:9, text on the container width */
	.hero-home__slider--main { margin: 0; aspect-ratio: 16 / 9; }
	.hero-home__content { margin: 0; padding: 40px var(--edge) 0; }
	.hero-home__text { padding-right: 0; }

	/* stacked media + text: text first, photos at the end (the O mnie portrait and the price-list panel keep the photo on top) */
	.media-text:not(.media-text--portrait):not(.media-text--panel) .media-text__media { order: 2; }

	/* photo band (also as a slider) in 16:9 on tablets and phones */
	.image-band { height: 56.25vw; }

	/* heading above its text once the two columns stack */
	.split-head { row-gap: var(--head-gap); }
}

@media (max-width: 767px)
{
	:root { --head-gap: 20px; }

	/* long button labels wrap instead of pushing the page wider */
	.btn { padding: 15px 30px; line-height: 22px; white-space: normal; }

	/* pause button: hidden on phones (touching the slider stops it), still there for keyboard users */
	.slider-toggle:not(:focus-visible) { opacity: 0; pointer-events: none; }

	/* project name and caption under the photo instead of over it */
	.project-slide__title { position: static; display: block; padding: 15px 0 0; background: none; opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Subpages on phones: see _dev/patch-css-28.js
   ========================================================================== */
@media (max-width: 991px)
{
	/* stacked media + text: space between the text (button) and the photos under it */
	.media-text:not(.media-text--portrait) .media-text__media { margin-top: 30px; }
	/* price-list panels: text first, photo last, like the other media + text sections */
	.media-text--panel .media-text__media, .media-text--panel.media-text--image-right .media-text__media { order: 2; }
}

@media (max-width: 767px)
{
	/* the same 20px side gutter as the header and the page intros */
	:root { --gutter: 20px; }
	.page-intro-wrap--project { padding-right: 20px; padding-left: 20px; }

	/* page intro: heading to text like every other section heading */
	.page-intro__title,
	.page-intro-wrap--page .page-intro__title,
	.page-intro-wrap--centered .page-intro__title,
	.page-intro-wrap--project .page-intro__title,
	.page-intro-wrap--project_old .page-intro__title { margin-bottom: var(--head-gap); }
	.page-intro .text-block, .page-intro__cols, .page-intro__lead { margin-top: 0; }

	/* framed FAQ: the vertical lines run 10px from the edge, the questions start 25px in */
	.accordion-section--framed { padding: 20px 25px; }
	.accordion-section--framed::before { left: 10px; }
	.accordion-section--framed::after { right: 10px; }
	.block--accordion:has(.accordion-section--framed) { padding-bottom: 50px; }
	.block--media-text:has(.media-text--panel) + .block--accordion:has(.accordion-section--framed) { padding-top: 35px; }

	/* a dark block at the very end runs straight into the dark footer (no white strip between them) */
	.page-content > .block--cta:last-child,
	.page-content > .block--cta-slider:last-child { margin-bottom: 0; }

	/* footer map on the full width like the text above it */
	.footer-col--map .map-embed { max-width: none; margin-left: 0; }

	/* Cennik: package tabs in two even columns, readable size; price on one line; package label on one line */
	.pricing-tabs__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.pricing-tabs__tab { justify-content: center; padding: 12px 10px 10px; font-size: 14px; line-height: 20px; text-align: center; }
	.pricing-tabs__tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.pricing-tabs__divider { margin-top: 25px; }
	.pricing-tabs__price { margin-bottom: 15px; font-size: 32px; line-height: 40px; }
	.media-text--panel .eyebrow { margin-bottom: 10px; font-size: 17px; line-height: 26px; }

	/* last category list on Wiedza and similar lists: room before the footer */
	.page-content > .block--posts-grid:last-child { padding-bottom: 60px; }
}

/* ==========================================================================
   Block spacing (settings "Odstępy") + phone rhythm: see _dev/patch-css-29.js
   ========================================================================== */
.block.has-bs-mt { margin-top: var(--bs-mt) !important; }
.block.has-bs-mb { margin-bottom: var(--bs-mb) !important; }
.block.has-bs-pt { padding-top: var(--bs-pt) !important; }
.block.has-bs-pb { padding-bottom: var(--bs-pb) !important; }

@media (max-width: 767px)
{
	/* page-level settings are sized for desktop: on phones never more than 50px */
	.block.has-bs-mt { margin-top: min(var(--bs-mt), 50px) !important; }
	.block.has-bs-mb { margin-bottom: min(var(--bs-mb), 50px) !important; }
	.block.has-bs-pt { padding-top: min(var(--bs-pt), 50px) !important; }
	.block.has-bs-pb { padding-bottom: min(var(--bs-pb), 50px) !important; }

	/* sections: 50px above and below instead of 80–120px */
	.block--media-text,
	.block--media-text:has(.media-text-wide) { padding-top: 50px; padding-bottom: 50px; }
	.block--media-text:has(.media-text--decor) { padding-top: 50px; }
	.block--cta-slider { margin-top: 50px; margin-bottom: 50px; }
	.block--image-columns,
	.block--shortcode,
	.block--projects-carousel { padding-top: 50px; padding-bottom: 50px; }
	.block--features { margin-bottom: 50px; padding-top: 50px; padding-bottom: 50px; }
	.block--showcase { margin-bottom: 50px; }
	.block--gallery:has(.gallery-wrap--strip) { padding-bottom: 50px; }
	.block--gallery:has(.gallery-wrap--carousel2) { padding-top: 50px; }
	.block--posts-grid { padding-bottom: 60px; }
	.block--page-intro:has(.page-intro-wrap--page) { margin-bottom: 50px; }
	.block--page-intro:has(.page-intro-wrap--centered) { margin-bottom: 40px; padding-top: 40px; }
	.block--project-section { padding-top: 50px; }
}

/* Blog / Wiedza post on phones: banner photo less zoomed (the 929px desktop parallax box cropped it to a detail), title closer */
@media (max-width: 767px)
{
	.post-single__banner { height: 200px; }
	.post-single__banner-inner { top: -40px; height: 280px; }
	.post-single__wrap { padding-top: 35px; }
	.post-single__head { padding-bottom: 35px; }
	.post-single__title { font-size: 28px; line-height: 38px; }
}
