/*
Theme Name: Ulubiony Elektryk
Description: Lekki motyw strony ulubionyelektryk.pl, bez kreatorów. Kolory i motyw domu z obwodem pochodzą z logo.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: ulubiony-elektryk
*/

@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
	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-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url(assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
	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 {
	/* Tło logo to dokładnie #11111f: dzięki temu logo nie ma widocznych krawędzi. */
	--ink: #11111f;
	--ink-2: #1c1c30;
	--ink-line: #33334d;
	--amber: #fec82d;
	--amber-deep: #7d5a00;
	--paper: #f6f5f0;
	--white: #fff;
	--text: #23232e;
	--muted: #5a5a68;
	--on-ink: #f4f4f7;
	--on-ink-muted: #b5b5c6;
	--line: #dedcd2;
	--font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(56px, 8vw, 104px);
	--radius: 6px;
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--font);
	overflow-wrap: break-word;
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--ink);
}

h1,
h2,
h3 {
	line-height: 1.15;
	text-wrap: balance;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--amber);
	color: var(--ink);
	font-weight: 700;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.wrap {
	width: min(100%, 1240px);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--text {
	width: min(100%, calc(740px + 2 * var(--gutter)));
}

.wrap--page {
	width: min(100%, calc(980px + 2 * var(--gutter)));
}

.wrap--media {
	width: min(100%, calc(1000px + 2 * var(--gutter)));
}

/* Przyciski */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font-weight: 700;
	font-stretch: 105%;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}

.button--amber {
	background: var(--amber);
	color: var(--ink);
}

.button--amber:hover {
	background: #ffd95e;
}

.button--ghost {
	border-color: var(--ink-line);
	color: var(--on-ink);
}

.button--ghost:hover {
	border-color: var(--amber);
	color: var(--amber);
}

.button--ink {
	background: var(--ink);
	color: var(--white);
}

.button--ink:hover {
	background: var(--ink-2);
}

.button--outline {
	border-color: var(--ink);
	color: var(--ink);
}

.button--outline:hover {
	background: var(--ink);
	color: var(--white);
}

/* Nagłówek */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ink);
	border-bottom: 1px solid var(--ink-line);
	color: var(--on-ink);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}

.brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand__icon {
	display: block;
	width: auto;
	height: 46px;
}

.brand__name {
	font-size: 1.0625rem;
	font-weight: 700;
	font-stretch: 125%;
	letter-spacing: .03em;
	line-height: 1.1;
	text-transform: uppercase;
	white-space: nowrap;
}

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

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

.site-nav__list a {
	display: block;
	padding: 8px 10px;
	border-bottom: 2px solid transparent;
	color: var(--on-ink);
	font-size: .9688rem;
	font-weight: 500;
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-post-parent > a {
	border-bottom-color: var(--amber);
	color: var(--amber);
}

.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current-menu-parent > a {
	border-bottom-color: var(--amber);
	color: var(--amber);
}

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

.site-nav__list > .menu-item-has-children > a::after {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	content: "";
	transform: translateY(-3px) rotate(45deg);
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 290px;
	margin: 0;
	padding: 8px;
	border: 1px solid var(--ink-line);
	border-radius: var(--radius);
	background: var(--ink);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .12s;
}

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

.site-nav .sub-menu a {
	padding: 10px 12px;
	border-bottom: 0;
	border-radius: 4px;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu .current-menu-item > a {
	background: var(--ink-2);
}

.site-nav__phone {
	min-height: 42px;
	padding-block: 6px;
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--ink-line);
	border-radius: var(--radius);
	background: none;
	color: var(--on-ink);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	margin-inline: auto;
	background: currentColor;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	position: absolute;
	content: "";
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

/* Hero */

.hero {
	background: var(--ink);
	color: var(--on-ink);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: clamp(32px, 6vw, 88px);
	padding-block: clamp(40px, 6vw, 80px);
}

.hero__title {
	margin: 0 0 20px;
	font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1.04;
	letter-spacing: -.01em;
}

.hero__lead {
	max-width: 58ch;
	margin: 0 0 28px;
	color: var(--on-ink-muted);
	font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.08;
	color: inherit;
	text-decoration: none;
}

/* Sylwetka domu z logo: ten sam kształt przycina zdjęcie i rysuje obrys. */
.hero__house {
	position: absolute;
	inset: 0;
	clip-path: polygon(50% 0, 70% 14%, 70% 4%, 82% 4%, 82% 23%, 100% 36%, 100% 100%, 0 100%, 0 36%);
}

.hero__house img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__outline {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: none;
	stroke: var(--amber);
	stroke-width: 3;
	stroke-linejoin: round;
}

.hero__caption {
	position: absolute;
	right: 3px;
	bottom: 3px;
	left: 3px;
	padding: 28px 18px 14px;
	background: linear-gradient(to top, rgba(17, 17, 31, .94) 55%, rgba(17, 17, 31, 0));
	font-weight: 600;
	line-height: 1.3;
}

.hero__caption small {
	display: block;
	color: var(--amber);
	font-size: .8125rem;
	font-weight: 600;
}

.hero__media:hover .hero__caption {
	color: var(--amber);
}

.trust {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--ink-line);
	list-style: none;
}

.trust li {
	padding: 22px 20px;
	border-left: 1px solid var(--ink-line);
	color: var(--on-ink-muted);
	font-size: .9375rem;
	line-height: 1.4;
}

.trust li:first-child {
	padding-left: 0;
	border-left: 0;
}

.trust strong {
	display: block;
	color: var(--on-ink);
	font-size: 1.0625rem;
	font-stretch: 110%;
}

/* Sekcje */

.section {
	padding-block: var(--section);
}

.section--white {
	background: var(--white);
}

.section--ink {
	background: var(--ink);
	color: var(--on-ink);
}

.section__head {
	margin-bottom: clamp(28px, 4vw, 48px);
}

.section__head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 32px;
}

.section__title {
	max-width: 22ch;
	margin: 0;
	font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
	font-weight: 800;
	font-stretch: 110%;
}

.section__title--small {
	max-width: none;
	margin-bottom: 28px;
	font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
}

.section__note {
	margin: 28px 0 0;
	font-weight: 500;
}

.section__note a {
	font-weight: 700;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* Kropka i linia: ścieżka obwodu z żarówki w logo. */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--amber-deep);
	font-size: .875rem;
	font-weight: 700;
	font-stretch: 110%;
	text-decoration: none;
}

.eyebrow::before {
	flex: none;
	width: 34px;
	height: 8px;
	background:
		radial-gradient(circle at 4px 4px, currentColor 3.5px, transparent 4px) no-repeat,
		linear-gradient(currentColor, currentColor) 8px 3px / 26px 2px no-repeat;
	content: "";
}

.eyebrow--dark {
	color: var(--amber);
}

.arrow-link {
	display: inline-flex;
	gap: 8px;
	font-weight: 700;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.arrow-link::after {
	content: "→";
}

.arrow-link--dark {
	color: var(--amber);
}

/* Usługi */

.services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
	list-style: none;
}

.service {
	position: relative;
	padding: clamp(22px, 3vw, 32px);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	transition: background-color .15s;
}

.service:hover {
	background: var(--white);
}

.service__icon {
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 16px;
	fill: none;
	stroke: var(--ink);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.service__title {
	margin: 0 0 8px;
	font-size: 1.1875rem;
	font-weight: 700;
	font-stretch: 105%;
}

.service__title a {
	text-decoration: none;
}

/* Cała karta jest klikalna, a link pozostaje w nagłówku. */
.service__title a::after {
	position: absolute;
	inset: 0;
	content: "";
}

.service:hover .service__title a {
	text-decoration: underline;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.service p {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
}

/* Karty wpisów */

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

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	margin-bottom: 16px;
	border-radius: var(--radius);
	background: var(--ink);
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}

.card:hover .card__media img {
	transform: scale(1.03);
}

.card__category {
	margin: 0 0 4px;
	color: var(--amber-deep);
	font-size: .875rem;
	font-weight: 700;
}

.card__title {
	margin: 0 0 8px;
	font-size: 1.1875rem;
	font-weight: 700;
	line-height: 1.25;
}

.card__title a {
	text-decoration: none;
}

.card__title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.card__excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 1rem;
}

/* O mnie */

.about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 88px);
}

.about p {
	color: var(--on-ink-muted);
}

.about .eyebrow {
	color: var(--amber);
}

.brands {
	margin: 0;
}

.brands__item {
	padding-block: 20px;
	border-top: 1px solid var(--ink-line);
}

.brands__item:first-child {
	padding-top: 0;
	border-top: 0;
}

.brands dt {
	margin-bottom: 4px;
	color: var(--amber);
	font-size: 1.1875rem;
	font-weight: 700;
	font-stretch: 105%;
}

.brands dd {
	margin: 0;
	color: var(--on-ink-muted);
}

/* Tematy */

.topics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 4vw, 56px);
}

.topic__title {
	margin: 0 0 8px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--amber);
	font-size: 1.1875rem;
	font-weight: 700;
}

.topic__title a {
	text-decoration: none;
}

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

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

.topic li a {
	display: block;
	padding: 10px 0;
	font-size: 1rem;
	line-height: 1.35;
	text-decoration: none;
}

.topic li a:hover {
	text-decoration: underline;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* CTA */

.cta {
	background: var(--amber);
	color: var(--ink);
}

.cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding-block: clamp(36px, 5vw, 56px);
}

.cta__title {
	margin: 0 0 6px;
	font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
	font-weight: 800;
	font-stretch: 110%;
}

.cta p {
	margin: 0;
	font-weight: 500;
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Stopka */

.site-footer {
	background: var(--ink);
	color: var(--on-ink-muted);
	font-size: 1rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	padding-block: clamp(44px, 6vw, 72px);
}

.site-footer__logo {
	display: block;
	width: min(100%, 260px);
}

.site-footer__title {
	margin: 0 0 12px;
	color: var(--on-ink);
	font-size: 1rem;
	font-weight: 700;
}

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

.site-footer__list li {
	padding-block: 3px;
}

.site-footer__list a {
	display: inline-block;
	padding-block: 3px;
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--amber);
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-block: 18px;
	border-top: 1px solid var(--ink-line);
	font-size: .9375rem;
}

.site-footer__legal a,
.site-footer__link-button {
	color: inherit;
	text-decoration: underline;
}

.site-footer__link-button {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	cursor: pointer;
}

.site-footer__legal a:hover,
.site-footer__link-button:hover {
	color: var(--amber);
}

/* Zgoda na cookies */

.cookie-bar {
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 1000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	max-width: 960px;
	margin-inline: auto;
	padding: 16px 20px;
	border: 1px solid var(--ink-line);
	border-radius: var(--radius);
	background: var(--ink-2);
	color: var(--on-ink);
	font-size: .9375rem;
}

.cookie-bar[hidden] {
	display: none;
}

.cookie-bar__text {
	flex: 1 1 320px;
	margin: 0;
}

.cookie-bar__text a {
	color: var(--amber);
}

.cookie-bar__actions {
	display: flex;
	gap: 8px;
}

.cookie-bar__button {
	min-height: 44px;
	padding: 8px 18px;
	border: 1px solid var(--on-ink-muted);
	border-radius: var(--radius);
	background: transparent;
	color: var(--on-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cookie-bar__button:hover {
	border-color: var(--amber);
	color: var(--amber);
}

/* Nagłówki podstron i wpisów */

.page-head {
	padding-block: clamp(36px, 6vw, 72px);
	background: var(--ink);
	color: var(--on-ink);
}

.page-head--media {
	padding-bottom: clamp(96px, 16vw, 200px);
}

.page-head__title {
	margin: 0;
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
	font-weight: 800;
	font-stretch: 110%;
	line-height: 1.08;
}

.page-head__meta {
	margin: 14px 0 0;
	color: var(--on-ink-muted);
	font-size: 1rem;
}

.page-head__description {
	max-width: 65ch;
	margin-top: 12px;
	color: var(--on-ink-muted);
}

.post-media {
	margin: calc(-1 * clamp(72px, 13vw, 170px)) 0 0;
}

.post-media img {
	display: block;
	width: 100%;
	max-height: 560px;
	border-radius: var(--radius);
	object-fit: cover;
}

/* Treść z edytora bloków */

.prose {
	padding-block: clamp(32px, 5vw, 56px) var(--section);
	font-size: 1.125rem;
}

.prose > :first-child {
	margin-top: 0;
}

.prose p,
.prose ul,
.prose ol {
	margin-block: 0 1.15em;
}

.prose li {
	margin-bottom: .35em;
}

.prose h2,
.prose h3,
.prose h4 {
	margin-block: 1.8em .55em;
	font-stretch: 105%;
	font-weight: 700;
	line-height: 1.2;
}

.prose h2,
.prose h2.has-medium-font-size,
.prose h2.has-large-font-size {
	font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
}

.prose h3,
.prose h3.has-medium-font-size,
.prose h3.has-large-font-size {
	font-size: 1.3125rem;
}

.prose p.has-medium-font-size,
.prose li.has-medium-font-size,
.prose ul.has-medium-font-size,
.prose ol.has-medium-font-size {
	font-size: inherit;
}

.prose a {
	color: var(--text);
	font-weight: 500;
	text-decoration-color: var(--amber);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.prose a:hover {
	text-decoration-color: currentColor;
}

/* Starsze treści mają kolory dobrane pod ciemne tło Kadence. Na jasnym tle są nieczytelne. */
.prose [style*="#fec82d"],
.prose .has-link-color,
.prose .has-theme-palette-7-color,
.prose .has-theme-palette-8-color {
	color: var(--amber-deep) !important;
}

.prose .has-link-color a {
	color: var(--text);
}

.prose img {
	border-radius: var(--radius);
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption {
	color: var(--muted);
	font-size: .9375rem;
}

.prose hr,
.prose .wp-block-separator {
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--line);
	opacity: 1;
}

.prose .wp-block-table {
	overflow-x: auto;
}

.prose table {
	border-collapse: collapse;
	background: var(--white);
	font-size: 1rem;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	text-align: left;
}

.prose .wp-block-button__link {
	border-radius: var(--radius);
	background-color: var(--amber) !important;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
}

.prose .wp-block-columns {
	gap: 24px;
}

.ue-note {
	padding: 14px 18px;
	border-left: 4px solid var(--amber);
	background: var(--white);
	color: var(--muted);
	font-size: 1rem;
	font-style: italic;
}

/* Formularz kontaktowy Forminator i wyszukiwarka */

.prose .forminator-ui {
	margin-top: 2em;
}

.prose .forminator-ui .forminator-label {
	color: var(--text) !important;
	font-family: var(--font) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
}

.prose .forminator-ui .forminator-input,
.prose .forminator-ui .forminator-textarea {
	border: 1px solid #8b8b98 !important;
	border-radius: var(--radius) !important;
	background: var(--white) !important;
	color: var(--text) !important;
	font-family: var(--font) !important;
	font-size: 1.0625rem !important;
}

.prose .forminator-ui .forminator-button-submit {
	min-height: 48px;
	padding: 10px 26px !important;
	border-radius: var(--radius) !important;
	background: var(--amber) !important;
	color: var(--ink) !important;
	font-family: var(--font) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
}

.prose .forminator-ui .forminator-button-submit:hover {
	background: #ffd95e !important;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.search-form label {
	flex: 1 1 220px;
}

.search-field,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #8b8b98;
	border-radius: var(--radius);
	background: var(--white);
	font: inherit;
}

.search-submit,
.comment-form .submit {
	min-height: 48px;
	padding: 10px 22px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

/* Paginacja i komentarze */

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none;
}

.pagination .current {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

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

.comments__list .comment {
	margin-bottom: 16px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.comments__list .comment-meta {
	color: var(--muted);
	font-size: .9375rem;
}

.comments__list .comment-meta a {
	text-decoration: none;
}

/* Układ responsywny */

@media (max-width: 1180px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px var(--gutter) 20px;
		border-bottom: 1px solid var(--ink-line);
		background: var(--ink);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
	}

	.site-nav__list a {
		padding: 12px 0;
		border-bottom: 1px solid var(--ink-line);
		font-size: 1.0625rem;
	}

	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		border: 0;
		opacity: 1;
		visibility: visible;
	}

	.site-nav .sub-menu a {
		padding: 12px 0;
		border-bottom: 1px solid var(--ink-line);
		border-radius: 0;
		color: var(--on-ink-muted);
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu .current-menu-item > a {
		background: none;
		color: var(--amber);
	}

	.site-nav__list > .menu-item-has-children > a::after {
		display: none;
	}

	.site-nav.is-open {
		overflow-y: auto;
		max-height: calc(100vh - 72px);
	}

	.site-nav__phone {
		min-height: 48px;
	}
}

@media (max-width: 900px) {
	.hero__grid,
	.about {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__media {
		width: min(100%, 460px);
		margin-inline: auto;
	}

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

	.trust li:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.trust li:nth-child(n + 3) {
		border-top: 1px solid var(--ink-line);
	}

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

	.topics .topic:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

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

	.site-footer__grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 620px) {
	.services,
	.cards,
	.topics {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Adres e-mail nie mieści się w połowie szerokości telefonu. */
	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.brand__icon {
		height: 40px;
	}

	.brand__name {
		font-size: .875rem;
	}

	.hero__actions .button,
	.cta__actions,
	.cta__actions .button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
