/*
 * Ultra Moto — Custom Styles
 * Header, navigation and footer follow the design in _html/style.css.
 */

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
	/* Design palette (_html/style.css) */
	--navy: #1b2a3c;
	--navy-soft: #5c6773;
	--bg: #ffffff;
	--tint: #f4f6f8;
	--card: #ffffff;
	--line: #e2e7ec;
	--red: #e63b2e;
	--red-dark: #c22d21;

	/* Aliases kept for MakeIT Fields dynamic-css.php and older partials */
	--main: var(--red);
	--secondary: var(--navy);
	--white: #ffffff;
	--black: #000000;
	--gray: var(--tint);
	--text: var(--navy);
	--border: var(--line);
	--font-main: 'Karla', sans-serif;
	--font-head: 'Archivo', sans-serif;

	/* Vertical rhythm between full-width sections. Narrows on small screens. */
	--section-pad: 100px;
}

/* ─── Base ──────────────────────────────────────────────── */
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--navy);
	font-family: var(--font-main);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.08;
	margin: 0;
	color: var(--navy);
}

/* Layout wrapper. `.container` is the same grid — older templates still use it. */
.wrap,
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ─── Sections ──────────────────────────────────────────── */
/*
 * Used by the single vehicle page and, later, the homepage. The heading and its
 * action sit on one line: without the flex the action drops underneath, which is
 * exactly what happened while these rules were still missing.
 */
.section {
	padding: var(--section-pad) 0;
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 48px;
	gap: 24px;
}

.section-head h2 {
	font-size: clamp(32px, 4.5vw, 50px);
	margin-top: 10px;
}

.section-head p {
	max-width: 400px;
	color: var(--navy-soft);
	margin: 0;
}

@media (max-width: 480px) {
	:root {
		--section-pad: 64px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 30px;
	}

	.section-head p {
		max-width: none;
	}
}

/* ─── Buttons ───────────────────────────────────────────── */
/*
 * Buttons only get the pointer when it is asked for. The design applies `.btn` to
 * links, where the cursor comes for free — on a real <button> or a form submit it
 * does not, so it is set here for every clickable control.
 */
button,
input[type="submit"],
input[type="button"] {
	cursor: pointer;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 15px;
	padding: 15px 30px;
	border-radius: 10px;
	border: 2px solid var(--navy);
	color: var(--navy);
	cursor: pointer;
}

.btn-primary {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

.btn-primary:hover {
	background: var(--red-dark);
	border-color: var(--red-dark);
	color: #fff;
}

.btn-outline:hover {
	background: var(--navy);
	color: #fff;
}

.btn-light {
	border-color: #fff;
	color: #fff;
}

.btn-light:hover {
	background: #fff;
	color: var(--navy);
}

.btn-main {
	background-color: var(--red);
	color: var(--white);
	border: none;
	padding: 12px 28px;
	display: inline-block;
	border-radius: 10px;
	font-weight: 700;
	transition: background-color 0.2s ease;
}

.btn-main:hover {
	background-color: var(--red-dark);
	color: var(--white);
}

/* ─── Utility bar ───────────────────────────────────────── */
.utility-bar {
	background: var(--navy);
	color: #c7cedb;
	font-size: 13px;
}

.utility-bar .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	height: 40px;
}

.utility-bar a {
	color: #c7cedb;
}

.utility-bar a:hover {
	color: #fff;
}

.utility-right {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}

/* ─── Language switcher ─────────────────────────────────── */
.language-switcher {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A hairline between the codes, so HR EN does not read as one word. */
.language-switcher__item + .language-switcher__item {
	padding-left: 10px;
	border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.language-switcher a,
.language-switcher span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.language-switcher .is-active span {
	color: var(--white);
}

/* ─── Site Header ───────────────────────────────────────── */
.site-header {
	background: var(--bg);
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--line);
}

.main-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 140px;
	gap: 36px;
}

.logo img {
	height: 60px;
	width: auto;
}

.logo:not(:has(img)) {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 800;
	color: var(--navy);
}

/* ─── Main Navigation ───────────────────────────────────── */
.main-nav nav > ul {
	display: flex;
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav nav > ul > li {
	position: relative;
}

.main-nav nav > ul > li > a {
	font-weight: 700;
	font-size: 15px;
	padding: 10px 0;
	display: block;
}

.main-nav nav > ul > li:hover > a,
.main-nav nav > ul > li.active > a {
	color: var(--red);
}

.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	min-width: 240px;
	padding: 8px;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: 0.15s ease;
	box-shadow: 0 20px 40px rgba(27, 42, 60, 0.1);
}

.has-dropdown:hover .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown a {
	display: block;
	padding: 11px 16px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
}

.dropdown a:hover {
	background: var(--tint);
	color: var(--red);
}

.dropdown-toggle {
	display: none;
}

/* ─── Mobile nav toggle ─────────────────────────────────── */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 24px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--navy);
	width: 100%;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav.nav-open .nav-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.main-nav.nav-open .nav-toggle span:nth-child(2) {
	opacity: 0;
}

.main-nav.nav-open .nav-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ─── Page Header ───────────────────────────────────────── */
.page-header-wrapper {
	padding: 56px 0 40px;
}
.error404 .page-header-wrapper {
	text-align: center;
}

.page-header-wrapper .page-title {
	font-size: clamp(38px, 5.5vw, 60px);
	margin: 0 0 10px;
}

.breadcrumbs {
	font-size: 13px;
	color: var(--navy-soft);
	margin-top: 16px;
}

.breadcrumbs a {
	color: var(--navy-soft);
}

/* ─── Post Card ─────────────────────────────────────────── */
.post-card {
	margin-bottom: 40px;
}

.post-card .post-thumbnail img {
	width: 100%;
	height: auto;
}

.post-card .post-card-body {
	padding: 20px 0;
}

.post-card .post-card-title {
	font-size: 22px;
	margin: 10px 0;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
	background: var(--navy);
	color: #aab4c2;
	padding: 80px 0 28px;
	margin-top: 80px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 48px;
	padding-bottom: 50px;
	border-bottom: 1px solid #2c3c50;
}

.footer-grid img.footer-logo {
	height: 50px !important;
	width: auto;
	margin-bottom: 18px;
}

.footer-grid p {
	max-width: 280px;
	font-size: 15px;
	color: #93a0b1;
}

.footer-column .widget + .widget {
	margin-top: 32px;
}

.footer-col-title {
	font-family: var(--font-main);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 18px;
}

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

.footer-column li {
	margin-bottom: 11px;
	font-size: 15px;
	color: #93a0b1;
}

.footer-column a {
	font-size: 15px;
	color: #93a0b1;
}

.footer-column a:hover {
	color: var(--red);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	font-size: 13px;
	color: #718094;
}

.footer-bottom a {
	color: #94a3b8;
}

.footer-bottom a:hover {
	color: var(--red);
}

.social-row {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.social-row a {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	border: 1px solid #2c3c50;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.social-row a:hover {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
}

.otgs-development-site-front-end {
	display: none;
}

/* ─── Floating stack: go-top above WhatsApp ─────────────── */
.float-stack {
	position: fixed;
	right: 26px;
	bottom: 26px;
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

/*
 * The stack positions; the widget is only the column that holds the note and
 * the button together, so the note's arrow keeps pointing at the button.
 */
.wa-widget {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.wa-note {
	position: relative;
	max-width: min(280px, calc(100vw - 52px));
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px 34px 14px 16px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--navy-soft);
	box-shadow: 0 16px 34px rgba(27, 42, 60, 0.14);
	text-align: left;
}

.wa-note[hidden] {
	display: none;
}

.wa-note strong {
	color: var(--navy);
	font-weight: 700;
}

.wa-note::after {
	content: '';
	position: absolute;
	right: 22px;
	bottom: -7px;
	width: 12px;
	height: 12px;
	background: var(--card);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	transform: rotate(45deg);
}

.wa-note-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	color: var(--navy-soft);
	font-size: 16px;
	line-height: 1;
	font-family: var(--font-main);
}

.wa-note-close:hover {
	background: var(--tint);
	color: var(--navy);
}

.wa-float {
	display: flex;
	align-items: center;
	height: 58px;
	padding: 0 15px;
	background: #25d366;
	color: #fff;
	border-radius: 32px;
	box-shadow: 0 14px 30px rgba(37, 211, 102, 0.34);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wa-float:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px rgba(37, 211, 102, 0.42);
}

.wa-float svg {
	width: 28px;
	height: 28px;
	flex: none;
	fill: currentColor;
}

/*
 * The label unrolls on hover instead of sitting there permanently: the button is
 * over page content, and a pill that wide covers a card on every screen.
 */
.wa-float span {
	max-width: 0;
	margin-left: 0;
	overflow: hidden;
	white-space: nowrap;
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 15px;
	transition: max-width 0.25s ease, margin-left 0.25s ease;
}

.wa-float:hover span,
.wa-float:focus-visible span {
	max-width: 240px;
	margin-left: 12px;
}

.wa-float:focus-visible {
	outline: 3px solid rgba(27, 42, 60, 0.45);
	outline-offset: 3px;
}

@media (max-width: 900px) {

	.float-stack {
		right: 16px;
		bottom: 16px;
		gap: 10px;
	}

	.wa-widget {
		gap: 10px;
	}

	.wa-note {
		max-width: min(260px, calc(100vw - 32px));
		font-size: 13px;
		padding: 12px 30px 12px 14px;
	}

	.wa-float {
		height: 54px;
		padding: 0 13px;
		align-self: flex-end;
	}

	.wa-float svg {
		width: 26px;
		height: 26px;
	}

	.wa-float span {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.wa-float,
	.wa-float span {
		transition: none;
	}
}

/* ─── Go-to-top button ──────────────────────────────────── */
.go-top {
	flex: none;
	width: 44px;
	height: 44px;
	background: var(--red);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/*
 * Search form. The theme had no rules for it at all: the starter markup was there
 * but unstyled, so the field and the button inherited browser defaults.
 */
.search-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	border: 1px solid var(--line);
	background: var(--tint);
	padding: 12px 14px;
	font-family: var(--font-main);
	font-size: 15px;
	color: var(--navy);
	border-radius: 10px;
}

.search-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	flex: 0 0 46px;
	border: 0;
	border-radius: 10px;
	background: var(--red);
	color: var(--white);
	transition: background-color 0.2s ease;
}

.search-submit:hover {
	background: var(--red-dark);
}

.search-submit svg,
.go-top svg {
	display: block;
	width: 18px;
	height: 18px;
}

.go-top.visible {
	opacity: 1;
	pointer-events: auto;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar-wrapper .widget {
	margin-bottom: 30px;
}

.sidebar-widget-header {
	margin-bottom: 15px;
}

.sidebar-widget-title {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--navy);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 980px) {
	.main-nav {
		position: relative;
		height: auto;
		padding: 20px;
	}

	.logo img {
		height: 56px;
	}

	.nav-toggle {
		display: flex;
	}

	.header-cta {
		display: none;
	}

	.main-nav nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--card);
		border: 1px solid var(--line);
		border-top: none;
		border-radius: 0 0 20px 20px;
		box-shadow: 0 20px 40px rgba(27, 42, 60, 0.1);
		max-height: 0;
		overflow: hidden;
		visibility: hidden;
		transition: max-height 0.25s ease;
	}

	.main-nav.nav-open nav {
		max-height: 70vh;
		overflow-y: auto;
		visibility: visible;
	}

	.main-nav nav > ul {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 8px 32px 24px;
	}

	.main-nav nav > ul > li {
		border-bottom: 1px solid var(--line);
		position: relative;
	}

	.main-nav nav > ul > li:last-child {
		border-bottom: none;
	}

	.main-nav nav > ul > li > a {
		padding: 16px 0;
	}

	.dropdown-toggle {
		display: block;
		position: absolute;
		right: 0;
		top: 0;
		width: 44px;
		height: 50px;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.dropdown-toggle::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		width: 9px;
		height: 9px;
		border-right: 2px solid var(--navy);
		border-bottom: 2px solid var(--navy);
		transform: translate(-50%, -65%) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.has-dropdown.dropdown-open .dropdown-toggle::before {
		transform: translate(-50%, -35%) rotate(-135deg);
	}

	.dropdown {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
		margin: 0 0 8px;
		display: none;
		background: var(--tint);
	}

	.has-dropdown.dropdown-open .dropdown {
		display: block;
	}

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

@media (max-width: 480px) {
	.wrap,
	.container {
		padding: 0 20px;
	}

	.main-nav {
		padding: 14px 20px;
	}

	.main-nav nav > ul {
		padding: 8px 20px 20px;
	}

	/* Long slogan drops out; phone stays */
	.utility-bar .wrap {
		height: auto;
		padding-top: 9px;
		padding-bottom: 9px;
		justify-content: center;
	}

	.utility-text {
		display: none;
	}

	.utility-right {
		gap: 18px;
		margin-left: 0;
	}

	.logo img {
		height: 48px;
	}

	.site-footer {
		margin-top: 56px;
		padding: 56px 0 24px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-bottom: 36px;
	}

	.footer-grid p {
		max-width: none;
	}

	.footer-bottom {
		flex-direction: column;
		gap: 8px;
	}
}

/* ─── Utilities ─────────────────────────────────────────── */
.text-center {
	text-align: center;
}

.clearfix::after {
	content: '';
	display: table;
	clear: both;
}

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

/* ─── Page header (inner pages) ─────────────────────────── */
.page-header {
	padding: 56px 0 40px;
}

.page-header .breadcrumbs {
	font-size: 13px;
	color: var(--navy-soft);
	margin-bottom: 16px;
}

.page-header .breadcrumbs a {
	color: var(--navy-soft);
}

.page-header h1 {
	font-size: clamp(38px, 5.5vw, 60px);
	margin-top: 12px;
}

/* The chosen types, under the heading: a whole filter's worth of names has to
   stay readable without competing with the H1 above it. */
.page-header-facets {
	margin-top: 10px;
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.4;
	color: var(--navy-soft);
}

.page-header-text {
	margin-top: 16px;
	max-width: 620px;
	color: var(--navy-soft);
}

.eyebrow {
	font-family: var(--font-main);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: 13px;
	color: var(--red);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

/* ─── Vehicle + equipment cards ─────────────────────────────────────── */
.vehicle-grid,
.equipment-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.vehicle-card,
.equipment-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	display: block;
	color: inherit;
}

.vehicle-media,
.equipment-media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tint);
}

.vehicle-media img,
.equipment-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.vehicle-card:hover .vehicle-media img,
.equipment-card:hover .equipment-media img {
	transform: scale(1.05);
}

/*
 * No main photo: the logo, centred, with room around it. Absolute with auto margins
 * rather than a translate, so the card hover's transform cannot pull it off centre.
 */
.vehicle-media img.media-placeholder,
.equipment-media img.media-placeholder,
.pd-stage img.media-placeholder {
	position: absolute;
	inset: 0;
	margin: auto;
	width: calc(100% - 64px);
	max-width: 300px;
	height: auto;
	object-fit: contain;
}

.vehicle-card:hover .vehicle-media img.media-placeholder,
.equipment-card:hover .equipment-media img.media-placeholder {
	transform: none;
}

.vehicle-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	background: var(--red);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 6px 12px;
	border-radius: 20px;
}

.vehicle-body,
.equipment-body {
	padding: 22px;
}

.vehicle-brand,
.equipment-brand {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--navy-soft);
}

.vehicle-body h3,
.equipment-body h3 {
	font-size: 21px;
	margin: 8px 0;
}

.vehicle-spec {
	font-size: 14px;
	color: var(--navy-soft);
	margin-bottom: 16px;
}

.vehicle-foot,
.equipment-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--line);
	padding-top: 16px;
}

.vehicle-price,
.equipment-price {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 20px;
}

.vehicle-price small,
.equipment-price small {
	display: block;
	font-family: var(--font-main);
	font-weight: 500;
	font-size: 12px;
	color: var(--navy-soft);
}

.vehicle-link,
.equipment-link {
	font-weight: 700;
	font-size: 13.5px;
	color: var(--red);
}

/* ─── Listing + filters ─────────────────────────────────── */
.listing {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
	padding-bottom: 100px;
}

/*
 * The sidebar column, not the filter card: the filters and the Njuškalo banner
 * under them stick as one. The card used to carry `position: sticky` itself,
 * which is why the rule moved out here rather than being written twice.
 */
.listing-side {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 118px;
}

.filters {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 26px;
}

.filter-group {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.filter-group:first-child {
	padding-top: 0;
}

.filter-group-last {
	border-bottom: none;
}

.filter-group h4 {
	font-size: 15px;
	margin-bottom: 16px;
}

.filter-check {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	font-size: 15px;
	cursor: pointer;
}

.filter-check input {
	accent-color: var(--red);
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: -2px;
}

.filter-check .count {
	color: var(--navy-soft);
	font-size: 13px;
}

.filter-sub {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--red);
	font-weight: 700;
	margin: 14px 0 6px;
}

.filter-empty {
	font-size: 14px;
	color: var(--navy-soft);
	line-height: 1.5;
}

.type-block:first-of-type .filter-sub {
	margin-top: 0;
}

.filters select,
.filters .input {
	width: 100%;
	border: 1px solid var(--line);
	background: var(--tint);
	padding: 12px 14px;
	font-family: var(--font-main);
	font-size: 15px;
	color: var(--navy);
	border-radius: 10px;
}

/* The magnifier is a background so the field stays one plain input. */
.filter-search .input {
	padding-left: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6773' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 14px center;
	background-size: 18px;
	-webkit-appearance: none;
	appearance: none;
}

.filters-apply {
	width: 100%;
	justify-content: center;
	margin-top: 24px;
}

.filters-reset {
	display: block;
	text-align: center;
	margin-top: 14px;
	font-size: 14px;
	color: var(--navy-soft);
}

.price-inputs {
	display: flex;
	gap: 10px;
	align-items: center;
}

/* ─── Price range slider ────────────────────────────────── */
.range-slider {
	position: relative;
	height: 18px;
	display: flex;
	align-items: center;
	margin: 22px 4px 16px;
}

.range-track {
	height: 4px;
	width: 100%;
	background: var(--line);
	border-radius: 4px;
	position: relative;
}

.range-track .fill {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: var(--red);
	border-radius: 4px;
}

.range-slider input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	left: 0;
	width: 100%;
	height: 18px;
	margin: 0;
	padding: 0;
	background: none;
	pointer-events: none;
}

.range-slider input[type="range"]:focus {
	outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	background: #fff;
	border: 3px solid var(--red);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(27, 42, 60, .18);
}

.range-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	background: #fff;
	border: 3px solid var(--red);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(27, 42, 60, .18);
}

.range-slider input[type="range"]::-moz-range-track {
	background: none;
	border: none;
}

.range-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px rgba(230, 59, 46, .22);
}

.range-slider input[type="range"]:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 4px rgba(230, 59, 46, .22);
}

/* ─── Listing toolbar + pagination ──────────────────────── */
.listing-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 26px;
	gap: 16px;
}

.listing-toolbar .count {
	color: var(--navy-soft);
	font-size: 15px;
}

.listing-toolbar select {
	width: auto;
	border: 1px solid var(--line);
	background: var(--tint);
	padding: 12px 14px;
	font-family: var(--font-main);
	font-size: 15px;
	color: var(--navy);
	border-radius: 10px;
}

.listing-empty {
	color: var(--navy-soft);
	margin-bottom: 20px;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 50px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-weight: 700;
	background: var(--card);
	color: var(--navy);
}

.pagination .page-numbers.current {
	background: var(--navy);
	color: #fff;
	border-color: var(--navy);
}

.pagination a.page-numbers:hover {
	border-color: var(--navy);
}

/* ─── Listing responsive ────────────────────────────────── */
@media (max-width: 980px) {
	.vehicle-grid,
	.equipment-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.listing {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.listing-side {
		position: static;
	}

	.filters {
		padding: 22px;
	}
}

@media (max-width: 560px) {
	.vehicle-grid,
	.equipment-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.page-header {
		padding: 40px 0 30px;
	}

	.listing {
		padding-bottom: 56px;
	}

	.listing-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.listing-toolbar select {
		width: 100%;
	}

	.pagination {
		margin-top: 40px;
	}

	.pagination .page-numbers {
		width: 38px;
		height: 38px;
	}
}

/* ─── Listing loader ───────────────────────────────────── */
.listing-main {
	position: relative;
}

.listing-loader {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	background: rgba(255, 255, 255, .74);
	border-radius: 18px;
}

.listing.is-loading .listing-loader {
	display: block;
}

/* The click that started the load must not be repeatable, but nothing is
   disabled: a disabled field is dropped from the request. */
.listing.is-loading {
	pointer-events: none;
}

/* Sticky, so the spinner sits in view wherever the visitor had scrolled to
   rather than in the middle of a list that may be two screens tall. */
.listing-loader-inner {
	position: sticky;
	top: 38vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.listing-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid var(--line);
	border-top-color: var(--red);
	border-radius: 50%;
	animation: ultramoto-spin .7s linear infinite;
}

@keyframes ultramoto-spin {
	to {
		transform: rotate(360deg);
	}
}

.listing-loader-text {
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 14px;
	color: var(--navy-soft);
}

/* Without the spin the ring says nothing, so the label carries the message. */
@media (prefers-reduced-motion: reduce) {
	.listing-spinner {
		animation: none;
		border-top-color: var(--line);
	}
}

/* ─── Single vehicle: head + gallery ───────────────────── */
.product-head {
	padding: 40px 0 28px;
}

.product-head .breadcrumbs {
	margin: 0;
}

.product-layout {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 52px;
	align-items: start;
	padding-bottom: 20px;
}

.pd-stage {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid var(--line);
	background: var(--card);
}

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

.pd-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 14px;
}

.pd-thumb {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--card);
}

.pd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.pd-thumb:hover img {
	transform: scale(1.06);
}

.pd-thumb.active {
	border-color: var(--red);
	box-shadow: 0 0 0 2px rgba(230, 59, 46, .18);
}

/* ─── Single vehicle: buy block ────────────────────────── */
.pd-info h1 {
	font-size: clamp(32px, 4vw, 46px);
	margin: 10px 0;
}

.pd-sub {
	color: var(--navy-soft);
	font-size: 16px;
	margin: 0 0 26px;
}

.pd-price-box {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 24px 26px;
}

.pd-price-main {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 14px;
}

.pd-price {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 38px;
	line-height: 1;
}

.pd-price-note {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--navy-soft);
}

.pd-keyspecs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-top: 22px;
}

.pd-key {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 18px;
}

.pd-key span {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
	color: var(--navy-soft);
}

.pd-key strong {
	display: block;
	font-family: var(--font-head);
	font-size: 18px;
	margin-top: 5px;
}

.pd-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.pd-textlink {
	display: inline-block;
	margin-top: 16px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--red);
}

.pd-textlink:hover {
	text-decoration: underline;
}

/* ─── Single equipment: label/value pairs + prose blocks ─ */
.pd-meta {
	margin: 22px 0 8px;
	border-top: 1px solid var(--line);
}

.pd-meta-row {
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 13px 2px;
	border-bottom: 1px solid var(--line);
}

.pd-meta dt {
	flex: 0 0 132px;
	color: var(--navy-soft);
	font-size: 14px;
	font-weight: 600;
}

.pd-meta dd {
	margin: 0;
	font-weight: 600;
}

.pd-block {
	margin-top: 28px;
}

.pd-block h2 {
	font-size: 20px;
	margin-bottom: 10px;
}

/*
 * .pd-prose is a full-width card in the vehicle page's tab panel. In the narrow
 * right-hand column it only needs the paragraph rhythm, so the card is dropped
 * rather than a second prose class being invented.
 */
.pd-block .pd-prose {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	max-width: none;
}

/* ─── Single vehicle: tabs ─────────────────────────────── */
.pd-tabs-section {
	padding: 80px 0;
}

.pd-tabs {
	position: relative;
}

.pd-tabs > input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.pd-tabnav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.pd-tabnav label {
	font-family: var(--font-main);
	font-weight: 700;
	font-size: 15px;
	padding: 13px 26px;
	border-radius: 10px;
	border: 2px solid var(--line);
	background: var(--card);
	color: var(--navy);
	cursor: pointer;
	transition: .15s ease;
}

.pd-tabnav label:hover {
	border-color: var(--navy);
}

/* One remaining tab is a label, not a choice — hide the nav entirely. */
.pd-tabnav:has(label:only-child) {
	display: none;
}

.pd-panel {
	display: none;
}

#pdtab-opis:checked ~ .pd-tabnav label[for="pdtab-opis"],
#pdtab-spec:checked ~ .pd-tabnav label[for="pdtab-spec"] {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

#pdtab-opis:checked ~ #pdpanel-opis,
#pdtab-spec:checked ~ #pdpanel-spec {
	display: block;
}

.pd-prose {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 38px 42px;
	max-width: 900px;
}

.pd-prose p {
	margin: 0 0 18px;
	color: var(--navy-soft);
}

.pd-prose p:last-child {
	margin-bottom: 0;
}

.pd-table-wrap {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
}

.pd-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
}

.pd-spec-table th,
.pd-spec-table td {
	text-align: left;
	padding: 15px 26px;
}

.pd-spec-table tr + tr td {
	border-top: 1px solid var(--line);
}

.pd-spec-table td:first-child {
	width: 44%;
	color: var(--navy-soft);
}

.pd-spec-table td:last-child {
	font-weight: 600;
}

.pd-spec-group th {
	background: var(--tint);
	font-family: var(--font-main);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--red);
	border-top: 1px solid var(--line);
}

.pd-spec-table tr.pd-spec-group:first-child th {
	border-top: none;
}

/* ─── Financing strip ──────────────────────────────────── */
.finance-strip {
	background: var(--navy);
	border-radius: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 52px 0;
}

.finance-strip .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
}

.finance-text {
	max-width: 660px;
}

.finance-text h2 {
	color: #fff;
	font-size: clamp(28px, 3.5vw, 38px);
	margin: 12px 0;
}

/* The Title field whitelists a span, so that is what highlights part of it. */
.finance-text h2 span,
.finance-text h2 em {
	color: #ffb199;
	font-style: normal;
}

.finance-text p {
	margin: 0;
	color: #93a0b1;
	font-size: 15px;
}

/* ─── Enquiry: form + contact block ────────────────────── */
.pd-enquiry {
	padding: 80px 0;
	scroll-margin-top: 24px;
}

/*
 * Whatever sits above this row normally brings its own bottom padding, so the row
 * adds none. The equipment page is the exception: the two-column block can run
 * straight into it, and then it needs the section rhythm back — following
 * --section-pad down to 64px on small screens with everything else.
 *
 * Unless the enquiry section is there, which is optional: it only renders once the
 * client fills a contact field in. The sibling selector is what keeps the spacing
 * right either way, without the template having to tell the stylesheet.
 */
.pd-similar {
	padding-top: 0;
}

.single-equipment .pd-similar {
	padding-top: var(--section-pad);
}

.single-equipment .pd-enquiry + .pd-similar {
	padding-top: 0;
}

.contact-layout {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 56px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 18px;
}

.form-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-field.full {
	grid-column: 1 / -1;
}

.form-field label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 700;
	color: var(--navy-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px;
	font-family: var(--font-main);
	font-size: 16px;
	background: var(--card);
	width: 100%;
	box-sizing: border-box;
}

.form-field textarea {
	resize: vertical;

	/*
	 * Grows with the text instead of scrolling inside a fixed box. Chromium only for
	 * now — Firefox and Safari ignore it and keep sizing from the rows attribute,
	 * which is the height below anyway, so neither gets worse.
	 */
	field-sizing: content;

	/*
	 * The floor has to be stated, because field-sizing: content collapses an empty
	 * textarea to a single line and Contact Form 7's rows="10" stops deciding the
	 * height. This reproduces what those ten rows render today: ten lines of the
	 * inherited 1.65 line height at the textarea's own 16px, plus the 14px padding
	 * top and bottom and the two 1px borders, which box-sizing: border-box counts
	 * in. About 294px.
	 *
	 * In em rather than px so it follows the font size, and resize: vertical still
	 * lets the visitor drag it past this.
	 */
	min-height: calc((10 * 1.65em) + 30px);
}

/* Contact Form 7 wraps every control in a span of its own, which would otherwise
   break the column the label and the input share. */
.form-field .wpcf7-form-control-wrap {
	display: block;
}

.pd-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 4px 0 24px;
	font-size: 14px;
	color: var(--navy-soft);
}

.pd-consent input {
	accent-color: var(--red);
	width: 17px;
	height: 17px;
	margin-top: 3px;
	flex: none;
}

.pd-consent .wpcf7-list-item {
	margin: 0;
}

.pd-consent label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.info-block {
	background: var(--navy);
	border-radius: 20px;
	color: #c7cedb;
	padding: 38px;
}

.info-block h3 {
	color: #fff;
	font-size: 26px;
	margin-bottom: 6px;
}

.info-row {
	display: flex;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid #2c3c50;
}

.info-row:first-of-type {
	margin-top: 20px;
}

.info-row .l {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .06em;
	color: #ffb199;
	font-weight: 700;
	min-width: 110px;
	padding-top: 2px;
}

.info-row p {
	margin: 0;
}

.info-row a:hover {
	color: #fff;
}

/* ─── Single vehicle responsive ────────────────────────── */
@media (max-width: 980px) {
	.product-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.pd-tabs-section,
	.pd-enquiry {
		padding: 64px 0;
	}

	.pd-prose {
		padding: 28px;
	}

	.pd-spec-table {
		font-size: 14.5px;
	}

	.pd-spec-table th,
	.pd-spec-table td {
		padding: 13px 18px;
	}

	.pd-spec-table td:first-child {
		width: 46%;
	}

	.finance-strip {
		margin: 0 32px;
		border-radius: 20px;
	}

	.pd-cta .btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.contact-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

@media (max-width: 720px) {
	.pd-keyspecs,
	.form-row {
		grid-template-columns: 1fr;
	}

	.pd-price {
		font-size: 32px;
	}

	.pd-tabnav label {
		flex: 1 1 100%;
		text-align: center;
	}

	.pd-spec-table th,
	.pd-spec-table td {
		padding: 12px 14px;
	}

	.info-block {
		padding: 26px 22px;
		border-radius: 16px;
	}

	.info-row {
		flex-direction: column;
		gap: 4px;
	}

	.info-row .l {
		min-width: 0;
	}
}

@media (max-width: 560px) {
	.product-head {
		padding: 28px 0 20px;
	}

	.product-layout {
		gap: 28px;
	}

	.pd-thumbs {
		gap: 8px;
	}

	.pd-stage {
		border-radius: 18px;
	}

	.pd-price-box {
		padding: 20px;
	}

	.pd-tabs-section,
	.pd-enquiry {
		padding: 48px 0;
	}

	.pd-prose {
		padding: 22px;
	}

	.finance-strip {
		margin-left: 16px;
		margin-right: 16px;
		padding: 38px 0;
		border-radius: 18px;
	}

	.finance-strip .wrap {
		gap: 22px;
	}

	.finance-strip .btn {
		width: 100%;
		justify-content: center;
	}
}

/* ─── Homepage: hero slider ─────────────────────────────── */
/*
 * The design's hero (_html/style.css), with the picture and gradient moved from
 * the card onto each slide: every slide brings its own.
 *
 * Slides are stacked in one CSS grid cell rather than positioned absolutely. That
 * keeps the card's height honest on a phone, where it grows with the copy — with
 * absolute slides the card would have collapsed to nothing.
 */
.hero {
	position: relative;
	padding: 0;
}

.hero-card {
	position: relative;
	height: 60vh;
	min-height: 560px;
	overflow: hidden;
}

.hero-slides {
	display: grid;
	height: 100%;
}

.hero-slide {
	position: relative;
	grid-area: 1 / 1;
	/*
	 * visibility, not display: it can be transitioned, and it takes the slide's
	 * own buttons out of the tab order — which display:none would do too, but
	 * without the crossfade.
	 */
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
	visibility: visible;
	opacity: 1;
}

.hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Dark wash on the left, so the copy stays readable over any photograph. */
.hero-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(27, 42, 60, 0.85) 30%, rgba(27, 42, 60, 0.15) 75%);
}

.hero-inner {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 64px;
	max-width: 1280px;
	margin: 0 auto;
}

.hero-copy {
	max-width: 600px;
}

.hero-inner h1 {
	color: var(--white);
	font-size: clamp(40px, 6vw, 68px);
}

.hero-inner h1 em {
	color: #ffb199;
	font-style: normal;
}

.hero-inner p {
	color: #dfe4ea;
	font-size: 18px;
	margin: 20px 0 30px;
	max-width: 460px;
}

.hero-actions {
	display: flex;
	gap: 16px;
}

.hero-dots {
	display: flex;
	gap: 8px;
	margin-top: 40px;
}

.hero-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot:hover {
	background: rgba(255, 255, 255, 0.6);
}

.hero-dot.is-active {
	background: var(--red);
	width: 28px;
	border-radius: 6px;
}

.hero-dot:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.hero-slide {
		transition: none;
	}
}

@media (max-width: 980px) {
	.hero-inner {
		padding: 0 32px;
	}
}

/* 480px is where the design switches the hero to its stacked layout. */
@media (max-width: 480px) {
	.hero-card {
		height: auto;
		min-height: 0;
	}

	/* A horizontal gradient does not cover a narrow screen — go vertical. */
	.hero-slide::after {
		background: linear-gradient(180deg, rgba(27, 42, 60, 0.55), rgba(27, 42, 60, 0.9));
	}

	.hero-inner {
		height: auto;
		padding: 56px 22px;
		max-width: none;
	}

	.hero-copy {
		max-width: none;
	}

	.hero-inner h1 {
		font-size: 38px;
	}

	.hero-inner p {
		font-size: 16px;
		margin: 16px 0 26px;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.hero-actions .btn {
		justify-content: center;
	}

	.hero-dots {
		margin-top: 28px;
	}
}

/* ─── Homepage: three cards ─────────────────────────────────────────── */
/*
 * The row hangs off the bottom of the hero, so it gets top padding only — the
 * section that follows brings its own.
 */
.shortcuts {
	padding: 64px 0 0;
}

.shortcuts .grid3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.shortcut-card {
	position: relative;
	height: 230px;
	overflow: hidden;
	border-radius: 18px;
	display: block;
	color: inherit;
}

.shortcut-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.shortcut-card:hover img {
	transform: scale(1.05);
}

/* Darkens the bottom half so the label stays readable over any photo. */
.shortcut-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(27, 42, 60, .8), transparent 55%);
}

.shortcut-label {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 20px;
	z-index: 2;
	color: #fff;
}

.shortcut-label span {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .1em;
	font-weight: 700;
	color: #ffb199;
}

.shortcut-label h3 {
	color: #fff;
	font-size: 24px;
	margin-top: 6px;
}

/* ─── Homepage: brand cards ─────────────────────────────────────────── */
.categories {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.category-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px;
	display: block;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 34px rgba(27, 42, 60, .08);
}

/*
 * width:auto because wp_get_attachment_image() writes real width and height
 * attributes — without it a wide logo keeps its own width and pushes the card.
 */
.category-card img {
	height: 40px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: left;
	margin-bottom: 26px;
}

.category-card h4 {
	font-size: 20px;
	margin-bottom: 8px;
}

.category-card p {
	color: var(--navy-soft);
	font-size: 14px;
	margin: 0 0 20px;
}

.category-card .cnt {
	font-size: 13px;
	font-weight: 700;
	color: var(--red);
}

/* ─── Homepage: numbers ─────────────────────────────────────────────── */
.trust-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.trust-item {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px;
}

.trust-item .num {
	font-family: var(--font-head);
	font-size: 38px;
	font-weight: 800;
	color: var(--red);
	line-height: 1.1;
	display: block;
}

.trust-item p {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--navy-soft);
}

/* ─── Homepage: logo strip ──────────────────────────────────────────── */
.brand-strip {
	background: var(--navy);
	border-radius: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 52px 0;
}

.brand-strip .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
}

.brand-strip img {
	height: 120px;
	width: auto;
	object-fit: contain;
	opacity: .9;
}

/*
 * Sections that follow one another with no white band between them. The design
 * does this with an inline padding-top:0 on each; a class keeps it out of the
 * markup so the spacing can be changed in one place.
 */
.section--tight {
	padding-top: 0;
}

@media (max-width: 980px) {
	.shortcuts .grid3,
	.categories,
	.trust-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.shortcuts {
		padding: 44px 0 0;
	}

	.shortcuts .grid3,
	.categories,
	.trust-row {
		grid-template-columns: 1fr;
	}

	.shortcuts .grid3 {
		gap: 16px;
	}

	.shortcut-card {
		height: 190px;
	}

	.categories,
	.trust-row {
		gap: 16px;
	}

	.category-card,
	.trust-item {
		padding: 24px 22px;
	}

	.brand-strip {
		margin-left: 16px;
		margin-right: 16px;
		padding: 34px 0;
		border-radius: 18px;
	}

	.brand-strip .wrap {
		justify-content: center;
		gap: 24px;
	}
}

/*
 * Logo strip: two logos per row up to 800px, one per row under 380px. Each
 * logo gets a fixed share of the row and object-fit keeps it inside that box.
 */
@media (max-width: 800px) {
	.brand-strip .wrap {
		gap: 24px;
	}

	.brand-strip img {
		flex: 0 0 calc(50% - 12px);
		max-width: calc(50% - 12px);
	}
}

@media (max-width: 379.98px) {
	.brand-strip img {
		flex-basis: 100%;
		max-width: 100%;
	}
}

/* ─── Contact page ──────────────────────────────────────── */
/*
 * Both blocks start flush with the page header, which already carries the
 * padding under the title — .section's own top padding would double it.
 */
.contact-main,
.contact-team {
	padding-top: 0;
}

.contact-form-col h2,
.service-form-col h2,
.catalog-form-col h2 {
	font-size: 32px;
	margin: 14px 0 26px;
}

.contact-intro {
	color: var(--navy-soft);
	margin-bottom: 26px;
}

.contact-info-col .info-block {
	/* The details sit beside the form rather than under it, so nothing pushes
	   them down as the form grows. */
	position: sticky;
	top: 118px;
}

/*
 * Full width under both columns, not tucked into the info column: at a third of
 * the page a map shows one building and nothing around it.
 */
.map-embed {
	margin-top: 40px;
	height: 380px;
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
}

.map-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.team-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 20px;
}

.avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--navy);
	color: #fff;
	font-family: var(--font-head);
	font-size: 36px;
	font-weight: 800;
	text-transform: uppercase;
	overflow: hidden;
}

/* A photo fills the same square the initials do, so a mixed row stays even. */
.avatar-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team-card h4 {
	font-size: 17px;
}

.team-card span {
	font-size: 14px;
	color: var(--navy-soft);
}

@media (max-width: 980px) {
	.team-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-info-col .info-block {
		position: static;
	}

	.map-embed {
		height: 320px;
	}
}

@media (max-width: 560px) {
	.team-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.contact-form-col h2,
	.service-form-col h2,
	.catalog-form-col h2 {
		font-size: 26px;
	}

	.map-embed {
		height: 260px;
		border-radius: 16px;
	}
}

/* ─── About page ────────────────────────────────────────── */
/*
 * The service cards reuse .shortcut-card, but not the homepage's .shortcuts
 * wrapper — that one is a full-width strip with its own padding, and here the
 * cards sit inside an ordinary section. So the grid needs a rule of its own.
 */
.grid3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.about-layout {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 56px;
	align-items: center;
}

/* No photo, no second column. */
.about-layout--single {
	grid-template-columns: 1fr;
	max-width: 900px;
}

.about-copy p.about-lead {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.8;
	color: var(--navy);
	margin: 0 0 22px;
}

/* The paragraphs under it are the page's own editor content. */
.about-copy p {
	margin: 0 0 18px;
	font-size: 16.5px;
	color: var(--navy-soft);
}

.about-copy p:last-of-type {
	margin-bottom: 0;
}

.about-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 30px;
}

.about-media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--tint);
}

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

.about-badge {
	position: absolute;
	left: 22px;
	bottom: 22px;
	padding: 16px 22px;
	border-radius: 14px;
	background: var(--navy);
	color: #c7cedb;
}

.about-badge strong {
	display: block;
	font-family: var(--font-head);
	font-size: 20px;
	color: #fff;
}

.about-badge span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
}

/* ─── About page: brand blocks ──────────────────────────── */
.brand-block {
	display: grid;
	grid-template-columns: .95fr 1.05fr;
	gap: 52px;
	align-items: center;
}

.brand-block--single {
	grid-template-columns: 1fr;
	max-width: 900px;
}

/* The rule that draws the line between two blocks, and never above the first. */
.brand-block + .brand-block {
	margin-top: 80px;
	padding-top: 80px;
	border-top: 1px solid var(--line);
}

/* Every second block puts its photo on the other side. */
.brand-block.rev .brand-media {
	order: 2;
}

.brand-media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--tint);
}

.brand-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.brand-media:hover img {
	transform: scale(1.04);
}

/*
 * contain, not cover: a logo is not a photograph. The height is what a mark that
 * fills its canvas needs — a wordmark saved on a square transparent background
 * comes out as a hairline at any height, which is why the field says not to use
 * one.
 */
.brand-mark {
	height: 64px;
	width: auto;
	object-fit: contain;
	object-position: left;
	margin-bottom: 20px;
}

.brand-copy h3 {
	margin-bottom: 16px;
	font-size: clamp(26px, 3.2vw, 34px);
}

.brand-copy p {
	margin: 0 0 16px;
	font-size: 16px;
	color: var(--navy-soft);
}

.brand-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.brand-tags li {
	padding: 7px 15px;
	border: 1px solid var(--line);
	border-radius: 30px;
	background: var(--tint);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--navy);
}

.brand-link {
	display: inline-block;
	margin-top: 22px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--red);
}

.brand-link:hover {
	text-decoration: underline;
}

/* ─── About page: closing band ──────────────────────────── */
.cta-band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
	padding: 52px 48px;
	border-radius: 24px;
	background: var(--navy);
}

.cta-text {
	max-width: 660px;
}

.cta-text h2 {
	margin: 12px 0 12px;
	font-size: clamp(28px, 3.5vw, 38px);
	color: #fff;
}

/* The Heading field whitelists a span, so that is what highlights part of it. */
.cta-text h2 span {
	color: #ffb199;
}

.cta-text p {
	margin: 0;
	font-size: 15px;
	color: #93a0b1;
}

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

@media (max-width: 980px) {
	.grid3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.about-layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.brand-block,
	.brand-block.rev {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.brand-block.rev .brand-media {
		order: 0;
	}

	.brand-block + .brand-block {
		margin-top: 56px;
		padding-top: 56px;
	}

	.cta-band {
		padding: 40px 32px;
	}
}

@media (max-width: 480px) {
	.grid3 {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.about-lead {
		font-size: 19px;
	}

	.about-actions .btn,
	.cta-actions .btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.about-badge {
		left: 16px;
		bottom: 16px;
		padding: 13px 18px;
	}

	.cta-band {
		padding: 32px 22px;
		border-radius: 18px;
	}
}

/* ─── Service page ──────────────────────────────────────── */
/*
 * The intro, the logo strip and the cards reuse the about page's blocks — the
 * layout is the same one and a second set of names for it would only mean two
 * places to change. What is new here is the card with the icon, the row of steps
 * and the booking column.
 */
.service-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 30px 28px;
	transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 34px rgba(27, 42, 60, .08);
}

.service-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 22px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--tint);

	/* The icons are stroked with currentColor, so this is what colours them. */
	color: var(--red);
}

.service-ico svg {
	width: 24px;
	height: 24px;
}

.service-card h3 {
	font-size: 20px;
	margin-bottom: 10px;
}

.service-card p {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--navy-soft);
}

.service-card p:last-child {
	margin-bottom: 0;
}

/* ─── Service page: steps ───────────────────────────────── */
.step-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.step-card {
	position: relative;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px 26px;
}

.step-num {
	display: block;
	margin-bottom: 14px;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .06em;
	color: var(--red);
}

.step-card h4 {
	font-size: 18px;
	margin-bottom: 8px;
}

.step-card p {
	margin: 0;
	font-size: 14.5px;
	color: var(--navy-soft);
}

/*
 * The arrow between two steps, and never before the first. Drawn in the gap, so it
 * is dropped as soon as the grid wraps and the steps stop being a single row.
 */
.step-card + .step-card::before {
	content: '';
	position: absolute;
	left: -15px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--line);
	border-right: 2px solid var(--line);
	transform: translateY(-50%) rotate(45deg);
}

/* ─── Service page: booking ─────────────────────────────── */
.booking-intro {
	max-width: 520px;
	margin: 0 0 26px;
	font-size: 16px;
	color: var(--navy-soft);
}

.booking-intro p:last-child {
	margin-bottom: 0;
}

.booking-form .pd-consent {
	margin-top: 6px;
}

.form-note {
	margin: 26px 0 0;
	padding: 18px 22px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--tint);
	font-size: 15px;
	color: var(--navy-soft);
}

.form-note a {
	font-weight: 700;
	color: var(--red);

	/* The number is one thing to read, so it does not break across two lines. */
	white-space: nowrap;
}

.form-note a:hover {
	text-decoration: underline;
}

/*
 * The map sits in the column here, not across the page the way the Kontakt one
 * does, so it is shorter and follows the checklist closely.
 */
.service-info-col .map-embed {
	margin-top: 22px;
	height: 270px;
}

.service-usp {
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.service-usp li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	color: var(--navy-soft);
}

.service-usp li:last-child {
	border-bottom: none;
}

.service-usp li::before {
	content: '✓';
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--tint);
	font-size: 12px;
	font-weight: 700;
	color: var(--red);
}

@media (max-width: 980px) {
	.step-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.step-card + .step-card::before {
		display: none;
	}
}

@media (max-width: 480px) {
	.step-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.service-card {
		padding: 26px 22px;
	}

	.step-card {
		padding: 24px 22px;
	}

	.form-note {
		padding: 16px 18px;
	}

	.service-info-col .map-embed {
		height: 220px;
	}
}

/* ─── Catalogue page ────────────────────────────────────── */
/*
 * The intro, the closing band and the form column are the about, service and
 * contact pages' blocks under an extra class name — the layout is the same one
 * and a second set of rules for it would only mean two places to change. What is
 * new here is the tag on the catalogue button and the column beside the form.
 */
.catalog-pdf-tag {
	padding: 3px 8px;
	border-radius: 6px;

	/* Lighter than the button it sits on, whichever colour that is. */
	background: rgba(255, 255, 255, .22);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
}

.catalog-info-col .info-block {
	/* The details sit beside the form rather than under it, so nothing pushes
	   them down as the form grows — the same as the Kontakt page. */
	position: sticky;
	top: 118px;
}

/* ─── 404 page ──────────────────────────────────────────── */
/*
 * A narrow column so the two lines of text break sensibly rather than running
 * the full 1280px of .container, and enough bottom padding that the footer does
 * not ride up under a page this short.
 */
.error-404 {
	max-width: 620px;
	margin: 0 auto;
	padding: 20px 0 90px;
}

.error-404 h2 {
	font-size: clamp(26px, 3.2vw, 34px);
	margin: 0 0 14px;
}

.error-404 p {
	color: var(--navy-soft);
	margin: 0 0 32px;
}

@media (max-width: 767px) {
	.error-404 {
		padding: 12px 0 60px;
	}
}

/* ─── Njuškalo banner ───────────────────────────────────── */
/*
 * The artwork is inline SVG, so it scales with the column and needs no width of
 * its own. The lift is a drop-shadow filter rather than a box-shadow: the shadow
 * then follows the rounded corners drawn inside the SVG, and neither variant has
 * to repeat its radius here.
 */
.njuskalo-banner {
	display: block;
	filter: drop-shadow(0 8px 20px rgba(17, 17, 17, .14));
	transition: transform .2s ease, filter .2s ease;
}

.njuskalo-banner:hover,
.njuskalo-banner:focus-visible {
	transform: translateY(-2px);
	filter: drop-shadow(0 14px 28px rgba(17, 17, 17, .2));
}

.njuskalo-banner svg {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * The strip carries both drawings and shows one. A 1280x80 bar scaled into a
 * phone puts its sentence at about six pixels, so below the breakpoint the tall
 * card stands in for it — same words, laid out to be read.
 */
.njuskalo-banner--strip .njuskalo-banner-tall {
	display: none;
}

@media (max-width: 760px) {
	.njuskalo-banner--strip .njuskalo-banner-wide {
		display: none;
	}

	.njuskalo-banner--strip .njuskalo-banner-tall {
		display: block;
	}
}
