/* ==========================================================================
   Zeekr theme

   Contents
   01. Foundations and shared controls
   02. Header, navigation and menus
   03. Homepage sections
   04. Model archive and single-model base
   05. Model configurator
   06. Editorial sections and Gutenberg patterns
   07. Footer
   08. Custom block refinements
   ========================================================================== */

/* ==========================================================================
   01. Foundations and shared controls
   ========================================================================== */
:root {
	--black: #0d0c0c;
	--dark: #24292b;
	--white: #ffffff;
	--cream: #fff4e2;
	--orange: #ff5841;
	--orange-light: #ff7a62;
	--gray-100: #fafafa;
	--gray-200: #f5f5f5;
	--gray-300: #f0f0f0;
	--gray-400: #ebebeb;
	--gray-500: #bdbfbf;
	--gray-600: #b2b2b2;
	--gray-700: #939393;
	--header-h: 72px;
	--maxw: 1320px;
	--font-head: "Onest", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
}

body {
	margin: 0;
	/* Full-bleed sections are 100vw, which includes the scrollbar gutter and
	 * can poke a few px past the real width. `clip` (not `hidden`) cuts that
	 * off without creating a scroll container, so position:sticky keeps
	 * working and the page can never scroll sideways to "hidden" slides. */
	overflow-x: clip;
	font-family: var(--font-text);
	color: var(--black);
	background: var(--white);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1,
h2,
h3 {
	font-family: var(--font-head);
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
}

.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: 24px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 32px;
	border-radius: 999px;
	font-family: var(--font-head);
	font-size: 15px;
	letter-spacing: 0.01em;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--light {
	background: var(--white);
	color: var(--black);
}

.btn--light:hover {
	background: var(--cream);
}

.btn--dark {
	background: var(--black);
	color: var(--white);
}

.btn--dark:hover {
	background: var(--dark);
}

.btn--ghost {
	background: transparent;
	color: var(--black);
	border-color: var(--gray-500);
}

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

.link-arrow {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.link-arrow::after {
	content: "\2192";
	transition: transform 0.2s ease;
}

.link-arrow:hover::after {
	transform: translateX(4px);
}

/* ==========================================================================
   02. Header, navigation and menus
   ========================================================================== */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	height: 76px;
	z-index: 100;
	color: var(--white);
	transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* The header bar spans the full viewport (like zeekr.eu), with edge padding
 * instead of the content container. */
.site-header__inner {
	max-width: none;
	height: 100%;
	padding-inline: 32px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
}

@media (max-width: 768px) {
	.site-header__inner {
		padding-inline: 24px;
	}
}

.site-header__logo,
.site-footer__logo {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.22em;
}

.site-nav {
	justify-self: start;
}

.site-header__brand {
	justify-self: center;
}

.site-header__actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 18px;
}

.nav-menu {
	list-style: none;
	display: flex;
	align-items: stretch;
	height: 100%;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.nav-menu .menu-item {
	position: relative;
	display: flex;
	align-items: center;
}

.nav-menu a {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 15px;
	opacity: 0.92;
	transition: opacity 0.2s ease;
}

.nav-menu a:hover {
	opacity: 1;
}

/* ---------- Models mega menu ---------- */
.menu-item--models {
	position: static; /* let the panel span the header width */
}

.mega {
	position: fixed;
	top: var(--header-h);
	left: 0;
	right: 0;
	width: 100vw;
	background: var(--white);
	color: var(--black);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease, visibility 0.42s;
}

.menu-item--models:hover .mega,
.menu-item--models:focus-within .mega {
	opacity: 1;
	visibility: visible;
	clip-path: inset(0 0 0 0);
}

.mega__inner {
	max-width: var(--maxw);
	margin-inline: auto;
	padding: 48px 24px 56px;
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 4fr;
	gap: 40px;
	align-items: end;
}

.mega__intro {
	align-self: end;
}

.mega__heading {
	font-size: clamp(26px, 2.4vw, 38px);
	margin: 0 0 8px;
}

.mega__sub {
	margin: 0;
	color: var(--gray-700);
	font-size: 14px;
	max-width: 22ch;
}

.mega__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px 28px;
}

.mega__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.mega__media {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 8;
	overflow: hidden;
}

.mega__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.mega__item:hover .mega__media img {
	transform: scale(1.04);
}

.mega__name {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 17px;
}

.mega__links {
	display: inline-flex;
	gap: 22px;
}

.mega__links a {
	font-size: 14px;
	color: var(--gray-700);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.mega__links a:hover {
	color: var(--black);
}

/* Left cluster: logo mark + primary nav */
.site-header__left {
	display: flex;
	align-items: center;
	gap: 28px;
	justify-self: start;
	min-width: 0;
}

.site-header__mark {
	display: inline-flex;
}

.site-header__mark svg {
	display: block;
	width: 30px;
	height: 30px;
}

svg.site-header__logo {
	display: block;
}

/* Right-side actions menu (admin-managed, location "actions") */
.actions-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.actions-menu a {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 15px;
	opacity: 0.92;
	transition: opacity 0.2s ease;
	white-space: nowrap;
}

.actions-menu a:hover {
	opacity: 1;
}

/* Scrolled / solid header — also while the models mega menu is open, so the
 * bar above the white panel never stays transparent over the hero. */
.site-header.is-solid,
.site-header:has(.menu-item--models:hover),
.site-header:has(.menu-item--models:focus-within) {
	background: var(--white);
	color: var(--black);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile toggle */
.nav-toggle {
	display: none;
	width: 28px;
	height: 28px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: inherit;
	place-items: center;
}

.nav-toggle svg {
	display: block;
}

/* ---------- Mobile fullscreen menu ---------- */
.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: var(--white);
	color: var(--black);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	/* Fades in/out (like zeekr.eu): JS unhides, then toggles .is-open. */
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
	opacity: 1;
}

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

.mobile-menu__top {
	display: flex;
	justify-content: flex-end;
	padding: 20px 24px 8px;
}

.mobile-menu__close {
	border: 0;
	background: none;
	padding: 8px;
	cursor: pointer;
	color: inherit;
	display: grid;
	place-items: center;
}

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

/* Top-level items only — the mega content inside keeps its own styles. */
.mm-list > .menu-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 24px;
	font-size: 18px;
	line-height: 1.2;
	color: inherit;
}

/* The +/− toggle (injected by JS on items with children). */

.zk-facts .facts-panel__title span {
	display: none;
}
.mm-plus {
	position: relative;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.mm-plus::before,
.mm-plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 1.6px;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.mm-plus::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: opacity 0.2s ease;
}

.mm-list > .menu-item.is-open > a .mm-plus::after {
	opacity: 0;
}

/* Expanded item: beige band spanning the full menu width. */
.mm-list > .menu-item.is-open {
	background: #ebe8e3;
}

/* The models mega panel becomes an inline accordion body. Collapse animation
 * via the grid 0fr→1fr trick: works for any content height, pure CSS. */
.mobile-menu .mega {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.35s ease;
	position: static;
	width: auto;
	opacity: 1;
	visibility: visible;
	transform: none;
	clip-path: none;
	box-shadow: none;
	background: transparent;
	padding: 0 24px;
}

.mm-list > .menu-item.is-open > .mega {
	grid-template-rows: 1fr;
}

.mobile-menu .mega__inner {
	display: block;
	min-height: 0;
	overflow: hidden;
	padding: 0;
}

.mobile-menu .mega__intro {
	display: none;
}

.mobile-menu .mega__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px 18px;
	list-style: none;
	margin: 0;
	/* Vertical breathing room lives INSIDE the clipped area, so the collapsed
	 * state folds to exactly zero height. */
	padding: 4px 0 30px;
}

.mobile-menu .mega__item {
	text-align: center;
}

.mobile-menu .mega__media img {
	width: 100%;
	height: auto;
}

.mobile-menu .mega__name {
	display: block;
	font-size: 17px;
	margin: 10px 0 8px;
}

.mobile-menu .mega__links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 12px;
}

.mobile-menu .mega__links a {
	font-size: 13px;
	color: var(--gray-700);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.mm-divider {
	border: 0;
	border-top: 1px solid var(--gray-300);
	margin: 14px 24px;
}

@media (min-width: 769px) {
	.mobile-menu {
		display: none !important;
	}
}

/* ==========================================================================
   03. Homepage sections
   ========================================================================== */

/* ---------- Hero slider (featured models) ---------- */
.hero-slider {
	background: var(--black);
}

.hero-slider__swiper {
	width: 100%;
}

.hero-slider__slide {
	position: relative;
	min-height: 100vh;
	background-size: cover;
	background-position: center;
	color: var(--white);
}

.hero-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-slider__inner {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-top: 150px;
	padding-bottom: 96px;
}

.hero-slider__head {
	flex: 0 0 auto;
}

.hero-slider__title {
	font-size: clamp(40px, 5.4vw, 76px);
	line-height: 1.02;
	margin: 0;
	font-weight: 500;
}

.hero-slider__sub {
	font-size: clamp(18px, 1.8vw, 26px);
	line-height: 1.25;
	margin: 16px 0 0;
	opacity: 0.95;
}

.hero-slider__cta {
	margin-top: auto;
	display: flex;
	justify-content: center;
	gap: 16px;
}

/* Progress bars — one per slide, centred at the bottom. The active bar
   fills over the slide's duration (driven by JS). */
.hero-slider__swiper .hero-slider__progress {
	position: absolute;
	left: 50%;
	bottom: 40px;
	top: auto;
	transform: translateX(-50%);
	width: auto;
	display: flex;
	gap: 10px;
	z-index: 5;
}

.hero-slider__bar {
	display: block;
	width: 46px;
	height: 3px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.3);
	overflow: hidden;
	cursor: pointer;
	position: relative;
}

.hero-slider__bar-fill {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--white);
	border-radius: 3px;
	transform: scaleX(0);
	transform-origin: left center;
}

/* ---------- Intro / brand statement ---------- */
.intro {
	background-color: #F1EFEB;
	text-align: center;
}

.intro__inner {
	max-width: 760px;
	margin-inline: auto;
	padding: 120px 24px;
}

.intro__title {
	font-size: 48px;
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 28px;
}

.intro__text {
	font-size: 32px;
	line-height: 1.4;
	margin: 0 0 28px;
	color: var(--dark);
}

.intro__brand {
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 500;
	margin: 0;
}

.intro__accent {
	color: var(--orange);
}

/* ---------- Model showcase (tabbed slider) ---------- */
.showcase {
	background: var(--white);
	padding: 72px 0 96px;
}

/* Centred wrapper that hugs the pill and anchors the scroll paddles. */
.showcase__tabsnav {
	position: relative;
	width: max-content;
	max-width: calc(100% - 48px);
	margin: 0 auto 44px;
}

.showcase__tabs {
	position: relative;
	display: flex;
	justify-content: flex-start;
	/* One row that scrolls horizontally when the tabs don't fit (instead of
	 * wrapping to a second line); the pill hugs its content when they do. */
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	gap: 4px;
	width: 100%;
	padding: 5px;
	background: var(--gray-300);
	border-radius: 999px;
}

/* Sliding active indicator: one white pill that glides between tabs (same
 * 0.5s timing as the slider) instead of the active state snapping on.
 * Positioned/sized by main.js. */
.showcase__tabs__pill {
	position: absolute;
	top: 5px;
	bottom: 5px;
	left: 0;
	width: 0;
	z-index: 0;
	border-radius: 999px;
	background: var(--white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	pointer-events: none;
	transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
		width 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Scroll paddles: chevrons overlaid on the pill's edges, each fading the tabs
 * beneath it. Shown/hidden by main.js based on the scroll position. */
.showcase__paddle {
	position: absolute;
	top: -8px;
	bottom: 8px;
	width: 46px;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--black);
	cursor: pointer;
	z-index: 2;
}

.showcase__paddle svg {
	display: block;
	width: 8px;
	height: 14px;
}

.showcase__paddle--right {
	right: 0px;
	justify-content: flex-end;
	padding-right: 15px;
	border-radius: 0 999px 999px 0;
	background: linear-gradient(to right, rgba(240, 240, 240, 0), var(--gray-300) 60%);
}

.showcase__paddle--left {
	left: 0px;
	justify-content: flex-start;
	padding-left: 15px;
	border-radius: 999px 0 0 999px;
	background: linear-gradient(to left, rgba(240, 240, 240, 0), var(--gray-300) 60%);
}

.showcase__paddle[hidden] {
	display: none;
}

.showcase__tabs::-webkit-scrollbar {
	display: none;
}

.showcase__tab {
	position: relative;
	z-index: 1;
	border: 0;
	background: transparent;
	padding: 10px 22px;
	border-radius: 999px;
	font-family: var(--font-head);
	font-size: 15px;
	font-weight: 500;
	color: var(--gray-700);
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s ease;
}

.showcase__tab:hover {
	color: var(--black);
}

.showcase__tab.is-active {
	color: var(--black);
}

.showcase__swiper {
	position: relative;
	max-width: calc(100% - 48px);
	margin-inline: auto;
	padding: 0 64px;
}

.showcase__slide {
	text-align: center;
}

.showcase__title {
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 500;
	line-height: 1.1;
	margin: 0;
}

.showcase__sub {
	font-size: clamp(24px, 3vw, 40px);
	font-weight: 400;
	line-height: 1.1;
	margin: 4px 0 0;
}

.showcase__media {
	max-width: 1100px;
	margin: 28px auto 0;
}

.showcase__media img {
	display: block;
	width: 100%;
	height: auto;
}

.showcase__specs {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(36px, 10vw, 150px);
}

.showcase__spec-value {
	display: block;
	font-family: var(--font-head);
	font-size: clamp(34px, 4vw, 56px);
	font-weight: 500;
	line-height: 1;
}

.showcase__spec-label {
	display: block;
	margin-top: 12px;
	font-size: 15px;
	color: var(--gray-700);
}

.showcase__cta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

.showcase__swiper .swiper-button-prev,
.showcase__swiper .swiper-button-next {
	top: 50%;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	color: var(--black);
	background: var(--white);
	border: 0;
	box-shadow: none;
	transition: background 0.2s ease, opacity 0.2s ease;
}

.showcase__swiper .swiper-button-prev {
	left: 24px;
}

.showcase__swiper .swiper-button-next {
	right: 24px;
}

.showcase__swiper .swiper-button-prev:hover,
.showcase__swiper .swiper-button-next:hover {
	background: var(--gray-200);
}

.showcase__swiper .swiper-navigation-icon {
	width: 11px;
	height: 20px;
}

.showcase__swiper .swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

@media (max-width: 640px) {
	/* No side padding: the nav arrows are hidden here, and any padding lets the
	 * next slide peek through the overflow-clip at the padding-box edge. */
	.showcase__swiper {
		padding: 0;
	}

	.showcase__swiper .swiper-button-prev,
	.showcase__swiper .swiper-button-next {
		display: none;
	}
}

/* ---------- Section heads ---------- */
.section-head {
	padding: 80px 0 36px;
	margin-bottom: 48px;
	text-align: center;
}

.section-head__eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-700);
}

.section-head__title {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 44px);
}

/* ---------- Models grid ---------- */
.models {
	background: var(--gray-200);
}

.models__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	padding-bottom: 96px;
}

.model-card {
	background: var(--white);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.model-card__media {
	aspect-ratio: 16 / 9;
	background: linear-gradient(180deg, var(--gray-300), var(--gray-200));
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.model-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.model-card__body {
	padding: 28px 32px 32px;
}

.model-card__name {
	font-size: 26px;
	margin-bottom: 4px;
}

.model-card__price {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--gray-700);
	margin: 0 0 20px;
	font-size: 15px;
}

.model-card__specs {
	list-style: none;
	margin: 18px 0 28px;
	padding: 20px 0;
	border-top: 1px solid var(--gray-400);
	border-bottom: 1px solid var(--gray-400);
	display: flex;
	gap: 12px;
}

.model-card__specs li {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.spec-value {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 26px;
	line-height: 1;
}

.spec-label {
	font-size: 12.5px;
	color: var(--gray-700);
}

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

/* ---------- Services (zeekr/services block) ---------- */
.wp-block-zeekr-services {
	/* Stay full-width even when wrapped in a vertical flex group (which WP gives
	 * align-items:flex-start — that would otherwise shrink this to the slide
	 * image's intrinsic width and blow up the 21:9 stage). */
	width: 100%;
	align-self: stretch;
	padding: 60px 24px;
}

.svc__swiper {
	overflow: hidden;
}

.svc__slide img {
	display: block;
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

.svc__tabs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin-top: 44px;
}

.svc__tab {
	cursor: pointer;
	color: var(--gray-600);
	transition: color 0.25s ease;
}

.svc__bar {
	display: block;
	height: 2px;
	background: var(--gray-400);
	margin-bottom: 22px;
	transition: background 0.25s ease;
}

.svc__tab.is-active .svc__bar {
	background: var(--black);
}

.svc__title {
	font-size: 24px;
	font-weight: 500;
	margin: 0 0 14px;
	color: inherit;
}

.svc__text {
	font-size: 15.5px;
	line-height: 1.55;
	margin: 0 0 16px;
	color: inherit;
}

.svc__link {
	display: inline-block;
	font-size: 15px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.svc__tab.is-active {
	color: var(--black);
}

.svc__tab:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 4px;
}

/* Cloned card image — shown only inside the mobile slider below. */
.svc__tab-media {
	display: none;
}

.media-showcase-inner {
	padding: 60px 16px;


	h3 {
		font-size: 28px;
	}
}
.switchboard{
	padding: 60px 62px;
	text-align: center;

	.wp-block-group{
		align-items: center;

		h3 {
			font-size: 20px;
		}

		p {
			font-size: 24px;
		}
	}

	img{
		display: none;
	}
}

@media (min-width: 992px) {

	.media-showcase-inner {
		padding: 120px 142px;
		h3 {
			font-size: 32px;
		}
	}
	.switchboard{
		padding: 120px 142px;
		text-align: left;

		.wp-block-group{
			align-items: start;

			h3 {
				font-size: 24px;
			}

			p {
				font-size: 32px;
			}
		}

		img{
			display: block;
		}
	}
}

/* Mobile: the services turn into a swipeable card strip. Each card is image +
 * divider + title + text + link; the current card is full-opacity while the
 * neighbours peek and dim. main.js clones each image into its tab and tracks
 * the current card with an IntersectionObserver (adds .is-current). */
@media (max-width: 768px) {
	.svc__swiper {
		display: none;
	}

	.svc__tabs {
		display: flex;
		flex-wrap: nowrap;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		/* Bleed to both viewport edges so neighbours peek on either side; the
		 * padding keeps the first/last card aligned to the section edge. */
		margin-inline: -24px;
		padding-inline: 24px;
	}

	.svc__tabs::-webkit-scrollbar {
		display: none;
	}

	.svc__tab {
		/* Slightly narrower than the viewport and centre-snapped, so a middle
		 * card sits centred with both neighbours peeking; the first/last card
		 * clamps to the edge (nothing to peek on the outer side). */
		flex: 0 0 100%;
		scroll-snap-align: center;
		color: var(--black);
		opacity: 0.4;
		transition: opacity 0.35s ease;
	}

	.svc__tab.is-current {
		opacity: 1;
	}

	.svc__bar {
		background: var(--black);
	}

	.svc__tab-media {
		display: block;
		margin: 0 0 24px;
	}

	.svc__tab-media img {
		display: block;
		width: 100%;
		aspect-ratio: 5 / 3;
		object-fit: cover;
	}
}

/* Reusable utility: add the class "zk-slider-cols" to any Columns block and it
 * turns into a mobile card slider — each column becomes a centre-snapped card,
 * the current one full-opacity and the peeking neighbours dimmed (like the
 * services block). main.js tracks the centred column (adds .is-current). The
 * doubled selectors out-specify core's stack-on-mobile rules. */
@media (max-width: 768px) {
	.zk-slider-cols.wp-block-columns {
		flex-wrap: nowrap !important;
		gap: 16px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		/* Bleed to both viewport edges so neighbours peek on either side. */
		margin-inline: -24px;
		padding-inline: 24px;
	}

	.zk-slider-cols.wp-block-columns::-webkit-scrollbar {
		display: none;
	}

	.zk-slider-cols.wp-block-columns > .wp-block-column.wp-block-column {
		flex: 0 0 100% !important;
		scroll-snap-align: center;
		opacity: 0.4;
		transition: opacity 0.35s ease;
	}

	.zk-slider-cols.wp-block-columns > .wp-block-column.is-current {
		opacity: 1;
	}

	/* Uniform landscape crop for the card images. */
	.zk-slider-cols > .wp-block-column img {
		width: 100%;
		aspect-ratio: 5 / 3;
		object-fit: cover;
	}

	/* Divider line between each card's image and its title. */
	.zk-slider-cols > .wp-block-column .wp-block-heading {
		margin-top: 4px;
		padding-top: 24px;
		border-top: 2px solid #fff4e2;
		width: 100%;
	}
}

/* ==========================================================================
   04. Model archive and single-model base
   ========================================================================== */

/* ---------- Single model page ---------- */
/* Centred layout like zeekr.eu: title + subtitle in the upper third,
 * the CTA pair pinned to the bottom centre. */
.model-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	background: var(--hero-img) center/cover no-repeat var(--dark);
	color: var(--white);
}

.model-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.45) 100%);
}

.model-hero__content {
	position: relative;
	padding: calc(var(--header-h) + 8vh) 24px 0;
}

.model-hero__title {
	margin: 0;
	font-weight: 600;
	font-size: clamp(44px, 6vw, 76px);
	line-height: 1.05;
	color: var(--cream);
}

.model-hero__sub {
	margin: 10px 0 0;
	font-family: var(--font-head);
	font-weight: 400;
	font-size: clamp(18px, 2.2vw, 28px);
	color: var(--white);
}

.model-hero__price {
	margin: 14px 0 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 17px;
	color: var(--cream);
}

.model-hero__cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	padding: 0 24px 72px;
}

.btn--accent {
	background: var(--orange);
	color: var(--white);
}

.btn--accent:hover {
	background: var(--orange-light);
}

.model-specs {
	background: var(--gray-200);
	padding: 64px 0;
}

.model-specs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: center;
}

.model-specs__list li {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.model-specs__list .spec-value {
	font-size: clamp(40px, 6vw, 64px);
}

.model-specs__list .spec-label {
	font-size: 15px;
}

.model-body {
	padding: 80px 0;
}

.model-body .entry-content {
	max-width: 760px;
	margin-inline: auto;
	font-size: 18px;
	color: var(--dark);
}

/* ---------- Models archive ---------- */
.models-archive {
	padding-top: var(--header-h);
}

.section-head--archive {
	padding-top: 64px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
	:root {
		--header-h: 76px;
	}

	.nav-toggle {
		display: flex;
		color: inherit;
	}

	.actions-menu {
		display: none;
	}

	.site-header__left {
		gap: 16px;
	}

	/* The desktop inline nav hides; the fullscreen .mobile-menu replaces it. */
	.site-nav {
		display: none;
	}

	.models__grid {
		grid-template-columns: 1fr;
	}

	.model-card__actions .btn {
		flex: 1;
	}

	/* Model hero: both CTAs stack full-width. The hero centres its items, so
	 * stretch the CTA row before letting the buttons fill it. */
	.model-hero__cta {
		flex-direction: column;
		align-self: stretch;
	}

	.model-hero__cta .btn {
		width: 100%;
	}

	.hero-slider__inner {
		padding-top: 120px;
		padding-bottom: 72px;
	}

	/* Hero CTA spans the row (reference design). The inner is a centered flex
	 * column, so stretch the CTA to full width, then let the button fill it. */
	.hero-slider__cta {
		align-self: stretch;
	}

	.hero-slider__cta .btn {
		flex: 1;
	}

	/* Model showcase: keep the three key specs on one row instead of wrapping. */
.showcase__head {
		padding: 34px 16px;
	}
	.showcase__specs {
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 12px;
		text-align: left;
		padding: 40px 16px 0;
	}

	.showcase__specs li {
		flex: 1 1 0;
		min-width: 0;
	}

	.showcase__spec-value {
		font-size: 30px;
	}

	.showcase__spec-label {
		font-size: 12.5px;
		margin-top: 8px;
	}

	/* Showcase CTAs stack full-width (reference design). */
	.showcase__cta {
		flex-direction: column;
	}

	.showcase__cta .btn {
		width: 100%;
	}

	.model-specs__list {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.model-body {
		padding: 0;
	}

	.model-body .model-section {
		padding: 60px 0;
	}
}

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

/* ==========================================================================
   05. Model configurator
   ========================================================================== */

/* ---------- Pre-configurator (CarShow) ---------- */
.cs {
	padding: 56px 0 72px;
	background-color: #ebe8e380;
}

.cs__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px 32px;
	flex-wrap: wrap;
}

.cs__title {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(26px, 3.4vw, 40px);
}

/* Fixed width (sized for the model's largest colour set) so the view toggle,
 * pinned to this block's left edge, stays in one place while the swatch pill
 * hugs the current colours and grows rightward. */
.cs__controls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: calc(var(--cs-max, 4) * 36px + 114px);
	max-width: 100%;
}

.cs__meta {
	margin: 0;
	white-space: nowrap;
	font-size: 14px;
	color: var(--gray-700);
}

.cs__meta-sep {
	margin: 0 6px;
	color: var(--gray-500);
}

.cs__name {
	color: var(--dark);
}

.cs__toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
}

/* View toggle — icon buttons inside a light pill; active icon = dark circle.
 * flex-shrink:0 keeps it from being squeezed by the swatches. */
.cs__views {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 4px;
	padding: 4px;
	background-color: #ebe8e3;
	border-radius: 999px;
}

.cs__view {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--black);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.cs__view svg {
	width: 20px;
	height: 20px;
}

.cs__view.is-active {
	background: var(--black);
	color: var(--white);
}

/* Swatches — circles inside a light pill that hugs the current colours. */
.cs__swatches {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 12px;
	list-style: none;
	background-color: #ebe8e3;
	border-radius: 999px;
}

.cs__swatch {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: 0 0 0 2px transparent;
	transition: box-shadow 0.2s ease;
}

.cs__swatch span {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sw, #ccc);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Two-tone swatch: top/bottom halves (e.g. Midnight Blue & Polar White). */
.cs__swatch--duo span {
	background: linear-gradient(
		180deg,
		var(--sw, #ccc) 0%,
		var(--sw, #ccc) 50%,
		var(--sw2, var(--sw, #ccc)) 50%,
		var(--sw2, var(--sw, #ccc)) 100%
	);
}

.cs__swatch.is-active {
	box-shadow: 0 0 0 2px var(--orange);
}

/* Large centred vehicle image. */
.cs__stage {
	text-align: center;
	margin: 16px 0 36px;
}

.cs__image {
	width: 100%;
	max-height: 640px;
	object-fit: contain;
	transition: opacity 0.3s ease;
}

/* Key specs beneath the image. */
.cs__specs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: clamp(32px, 8vw, 110px);
	text-align: center;
}

.cs__spec-value {
	display: block;
	font-family: var(--font-head);
	font-weight: 400;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1;
}

.cs__spec-label {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--gray-700);
}

/* Mobile: everything centred — title, then the view pill, then the swatch
 * pill on its own row; the meta line hides; specs sit in one 3-up row. */
@media (max-width: 768px) {
	.cs__top {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.cs__title {
		text-align: center;
	}

	.cs__meta {
		display: none;
	}

	.cs__controls {
		width: auto;
		align-items: center;
	}

	.cs__toolbar {
		flex-direction: column;
		align-items: center;
		gap: 14px;
	}

	.cs__stage {
		margin: 24px 0 40px;
	}

	.cs__specs {
		flex-wrap: nowrap;
		justify-content: space-between;
		gap: 14px;
		text-align: left;
	}

	.cs__specs li {
		flex: 1 1 0;
		min-width: 0;
	}

	.cs__spec-value {
		font-size: 30px;
	}

	.cs__spec-label {
		font-size: 12.5px;
	}
}

/* ==========================================================================
   06. Editorial sections and Gutenberg patterns
   ========================================================================== */

/* Full-bleed sections inside the constrained post content. */
.entry-content > .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.model-section {
	padding: 88px 0;
	background: var(--white);
}

.model-section--beige {
	background: #ece9e3;
}

.model-section--gray {
	background: var(--gray-100);
}

.model-section--dark {
	background: var(--black);
	color: var(--white);
}

.model-section__title {
	margin: 0 0 18px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.05;
}

.model-section__lead {
	margin: 0 0 44px;
	max-width: 62ch;
	font-size: 17px;
	line-height: 1.7;
	color: var(--gray-700);
}

.model-section--dark .model-section__lead {
	color: var(--gray-600);
}

/* Core gallery inside a section */
.model-section .wp-block-gallery {
	gap: 24px;
	margin: 0 0 36px;
}

.model-section .wp-block-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 16px;
}

/* Feature cards built from core columns */
.zk-cards {
	gap: 28px;
}

.zk-cards > .wp-block-column {
	background: var(--white);
	border-radius: 16px;
	padding: 26px 24px;
}

@media (max-width: 860px) {
	.zk-cards {
		gap: 0;
	}
	.zk-cards > .wp-block-column {
		padding: 0;
	}
}

.model-section--dark .zk-cards > .wp-block-column {
	background: var(--dark);
}

.zk-cards h3 {
	margin: 0 0 10px;
	font-size: 18px;
}

.zk-cards p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gray-700);
}
.zk-cards p.underline a {
	text-decoration: underline;
}

.zk-cards p:last-child {
	margin-bottom: 0;
}

.model-section--dark .zk-cards p {
	color: var(--gray-600);
}

.model-section--dark .zk-cards h3 {
	color: var(--white);
}

.zk-cards .wp-block-image {
	margin: 0 0 18px;
}

.zk-cards .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

/* Metrics row built from core columns */
.zk-metrics {
	gap: 24px;
	margin: 0 0 56px;
	text-align: center;
}

.zk-metric-value {
	margin: 0;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1;
}

.zk-metric-label {
	margin: 8px 0 0;
	font-size: 14px;
	color: var(--gray-700);
}

.model-section--dark .zk-metric-label {
	color: var(--gray-600);
}

/* -------------------------------------------------------------------------
 * Sticky section sub-navigation (model pages)
 * ------------------------------------------------------------------------- */
.subnav {
	position: sticky;
	top: var(--header-h);
	z-index: 90;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--gray-400);
}

.subnav__inner {
	overflow-x: auto;
	scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
	display: none;
}

.subnav__list {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.subnav__list a {
	display: inline-block;
	padding: 15px 0 13px;
	font-family: var(--font-head);
	font-size: 14px;
	font-weight: 600;
	color: var(--gray-700);
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.subnav__list a:hover {
	color: var(--black);
}

.subnav__list a.is-active {
	color: var(--black);
	border-color: var(--orange);
}

/* Anchors must clear both the fixed header and the sticky bar. */
html:has(#model-subnav) {
	scroll-padding-top: calc(var(--header-h) + 50px);
}

/* -------------------------------------------------------------------------
 * Editorial galleries: split layout, pill button, "+" badges, masonry offset
 * ------------------------------------------------------------------------- */
.zk-split {
	gap: 56px;
}

/* Pill button with an orange plus circle. */
.zk-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border: 1px solid var(--gray-500);
	border-radius: 999px;
	background: var(--white);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.zk-pill .carousel1-footer-icon {
	display: block;
	flex: 0 0 20px;
}

.zk-pill:hover {
	border-color: var(--black);
}

/* Captions never show inline — they feed the "+" popup instead. */
.site-main .wp-block-gallery figcaption {
	display: none;
}

.model-section .wp-block-gallery .wp-block-image {
	position: relative;
}

.zk-plus {
	position: absolute;
	right: 18px;
	bottom: 18px;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.zk-plus svg {
	display: block;
}

.zk-plus circle,
.zk-plus path {
	transition: fill 0.25s ease, stroke 0.25s ease;
}

.zk-plus:hover circle {
	fill: #fff4e2;
}

.zk-plus:hover path:last-child {
	stroke: #000;
}

/* Staggered two-column photo grid. */
.zk-masonry.wp-block-gallery {
	margin: 0;
}

.zk-masonry > .wp-block-image:nth-child(even) {
	margin-top: 56px;
}

@media (max-width: 781px) {
	.zk-masonry > .wp-block-image:nth-child(even) {
		margin-top: 0;
	}
}

/* -------------------------------------------------------------------------
 * Lightbox: fullscreen gallery + image info popup
 * ------------------------------------------------------------------------- */
.zk-noscroll {
	overflow: hidden;
}

.zk-lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zk-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 2);
}

.zk-lightbox--popup .zk-lightbox__backdrop {
	background: rgba(10, 10, 10, 0.55);
}

.zk-lightbox__body {
	position: relative;
	max-width: 92vw;
	max-height: 88vh;
}

.zk-lightbox__img {
	max-width: 86vw;
	max-height: 84vh;
	object-fit: contain;
}

.zk-lightbox__card {
	margin: 0;
	width: min(880px, 92vw);
	max-height: 88vh;
	overflow: hidden;
	background: var(--white);
	border-radius: 10px;
}

.zk-lightbox__card img {
	width: 100%;
	max-height: 56vh;
	object-fit: cover;
	aspect-ratio: 5 / 3;
}

.zk-lightbox__caption {
	padding: 32px 16px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--dark);
}

.zk-lightbox__caption strong {
	display: block;
	margin-bottom: 10px;
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 600;
	color: var(--black);
}

@media (min-width: 992px) {
	.zk-lightbox__card img{
		max-height: 39vh
	}

	.zk-lightbox__caption{
		padding: 48px 60px;
	}
}

/* Light round close button, top-right (reference design). */
.zk-lightbox__close {
	position: absolute;
	top: 24px;
	right: 28px;
	z-index: 2;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.zk-lightbox__close svg {
	display: block;
	width: 48px;
	height: 48px;
}

/* Minimal bare arrows at the viewport edges; dark square on hover. */
.zk-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.zk-lightbox__nav svg {
	display: block;
	width: 56px;
	height: 56px;
}

.zk-lightbox__nav:focus {
	outline: none;
}

.zk-lightbox__nav:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.7);
	outline-offset: 2px;
}

.zk-lightbox__nav--prev {
	left: 12px;
}

.zk-lightbox__nav--next {
	right: 12px;
}

/* Gallery mode: full-bleed centered filmstrip with edge peeks. */
.zk-lightbox--gallery .zk-lightbox__body {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	display: flex;
	align-items: center;
	padding: 0 16px;
}

.zk-lightbox__swiper {
	width: 100%;
}

/* Uniform slides (~half the viewport, 3:2-ish) with cover-cropped images;
 * inactive neighbours are dimmed like on zeekr.eu. */
.zk-lightbox__swiper .swiper-slide {
	position: relative;
	width: min(50vw, 1100px);
	height: min(60vh, 700px);
}

.zk-lightbox__swiper .swiper-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 8, 0.55);
	opacity: 1;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.zk-lightbox__swiper .swiper-slide-active::after {
	opacity: 0;
}

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

@media (max-width: 860px) {
	.zk-lightbox__swiper .swiper-slide {
		width: 84vw;
		height: 52vh;
	}
}

/* Gallery progress bar — a track split into one segment per image; the current
 * segment is white (position indicator, not a growing fill). Mobile only. */
.zk-lightbox__progress {
	display: none;
	width: 84vw;
	max-width: 520px;
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.22);
	overflow: hidden;
}

.zk-lightbox__progress .swiper-pagination-bullet {
	flex: 1;
	height: 100%;
	margin: 0;
	border-radius: 0;
	background: transparent;
	opacity: 1;
	transition: background 0.3s ease;
}

.zk-lightbox__progress .swiper-pagination-bullet-active {
	background: var(--white);
}

@media (max-width: 768px) {
	/* Every image sits in the same landscape frame (cover-cropped) with the
	 * position bar beneath it and no side arrows, like the reference. */
	.zk-lightbox--gallery .zk-lightbox__body {
		flex-direction: column;
		justify-content: center;
		gap: 22px;
	}

	.zk-lightbox__swiper .swiper-slide {
		width: 88vw;
		height: auto;
		aspect-ratio: 3 / 2;
	}

	.zk-lightbox__progress {
		display: flex;

		span.swiper-pagination-bullet{
			margin: 0 !important;
		}
	}

	.zk-lightbox--gallery .zk-lightbox__nav {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Hotspots: pulsing dots + right info drawer
 * ------------------------------------------------------------------------- */
.zk-hotspots {
	position: relative;
}

/* The editable data list feeds JS; it never renders on the front end. */
.site-main .zk-hotspots__items {
	display: none;
}

.zk-hotspots__stage {
	position: relative;
	margin: 0;
}

.zk-hotspots__stage img {
	width: 100%;
	height: auto;
}

.zk-hotspots__dot {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	background: var(--orange);
	cursor: pointer;
	animation: zk-pulse 2.2s infinite;
}

.zk-hotspots__dot:hover {
	animation-play-state: paused;
}

@keyframes zk-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 88, 65, 0.45); }
	70% { box-shadow: 0 0 0 18px rgba(255, 88, 65, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 88, 65, 0); }
}

.zk-drawer {
	position: fixed;
	inset: 0;
	z-index: 300;
}

.zk-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.45);
}

.zk-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(560px, 94vw);
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--white);
	animation: zk-drawer-in 0.3s ease;
}

.zk-drawer__transition-clone {
	position: absolute !important;
	z-index: 1;
	margin: 0 !important;
	background: var(--white);
	pointer-events: none;
}

.zk-drawer__transition-clone.zk-drawer__media {
	background: transparent;
}

@keyframes zk-drawer-in {
	from { transform: translateX(40px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.zk-drawer__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	padding: 0;
	background: none;
	cursor: pointer;
}

.zk-drawer__close svg {
	display: block;
}

.zk-drawer__media img {
	width: 100%;
	height: 60vh;
	object-fit: cover;
}

.zk-drawer__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 28px 0;
	color: var(--gray-700);
	font-size: 14px;
}

.zk-drawer__count .current-count {
	color: #000;
}

.zk-drawer__count .total-count {
	color: var(--gray-700);
}

.zk-drawer__arrows {
	display: inline-flex;
	gap: 10px;
}

.zk-drawer__arrows button {
	border: 0;
	background: none;
	color: var(--black);
	cursor: pointer;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	transition: color 0.2s ease;
}

.zk-drawer__arrows button svg {
	display: block;
}

.zk-drawer__prev svg {
	transform: rotate(180deg);
}

.zk-drawer__arrows button:disabled {
	cursor: not-allowed;
	opacity: 0.2;
}

.zk-drawer__arrows button:not(:disabled):hover {
	opacity: 0.65;
}

.zk-drawer__panel.is-animating .zk-drawer__arrows button {
	pointer-events: none;
}

/* Mobile: the drawer becomes a full-screen panel (reference design). */
@media (max-width: 768px) {
	.zk-drawer__panel {
		width: 100vw;
	}
}

.zk-drawer__title {
	margin: 14px 28px 10px;
	font-family: var(--font-head);
	font-size: 26px;
	font-weight: 600;
}

.zk-drawer__text {
	margin: 0 28px 32px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--dark);
}

/* -------------------------------------------------------------------------
 * Video block: circular playback progress / pause control
 * ------------------------------------------------------------------------- */
.zk-video {
	margin-block: 0;
	padding: 24px;
}

.zk-video__stage {
	position: relative;
	overflow: hidden;
}

.zk-video video {
	display: block;
	width: 100%;
	height: auto;
}

.zk-video__control {
	position: absolute;
	right: clamp(16px, 2vw, 28px);
	bottom: clamp(16px, 2vw, 28px);
	z-index: 2;
	width: 32px;
	height: 32px;
	display: block;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 15, 15, 0.18);
	cursor: pointer;
}

.zk-video__control svg {
	display: block;
}

.zk-video__control .process-circle {
	transform: rotate(-90deg);
	transform-origin: center;
	transition: stroke-dashoffset 0.2s linear;
}

.zk-video__control:focus-visible {
	outline: 2px solid #fff4e2;
	outline-offset: 3px;
}

.zk-video__caption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--gray-700);
	text-align: center;
}

@media (max-width: 768px) {
	.zk-video__stage {
		height: 520px;
	}

	.zk-video video {
		height: 100%;
		object-fit: cover;
	}
}

/* Author display:flex would otherwise beat the UA [hidden] rule. */
.zk-lightbox[hidden],
.zk-drawer[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------
 * Warranty pattern (core blocks)
 * ------------------------------------------------------------------------- */
#warranty{
	.wp-block-columns.zk-split{
		gap: 0;
	}
	.wp-block-image img{
		aspect-ratio: 1 / 1;
		object-fit: cover;
		width: auto;
	}
}


@media (min-width: 992px) {
	#warranty {
		.wp-block-columns.zk-split{
			gap: 56px;
		}
		.wp-block-image img {
			aspect-ratio: 4 / 3;
			height: 566px;
			width: 448px;
		}
	}
}
.model-section__eyebrow--big {
	text-transform: none;
	letter-spacing: 0;
	font-size: 20px;
}

.zk-wgrid {
	gap: 12px 32px;
	margin-bottom: 36px;
}

.zk-wval {
	margin: 22px 0 2px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 28px;
	line-height: 1.1;
}

.zk-wval:first-child {
	margin-top: 0;
}

.zk-wlabel {
	margin: 0;
	font-size: 13px;
	color: var(--gray-700);
}

/* Core button styled as the theme's dark pill. */
.model-section .wp-block-button__link {
	background: var(--black);
	color: var(--white);
	border-radius: 999px;
	padding: 14px 30px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 15px;
	transition: background 0.2s ease;
}

.model-section .wp-block-button__link:hover {
	background: var(--dark);
}

/* -------------------------------------------------------------------------
 * Technology section: media cards + overlay-title cards
 * ------------------------------------------------------------------------- */

/* Row of "image with heading + text below" cards. */
.zk-media-cards {
	gap: 28px;
	margin: 44px 0 72px;
}

.zk-media-cards .wp-block-image {
	margin: 0;
}

.zk-media-cards img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.zk-media-cards h3 {
	margin: 20px 0 10px;
	font-size: 17px;
	font-weight: 600;
}

.zk-media-cards p {
	margin: 0;
	max-width: 56ch;
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--gray-700);
}

.model-section--dark .zk-media-cards p {
	color: var(--gray-600);
}

/* Cards whose caption title sits on the image; "+" opens the full popup. */
.zk-overlay {
	gap: 28px;
}

.zk-overlay .wp-block-image {
	position: relative;
	margin: 0 0 28px;
}

.zk-overlay .wp-block-image:last-child {
	margin-bottom: 0;
}

.zk-overlay img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.zk-overlay .zk-overlay__tall img {
	aspect-ratio: 4 / 5;
	height: 100%;
}

/* Show only the bold title from the caption, overlaid bottom-left; the rest
 * of the caption text appears in the "+" popup. */
.site-main .zk-overlay figcaption {
	display: block;
	position: absolute;
	left: 20px;
	bottom: 16px;
	right: 64px;
	margin: 0;
	font-size: 0;
	color: transparent;
	text-align: left;
	pointer-events: none;
}

.site-main .zk-overlay figcaption strong {
	font-family: var(--font-head);
	font-size: 16px;
	font-weight: 600;
	color: var(--white);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* -------------------------------------------------------------------------
 * Specs comparison — core/table inside the "Характеристики" pattern
 * ------------------------------------------------------------------------- */
.specs-brochure {
	margin: 20px 0 0;
}

.specs-brochure a {
	color: var(--black);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.zk-spec-table {
	margin: 40px 0 0;
	overflow-x: auto;
}

.zk-spec-table table {
	width: 100%;
	min-width: 820px;
	border-collapse: collapse;
	border: 0;
}

/* Core's wp-block-library (.wp-block-table td/th, 0,1,1) loads AFTER main.css,
 * so it re-adds full black cell borders at equal specificity. Qualify with
 * `table` (→ 0,1,2) so the theme's border-only-bottom rules win regardless of
 * load order — otherwise the mobile table shows a black grid of cell borders. */
.zk-spec-table table th,
.zk-spec-table table td {
	padding: 18px 24px;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-bottom: 1px solid rgba(13, 12, 12, 0.12);
	font-size: 15px;
	white-space: normal;
}

.zk-spec-table table td:first-child,
.zk-spec-table table th:first-child {
	min-width: 190px;
}

.zk-spec-table table td:not(:first-child),
.zk-spec-table table th:not(:first-child) {
	min-width: 210px;
}

/* Variant column headers: badge (<code>) + name + description (<em>).
 * Also beat core's `.wp-block-table thead { border-bottom: 3px solid }`. */
.zk-spec-table table thead {
	border-bottom: 0;
}

.zk-spec-table table thead th {
	border-bottom: 1px solid rgba(13, 12, 12, 0.12);
	vertical-align: bottom;
	padding-bottom: 28px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(18px, 2vw, 24px);
	line-height: 1.3;
}

.zk-spec-table thead th em {
	display: block;
	margin-top: 6px;
	font-family: var(--font-text);
	font-style: normal;
	font-weight: 400;
	font-size: 15px;
	color: var(--gray-700);
}

.zk-spec-table thead th code {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--orange);
	color: var(--white);
	font-family: var(--font-text);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.zk-spec-table tbody td {
	color: var(--gray-700);
}

.zk-spec-table tbody td:first-child {
	font-weight: 500;
	color: var(--black);
}

@media (max-width: 640px) {
	.zk-spec-table table th,
	.zk-spec-table table td {
		padding: 14px 16px;
	}
}

/* -------------------------------------------------------------------------
 * Facts pattern (dimensions + storage) — core columns + tables
 * ------------------------------------------------------------------------- */
.zk-facts-cols {
	gap: 56px;
}

.facts-panel__title {
	margin: 0 0 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(24px, 3vw, 34px);
}

.zk-facts .facts-panel__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
	margin: 0 0 16px;
}

.zk-facts .facts-panel__figure img {
	max-width: 100%;
	max-height: 340px;
	height: auto;
	object-fit: contain;
}

.zk-facts-table {
	margin: 0;
}

.zk-facts-table table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}

/* Qualify with `table` (→ 0,1,2) so these beat core wp-block-library's
 * `.wp-block-table td` (0,1,1, loaded later) — otherwise cells get full black
 * borders instead of the row-only lines. Same fix as .zk-spec-table (task 06). */
.zk-facts-table table td {
	padding: 18px 2px;
	border: 0;
	border-top: 1px solid rgba(13, 12, 12, 0.14);
	font-size: 15px;
	vertical-align: top;
}

.zk-facts-table table tr:last-child td {
	border-bottom: 1px solid rgba(13, 12, 12, 0.14);
}

.zk-facts-table table td:first-child {
	font-weight: 500;
	color: var(--black);
	/* Keep short labels on one line so a long value can't squeeze them. */
	white-space: nowrap;
	padding-right: 16px;
}

.zk-facts-table table td:first-child strong {
	display: inline-block;
	min-width: 1.5em;
	color: var(--gray-700);
	font-weight: 600;
}

.zk-facts-table table td:last-child {
	text-align: right;
	color: var(--gray-700);
	font-size: 15px;
	line-height: 1.5;
}

@media (max-width: 860px) {
	.zk-facts-cols {
		gap: 40px;
	}

	.zk-facts .facts-panel__figure {
		min-height: 0;
	}
}

/* Mobile: facts columns become tap-to-collapse accordions (built by main.js).
 * Both open by default. The grid 1fr↔0fr trick animates any content height. */
@media (max-width: 768px) {
	.zk-facts .facts-panel__title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		margin: 0;
		padding: 22px 0;
		cursor: pointer;
		user-select: none;

		span {
			display: block;
		}
	}

	/* Open (default): rows expand first, then content fades in. */
	.zk-facts .facts-panel__body {
		display: grid;
		grid-template-rows: 1fr;
		opacity: 1;
		transition: grid-template-rows 0.35s ease, opacity 0.25s ease 0.3s;
	}

	.zk-facts .facts-panel__body > div {
		min-height: 0;
		overflow: hidden;
	}

	/* Close: content fades out first, then rows collapse. */
	.zk-facts .facts-panel.is-collapsed .facts-panel__body {
		grid-template-rows: 0fr;
		opacity: 0;
		transition: opacity 0.25s ease, grid-template-rows 0.35s ease 0.2s;
	}

	/* +/− glyph: minus when open, plus when collapsed. */
	.zk-facts .facts-panel__title .mm-plus {
		color: var(--black);
	}

	.zk-facts .facts-panel__title .mm-plus::after {
		opacity: 0;
	}

	.zk-facts .facts-panel.is-collapsed .facts-panel__title .mm-plus::after {
		opacity: 1;
	}

	@media (prefers-reduced-motion: reduce) {
		.zk-facts .facts-panel__body {
			transition: none;
		}
	}
}

/* -------------------------------------------------------------------------
 * Performance pattern: metrics grid with dividers + feature slider
 * ------------------------------------------------------------------------- */
.zk-perf {
	min-height: calc(100svh - var(--header-h) - 50px);
	display: flex;
	justify-content: center;
	align-items: center;
	padding-block: 64px;
}

/* The section is a flex box; without min-width:0 its child can't shrink below
 * the slide images' intrinsic width and drags the whole layout off-screen. */
.zk-perf > .container,
.zk-perf > .wp-block-group__inner-container {
	width: 100%;
	min-width: 0;
}

.zk-perf .zk-split {
	align-items: center;
}

.zk-perf .zk-split > .wp-block-column {
	min-width: 0;
}

.zk-pmetrics {
	gap: 0;
	margin-top: 8px;
}

.zk-pmetrics > .wp-block-column:first-child .zk-pval,
.zk-pmetrics > .wp-block-column:first-child .zk-plabel {
	padding-right: 20px;
}

.zk-pmetrics > .wp-block-column:last-child .zk-pval,
.zk-pmetrics > .wp-block-column:last-child .zk-plabel {
	padding-left: 20px;
}

.zk-pval {
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(13, 12, 12, 0.16);
	font-family: var(--font-head);
	font-weight: 400;
	font-size: clamp(30px, 2.6vw, 40px);
	line-height: 1.15;
}

.zk-divider-bt {
	border-bottom: 1px solid rgba(13, 12, 12, 0.16);
}

.zk-plabel {
	min-height: 58px;
	margin: 7px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--gray-700);
}

/* Feature slider (built by main.js from .zk-slide groups, Swiper-powered). */
.zk-perf .zk-slider__swiper {
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.zk-perf .zk-slider {
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.zk-perf .zk-slide {
	display: grid;
	grid-template-rows: 390px 58px 66px;
	align-items: center;
}

.zk-perf .zk-slide .wp-block-image {
	width: 100%;
	height: 390px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.zk-perf .zk-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.zk-perf .zk-slide h3 {
	margin: 0;
	font-size: clamp(19px, 2vw, 24px);
	font-weight: 600;
	align-self: center;
}

.zk-perf .zk-slide p {
	margin: 0 auto;
	max-width: 52ch;
	font-size: 15px;
	line-height: 1.65;
	color: var(--dark);
	align-self: start;
}

/* Progress-bar style pagination. */
.zk-perf .zk-slider .swiper-pagination {
	position: static;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.zk-slider .swiper-pagination-bullet {
	position: relative;
	overflow: hidden;
	width: 66px;
	height: 3px;
	border-radius: 0;
	background: rgba(13, 12, 12, 0.15);
	opacity: 1;
}

/* The active segment fills up in sync with the autoplay delay (5s). */
.zk-slider .swiper-pagination-bullet-active::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 0;
	background: var(--orange);
	animation: zk-slide-progress 5s linear forwards;
}

@keyframes zk-slide-progress {
	to {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zk-slider .swiper-pagination-bullet-active::after {
		animation: none;
		width: 100%;
	}
}

@media (max-width: 860px) {
	.zk-perf {
		min-height: 0;
		padding-block: 64px;
	}

	.zk-perf .zk-slide {
		grid-template-rows: 280px auto minmax(62px, auto);
	}

	.zk-perf .zk-slide .wp-block-image {
		height: 280px;
	}

}

/* Core stacks .wp-block-columns at 781px; the metrics must stay a 2×2 grid
 * (like the reference), so re-flatten them and center the intro text. */
@media (max-width: 781px) {
	.zk-perf .zk-split > .wp-block-column:first-child {
		text-align: center;
	}

	.zk-perf .model-section__lead {
		margin-inline: auto;
	}

	.zk-pmetrics {
		flex-wrap: nowrap !important;
		margin-top: 24px;
		text-align: left;
	}

	.zk-pmetrics > .wp-block-column {
		flex: 1 1 0 !important;
		min-width: 0;
	}

	.zk-pval {
		font-size: 34px;
	}

	.zk-plabel {
		font-size: 13px;
	}
}

/* ==========================================================================
   07. Footer
   ========================================================================== */
.site-footer {
	background: var(--white);
	color: var(--black);
	border-top: 1px solid var(--gray-400);
}

/* Full-viewport width with edge padding, matching the header / zeekr.eu. */
.site-footer__inner {
	max-width: none;
	padding: 64px 32px 0;
}

.site-footer__top {
	display: grid;
	grid-template-columns: minmax(280px, 1.1fr) 2fr;
	gap: 48px 64px;
	padding-bottom: 64px;
}

.site-footer__mark {
	display: inline-flex;
	margin-bottom: 40px;
}

.site-footer__mark svg {
	width: 32px;
	height: 32px;
}

/* Contact block (admin-managed via the Customizer) */
.site-footer__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.site-footer__phone {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(20px, 2.2vw, 26px);
	transition: color 0.2s ease;
}

.site-footer__phone:hover,
.site-footer__email:hover {
	color: var(--orange);
}

.site-footer__hours,
.site-footer__requisites {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--gray-700);
}

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

.site-footer__email {
	font-size: 15px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	align-content: start;
}

.site-footer__col-title {
	margin: 0 0 18px;
	font-family: var(--font-text);
	font-weight: 400;
	font-size: 14px;
	color: var(--gray-700);
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.site-footer__list a {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 15px;
	transition: color 0.2s ease;
}

.site-footer__list a:hover {
	color: var(--orange);
}

/* Middle band: socials + copyright + legal | disclaimer */
.site-footer__mid {
	display: grid;
	grid-template-columns: 1fr minmax(320px, 46%);
	gap: 32px 64px;
	padding: 48px 0;
	border-top: 1px solid var(--gray-400);
}

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

.site-footer__social svg {
	display: block;
	width: 20px;
	height: 20px;
	transition: opacity 0.2s ease;
}

.site-footer__social a:hover svg {
	opacity: 0.6;
}

.site-footer__copyright {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--gray-700);
}

.site-footer__legal {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
}

.site-footer__legal a {
	font-size: 13px;
	font-weight: 500;
	color: var(--black);
	transition: color 0.2s ease;
}

.site-footer__legal a:hover {
	color: var(--orange);
}

.site-footer__disclaimer {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--gray-700);
}

/* Bottom strip: site credit on the left, clear of the fixed to-top button
 * that floats in the bottom-right corner while the footer is on screen. */
.site-footer__bottomline {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	padding: 20px 0 24px;
	border-top: 1px solid var(--gray-400);
}

.site-footer__credit {
	margin: 0;
	font-size: 13px;
	color: var(--gray-700);
}

.site-footer__credit a {
	color: var(--black);
	font-weight: 600;
	text-underline-offset: 3px;
}

.site-footer__credit a:hover {
	color: var(--orange);
}

/* To-top: fixed to the viewport, shown only while the footer is on screen. */
.site-footer__totop {
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 90;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--black);
	color: var(--white);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.site-footer__totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.site-footer__totop svg {
	width: 18px;
	height: 18px;
}

.site-footer__totop:hover {
	background: var(--dark);
}

@media (max-width: 900px) {
	.site-footer__top,
	.site-footer__mid {
		grid-template-columns: 1fr;
	}

	.site-footer__cols {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ==========================================================================
   08. Custom block refinements
   ========================================================================== */

/* ---------- Photo cards and dedicated button gallery ---------- */

/* Editor-only data: the popup halves and the dedicated gallery never render
 * inline on the front end. */
.site-main .zk-photo__more,
.site-main .zk-gallery {
	display: none;
}

.zk-photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.zk-photos > .zk-photo:nth-child(even) {
	margin-top: 56px;
}

.zk-photo .wp-block-image {
	position: relative;
	margin: 0;
}

.zk-photo img {
	width: 100%;
	height: auto;
}

/* Per-card aspect chosen in the block's "Формат фото" setting. */
.zk-photo--square img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.zk-photo--wide img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.zk-photo--landscape img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.zk-photo--portrait img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* Two admin-managed columns of photo cards (independent flow — masonry). */
.zk-photo-cols {
	gap: 24px;
}

.zk-photo-cols .wp-block-column > * + * {
	margin-top: 24px;
}

/* Mobile: the Экстерьер/Интерьер split flattens into one centred column and
 * the photo masonry becomes a swipeable strip (next card peeking). The
 * gallery pill moves BELOW the strip via flex order. display:contents on the
 * two wp-block-columns lifts all children into one flex context. */
@media (max-width: 768px) {
	.zk-split:has(.zk-photo-cols) {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.zk-split:has(.zk-photo-cols) > .wp-block-column {
		display: contents;
	}

	.zk-split:has(.zk-photo-cols) .model-section__eyebrow {
		order: 1;
		text-align: center;
	}

	.zk-split:has(.zk-photo-cols) .model-section__title {
		order: 2;
		text-align: center;
	}

	.zk-split:has(.zk-photo-cols) .model-section__lead {
		order: 3;
		text-align: center;
	}

	.zk-split:has(.zk-photo-cols) .zk-photo-cols {
		order: 4;
		margin-top: 8px;
	}

	.zk-split:has(.zk-photo-cols) .zk-gallery-button {
		order: 5;
		align-self: center;
		margin-top: 30px;
	}

	/* The strip itself: columns dissolve, photos become snap slides. */
	.zk-photo-cols {
		display: flex !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 12px !important;
		/* Bleed to the right viewport edge so the next card peeks. */
		margin-right: -24px;
		padding-right: 24px;
		scrollbar-width: none;
	}

	.zk-photo-cols::-webkit-scrollbar {
		display: none;
	}

	.zk-photo-cols > .wp-block-column {
		display: contents;
	}

	.zk-photo-cols .zk-photo {
		flex: 0 0 99%;
		scroll-snap-align: start;
		margin: 0 !important;
	}

	/* Uniform frames in the strip regardless of the per-card ratio. */
	.zk-photo-cols .zk-photo > .wp-block-image img {
		aspect-ratio: 5 / 3;
		object-fit: cover;
		width: 100%;
	}
}

/* Editor hint paragraph inside .zk-gallery (never rendered on the front). */
.zk-note {
	font-size: 13px;
	color: var(--gray-700);
}

/* Popup caption may now contain paragraphs from the hidden card part. */
.zk-lightbox__caption p {
	margin: 0 0 10px;
	line-height: 1.4;
}

.zk-lightbox__caption p:last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.zk-photos {
		grid-template-columns: 1fr;
	}

	.zk-photos > .zk-photo:nth-child(even) {
		margin-top: 0;
	}
}

/* -------------------------------------------------------------------------
 * Gallery-button block + hover-card block
 * ------------------------------------------------------------------------- */
.zk-gallery-button .zk-pill {
	cursor: pointer;
}

/* Image card that reveals a text panel on hover (or tap on touch). */
.zk-hover-card {
	position: relative;
	overflow: hidden;
}

.zk-hover-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}

.zk-hover-card--tall img {
	aspect-ratio: 4 / 5;
	height: 100%;
}

.zk-hover-card__label {
	position: absolute;
	left: 22px;
	bottom: 18px;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 500;
	color: #fff4e2;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.zk-hover-card__plus {
	position: absolute;
	right: 16px;
	bottom: 14px;
	width: 24px;
	height: 24px;
	display: block;
	pointer-events: none;
}

/* Fully opaque black panel: on the dark Technology section the image simply
 * "dissolves" into the background, like on zeekr.eu. */
.zk-hover-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 34px 72px 34px 36px;
	background: var(--black);
	color: #fff4e2;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zk-hover-card:not(.is-dismissed):hover .zk-hover-card__overlay,
.zk-hover-card.is-open .zk-hover-card__overlay {
	opacity: 1;
	visibility: visible;
}

.zk-hover-card__overlay h3 {
	margin: 0 0 14px;
	font-size: clamp(19px, 1.8vw, 23px);
	font-weight: 500;
}

.zk-hover-card__overlay p {
	margin: 0;
	max-width: 52ch;
	font-size: 15px;
	line-height: 1.7;
}

/* SVG control exactly where the "+" sits (bottom-right). */
.zk-hover-card__close {
	position: absolute;
	right: 16px;
	bottom: 14px;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.zk-hover-card__close:hover {
	opacity: 0.75;
}

.zk-hover-card__close svg {
	display: block;
	transform: rotate(0deg);
	transition: transform 0.3s ease;
}

.zk-hover-card__close circle,
.zk-hover-card__close path {
	transition: fill 0.3s ease, stroke 0.3s ease;
}

.zk-hover-card:not(.is-dismissed):hover .zk-hover-card__close svg,
.zk-hover-card.is-open .zk-hover-card__close svg {
	transform: rotate(45deg);
}

.zk-hover-card:not(.is-dismissed):hover .zk-hover-card__close circle,
.zk-hover-card.is-open .zk-hover-card__close circle {
	fill: #fff4e2;
}

.zk-hover-card:not(.is-dismissed):hover .zk-hover-card__close path,
.zk-hover-card.is-open .zk-hover-card__close path {
	stroke: #000;
}

/* Technology hover-card composition: the whole grid keeps a 16:9 footprint,
 * every card stretches to fill its column slot, so a single tall card on the
 * left bottom-aligns exactly with two stacked cards on the right. */
.zk-hover-grid {
	display: flex;
	gap: 28px;
	aspect-ratio: 16 / 9;
}

.zk-hover-grid > .wp-block-column {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	min-width: 0;
	margin: 0;
}

.zk-hover-grid > .wp-block-column > * {
	flex: 1;
	min-height: 0;
	margin: 0;
}

.zk-hover-grid .zk-hover-card {
	height: 100%;
}

.zk-hover-grid .zk-hover-card img {
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
}

@media (max-width: 781px) {
	.zk-hover-grid {
		flex-direction: column;
		aspect-ratio: auto;
	}

	.zk-hover-grid .zk-hover-card img {
		height: auto;
		aspect-ratio: 16 / 10;
	}
}

/* Sections that should end right after their content (like Technology). */
.model-section--tight {
	padding-bottom: 44px;
}

/* -------------------------------------------------------------------------
 * Lightbox popup card — internal controls (reference design)
 * ------------------------------------------------------------------------- */

/* Author display rules must not beat the [hidden] attribute. */
.zk-lightbox__nav[hidden],
.zk-lightbox__close[hidden] {
	display: none;
}

.zk-lightbox__media {
	position: relative;
}

.zk-card-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.zk-card-close:hover {
	opacity: 0.75;
}

.zk-card-close svg {
	display: block;
}

.zk-card-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border: 0;
	background: #141414;
	color: var(--white);
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.zk-card-nav:hover {
	background: var(--orange);
}

.zk-card-nav--prev {
	left: 0;
}

.zk-card-nav--next {
	right: 0;
}

/* Square slide indicators under the image. */
.zk-card-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 0 24px;
}

.zk-card-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 1px solid var(--gray-700);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.zk-card-dot.is-active {
	background: var(--black);
	border-color: var(--black);
}

/* -------------------------------------------------------------------------
 * Card slider block (zeekr/card-slider)
 * ------------------------------------------------------------------------- */

/* Full-bleed strip: at the end of the track the active card hugs the right
 * viewport edge and the previous one peeks past the left edge, like zeekr.eu.
 * The first slide is aligned to the container via slidesOffsetBefore (JS). */
/* Full-bleed that survives ANY parent, including Gutenberg flex/grid groups.
 * The block's LAYOUT box stays at 100% (inside the container/flex line — a
 * wider box would stretch the flex line and push centred sibling headings
 * off-centre); only the inner swiper viewport expands to 100vw, centred on
 * the viewport via left/transform, which no WP layout CSS overrides. */
.zk-cardslider {
	position: relative;
	width: 100%;
	margin-top: 60px !important;
	padding-bottom: 60px;
}

.zk-cardslider__swiper {
	overflow: hidden;
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

.zk-cardslide {
	/* Proportional to the viewport (no px cap): the strip is full-bleed, so a
	 * fixed cap would let every card fit on very wide screens and the slider
	 * would flatten into a grid. ~51vw keeps "one card + peeking next" at any
	 * width, like the reference site. */
	width: 51vw;
}

.zk-cardslide__media {
	margin: 0 0 20px;
}

.zk-cardslide__media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	display: block;
}

@media (min-width: 992px) {
	.zk-cardslide__media img {
		aspect-ratio: 2 / 1;
	}
}

.zk-cardslide h3 {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 600;
	color: #fff4e2;
}

.zk-cardslide p {
	margin: 0;
	max-width: 60ch;
	font-size: 16px;
	line-height: 1.4;
	color: var(--gray-700);
}

.model-section--dark .zk-cardslide p {
	color: #fff4e2;
}

/* Round chevron arrows sitting over the peeking card, image mid-height. */
.zk-cardslider__nav {
	position: absolute;
	top: clamp(151px, 14vw, 300px);
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.25s ease;
}

.zk-cardslider__nav:hover {
	opacity: 0.85;
}

.zk-cardslider__nav svg {
	display: block;
}

.zk-cardslider__nav:focus {
	outline: none;
}

/* Anchored to the viewport edge (11vw in), independent of the strip box:
 * 50% - 50vw walks from the strip edge out to the viewport edge. */
.zk-cardslider__nav--prev {
	left: calc(50% - 50vw + 11vw);
}

.zk-cardslider__nav--next {
	right: calc(50% - 50vw + 11vw);
}

.zk-cardslider__nav.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 860px) {
	.zk-cardslide {
		width: 88vw;
	}

	.zk-cardslider__nav--prev {
		left: calc(50% - 50vw + 16px);
	}

	.zk-cardslider__nav--next {
		right: calc(50% - 50vw + 16px);
	}
}

/* Card-slider popup link + section headings inside the popup card */
.zk-cardslide__more {
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: var(--font-text);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 0.2s ease;
}

.zk-cardslide__more:hover {
	color: var(--orange);
}

.zk-lightbox__caption h3 {
	margin: 22px 0 10px;
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 600;
	color: var(--black);
}

.zk-lightbox__caption h3:first-child {
	margin-top: 0;
}
