/* Source: main.css */
/* ==========================================================================
   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: 76px;
	--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;
}
.h3 {
	font-size: 28px;
}

@media screen and (min-width: 992px) {
	.h3 {
		font-size: 48px;
	}
}

.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);
}

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

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

.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,
.nav-menu .menu-item__trigger {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 15px;
	opacity: 0.92;
	transition: opacity 0.2s ease;
}

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

.menu-item__trigger {
	appearance: none;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

/* ---------- 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,
.mm-list > .menu-item > .menu-item__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 17px 24px;
	font-size: 18px;
	line-height: 1.2;
	color: inherit;
	text-align: left;
}

/* 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,
.mm-list > .menu-item.is-open > .menu-item__trigger .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;
	}
}

/* Shared mobile header behaviour. These rules belong to the site chrome and
 * must be available on every template, not only on model pages. */
@media (max-width: 768px) {
	:root {
		--header-h: 76px;
	}

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

	.actions-menu {
		display: none;
	}

	.site-header__left {
		gap: 16px;
	}

	.site-nav {
		display: none;
	}
}

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

/* Source: footer.css */
/* ==========================================================================
   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;
	}
}


