/**
 * X-MAC – style motywu.
 *
 * Układ odtwarza wygląd wcześniejszej wersji strony (motyw Exzo + WPBakery),
 * ale bez zależności od tych narzędzi.
 *
 * Spis treści:
 *  1. Zmienne i reset
 *  2. Typografia i elementy współdzielone
 *  3. Nagłówek i nawigacja
 *  4. Hero i nagłówki podstron
 *  5. Sekcje modułowe
 *  6. Blog
 *  7. Formularze (Contact Form 7)
 *  8. Stopka
 *  9. Responsywność
 */

/* ---------------------------------------------------------------- 0. Kroje pisma */

/*
 * Fonty hostujemy lokalnie zamiast pobierać z fonts.gstatic.com:
 *  • znikają dwa połączenia do zewnętrznego serwera i blokada renderowania,
 *  • nie ma przesunięcia układu (CLS), bo krój jest dostępny od razu,
 *  • nie wysyłamy IP odwiedzających do Google – w UE to realny problem z RODO.
 *
 * Raleway jest fontem zmiennym, więc jeden plik obsługuje wagi 100–900.
 * Zestawy znaków: „latin” + „latin-ext” (polskie znaki diakrytyczne).
 */

@font-face {
	font-family: 'Questrial';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/questrial-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: 'Questrial';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/questrial-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: 'Raleway';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/raleway-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: 'Raleway';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/raleway-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;
}

/* ------------------------------------------------------------------ 1. Zmienne */

:root {
	--accent: #7c19dd;
	--accent-dark: #6712b8;
	--accent-soft: rgba(124, 25, 221, .12);
	--dark: #343434;
	--body: #6f6f76;
	--muted: #6e6e78;            /* kontrast 4.5:1 na bieli (WCAG AA) */
	--line: #e8e8ee;
	--bg-light: #f4f4f7;
	--white: #fff;

	--font-body: 'Questrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	--font-head: 'Raleway', 'Questrial', Arial, sans-serif;

	--container: 1170px;
	--header-height: 98px;
	--radius: 14px;
	--shadow: 0 18px 40px rgba(52, 52, 52, .08);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--accent);
	text-decoration: none;
	transition: color .18s ease, background-color .18s ease, opacity .18s ease;
}

a:hover {
	color: var(--accent-dark);
}

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

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 18px;
	background: var(--accent);
	color: #fff;
	border-radius: 6px;
}

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

/* ------------------------------------------------- 2. Typografia współdzielona */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 900;
	color: var(--dark);
	text-transform: uppercase;
	line-height: 1.15;
	margin: 0 0 18px;
}

p {
	margin: 0 0 18px;
}

p:last-child {
	margin-bottom: 0;
}

.text-center {
	text-align: center;
}

/* Ozdobna kreska pod nagłówkiem */
.title-underline {
	display: block;
	position: relative;
	width: 60px;
	height: 1px;
	margin: 22px auto 0;
	background: var(--dark);
}

.title-underline::before,
.title-underline::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--accent);
}

.title-underline::before {
	left: -14px;
}

.title-underline::after {
	right: -14px;
}

.title-underline--left {
	margin-left: 0;
	margin-right: auto;
	width: 46px;
	background: var(--accent);
}

.title-underline--left::before,
.title-underline--left::after {
	display: none;
}

/* Przyciski */
.btn,
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 34px;
	border: 0;
	border-radius: 26px;
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.btn--accent,
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 10px 24px rgba(124, 25, 221, .28);
}

.btn--accent:hover,
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
	background: var(--accent-dark);
	color: #fff;
	transform: translateY(-2px);
}

.btn--light {
	background: #fff;
	color: var(--dark);
	box-shadow: 0 10px 24px rgba(52, 52, 52, .14);
}

.btn--light:hover {
	color: var(--accent);
	transform: translateY(-2px);
}

.btn + .btn {
	margin-left: 14px;
}

/* Efekt oryginalnych przycisków X-MAC: wysuwany tekst, strzałka i poświata. */
.btn:has(.btn__wrap) {
	position: relative;
	padding: 0;
}

.btn__wrap {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: inherit;
}

.btn__text {
	display: block;
	position: relative;
	left: 0;
	padding: 12px 34px;
	transition: left .3s .05s;
}

.btn__icon {
	position: absolute;
	left: -50px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	background: currentColor;
	-webkit-mask: url('../img/button-arrow.png') center / 30px 30px no-repeat;
	mask: url('../img/button-arrow.png') center / 30px 30px no-repeat;
	transition: left .15s;
}

.btn:has(.btn__wrap)::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	opacity: .3;
	pointer-events: none;
}

.btn:has(.btn__wrap):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.btn:has(.btn__wrap):hover {
		transform: none;
	}

	.btn:has(.btn__wrap):hover .btn__text {
		left: 100%;
	}

	.btn:has(.btn__wrap):hover .btn__icon {
		left: 50%;
	}

	.btn:has(.btn__wrap):hover::before {
		transform: scale(1.5);
		opacity: 0;
		visibility: hidden;
		transition: transform .5s, opacity .5s, visibility 0s .5s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn:has(.btn__wrap) {
		transition: none;
		transform: none;
	}
}

/* Listy z „ptaszkiem” */
.check-list,
.check-list-wrap ul,
.prose ul {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.check-list li,
.check-list-wrap ul li,
.prose ul li {
	position: relative;
	padding: 3px 0 3px 32px;
}

.check-list li::before,
.check-list-wrap ul li::before,
.prose ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg);
}

.prose ol {
	padding-left: 20px;
}

.prose {
	color: var(--body);
}

.prose h2,
.prose h3,
.prose h4 {
	margin-top: 32px;
}

.prose a {
	text-decoration: underline;
}

.prose img {
	border-radius: var(--radius);
	margin: 22px 0;
}

.prose--narrow {
	max-width: 780px;
	margin: 0 auto;
}

/* Nagłówek sekcji */
.section-heading {
	margin-bottom: 44px;
}

.section-heading--center {
	text-align: center;
}

.section-heading--left .title-underline {
	margin-left: 0;
}

.section-heading__pretitle {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}

.section-heading__title {
	margin: 0;
	font-size: 40px;
}

/* ---------------------------------------------------- 3. Nagłówek i nawigacja */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-height);
	max-width: 1400px;
}

.site-logo img {
	max-height: 34px;
	width: auto;
}

.site-logo__text {
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 24px;
	color: var(--dark);
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	display: block;
	padding: 11px 22px;
	border-radius: 22px;
	font-family: var(--font-head);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dark);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current_page_parent > a {
	background: var(--accent);
	color: #fff;
}

.site-nav__list .sub-menu {
	position: absolute;
	z-index: 20;
	min-width: 230px;
	margin-top: 6px;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-radius: 10px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all .18s ease;
}

.site-nav__list > li {
	position: relative;
}

.site-nav__list > li:hover > .sub-menu,
.site-nav__list > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav__list .sub-menu a {
	border-radius: 0;
	padding: 10px 20px;
	letter-spacing: .04em;
}

.site-nav__phone {
	display: none;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.site-nav__close {
	display: none;
}

/* Oryginalna ikona Exzo: trzy zaokrąglone kreski 100% / 70% / 90%.
   Zachowujemy pole dotykowe 44 px i sterowanie nowego menu przez aria-expanded. */
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute;
	right: 0;
	height: 4px;
	border-radius: 2px;
	background: var(--dark);
}

.nav-toggle__bar {
	top: 20px;
	right: 2px;
	width: 28px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
}

.nav-toggle__bar::before {
	top: -11px;
	width: 40px;
}

.nav-toggle__bar::after {
	top: 11px;
	width: 36px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
	top: 21px;
	right: 8px;
	height: 2px;
	transform: rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
	top: 0;
	width: 28px;
	height: 2px;
	transform: rotate(90deg);
}

.nav-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(20, 20, 25, .45);
}

/* --------------------------------------------- 4. Hero i nagłówki podstron */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--header-height));
	padding: 90px 0;
	background-color: var(--bg-light);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.hero__content {
	max-width: 520px;
}

.hero__pretitle {
	margin: 0 0 12px;
	font-size: 14px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--dark);
}

.hero__title {
	margin: 0 0 22px;
	font-size: clamp(40px, 5.4vw, 68px);
	line-height: 1.02;
}

.hero__text {
	max-width: 460px;
	color: #55555c;
	font-size: 15px;
}

.hero__list {
	margin: 26px 0 32px;
	font-size: 15px;
	color: #55555c;
}

.hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__buttons .btn + .btn {
	margin-left: 0;
}

.page-title {
	padding: 90px 0 0;
	text-align: center;
}

.page-title__heading {
	margin: 0;
	font-size: clamp(30px, 4vw, 44px);
}

/* Podkreślenie H1 jak w Exzo: 55×1 px, boczne kreski 4×1 px, odstęp 5 px. */
.page-title .title-underline,
.page-id-2169 .page-banner .title-underline {
	width: 55px;
	height: 1px;
	margin: 20px auto 19px;
	background: var(--accent);
}

.page-title .title-underline::before,
.page-id-2169 .page-banner .title-underline::before,
.page-title .title-underline::after,
.page-id-2169 .page-banner .title-underline::after {
	top: 0;
	width: 4px;
	height: 1px;
	margin-top: 0;
	border-radius: 0;
	background: inherit;
}

.page-title .title-underline::before,
.page-id-2169 .page-banner .title-underline::before {
	left: -9px;
}

.page-title .title-underline::after,
.page-id-2169 .page-banner .title-underline::after {
	right: -9px;
}

.page-title__desc {
	margin: 0;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}

.page-banner {
	position: relative;
	padding: 130px 0;
	background-color: var(--accent);
	background-size: cover;
	background-position: center;
	text-align: center;
	color: #fff;
	isolation: isolate;
}

.page-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(124, 25, 221, .82);
}

.page-banner__title {
	margin: 0 auto;
	max-width: 900px;
	color: #fff;
	font-size: clamp(34px, 5vw, 62px);
}

.page-id-2169 .page-banner__text {
	margin-top: 0;
}

.page-banner__text {
	max-width: 720px;
	margin: 26px auto 0;
	color: rgba(255, 255, 255, .9);
	font-size: 15px;
}

/* -------------------------------------------------------- 5. Sekcje modułowe */

.section {
	padding: 64px 0;
}

.section--flush {
	padding: 0;
}

.section--white {
	background: #fff;
}

.section--light {
	background: var(--bg-light);
}

.section--dark {
	background: var(--dark);
	color: rgba(255, 255, 255, .75);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark .section-heading__title {
	color: #fff;
}

.section--dark .title-underline {
	background: rgba(255, 255, 255, .6);
}

.section--heading {
	padding-bottom: 26px;
}

/* --- Banery --- */

.banners {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.banners--cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.banners--gap {
	gap: 24px;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 460px;
	padding: 64px 70px;
	overflow: hidden;
	isolation: isolate;
	background: var(--accent);
}

.banners--gap .banner {
	border-radius: var(--radius);
}

.banner__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
}

/* Kolor kafla niesie samo zdjęcie – bez dodatkowej nakładki, tak jak w oryginale.
   Delikatny gradient pojawia się tylko przy jasnym tekście, dla czytelności. */
.banner--accent::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(30, 8, 55, .32), rgba(30, 8, 55, 0) 70%);
}

.banner__content {
	max-width: 440px;
}

.banner__pretitle {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.banner__title {
	margin: 0;
	font-size: 32px;
}

.banner__text {
	margin: 22px 0 30px;
	font-size: 15px;
}

.banner--accent .banner__pretitle,
.banner--accent .banner__title,
.banner--accent .banner__text {
	color: #fff;
}

.banner--accent .title-underline--left {
	background: #fff;
}

.banner--light .banner__pretitle,
.banner--light .banner__text {
	color: var(--dark);
}

.banner--light .banner__title {
	color: var(--dark);
}

/* Strona główna: biały tekst w kaflu „Dlaczego / Naprawa MacBook”. */
.home .section--banners .banner:first-child .banner__pretitle,
.home .section--banners .banner:first-child .banner__title,
.home .section--banners .banner:first-child .banner__text {
	color: #fff;
}

/* Usługi: biały nagłówek i opis w ostatnim kaflu współpracy z serwisami. */
.page-id-2169 .section--banners .banner:last-child .banner__title,
.page-id-2169 .section--banners .banner:last-child .banner__text {
	color: #fff;
}

.banner--light .title-underline--left {
	background: var(--dark);
}

/* Usługi: oryginalny fioletowy separator z krótką kreską po lewej. */
.page-id-2169 .banner .title-underline--left {
	width: 55px;
	height: 1px;
	margin: 20px 0 19px 9px;
	background: var(--accent);
}

.page-id-2169 .banner .title-underline--left::before {
	display: block;
	top: 0;
	left: -9px;
	width: 4px;
	height: 1px;
	margin: 0;
	border-radius: 0;
	background: inherit;
}

.page-id-2169 .banner .title-underline--left::after {
	display: none;
}

/* --- Tekst ze zdjęciem --- */

.text-image {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 50px;
	align-items: center;
}

.text-image--right .text-image__media {
	order: 2;
}

/* Zdjęcia na podstronach mają już własne jasne tło i ozdobny pasek – nie dokładamy ramki. */
.text-image__media {
	position: relative;
	margin: 0;
	padding: 0;
}

.text-image__media img {
	margin: 0 auto;
	border-radius: 22px;
}

.text-image__title {
	font-size: 26px;
	margin-bottom: 24px;
}

.text-image__body ul li {
	font-size: 17px;
}

/* Skup — typografia, odstępy i ptaszki z oryginalnej strony. */
.page-id-2871 .section--text-image > .container {
	padding-inline: 15px;
}

.page-id-2871 .text-image {
	gap: 0;
	align-items: start;
}

.page-id-2871 .text-image__media {
	padding-inline: 15px;
}

.page-id-2871 .text-image__body {
	padding: 50px 15px 0 30px;
}

.page:not(.home) .section .prose {
	font-family: var(--font-head);
	font-size: 18px;
	line-height: 1.5;
	color: #333;
}

.page:not(.home) .section .prose p {
	margin: 0 0 21px;
}

.page-id-2871 .text-image__body .prose p:first-child {
	font-size: 17px;
}

.page:not(.home) .section .prose strong {
	font-weight: 700;
}

.page-id-2871 .text-image__body ul {
	margin: 0;
}

.page:not(.home) .section .prose ul li {
	padding: 0;
	font-size: 18px;
	line-height: 27px;
}

.page:not(.home) .section .prose ul li::before {
	position: static;
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 20px;
	border: 0;
	transform: none;
	vertical-align: -.125em;
	background: var(--accent);
	-webkit-mask: url('../img/check.svg') center / contain no-repeat;
	mask: url('../img/check.svg') center / contain no-repeat;
}

/* Podstrony: wspólne odstępy list jak w oryginalnych treściach. */
.page:not(.home) .section .prose ul {
	margin: 0 0 21px;
}

.page:not(.home) .section .prose ul:last-child {
	margin-bottom: 0;
}

.page-id-2871 .contact-layout__form-title {
	font-size: 18px;
	line-height: 24px;
	color: #343434;
	text-align: center;
	margin-bottom: 25px;
}

/* --- Baner CTA --- */

.cta-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 190px;
	padding: 56px 30px;
	text-align: center;
	background-color: var(--dark);
	background-size: cover;
	background-position: center;
	isolation: isolate;
}

.cta-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(20, 12, 32, .35);
}

.cta-banner__title {
	margin: 0;
	max-width: 900px;
	color: #fff;
	font-size: clamp(24px, 3.2vw, 38px);
}

.cta-banner__text {
	max-width: 700px;
	margin: 0;
	color: rgba(255, 255, 255, .85);
}

/* --- Kafle usług --- */

.cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px;
}

.card {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 340px;
	padding: 44px 48px;
	border-radius: 12px;
	overflow: hidden;
	isolation: isolate;
	background: var(--accent);
}

.card__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	transition: transform .4s ease;
}

.card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(30, 8, 55, 0) 40%, rgba(30, 8, 55, .3));
}

.card:hover .card__bg {
	transform: scale(1.05);
}

.card__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 26px;
}

.card__text {
	margin: 0 0 24px;
	color: rgba(255, 255, 255, .9);
	font-size: 15px;
}

/* --- Atuty --- */

.features {
	display: grid;
	gap: 34px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.features--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.features--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
	padding: 34px;
	background: var(--bg-light);
	border-radius: var(--radius);
	text-align: center;
}

.feature__icon img {
	margin: 0 auto 18px;
	max-height: 64px;
	width: auto;
}

.feature__title {
	font-size: 18px;
	margin-bottom: 10px;
}

.feature__text {
	margin: 0;
	font-size: 15px;
}

/* --- Kontakt --- */

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 60px;
	align-items: start;
}

/* Sekcja z samym formularzem – bez pustej kolumny na dane kontaktowe. */
.contact-layout--form-only {
	grid-template-columns: minmax(0, 1fr);
	max-width: 900px;
	margin: 0 auto;
}

.contact-card {
	text-align: center;
	font-size: 15px;
}

.contact-card__name,
.contact-card__address,
.contact-card__hours-title {
	font-family: var(--font-head);
	font-weight: 900;
	color: var(--dark);
	text-transform: none;
}

.contact-card__name {
	font-size: 18px;
}

.contact-card__hours-title {
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: .08em;
	margin-bottom: 6px;
}

.contact-card__hours ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-card__hours li {
	padding: 0;
}

.contact-card__hours li::before {
	display: none;
}

.contact-layout__form-title {
	text-align: center;
	font-size: 20px;
	margin-bottom: 26px;
}

/* --- Mapa --- */

.map {
	line-height: 0;
}

.map__canvas,
.map iframe {
	display: block;
	width: 100%;
	height: var(--map-height, 420px);
	border: 0;
}

.map__canvas {
	line-height: normal;
}

.map__canvas[hidden] {
	display: none;
}

.map iframe {
	filter: grayscale(.2);
}

.map__caption {
	text-align: center;
	margin-bottom: 24px;
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--dark);
}

/* --- Galeria --- */

.gallery {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery__item {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--bg-light);
}

.gallery__item img {
	width: 100%;
	transition: transform .4s ease;
}

.gallery__item:hover img {
	transform: scale(1.06);
}

/* Prosty lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: rgba(18, 12, 26, .92);
}

.lightbox img {
	max-width: 100%;
	max-height: 85vh;
	border-radius: 8px;
}

.lightbox__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 24px;
	text-align: center;
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
	position: absolute;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.lightbox__close {
	top: 22px;
	right: 22px;
}

.lightbox__prev {
	left: 22px;
	top: 50%;
	margin-top: -23px;
}

.lightbox__next {
	right: 22px;
	top: 50%;
	margin-top: -23px;
}

/* --- FAQ --- */

.accordion {
	max-width: 900px;
	margin: 0 auto;
	border-top: 1px solid var(--line);
}

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

.accordion__heading {
	margin: 0;
	text-transform: none;
}

.accordion__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 22px 0;
	border: 0;
	background: transparent;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
	color: var(--dark);
	text-align: left;
	cursor: pointer;
}

.accordion__icon {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.accordion__icon::before,
.accordion__icon::after {
	content: "";
	position: absolute;
	background: var(--accent);
	transition: transform .2s ease, opacity .2s ease;
}

.accordion__icon::before {
	left: 0;
	top: 6px;
	width: 14px;
	height: 2px;
}

.accordion__icon::after {
	left: 6px;
	top: 0;
	width: 2px;
	height: 14px;
}

.accordion__button[aria-expanded="true"] .accordion__icon::after {
	transform: scaleY(0);
}

.accordion__panel {
	padding: 0 0 24px;
}

/* --- Opinie --- */

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

.testimonial {
	margin: 0;
	padding: 34px;
	background: var(--bg-light);
	border-radius: var(--radius);
}

.testimonial__rating {
	color: var(--accent);
	letter-spacing: .1em;
	margin-bottom: 14px;
}

.testimonial__text {
	margin: 0 0 18px;
	font-size: 15px;
	font-style: italic;
}

.testimonial__author {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: .06em;
	color: var(--dark);
}

/* --- Kafle wpisów --- */

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

.post-tile__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 18px;
}

.post-tile__title {
	font-size: 17px;
	margin: 0 0 10px;
}

.post-tile__excerpt {
	margin: 0;
	font-size: 15px;
}

/* ------------------------------------------------------------------- 6. Blog */

.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, calc(75% - 7.5px)) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}

/* Proporcje i odstępy listy wpisów zgodne ze starym blogiem. */
.container:has(> .blog-layout) {
	padding-inline: 15px;
}

.blog-layout .post-card {
	margin-bottom: 70px;
}

.blog-layout .post-card__thumb {
	margin-bottom: 30px;
	border-radius: 10px;
}

.blog-layout .post-card__body {
	margin-left: 100px;
}

.blog-layout .post-card__title {
	font-size: 18px;
	line-height: 24px;
	margin-bottom: 15px;
}

.blog-layout .post-card__excerpt {
	font-size: 16px;
	line-height: 28px;
	color: #888;
	margin-bottom: 20px;
}

.blog-layout .post-card .btn {
	font-size: 11px;
	line-height: 18px;
	letter-spacing: normal;
	border-radius: 25px;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
}

.blog-layout .post-card .btn__text {
	padding: 17px 30px 15px;
}

@media (max-width: 991px) {
	.blog-layout .post-card {
		margin-bottom: 35px;
	}
}

@media (max-width: 767px) {
	.blog-layout .post-card__body {
		margin-left: 0;
	}

	.blog-layout .post-card .btn {
		display: flex;
		width: 100%;
	}

	.blog-layout .post-card .btn__wrap {
		width: 100%;
	}
}

.post-card {
	margin-bottom: 64px;
}

.post-card__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	margin-bottom: 26px;
}

.post-card__thumb,
.widget__post-image {
	position: relative;
	isolation: isolate;
}

.widget__posts .widget__post-image {
	display: block;
	width: fit-content;
	max-width: 100%;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 12px;
}

.widget__posts .widget__post-image img {
	display: block;
	margin-bottom: 0;
}

/* Dwie nakładki jak na starym blogu, w tym obracająca się warstwa przednia. */
.post-card__thumb::before,
.post-card__thumb::after,
.widget__post-image::before,
.widget__post-image::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: rgba(124, 25, 221, .4);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s, transform .3s;
}

.post-card__thumb::before,
.widget__post-image::before {
	z-index: 1;
	transform: rotate(180deg);
}

.post-card__thumb:hover::before,
.post-card__thumb:hover::after,
.post-card__thumb:focus-visible::before,
.post-card__thumb:focus-visible::after,
.widget__post-image:hover::before,
.widget__post-image:hover::after,
.widget__posts a:focus-visible .widget__post-image::before,
.widget__posts a:focus-visible .widget__post-image::after {
	opacity: 1;
	transform: rotate(0);
}

@media (prefers-reduced-motion: reduce) {
	.post-card__thumb::before,
	.post-card__thumb::after,
	.widget__post-image::before,
	.widget__post-image::after {
		transition: none;
		transform: none;
	}
}

.post-card__title {
	font-size: 22px;
	margin-bottom: 10px;
}

.post-card__title a {
	color: var(--dark);
}

.post-card__title a:hover {
	color: var(--accent);
}

.post-card__meta {
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 16px;
}

/* Podkreślenie, żeby odnośnik nie był rozpoznawalny wyłącznie po kolorze (WCAG 1.4.1). */
.post-card__meta a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.post-card__excerpt {
	margin-bottom: 24px;
}

.single-post__thumb {
	margin-bottom: 34px;
	border-radius: var(--radius);
	overflow: hidden;
}

.widget {
	margin-bottom: 44px;
}

.widget__title {
	font-size: 18px;
	margin-bottom: 18px;
}

.widget__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget__list li {
	border-bottom: 1px solid var(--line);
}

.widget__list a {
	display: block;
	padding: 13px 4px;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	transition: color .15s, background-color .15s;
}

.widget__list a:hover,
.widget__list a:focus-visible {
	color: #fff;
	background-color: var(--accent);
}

.widget__posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget__posts li {
	margin-bottom: 26px;
}

.widget__posts a {
	color: var(--dark);
}

.widget__posts img {
	border-radius: 10px;
	margin-bottom: 12px;
}

.widget__posts span {
	display: block;
	font-family: var(--font-head);
	font-weight: 900;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.5;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 21px;
	background: var(--bg-light);
	color: var(--dark);
	font-size: 13px;
	font-family: var(--font-head);
	font-weight: 700;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--accent);
	color: #fff;
}

.comments {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--line);
}

.comments__list {
	list-style: none;
	padding: 0;
}

/* -------------------------------------------------------------- 7. Formularze */

.search-form {
	display: flex;
	gap: 10px;
	margin-bottom: 40px;
}

.search-form__input,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	padding: 15px 26px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: #fff;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--dark);
	transition: border-color .18s ease, box-shadow .18s ease;
}

.wpcf7 textarea {
	min-height: 150px;
	border-radius: 22px;
	resize: vertical;
}

.search-form__input:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.wpcf7 p {
	margin-bottom: 18px;
}

.wpcf7-form .xmac-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

.wpcf7-form .xmac-form-actions {
	display: flex;
	justify-content: flex-end;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin: 6px 0 0 18px;
	font-size: 13px;
	color: #d63638;
}

.wpcf7 .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 14px 20px;
	border-radius: 12px;
	border-width: 1px;
	font-size: 14px;
}

.wpcf7-spinner {
	margin-left: 12px;
}

/* ----------------------------------------------------------------- 8. Stopka */

.site-footer {
	padding: 76px 0 40px;
	background: var(--dark);
	color: rgba(255, 255, 255, .6);
	font-size: 15px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.3fr 1fr;
	gap: 40px;
}

.site-footer__logo img {
	max-height: 32px;
	width: auto;
	margin-bottom: 22px;
}

.site-footer__tagline {
	margin: 0 0 26px;
	color: rgba(255, 255, 255, .55);
}

.site-footer__title {
	margin: 0 0 24px;
	font-size: 14px;
	letter-spacing: .08em;
	color: #fff;
}

.site-footer__contacts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__contact {
	position: relative;
	margin-bottom: 14px;
	padding-left: 30px;
	font-size: 14px;
}

.site-footer__contact span:first-child {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
	margin-right: 4px;
}

.site-footer__contact a,
.site-footer__address {
	color: rgba(255, 255, 255, .75);
}

.site-footer__contact a:hover {
	color: #fff;
}

.site-footer__contact::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 22px;
	height: 20px;
	background: var(--accent);
	-webkit-mask-size: auto 20px;
	mask-size: auto 20px;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.site-footer__contact--phone::before {
	-webkit-mask-image: url('../img/footer-phone.svg');
	mask-image: url('../img/footer-phone.svg');
}

.site-footer__contact--mail::before {
	-webkit-mask-image: url('../img/footer-mail.svg');
	mask-image: url('../img/footer-mail.svg');
}

.site-footer__contact--pin::before {
	-webkit-mask-image: url('../img/footer-pin.svg');
	mask-image: url('../img/footer-pin.svg');
}

.site-footer__hours {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__hours li {
	display: flex;
	gap: 6px;
	margin-bottom: 14px;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.site-footer__menus {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
}

.site-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu li {
	margin-bottom: 16px;
}

.site-footer__menu a {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
	line-height: 1.6;
}

.site-footer__menu a:hover {
	color: #fff;
}

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

.site-footer__social a {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
}

.site-footer__social a:hover {
	background: var(--accent);
}

.site-footer__bottom {
	margin-top: 60px;
	padding-top: 26px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__copy {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .72);   /* kontrast 4.5:1 na tle #343434 */
}

.site-footer__copy .site-footer__brand-link {
	padding-left: 5px;
	color: #9c51e5;
}

/* ---------------------------------------------------------- 9. Responsywność */

@media (max-width: 1100px) {
	.banner {
		padding: 54px 44px;
		min-height: 400px;
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 44px;
	}
}

@media (max-width: 991px) {
	.section {
		padding: 60px 0;
	}

	.nav-toggle {
		display: block;
		order: 3;
	}

	.site-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 95;
		width: min(320px, 86vw);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 90px 24px 30px;
		background: #fff;
		box-shadow: -14px 0 40px rgba(0, 0, 0, .12);
		transform: translateX(100%);
		transition: transform .28s ease;
		overflow-y: auto;
	}

	.site-nav.is-open {
		transform: translateX(0);
	}

	.site-nav__close {
		display: flex;
		position: absolute;
		top: 20px;
		right: 20px;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #f1f1f1;
		color: var(--dark);
		cursor: pointer;
	}

	.site-nav__close::before,
	.site-nav__close::after {
		content: "";
		position: absolute;
		width: 24px;
		height: 2px;
		border-radius: 1px;
		background: currentColor;
		transform: rotate(45deg);
	}

	.site-nav__close::after {
		transform: rotate(-45deg);
	}

	.site-nav__close:hover {
		color: var(--accent);
	}

	.site-nav__close:focus-visible {
		outline: 2px solid var(--accent);
		outline-offset: 3px;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.site-nav__list a {
		padding: 14px 18px;
		font-size: 13px;
	}

	.site-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 0 0 14px;
	}

	.site-nav__phone {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-top: 22px;
		padding: 13px 20px;
		border-radius: 24px;
		background: var(--accent);
		color: #fff;
		font-family: var(--font-head);
		font-weight: 700;
		letter-spacing: .06em;
	}

	.banners,
	.cards,
	.text-image,
	.contact-layout,
	.blog-layout,
	.testimonials,
	.post-grid,
	.features {
		grid-template-columns: minmax(0, 1fr);
	}

	.text-image--right .text-image__media {
		order: 0;
	}

	.gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero {
		position: relative;
		min-height: auto;
		padding: 80px 0 340px;
		background-position: right bottom;
	}

	/* Na wąskich ekranach zdjęcie wchodzi pod tekst – rozjaśniamy je gradientem. */
	.hero::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(246, 246, 249, .94) 0%, rgba(246, 246, 249, .82) 46%, rgba(246, 246, 249, 0) 78%);
	}

	.hero > .container {
		position: relative;
		z-index: 1;
	}

	.hero__content {
		max-width: 100%;
	}

	.page-banner {
		padding: 80px 0;
	}
}

@media (max-width: 600px) {
	.section {
		padding: 46px 0;
	}

	.section-heading {
		margin-bottom: 34px;
	}

	.section-heading__title {
		font-size: 28px;
	}

	.banner {
		padding: 44px 24px;
		min-height: 340px;
	}

	.card {
		padding: 34px 26px;
		min-height: 280px;
	}

	.text-image {
		gap: 34px;
	}

	.text-image__media {
		padding: 20px;
	}

	.gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer__menus {
		grid-template-columns: minmax(0, 1fr);
	}

	.wpcf7-form .xmac-form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.search-form {
		flex-direction: column;
	}

	.btn + .btn {
		margin-left: 0;
	}

	.hero {
		padding-bottom: 240px;
	}

	.page-title {
		padding-top: 60px;
	}
}

/* Usługi na telefonach i tabletach: zdjęcie i treść w osobnych obszarach. */
@media (max-width: 991px) {
	.page-id-2169 .section--banners {
		padding: 0;
	}

	.page-id-2169 .section--banners .banners {
		gap: 20px;
	}

	.page-id-2169 .section--banners .banner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 0;
		background: #f1f1f1;
	}

	.page-id-2169 .section--banners .banner:last-child {
		background: #34154f;
	}

	.page-id-2169 .section--banners .banner::after {
		display: none;
	}

	.page-id-2169 .section--banners .banner__bg {
		position: relative;
		inset: auto;
		z-index: auto;
		display: block;
		flex: none;
		width: 100%;
		height: clamp(200px, 62.5vw, 320px);
		background-size: auto 160%;
		background-position: right center;
		background-repeat: no-repeat;
	}

	.page-id-2169 .section--banners .banner__content {
		max-width: none;
		padding: 28px 24px 32px;
		overflow-wrap: anywhere;
	}

	.page-id-2169 .section--banners .banner__title {
		font-size: clamp(24px, 5.5vw, 30px);
		line-height: 1.2;
	}

	.page-id-2169 .section--banners .banner__text {
		margin: 0 0 24px;
		font-size: 15px;
		line-height: 1.65;
	}

}
