/* ==========================================================================
   Levo — style motywu
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-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: "Archivo";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-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;
}

:root {
	--paper: #ffffff;
	--paper-2: #f2f3f8;
	--ink: #0d0f2b;
	--ink-2: #4a4d6a;
	--line: #dcdee9;
	--brand: #2f3ae6;
	--brand-deep: #2129b8;
	--on-brand: #ffffff;
	--on-brand-2: #d4d7ff;
	--footer: #0d0f2b;

	--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--wide: 118%;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1320px;
	--max-wide: 1560px;
	--space-section: clamp(72px, 10vw, 144px);
	--radius: 0px;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	--fs-body: clamp(1.0625rem, 0.4vw + 0.95rem, 1.1875rem);
	--fs-small: 0.9375rem;
	--fs-h1: clamp(2.75rem, 6.6vw + 0.5rem, 6rem);
	--fs-h2: clamp(2rem, 3vw + 1rem, 3.5rem);
	--fs-h3: clamp(1.375rem, 1vw + 1rem, 1.875rem);
}

/* --------------------------------------------------------------------------
   Podstawy
   -------------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-color: var(--brand) var(--paper-2);
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-weight: 400;
	caret-color: var(--brand);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

::selection { background: var(--brand); color: var(--on-brand); }

img, video, svg { display: block; max-width: 100%; height: auto; }

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
a:hover { color: var(--brand); }

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
	border-radius: 2px;
}

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 800;
	font-stretch: var(--wide);
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }

.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
.muted { color: var(--ink-2); }

.wrap {
	width: 100%;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(var(--max-wide) + var(--gutter) * 2); }
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: var(--space-section); }
.section--top-tight { padding-top: clamp(24px, 3vw, 40px); }
.section--tint { background: var(--paper-2); }

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

.skip-link {
	position: absolute;
	left: 16px; top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* --------------------------------------------------------------------------
   Przyciski i linki
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	min-height: 52px;
	padding: 0 1.4em;
	border: 1.5px solid transparent;
	border-radius: 0;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	font-stretch: 108%;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.btn .icon { transition: transform 300ms var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-deep); color: var(--on-brand); }

.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); color: var(--brand); }
.btn--light:hover { background: var(--ink); color: var(--paper); }

.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: 0.875rem; }

.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 700;
	text-decoration: none;
}
.link-arrow .icon { transition: transform 300ms var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Nagłówek
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid transparent;
	transition: border-color 200ms var(--ease-out);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 40px);
	min-height: 80px;
}

.brand { display: block; flex: none; }
.brand__img { width: auto; height: 44px; }

.nav { margin-left: auto; }
.nav .menu { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav .menu a {
	display: block;
	padding-block: 8px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	position: relative;
}
.nav .menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 2px;
	background: var(--brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 300ms var(--ease-out);
}
.nav .menu a:hover::after,
.nav .current-menu-item > a::after,
.nav .current_page_item > a::after { transform: scaleX(1); }
.nav .menu .sub-menu { display: none; }
.nav__contact { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__actions .btn { min-height: 44px; }

.nav-toggle {
	display: none;
	width: 48px; height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1.5px solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1023px) {
	.nav-toggle { display: inline-flex; }
	.site-header__actions { margin-left: auto; }
	.nav {
		position: fixed;
		inset: 80px 0 0;
		z-index: 40;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		gap: 40px;
		padding: 32px var(--gutter) 40px;
		background: var(--brand);
		color: var(--on-brand);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-12px);
		transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out), visibility 0s linear 400ms;
	}
	.admin-bar .nav { top: 126px; }
	.nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out), visibility 0s;
	}
	.nav .menu { flex-direction: column; gap: 4px; }
	.nav .menu a {
		font-size: clamp(2rem, 8vw, 3rem);
		font-weight: 800;
		font-stretch: var(--wide);
		letter-spacing: -0.02em;
		line-height: 1.15;
	}
	.nav .menu a::after { background: var(--on-brand); bottom: 0; }
	.nav .menu a:hover { color: var(--on-brand); }
	.nav__contact { display: grid; gap: 12px; font-weight: 600; }
	.nav__contact a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
	.nav__contact a:hover { color: var(--on-brand-2); }
	body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
	.site-header__actions .btn { display: none; }
	.brand__img { height: 38px; }
}

/* --------------------------------------------------------------------------
   Hero strony głównej
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(40px, 7vw, 104px); }

.hero__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px var(--gutter);
	align-items: end;
}
.hero__title {
	grid-column: 1 / span 8;
	font-size: var(--fs-h1);
	line-height: 0.94;
	letter-spacing: -0.035em;
	font-stretch: 122%;
	font-weight: 850;
}
.hero__side {
	grid-column: 9 / -1;
	display: grid;
	gap: 28px;
	padding-bottom: 0.4em;
}
.hero__lead { font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem); color: var(--ink-2); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__media {
	margin: clamp(40px, 5vw, 72px) 0 0;
}
.hero__media img {
	width: 100%;
	aspect-ratio: 16 / 7;
	max-height: 78vh;
	object-fit: cover;
	background: var(--paper-2);
}
.hero__media figcaption {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 14px auto 0;
	padding-inline: var(--gutter);
	font-size: var(--fs-small);
	color: var(--ink-2);
}
.hero__media figcaption::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--brand);
}

@media (max-width: 1023px) {
	.hero__title,
	.hero__side { grid-column: 1 / -1; }
	.hero__side { padding-bottom: 0; }
	.hero__media img { aspect-ratio: 4 / 3; max-height: none; }
}

/* --------------------------------------------------------------------------
   Pasek haseł
   -------------------------------------------------------------------------- */

.ticker {
	margin-top: clamp(56px, 7vw, 96px);
	background: var(--brand);
	color: var(--on-brand);
	overflow: hidden;
	padding-block: clamp(18px, 2.2vw, 28px);
}
.ticker__track {
	display: flex;
	width: max-content;
	animation: levo-ticker 48s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li {
	display: flex;
	align-items: center;
	font-size: clamp(1.375rem, 2.6vw, 2.25rem);
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ticker__list li::after {
	content: "";
	width: 0.42em;
	height: 0.42em;
	margin-inline: 0.9em;
	border-radius: 50%;
	border: 2px solid var(--on-brand-2);
}

@keyframes levo-ticker {
	to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Oferta / listy definicji
   -------------------------------------------------------------------------- */

.offer__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px var(--gutter);
	align-items: start;
}
.offer__intro { display: grid; gap: 20px; position: sticky; top: 120px; }
.offer__intro p { max-width: 42ch; }

.service-list { border-bottom: 1px solid var(--line); }
.service { border-top: 1px solid var(--line); }
.service__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 24px;
	padding-block: clamp(24px, 3vw, 36px);
	text-decoration: none;
}
.service__title {
	font-size: var(--fs-h3);
	transition: color 200ms var(--ease-out);
}
.service__text { grid-column: 1; color: var(--ink-2); max-width: 52ch; }
.service__icon {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	width: 32px;
	height: 32px;
	color: var(--brand);
	transition: transform 400ms var(--ease-out);
}
.service__link:hover { color: var(--ink); }
.service__link:hover .service__title { color: var(--brand); }
.service__link:hover .service__icon { transform: translateX(8px); }

.def-list { border-bottom: 1px solid var(--line); }
.def-list__item {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 8px 32px;
	padding-block: clamp(22px, 2.6vw, 32px);
	border-top: 1px solid var(--line);
}
.def-list dt { font-size: 1.25rem; font-weight: 750; font-stretch: 110%; line-height: 1.25; }
.def-list dd { margin: 0; color: var(--ink-2); }

@media (max-width: 1023px) {
	.offer__grid { grid-template-columns: 1fr; }
	.offer__intro { position: static; }
}
@media (max-width: 640px) {
	.def-list__item { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Realizacje
   -------------------------------------------------------------------------- */

.work { padding-top: 0; }
.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(32px, 4vw, 56px);
}

.work__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(40px, 5vw, 64px) var(--gutter);
}
.work__grid > :first-child { grid-column: 1 / -1; }
.work__grid > :first-child .work-card__media img { aspect-ratio: 21 / 9; }
.work__grid > :first-child .work-card__title { font-size: var(--fs-h2); }

.work-card__link {
	position: relative;
	display: grid;
	gap: 20px;
	text-decoration: none;
}
.work-card__media {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--paper-2);
}
.work-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 900ms var(--ease-out);
}
.work-card__link:hover .work-card__media img { transform: scale(1.04); }
.work-card__body { display: grid; gap: 6px; padding-right: 56px; }
.work-card__title { font-size: var(--fs-h3); }
.work-card__sub { color: var(--ink-2); }
.work-card__icon {
	position: absolute;
	right: 0;
	bottom: 6px;
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 0;
	background: var(--brand);
	color: var(--on-brand);
	transition: transform 400ms var(--ease-out);
}
.work-card__link:hover { color: var(--ink); }
.work-card__link:hover .work-card__icon { transform: rotate(45deg); }

@media (max-width: 760px) {
	.work__grid { grid-template-columns: 1fr; }
	.work__grid > :first-child .work-card__media img { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   Treści + film
   -------------------------------------------------------------------------- */

.content-band { background: var(--paper-2); }
.content-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 48px clamp(32px, 6vw, 96px);
	align-items: center;
}
.video {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--on-brand);
}
.video img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 900ms var(--ease-out);
}
.video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(13 15 43 / 0.7), rgb(13 15 43 / 0) 45%);
}
.video:hover img { transform: scale(1.04); }
.video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 88px;
	height: 88px;
	margin: -44px 0 0 -44px;
	border-radius: 0;
	background: var(--brand);
	box-shadow: 0 12px 32px rgb(13 15 43 / 0.35);
	transition: transform 400ms var(--ease-out);
}
.video__play .icon { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video:hover .video__play { transform: scale(1.08); }
.video__label {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 22px;
	z-index: 1;
	font-weight: 700;
}
.video:hover { color: var(--on-brand); }

.content-band__body { display: grid; gap: clamp(28px, 3vw, 40px); }
.values { margin: 0; border-bottom: 1px solid var(--line); }
.values__item {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) minmax(0, 2.4fr);
	gap: 8px 32px;
	padding-block: 22px;
	border-top: 1px solid var(--line);
}
.values dt { font-weight: 800; font-stretch: 115%; font-size: 1.1875rem; }
.values dd { margin: 0; color: var(--ink-2); }
.content-band__more { font-weight: 600; }
.content-band__more a { color: var(--brand); }

@media (max-width: 1023px) {
	.content-band__grid { grid-template-columns: 1fr; }
	.video { max-width: 520px; }
	.video img { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
	.values__item { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Klienci
   -------------------------------------------------------------------------- */

.clients { background: var(--brand); color: var(--on-brand); }
.clients__title { max-width: 18ch; margin-bottom: clamp(32px, 4vw, 56px); }
.clients__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 2px;
}
.clients__grid li {
	display: grid;
	place-items: center;
	padding: clamp(12px, 2vw, 28px);
	background: var(--paper);
}
.clients__grid img {
	width: 100%;
	max-width: 180px;
	mix-blend-mode: multiply;
	filter: grayscale(1) contrast(1.1);
	transition: filter 300ms var(--ease-out);
}
.clients__grid li:hover img { filter: none; }
.clients__note { margin-top: 24px; color: var(--on-brand-2); }

@media (max-width: 1023px) { .clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Opinia
   -------------------------------------------------------------------------- */

.quote { padding-top: 0; }
.quote__inner {
	margin-block: 0;
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	gap: 24px var(--gutter);
	padding-top: clamp(40px, 5vw, 72px);
	border-top: 2px solid var(--ink);
}
.quote__author { grid-column: 1; grid-row: 1; align-self: start; padding-top: 0.5em; }
.quote__text { grid-column: 2; margin: 0; max-width: 32em; }
@media (max-width: 860px) {
	.quote__inner { grid-template-columns: 1fr; }
	.quote__author,
	.quote__text { grid-column: 1; grid-row: auto; }
	.quote__author { order: 2; padding-top: 0; }
}
.quote__text p {
	font-size: clamp(1.375rem, 1.6vw + 0.9rem, 2.25rem);
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.015em;
	text-indent: -0.45em;
}
.quote__text p::before { content: "„"; color: var(--brand); }
.quote__text p::after { content: "”"; color: var(--brand); }
.quote__author { display: grid; gap: 2px; }
.quote__author strong { font-weight: 800; font-stretch: 112%; font-size: 1.125rem; }
.quote__author span { color: var(--ink-2); }

.sub-hero--split + .quote,
.contact + .quote { padding-top: var(--space-section); }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-strip { padding-top: 0; }
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px var(--gutter);
}
.post-card__link { display: grid; gap: 14px; text-decoration: none; }
.post-card__media { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); aspect-ratio: 3 / 2; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.post-card__link:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.post-card__title { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; font-stretch: 108%; transition: color 200ms var(--ease-out); }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-small); color: var(--brand); }
.post-card__more .icon { transition: transform 300ms var(--ease-out); }
.post-card__link:hover { color: var(--ink); }
.post-card__link:hover .post-card__title { color: var(--brand); }
.post-card__link:hover .post-card__more .icon { transform: translateX(4px); }

@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 56px;
	font-weight: 700;
}
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 14px;
	border: 1.5px solid var(--line);
	border-radius: 0;
	text-decoration: none;
}
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
a.page-numbers:hover { border-color: var(--brand); }

/* --------------------------------------------------------------------------
   Pas zachęty
   -------------------------------------------------------------------------- */

.cta {
	background: var(--brand);
	color: var(--on-brand);
	padding-block: clamp(72px, 9vw, 128px);
}
.cta__grid {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 40px var(--gutter);
	align-items: end;
}
.cta__title {
	font-size: clamp(2rem, 3.4vw + 0.8rem, 4rem);
	line-height: 1;
	letter-spacing: -0.03em;
	font-stretch: 120%;
}
.cta__side { display: grid; gap: 18px; justify-items: start; }
.cta__alt { color: var(--on-brand-2); }
.cta__alt a { color: var(--on-brand); font-weight: 700; }
.cta__alt a:hover { color: var(--on-brand-2); }

@media (max-width: 860px) { .cta__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Stopka
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--footer);
	color: #c9cbe0;
	padding-top: clamp(64px, 7vw, 96px);
	font-size: var(--fs-small);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--on-brand-2); text-decoration: underline; }
.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
	gap: 48px var(--gutter);
	padding-bottom: 56px;
}
.site-footer__brand { display: grid; gap: 20px; align-content: start; max-width: 34ch; }
.brand--footer .brand__img { height: 48px; }
.site-footer__title {
	margin-bottom: 18px;
	font-size: var(--fs-small);
	font-weight: 700;
	font-stretch: 100%;
	letter-spacing: 0;
	color: #8f92b3;
}
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 3px; color: #8f92b3; }
.footer-menu { display: grid; gap: 10px; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	position: relative;
	padding-block: 24px 32px;
	color: #8f92b3;
}
.site-footer__bottom::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--gutter);
	right: var(--gutter);
	height: 1px;
	background: rgb(255 255 255 / 0.12);
}
.site-footer__bottom a { color: #c9cbe0; }

@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Podstrony
   -------------------------------------------------------------------------- */

.page-head { padding-top: clamp(40px, 6vw, 88px); display: grid; gap: 22px; }
.page-head__title {
	font-size: clamp(2.5rem, 4.6vw + 0.6rem, 5rem);
	line-height: 0.98;
	letter-spacing: -0.033em;
	font-stretch: 120%;
	max-width: 16ch;
}
.page-head__lead { font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem); color: var(--ink-2); max-width: 56ch; }

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: var(--fs-small);
	color: var(--ink-2);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.sub-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.sub-hero__actions--flush { padding: 0; }
.sub-hero--split { padding-bottom: clamp(24px, 3vw, 40px); }
.sub-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px var(--gutter);
	align-items: end;
}
.sub-hero__grid .page-head { padding-inline: 0; }

.check-list {
	display: grid;
	gap: 0;
	border-bottom: 1px solid var(--line);
}
.check-list li {
	display: flex;
	gap: 14px;
	padding-block: 18px;
	border-top: 1px solid var(--line);
	font-weight: 600;
}
.check-list li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border-radius: 0;
	background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 1023px) { .sub-hero__grid { grid-template-columns: 1fr; } }

.ledger { margin-top: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.ledger__row { border-top: 1px solid var(--line); }
.ledger__row > a,
.ledger__row > div {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
	gap: 8px 32px;
	align-items: center;
	padding-block: clamp(22px, 2.6vw, 32px);
	text-decoration: none;
}
.ledger__name { font-size: var(--fs-h3); font-weight: 800; font-stretch: 115%; letter-spacing: -0.015em; line-height: 1.15; }
.ledger__name small { font-size: 0.6em; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.ledger__desc { color: var(--ink-2); }
.ledger__row .icon { width: 28px; height: 28px; color: var(--brand); transition: transform 400ms var(--ease-out); }
.ledger__row > a:hover { color: var(--ink); }
.ledger__row > a:hover .ledger__name { color: var(--brand); }
.ledger__row > a:hover .icon { transform: translateX(8px); }
@media (max-width: 760px) {
	.ledger__row > a,
	.ledger__row > div { grid-template-columns: 1fr auto; }
	.ledger__desc { grid-column: 1; }
	.ledger__row .icon { grid-row: 1 / span 2; grid-column: 2; }
}

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.door {
	display: grid;
	gap: 18px;
	justify-items: start;
	align-content: start;
	padding: clamp(32px, 4vw, 56px);
	border-radius: var(--radius);
	background: var(--paper-2);
}
.door p { color: var(--ink-2); max-width: 40ch; }
.door--brand { background: var(--brand); color: var(--on-brand); }
.door--brand p { color: var(--on-brand-2); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Kontakt */
.contact {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: 56px clamp(32px, 6vw, 96px);
	align-items: start;
}
.contact .page-head { padding-inline: 0; }
.contact .page-head__title { font-size: clamp(2.5rem, 3.4vw + 0.6rem, 4.25rem); font-stretch: 110%; }
.contact-cards { margin-top: 48px; border-bottom: 1px solid var(--line); }
.contact-cards li {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 8px 24px;
	padding-block: 20px;
	border-top: 1px solid var(--line);
}
.contact-cards__label { font-size: var(--fs-small); color: var(--ink-2); padding-top: 4px; }
.contact-cards__value { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; text-decoration: none; }
a.contact-cards__value:hover { color: var(--brand); }
.contact__form {
	margin-top: clamp(40px, 6vw, 88px);
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--radius);
	background: var(--paper-2);
	display: grid;
	gap: 24px;
}
@media (max-width: 1023px) {
	.contact { grid-template-columns: 1fr; }
	.contact__form { margin-top: 0; }
}

/* Formularze (Contact Form 7 i ogólne) */
.wpcf7 form,
.levo-form { display: grid; gap: 14px; }
.wpcf7 label { display: grid; gap: 6px; font-weight: 600; font-size: var(--fs-small); }
.wpcf7-form-control-wrap { display: block; }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
textarea { min-height: 160px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: #6a6d88; opacity: 1; }
input:hover,
textarea:hover { border-color: #b9bcd0; }
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px rgb(47 58 230 / 0.15);
}
.wpcf7-not-valid { border-color: #c4243a !important; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #b01f33; font-size: var(--fs-small); font-weight: 600; }
input[type="submit"],
.wpcf7-submit {
	justify-self: start;
	min-height: 56px;
	padding: 0 2em;
	border: 0;
	border-radius: 0;
	background: var(--brand);
	color: var(--on-brand);
	font: inherit;
	font-weight: 700;
	font-stretch: 108%;
	cursor: pointer;
	transition: background-color 200ms var(--ease-out);
}
input[type="submit"]:hover,
.wpcf7-submit:hover { background: var(--brand-deep); }
.wpcf7-submit:disabled { opacity: 0.5; cursor: progress; }
.wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 form .wpcf7-response-output {
	margin: 4px 0 0;
	padding: 14px 18px;
	border: 0;
	border-radius: var(--radius);
	font-weight: 600;
}
.wpcf7 form.sent .wpcf7-response-output { background: #e3f4ea; color: #145c33; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { background: #fbe7ea; color: #8f1527; }

.search-form { display: flex; gap: 12px; margin-bottom: 48px; max-width: 560px; }

/* Wpis */
.article__head { padding-top: clamp(40px, 6vw, 88px); display: grid; gap: 20px; }
.article__title { font-size: clamp(2.25rem, 3.6vw + 0.6rem, 4rem); line-height: 1.02; letter-spacing: -0.03em; }
.article__media { margin-block: clamp(32px, 4vw, 56px) 0; }
.article__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }

.prose { padding-block: clamp(40px, 5vw, 72px); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.625rem, 1.4vw + 1rem, 2.25rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.375rem; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose p, .prose li { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); }
.prose blockquote { margin-left: 0; padding-left: 1.2em; border-left: 1px solid var(--brand); font-size: 1.25rem; }
.prose img { border-radius: var(--radius); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--fs-small); color: var(--ink-2); margin-top: 8px; }

.builder-content { width: 100%; }
.builder-content--article { padding-top: clamp(24px, 3vw, 40px); }

.next-case a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 6px 24px;
	align-items: center;
	padding-block: clamp(40px, 5vw, 72px);
	border-top: 2px solid var(--ink);
	text-decoration: none;
}
.next-case__label { color: var(--ink-2); font-size: var(--fs-small); }
.next-case__title { grid-column: 1; font-size: var(--fs-h2); font-weight: 800; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1; }
.next-case .icon { grid-row: 1 / span 2; grid-column: 2; width: 48px; height: 48px; color: var(--brand); transition: transform 400ms var(--ease-out); }
.next-case a:hover { color: var(--brand); }
.next-case a:hover .icon { transform: translateX(10px); }

/* 404 */
.not-found { padding-block: clamp(64px, 10vw, 160px); display: grid; gap: 20px; justify-items: start; }
.not-found__code { font-size: clamp(6rem, 18vw, 14rem); font-weight: 900; font-stretch: 125%; line-height: 0.85; letter-spacing: -0.05em; color: var(--brand); }
.not-found .muted { max-width: 52ch; }

/* Komentarze */
.comment-list { list-style: none; padding: 0; display: grid; gap: 24px; margin-block: 24px 48px; }
.comment-respond { margin-top: 32px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Cookie
   -------------------------------------------------------------------------- */

.cookie {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 16px 20px;
	max-width: min(560px, calc(100vw - 32px));
	padding: 16px 16px 16px 20px;
	border-radius: var(--radius);
	background: var(--ink);
	color: #d9dbea;
	font-size: 0.875rem;
	line-height: 1.5;
	box-shadow: 0 16px 40px rgb(13 15 43 / 0.28);
}
.cookie[hidden] { display: none; }
.cookie a { color: #fff; }
.cookie .btn { flex: none; }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Ruch
   -------------------------------------------------------------------------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	filter: blur(6px);
	transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out), filter 900ms var(--ease-out);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js .hero__side[data-reveal] { transition-delay: 160ms; }
.js .hero__media img {
	clip-path: inset(0 0 0 0 round var(--radius));
	animation: levo-unveil 1400ms var(--ease-out) 240ms both;
}
@keyframes levo-unveil {
	from { clip-path: inset(18% 6% 0 6% round var(--radius)); transform: scale(1.04); }
	to { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
	.ticker__track { animation: none; }
	.js [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* Karta wpisu bez zdjęcia: kreska marki zamiast pustego prostokąta. */
.post-card__rule { height: 4px; width: 48px; background: var(--brand); margin-bottom: 8px; }

/* Dwie realizacje: druga w poziomie (zdjęcie + opis), bez pustej połowy. */
.work__grid > :nth-child(even):last-child { grid-column: 1 / -1; }
@media (min-width: 761px) {
	.work__grid > :nth-child(even):last-child .work-card__link {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 20px var(--gutter);
		align-items: end;
	}
}

/* Logotypy na ciemnym tle: odwrócone, żeby czytały się jak pozostałe znaki. */
.clients__grid .is-inverse img { filter: grayscale(1) invert(1) brightness(1.25) contrast(1.8); }
.clients__grid .is-inverse:hover img { filter: grayscale(1) invert(1) brightness(1.25) contrast(1.8); }
.clients + .quote { padding-top: var(--space-section); }

/* --------------------------------------------------------------------------
   Realizacja (studium przypadku)
   -------------------------------------------------------------------------- */

.case-head { padding-top: clamp(40px, 6vw, 88px); display: grid; gap: 24px; }
.case-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px var(--gutter);
	align-items: end;
}
.case-head__main { display: grid; gap: 18px; }
.case-head__title {
	font-size: var(--fs-h1);
	line-height: 0.94;
	letter-spacing: -0.035em;
	font-stretch: 122%;
	font-weight: 850;
}
.case-head__tagline { font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem); color: var(--ink-2); font-weight: 500; }
.case-head__logo { width: clamp(88px, 9vw, 136px); height: auto; }

.case-facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
	margin: clamp(16px, 2vw, 24px) 0 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.case-facts__item { display: grid; gap: 8px; align-content: start; padding: 20px 24px 22px 0; }
.case-facts__item + .case-facts__item { padding-left: 24px; border-left: 1px solid var(--line); }
.case-facts dt { font-size: var(--fs-small); color: var(--ink-2); }
.case-facts dd { margin: 0; font-size: 1.125rem; font-weight: 700; font-stretch: 108%; }
.case-facts__scope { display: flex; flex-wrap: wrap; gap: 4px 0; }
.case-facts__scope li:not(:last-child)::after { content: "·"; margin-inline: 0.55em; color: var(--brand); }
.case-facts .link-arrow { color: var(--brand); }

.case-cover { margin-top: clamp(32px, 4vw, 56px); }

.case-intro__title { font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem); }
.case-intro__body { display: grid; gap: 1.1em; max-width: 64ch; }
.case-intro__body p { color: var(--ink-2); }
.case-intro__body .case-intro__lead { color: var(--ink); font-size: clamp(1.1875rem, 0.6vw + 1rem, 1.4375rem); line-height: 1.5; }

.case-gallery { padding-bottom: var(--space-section); }
.case-gallery__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(8px, 1vw, 16px);
}
.case-gallery__item { margin: 0; overflow: hidden; background: var(--paper-2); }
.case-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.case-gallery__item:hover img { transform: scale(1.03); }
.case-gallery__item:nth-child(1) { grid-column: span 8; grid-row: span 2; aspect-ratio: 4 / 3; }
.case-gallery__item:nth-child(2),
.case-gallery__item:nth-child(3) { grid-column: span 4; }
.case-gallery__item:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 9; }
.case-gallery__item:nth-child(5) { grid-column: span 5; }
.case-gallery__item:nth-child(n + 6) { grid-column: span 4; aspect-ratio: 4 / 3; }

.case-campaign__note { max-width: 40ch; }
.case-campaign__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.case-campaign__item { margin: 0; display: grid; gap: 12px; }
.case-campaign__item img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.case-campaign__item figcaption { font-size: var(--fs-small); color: var(--ink-2); }

.case-web {
	background: var(--brand);
	color: var(--on-brand);
	padding-block: clamp(64px, 8vw, 120px);
	overflow: hidden;
}
.case-web__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 40px var(--gutter);
	align-items: center;
}
.case-web__body { display: grid; gap: 22px; justify-items: start; }
.case-web__body p { color: var(--on-brand-2); font-size: 1.1875rem; max-width: 36ch; }
.case-web__img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgb(13 15 43 / 0.35)); }

.case + .next-case,
.case ~ .next-case { margin-top: 0; }
.case .quote { padding-top: var(--space-section); }

@media (max-width: 1023px) {
	.case-facts { grid-template-columns: 1fr 1fr; }
	.case-facts__item--wide { grid-column: 1 / -1; grid-row: 2; border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
	.case-web__grid { grid-template-columns: 1fr; }
	.case-campaign__grid { grid-template-columns: 1fr 1fr; }
	.case-campaign__item:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.case-head__grid { grid-template-columns: 1fr; }
	.case-head__logo { grid-row: 1; width: 72px; }
	.case-facts { grid-template-columns: 1fr; }
	.case-facts__item + .case-facts__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
	.case-facts__item--wide { grid-row: auto; }
	.case-gallery__grid { grid-template-columns: 1fr 1fr; }
	.case-gallery__item:nth-child(n) { grid-column: span 1; grid-row: auto; aspect-ratio: 1 / 1; }
	.case-gallery__item:nth-child(1),
	.case-gallery__item:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
	.case-campaign__grid { grid-template-columns: 1fr; }
}
@media (min-width: 641px) {
	.case-gallery__item:nth-child(4),
	.case-gallery__item:nth-child(5) { aspect-ratio: auto; height: clamp(240px, 30vw, 460px); }
}
