/* ==========================================================================
   UNITOOLS — стили темы.
   Mobile-first: базовые правила для телефона, min-width добавляет раскладку
   для планшета (640, 900) и десктопа (1100).
   ========================================================================== */

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/onest-cyrillic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Onest";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/onest-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--c-yellow: #fdb900;
	--c-yellow-600: #e9a800;
	--c-yellow-700: #b98400;
	--c-yellow-50: #fff7df;
	--c-accent-text: #d99a00;
	--c-ink: #1e2226;
	--c-text: #333940;
	--c-muted: #6b7178;
	--c-line: #e4e6e8;
	--c-bg: #fff;
	--c-bg-soft: #f6f7f9;
	--c-sky: #eef4fa;
	--c-navy: #16283f;
	--c-red: #c62828;
	--c-success: #1a7f37;
	--c-error: #c62828;

	--radius: 12px;
	--shadow-sm: 0 2px 10px rgba(16, 24, 40, .05);
	--shadow: 0 10px 30px rgba(16, 24, 40, .10);
	--shadow-lg: 0 18px 50px rgba(16, 24, 40, .18);

	--container: 1200px;
	--gutter: 16px;
	--header-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 640px) {
	:root { --gutter: 24px; }
}

@media (min-width: 1100px) {
	:root { --header-h: 72px; }
}

/* ---------- База ---------- */

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

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

body {
	font-family: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
	overflow-x: clip;
}

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

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

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

ul,
ol {
	list-style: none;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 2px solid var(--c-yellow-600);
	outline-offset: 2px;
}

.ui-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
	vertical-align: middle;
}

/* Иконки-картинки (3D): держим пропорции, не растягиваем. */
img.icon {
	display: block;
	object-fit: contain;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--c-ink);
	color: #fff;
}

.skip-link:focus {
	top: 12px;
}

.container {
	width: min(var(--container), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

/* ---------- Кнопки ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}

.btn .ui-icon {
	transition: transform .2s var(--ease);
}

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

.btn:hover .ui-icon:last-child {
	transform: translateX(3px);
}

.btn--primary {
	background: var(--c-yellow);
	color: #171717;
	box-shadow: 0 6px 16px rgba(253, 185, 0, .28);
}

.btn--primary:hover {
	background: var(--c-yellow-600);
	box-shadow: 0 10px 24px rgba(253, 185, 0, .36);
}

.btn--ghost {
	background: #fff;
	border-color: #cfd3d7;
	color: var(--c-ink);
}

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

.btn--light {
	background: rgba(255, 255, 255, .92);
	border-color: rgba(30, 34, 38, .12);
	color: var(--c-ink);
}

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

.btn--sm {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

.btn--block {
	width: 100%;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.center {
	margin-top: 32px;
	text-align: center;
}

/* ---------- Шапка ---------- */

.site-header {
	position: relative;
	z-index: 30;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.home .site-header {
	position: absolute;
	inset: 0 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

.logo {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
}

.logo {
	gap: 10px;
}

/* Загруженный в «Настройки сайта» логотип — одной картинкой. */
.logo__img {
	width: clamp(190px, 22vw, 278px);
	height: auto;
}

/* Знак UNITOOLS (шестерня с надписью) + название направления. Надпись внутри знака мелкая — держим знак крупнее. */
.logo__mark {
	width: clamp(44px, 11vw, 60px);
	height: auto;
}

.logo__text {
	/* До 480 px в шапке кнопка звонка и MAX — названию места нет, показываем только знак. */
	display: none;
	min-width: 0;
	overflow: hidden;
	font-size: clamp(13px, 2.4vw, 19px);
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--c-ink);
}

@media (min-width: 480px) {
	.logo__text {
		display: block;
	}
}

.nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	padding: 4px 0 18px;
	background: #fff;
	box-shadow: var(--shadow);
}

.nav.is-open {
	display: block;
}

.nav__list a {
	display: flex;
	align-items: center;
	min-height: 50px;
	padding: 0 var(--gutter);
	border-bottom: 1px solid var(--c-line);
	font-size: 16px;
	font-weight: 500;
}

.nav__phone {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px var(--gutter) 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--c-ink);
}

.nav__phone .ui-icon {
	color: var(--c-yellow-600);
}

.header-phone {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--c-yellow);
	color: #171717;
	box-shadow: 0 4px 12px rgba(253, 185, 0, .35);
	transition: transform .2s var(--ease), box-shadow .2s;
}

.header-phone span {
	display: none;
}

.header-phone .ui-icon {
	width: 22px;
	height: 22px;
}

.header-phone:hover {
	transform: translateY(-1px) scale(1.04);
}

.header-phone + .max-btn--header {
	margin-left: 8px;
}

.max-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(120deg, #3a7bff 0%, #5b4dff 55%, #a23cff 100%);
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(91, 77, 255, .3);
	transition: transform .2s var(--ease), box-shadow .2s;
}

.max-btn:hover {
	transform: translateY(-1px) scale(1.03);
	box-shadow: 0 10px 22px rgba(91, 77, 255, .42);
}

.max-btn__icon {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}

/* В шапке на телефоне — только значок, чтобы не теснить логотип. */
.max-btn--header {
	flex: 0 0 auto;
	margin-left: auto;
	padding: 5px;
	font-size: 15px;
}

.max-btn--header span {
	display: none;
}

.max-btn--header + .menu-toggle {
	margin-left: 0;
}

.max-btn--nav {
	margin: 14px var(--gutter) 0;
	padding: 8px 18px 8px 8px;
	font-size: 16px;
}

.menu-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border: 0;
	background: none;
	color: var(--c-ink);
}

.menu-toggle .ui-icon {
	width: 26px;
	height: 26px;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
	display: block;
}

/* Телефон и MAX в шапке — с планшета. Меню до широкого экрана остаётся в «бургере»:
   логотип, шесть пунктов, крупный телефон и MAX в одну строку помещаются только от 1360 px. */
@media (min-width: 760px) {
	.nav__phone,
	.max-btn--nav {
		display: none;
	}

	.header-phone {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		width: auto;
		height: auto;
		margin-left: auto;
		padding-left: 12px;
		border-radius: 0;
		background: none;
		box-shadow: none;
		font-size: 20px;
		font-weight: 800;
		color: var(--c-ink);
		white-space: nowrap;
		transition: color .2s;
	}

	.header-phone span {
		display: inline;
	}

	.header-phone:hover {
		transform: none;
	}

	.header-phone .ui-icon {
		width: 26px;
		height: 26px;
		color: var(--c-yellow-600);
		transition: transform .25s var(--ease);
	}

	.header-phone:hover {
		color: var(--c-yellow-700);
	}

	.header-phone:hover .ui-icon {
		transform: rotate(-12deg) scale(1.1);
	}

	.max-btn--header {
		margin-left: 14px;
		padding: 5px 16px 5px 5px;
	}

	.max-btn--header span {
		display: inline;
	}

	.header-phone ~ .menu-toggle {
		margin-left: 6px;
	}
}

@media (min-width: 1360px) {
	.nav {
		position: static;
		display: block;
		margin-left: auto;
		padding: 0;
		background: none;
		box-shadow: none;
	}

	.nav__list {
		display: flex;
	}

	.nav__list a {
		position: relative;
		min-height: 34px;
		padding: 0 12px;
		border: 0;
		font-size: 14px;
		white-space: nowrap;
		transition: color .2s;
	}

	.nav__list a::after {
		content: "";
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: 0;
		height: 2px;
		background: transparent;
		transition: background-color .2s;
	}

	/* На главной все пункты — якоря той же страницы, WordPress помечает их текущими.
	   Подсвечиваем только при наведении, иначе всё меню жёлтое. */
	.nav__list a:hover {
		color: var(--c-yellow-700);
	}

	.nav__list a:hover::after {
		background: var(--c-yellow);
	}

	.menu-toggle {
		display: none;
	}

	.header-phone {
		margin-left: 0;
	}

	/* Шапке нужно чуть больше ширины, чем контенту, а MAX здесь — только значок. */
	.site-header .container {
		width: min(1320px, 100% - 2 * var(--gutter));
	}

	.max-btn--header {
		padding: 5px;
	}

	.max-btn--header span {
		display: none;
	}
}

/* ---------- Первый экран ---------- */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #dfe6ee;
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__img,
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 60%;
}

.hero__img {
	opacity: 0;
	transform-origin: 62% 80%;
	transition: opacity 1.8s ease;
	animation: ut-zoom 26s ease-in-out infinite alternate;
}

/* Слайды фона: виден активный, остальные плавно проявляются по очереди (assets/js/main.js). */
.hero__img.is-active {
	opacity: 1;
}

.hero__video {
	opacity: 0;
	transition: opacity 1s;
}

.hero__video.is-ready {
	opacity: 1;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .72) 45%, rgba(255, 255, 255, .4) 75%, rgba(255, 255, 255, .2) 100%);
}

.hero__light {
	position: absolute;
	inset: -10% -30%;
	z-index: 1;
	background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .24) 50%, transparent 58%);
	animation: ut-sheen 14s ease-in-out infinite;
}

.hero__dust {
	position: absolute;
	z-index: 1;
	left: 47%;
	bottom: -4%;
	width: 30%;
	height: 36%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(238, 234, 228, .8), rgba(238, 234, 228, 0));
	filter: blur(10px);
	animation: ut-dust 10s ease-in-out infinite;
}

.hero__dust--2 {
	left: 56%;
	bottom: 5%;
	width: 22%;
	height: 28%;
	animation-duration: 14s;
	animation-delay: -5s;
}

.hero__inner {
	position: relative;
	display: grid;
	gap: 28px;
	padding: calc(var(--header-h) + 28px) 0 40px;
}

.hero__title {
	color: var(--c-ink);
	font-weight: 800;
}

.hero__title-main {
	display: block;
	font-size: clamp(24px, 6.9vw, 60px);
	line-height: 1.04;
	text-transform: uppercase;
	letter-spacing: -.005em;
}

.hero__title-accent {
	display: block;
	margin-top: 10px;
	color: var(--c-accent-text);
	font-size: clamp(19px, 2.5vw, 34px);
	font-weight: 700;
	line-height: 1.18;
}

.hero__title-sub {
	display: block;
	font-size: clamp(18px, 2.3vw, 31px);
	font-weight: 700;
	line-height: 1.2;
}

.hero__text {
	max-width: 540px;
	margin-top: 14px;
	font-size: 15px;
	color: #2a2f35;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.hero__features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 14px;
	margin-top: 28px;
}

.hero-feature,
.hero-feature__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--c-ink);
}

.hero-feature__pic {
	display: block;
	width: fit-content;
	animation: ut-float 5s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * -1.2s);
}

.hero-feature__icon {
	width: 56px;
	height: 56px;
	transition: transform .35s var(--ease), filter .35s;
}

.hero-feature__link:hover .hero-feature__icon,
.hero-feature__link:focus-visible .hero-feature__icon {
	transform: translateY(-6px) scale(1.12) rotate(-4deg);
}

.hero-feature__text {
	transition: color .2s;
}

.hero-feature__link:hover .hero-feature__text {
	color: var(--c-yellow-700);
}

@media (min-width: 900px) {
	.hero {
		min-height: 660px;
	}

	.hero__media::after {
		background:
			linear-gradient(90deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .42) 30%, rgba(255, 255, 255, 0) 55%),
			linear-gradient(0deg, rgba(12, 18, 26, .58) 0%, rgba(12, 18, 26, 0) 34%);
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 40px;
		align-items: start;
		min-height: 660px;
		padding: calc(var(--header-h) + 50px) 0 96px;
	}

	.hero__content {
		display: flex;
		flex-direction: column;
		align-self: stretch;
	}

	.hero__title-main {
		font-size: clamp(30px, 4vw, 60px);
	}

	.hero__text {
		font-size: 16px;
	}

	.hero__features {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin-top: auto;
		padding-top: 36px;
	}

	.hero-feature,
	.hero-feature__link {
		color: #fff;
		font-size: 14px;
		text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
	}

	.hero-feature__icon {
		width: 76px;
		height: 76px;
		filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
	}

	.hero-feature__link:hover .hero-feature__icon {
		filter: drop-shadow(0 6px 18px rgba(253, 185, 0, .55));
	}

	.hero-feature__link:hover .hero-feature__text {
		color: var(--c-yellow);
	}
}

/* ---------- Карточка формы и форма ---------- */

.lead-card {
	position: relative;
	padding: 22px 18px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .97);
	box-shadow: var(--shadow-lg);
}

.lead-card--wide {
	box-shadow: var(--shadow);
}

.lead-card__title {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--c-ink);
}

.lead-card__text {
	margin: 4px 0 16px;
	font-size: 14px;
	color: var(--c-muted);
}

.lead-card.is-success .lead-card__title,
.lead-card.is-success .lead-card__text {
	display: none;
}

@media (min-width: 640px) {
	.lead-card {
		padding: 24px;
	}

	.lead-card--wide {
		padding: 32px;
	}
}

.lead-form__grid {
	display: grid;
	gap: 10px;
}

@media (min-width: 640px) {
	.lead-form--full .lead-form__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.field--wide {
	grid-column: 1 / -1;
}

.field {
	position: relative;
}

.field__input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #dadde1;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	color: var(--c-ink);
	transition: border-color .2s, box-shadow .2s;
}

textarea.field__input {
	height: auto;
	min-height: 76px;
	padding: 12px 14px;
	resize: vertical;
}

.field__input::placeholder {
	color: #8b9096;
}

.field__input:focus {
	outline: none;
	border-color: var(--c-yellow);
	box-shadow: 0 0 0 3px rgba(253, 185, 0, .22);
}

.field.is-valid .field__input {
	border-color: #9fd3ac;
}

.field.is-valid::after {
	content: "";
	position: absolute;
	top: 16px;
	right: 12px;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

.field.is-invalid .field__input {
	border-color: var(--c-error);
	box-shadow: 0 0 0 3px rgba(198, 40, 40, .12);
}

.field__error {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--c-error);
}

.field__error:empty {
	display: none;
}

.lead-form__details {
	margin-top: 12px;
	border: 1px dashed #cfd4d9;
	border-radius: 10px;
}

.lead-form__details summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-ink);
	list-style: none;
	cursor: pointer;
}

.lead-form__details summary::-webkit-details-marker {
	display: none;
}

.lead-form__details summary .ui-icon {
	color: var(--c-yellow-700);
	transition: transform .2s;
}

.lead-form__details[open] summary .ui-icon {
	transform: rotate(45deg);
}

.lead-form__hint {
	font-weight: 400;
	color: var(--c-muted);
}

.lead-form__details > .lead-form__grid {
	padding: 0 14px 14px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border: 0;
}

.chips legend {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-ink);
}

.chip {
	position: relative;
}

.chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.chip span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #dadde1;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, transform .15s;
}

.chip span:hover {
	border-color: var(--c-yellow);
}

.chip input:checked + span {
	background: var(--c-yellow-50);
	border-color: var(--c-yellow);
	color: #6b4d00;
	font-weight: 600;
}

.chip input:focus-visible + span {
	outline: 2px solid var(--c-yellow-600);
	outline-offset: 2px;
}

.upload {
	margin-top: 12px;
	padding: 16px;
	border: 1.5px dashed #cdd2d7;
	border-radius: 10px;
	background: #fafbfc;
	transition: border-color .2s, background-color .2s;
}

.upload.is-drag {
	border-color: var(--c-yellow);
	background: var(--c-yellow-50);
}

.upload.is-highlight {
	border-color: var(--c-yellow);
	animation: ut-pulse 1.1s ease-in-out 3;
}

.upload__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.upload__icon {
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--c-yellow-50);
	color: var(--c-yellow-700);
}

.upload__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--c-ink);
}

.upload__hint {
	font-size: 12.5px;
	color: var(--c-muted);
}

.upload__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.upload__actions label {
	cursor: pointer;
}

.upload__camera {
	display: none;
}

@media (pointer: coarse) {
	.upload__camera {
		display: inline-flex;
	}
}

.upload__list {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.upload__list:empty {
	display: none;
}

.upload__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 8px;
	border: 1px solid var(--c-line);
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
}

.upload__thumb {
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #eef0f2;
	object-fit: cover;
	font-size: 10px;
	font-weight: 800;
	color: var(--c-muted);
}

.upload__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.upload__size {
	color: var(--c-muted);
	white-space: nowrap;
}

.upload__remove {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 6px;
	background: none;
	font-size: 20px;
	line-height: 1;
	color: var(--c-muted);
}

.upload__remove:hover {
	background: #fdecea;
	color: var(--c-error);
}

.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--c-muted);
	cursor: pointer;
}

.consent input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	accent-color: var(--c-yellow-600);
}

.consent a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.consent.is-invalid {
	color: var(--c-error);
}

.captcha {
	margin-top: 12px;
}

.captcha:empty {
	display: none;
}

.form-message {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecea;
	font-size: 14px;
	color: var(--c-error);
}

.lead-form__submit {
	margin-top: 14px;
}

.btn__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 0, 0, .2);
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: ut-spin .7s linear infinite;
}

.is-sending .lead-form__submit {
	pointer-events: none;
	opacity: .85;
}

.is-sending .btn__spinner {
	display: inline-block;
}

.is-sending .lead-form__submit .ui-icon {
	display: none;
}

.progress {
	height: 4px;
	margin-top: 10px;
	border-radius: 4px;
	background: #eef0f2;
	overflow: hidden;
}

.progress__bar {
	display: block;
	width: 0;
	height: 100%;
	background: var(--c-yellow);
	transition: width .2s;
}

.lead-form__note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 12px;
	color: #8b8e91;
}

.form-success {
	padding: 28px 8px;
	text-align: center;
}

.form-success:focus {
	outline: none;
}

.form-success__check {
	width: 64px;
	height: 64px;
	margin: 0 auto;
}

.form-success__check circle,
.form-success__check path {
	fill: none;
	stroke: var(--c-success);
	stroke-linecap: round;
	stroke-linejoin: round;
}

.form-success__check circle {
	stroke-width: 3;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: ut-draw .6s var(--ease) forwards;
}

.form-success__check path {
	stroke-width: 4;
	stroke-dasharray: 36;
	stroke-dashoffset: 36;
	animation: ut-draw .4s .45s var(--ease) forwards;
}

.form-success__title {
	margin-top: 12px;
	font-size: 20px;
	font-weight: 800;
	color: var(--c-ink);
}

.form-success__text {
	margin: 6px 0 16px;
	color: var(--c-muted);
}

/* ---------- Навигация по блокам ---------- */

.quick-nav {
	display: none;
}

@media (min-width: 900px) {
	.quick-nav {
		position: sticky;
		top: 12px;
		z-index: 20;
		display: flex;
		min-height: 64px;
		margin-top: -32px;
		border-radius: var(--radius);
		background: #fff;
		box-shadow: 0 8px 25px rgba(16, 24, 40, .12);
	}

	.quick-nav__title {
		display: flex;
		align-items: center;
		flex: 0 0 180px;
		padding: 0 22px;
		border-right: 1px solid var(--c-line);
		font-size: 15px;
		font-weight: 800;
		line-height: 1.2;
		text-transform: uppercase;
		color: var(--c-ink);
	}

	.quick-nav__links {
		display: flex;
		flex: 1;
		justify-content: space-around;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.quick-nav__links a {
		position: relative;
		display: flex;
		align-items: center;
		padding: 0 12px;
		font-size: 14px;
		white-space: nowrap;
		transition: color .2s;
	}

	.quick-nav__links a::after {
		content: "";
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: 14px;
		height: 2px;
		background: transparent;
		transition: background-color .2s;
	}

	.quick-nav__links a:hover,
	.quick-nav__links a.is-active {
		color: var(--c-yellow-700);
	}

	.quick-nav__links a:hover::after,
	.quick-nav__links a.is-active::after {
		background: var(--c-yellow);
	}
}

/* ---------- Секции ---------- */

.section {
	padding: 56px 0;
}

@media (min-width: 900px) {
	.section {
		padding: 80px 0;
	}

	.quick-nav + .brands {
		padding-top: 72px;
	}
}

.section-title {
	margin-bottom: 28px;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	color: var(--c-ink);
	text-wrap: balance;
}

.section-title:has(+ .section-lead) {
	margin-bottom: 12px;
}

.section-title--left {
	text-align: left;
}

.section-title--sm {
	font-size: 20px;
}

.section-lead {
	max-width: 720px;
	margin: 0 auto 32px;
	font-size: 16px;
	text-align: center;
	color: var(--c-muted);
	text-wrap: pretty;
}

.section-lead--left {
	margin-left: 0;
	text-align: left;
}

.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
	transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Общий эффект карточек: подъём и акцентная рамка */
.service-card,
.zip-card,
.stock-card {
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, opacity .6s var(--ease);
}

.service-card:hover,
.zip-card:hover,
.stock-card:hover {
	transform: translateY(-4px);
	border-color: var(--c-yellow);
	box-shadow: var(--shadow);
}

/* ---------- Бренды ---------- */

/* Телефон — парами в строку, компьютер — столбцами по два (Atlas Copco над Epiroc и т. д.). */
.brands-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

@media (min-width: 900px) {
	.brands-grid {
		grid-template-columns: none;
		grid-template-rows: repeat(2, auto);
		grid-auto-flow: column;
		grid-auto-columns: 1fr;
		gap: 20px;
	}
}

.brand-card {
	--logo-scale: .6;
}

@media (min-width: 640px) {
	.brand-card {
		--logo-scale: .8;
	}
}

@media (min-width: 900px) {
	.brand-card {
		--logo-scale: 1;
	}
}

.brand-card__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 108px;
	padding: 14px;
	border: 1px solid var(--c-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}

/* --logo-w считается в section-brands.php по пропорциям логотипа: площадь у всех одинаковая. */
.brand-card__logo {
	width: min(calc(var(--logo-w, 170px) * var(--logo-scale)), 88%);
	height: auto;
	max-height: 80px;
	object-fit: contain;
	transition: transform .25s var(--ease);
}

@media (min-width: 900px) {
	.brand-card__link {
		height: 136px;
	}
}

.brand-card__name {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--c-ink);
	transition: transform .25s var(--ease);
}

.brand-card__more {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 28px;
	background: var(--c-yellow-50);
	font-size: 12px;
	font-weight: 700;
	color: var(--c-yellow-700);
	transform: translateY(100%);
	transition: transform .25s var(--ease);
}

a.brand-card__link:hover {
	transform: translateY(-4px);
	border-color: var(--c-yellow);
	box-shadow: var(--shadow);
}

a.brand-card__link:hover .brand-card__more {
	transform: none;
}

a.brand-card__link:hover .brand-card__logo,
a.brand-card__link:hover .brand-card__name {
	transform: translateY(-10px);
}

@media (hover: none) {
	a.brand-card__link .brand-card__more {
		transform: none;
	}

	a.brand-card__link .brand-card__logo,
	a.brand-card__link .brand-card__name {
		transform: translateY(-10px);
	}
}

.outline-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin: 24px auto 0;
	padding: 0 22px;
	border: 1px solid #b9bec4;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: border-color .2s, transform .2s;
}

.outline-btn:hover {
	border-color: var(--c-yellow);
	transform: translateY(-1px);
}

.outline-btn .ui-icon {
	transition: transform .2s;
}

.outline-btn[aria-expanded="true"] .ui-icon {
	transform: rotate(180deg);
}

/* ---------- Что подберём ---------- */

.services {
	background: linear-gradient(180deg, #f5f8fd 0%, #eaf1fb 100%);
	border-block: 1px solid #e3eaf5;
}

.services-grid {
	display: grid;
	gap: 14px;
}

@media (min-width: 560px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1100px) {
	.services-grid {
		gap: 22px;
	}
}

/* Карточки в стиле макета: крупная 3D-картинка по центру, светлое «стекло», синий акцент. */
.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 22px 88px;
	border: 1px solid #e3eaf5;
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
	box-shadow: 0 10px 30px rgba(36, 86, 214, .07);
	text-align: center;
}

/* Заголовок стоит наверху рядом с номером — так просил заказчик, вместо прочерка. */
.service-card__num {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	color: #8a94a6;
}

.service-card__pic {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 170px;
	margin: 6px 0 16px;
	animation: ut-float-lg 5s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * -1.6s);
}

/* Мягкое синее свечение за картинкой. */
.service-card__pic::before {
	content: "";
	position: absolute;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(58, 123, 255, .2) 0%, rgba(58, 123, 255, 0) 70%);
	transition: transform .45s var(--ease), opacity .45s;
}

.service-card__icon {
	position: relative;
	width: 170px;
	height: 170px;
	filter: drop-shadow(0 14px 18px rgba(20, 40, 90, .18));
	transition: transform .45s var(--ease);
}

.service-card__title {
	display: flex;
	align-items: baseline;
	gap: 10px;
	align-self: stretch;
	margin-bottom: 4px;
	font-size: 19px;
	line-height: 1.25;
	text-align: left;
	color: var(--c-ink);
}

.service-card__text {
	max-width: 34ch;
	font-size: 14px;
	color: var(--c-muted);
}

.service-card__link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 22px;
	border-radius: inherit;
}

.service-card__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: #2456d6;
	box-shadow: 0 6px 16px rgba(36, 86, 214, .18);
	transition: background-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}

.service-card:hover {
	transform: translateY(-6px);
	border-color: rgba(36, 86, 214, .35);
	box-shadow: 0 18px 40px rgba(36, 86, 214, .18);
}

.service-card:hover .service-card__icon {
	transform: translateY(-8px) scale(1.07) rotate(-2deg);
}

.service-card:hover .service-card__pic::before {
	transform: scale(1.25);
}

.service-card:hover .service-card__btn,
.service-card__link:focus-visible .service-card__btn {
	background: #2456d6;
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 10px 22px rgba(36, 86, 214, .35);
}

@media (min-width: 1100px) {
	.service-card__pic {
		height: 200px;
	}

	.service-card__icon {
		width: 200px;
		height: 200px;
	}
}

/* Размах покачивания крупных картинок в карточках услуг. */
@keyframes ut-float-lg {
	0%,
	100% {
		transform: translateY(-9px) rotate(-1.2deg);
	}

	50% {
		transform: translateY(9px) rotate(1.2deg);
	}
}

@keyframes ut-float {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-7px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.service-card__pic,
	.hero-feature__pic {
		animation: none;
	}
}

/* ---------- Список с галочками ---------- */

.checklist {
	display: grid;
	gap: 12px;
	margin-top: 20px;
}

.checklist li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	line-height: 1.5;
}

.checklist .ui-icon {
	width: 24px;
	height: 24px;
	padding: 5px;
	border-radius: 50%;
	background: var(--c-yellow);
	color: #1a1a1a;
	stroke-width: 3;
}

.checklist--sm li {
	font-size: 14px;
}

.checklist--sm .ui-icon {
	width: 22px;
	height: 22px;
}

/* ---------- Подбор аналогов ---------- */

.analogs__inner {
	display: grid;
	gap: 36px;
	align-items: center;
}

@media (min-width: 900px) {
	.analogs__inner {
		grid-template-columns: 1.05fr .95fr;
		gap: 64px;
	}
}

.spec-card {
	position: relative;
	padding: 20px;
	border: 1px solid #dde3ea;
	border-radius: 16px;
	background-color: #fff;
	background-image:
		linear-gradient(rgba(22, 40, 63, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(22, 40, 63, .045) 1px, transparent 1px);
	background-size: 24px 24px;
	box-shadow: var(--shadow);
}

.spec-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.spec-card__title {
	font-size: 16px;
	font-weight: 800;
	color: var(--c-ink);
}

.spec-card__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #e7f5ec;
	font-size: 12px;
	font-weight: 700;
	color: var(--c-success);
	white-space: nowrap;
}

.spec-card__table {
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	background: rgba(255, 255, 255, .94);
	overflow: hidden;
}

.spec-row {
	display: grid;
	grid-template-columns: 1fr 72px 72px;
	align-items: center;
	min-height: 48px;
	padding: 0 14px;
	border-top: 1px solid #edf0f3;
	font-size: 14px;
	color: var(--c-ink);
}

.spec-row:first-child {
	border-top: 0;
}

.spec-row--head {
	min-height: 38px;
	background: #f6f8fa;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.spec-row > :not(:first-child) {
	justify-self: center;
}

.spec-row__ref::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-navy);
	opacity: .7;
}

.spec-row__ok {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #e7f5ec;
	color: var(--c-success);
}

.spec-row__ok .ui-icon {
	width: 16px;
	height: 16px;
	stroke-width: 3;
}

.js .spec-card.is-visible .spec-row__ok {
	animation: ut-pop .4s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 120ms + .3s);
}

.spec-card__note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	color: var(--c-muted);
}

/* ---------- ЗиП ---------- */

.zip {
	background: var(--c-bg-soft);
	border-block: 1px solid #eceef0;
}

.zip-grid {
	display: grid;
	gap: 14px;
}

@media (min-width: 640px) {
	.zip-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.zip-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

.zip-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	border: 1px solid #e4e5e7;
	border-radius: var(--radius);
	background: #fff;
}

.zip-card__icon {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	transition: transform .35s var(--ease);
}

/* Заказчик просил заметный размах: картинка подпрыгивает и заметно растёт. */
.zip-card:hover .zip-card__icon {
	transform: translateY(-10px) rotate(-10deg) scale(1.45);
}

.zip-card__title {
	margin-bottom: 4px;
	font-size: 16px;
	line-height: 1.3;
	color: var(--c-ink);
}

.zip-card__text {
	font-size: 14px;
	color: var(--c-muted);
}

.cta-bar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin-top: 28px;
	padding: 22px;
	border: 1px solid #f1d98a;
	border-left: 5px solid var(--c-yellow);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.cta-bar__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--c-ink);
}

.cta-bar__text p:not(.cta-bar__title) {
	color: var(--c-muted);
}

@media (min-width: 640px) {
	.cta-bar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: 22px 28px;
	}
}

/* ---------- Наличие / под заказ ---------- */

.stock-grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 900px) {
	.stock-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 22px;
	}
}

.stock-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid #e4e5e7;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.stock-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.stock-card__icon {
	width: 54px;
	height: 54px;
	transition: transform .35s var(--ease);
}

.stock-card:hover .stock-card__icon {
	transform: translateY(-8px) rotate(-8deg) scale(1.35);
}

.badge {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--c-yellow-50);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #8a6200;
}

.stock-card__title {
	font-size: 20px;
	line-height: 1.25;
	color: var(--c-ink);
}

.stock-card__text {
	flex: 1;
	font-size: 15px;
	color: var(--c-muted);
}

.stock-card .btn {
	align-self: flex-start;
	margin-top: 8px;
}

/* ---------- Фото и видео с объектов ---------- */

.media-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(66%, 260px);
	gap: 14px;
	margin-inline: calc(-1 * var(--gutter));
	padding: 4px var(--gutter) 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
}

@media (min-width: 900px) {
	.media-grid {
		grid-auto-flow: row;
		grid-template-columns: repeat(4, 1fr);
		gap: 22px;
		margin-inline: 0;
		padding: 0;
		overflow: visible;
	}
}

.media-card {
	scroll-snap-align: start;
}

.media-card__open {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(160deg, #1d3553, #4a78a6);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	cursor: pointer;
}

.media-card__open::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .3));
	pointer-events: none;
}

.media-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--ease);
}

.media-card__badge {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: -29px 0 0 -29px;
	border-radius: 50%;
	background: var(--c-yellow);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
	color: #1a1a1a;
	transition: transform .25s var(--ease);
}

.media-card__badge .ui-icon {
	width: 24px;
	height: 24px;
}

[data-lightbox="video"] .media-card__badge .ui-icon {
	margin-left: 3px;
}

/* У фото значок увеличения скромнее — в углу. */
[data-lightbox="image"] .media-card__badge {
	top: auto;
	left: auto;
	right: 12px;
	bottom: 12px;
	width: 40px;
	height: 40px;
	margin: 0;
	background: rgba(255, 255, 255, .92);
}

[data-lightbox="image"] .media-card__badge .ui-icon {
	width: 20px;
	height: 20px;
}

.media-card__open:hover .media-card__img {
	transform: scale(1.04);
}

.media-card__open:hover .media-card__badge {
	transform: scale(1.1);
}

.media-card__open:focus-visible {
	outline: 3px solid var(--c-yellow);
	outline-offset: 3px;
}

.media-card__caption {
	margin-top: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--c-ink);
}

/* Окно просмотра фото и видео */
.lightbox {
	width: min(92vw, 960px);
	max-width: none;
	max-height: 92vh;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #0b0f14;
	color: #fff;
	overflow: visible;
}

.lightbox::backdrop {
	background: rgba(8, 12, 18, .82);
}

.lightbox__body {
	display: flex;
	justify-content: center;
}

.lightbox__body img,
.lightbox__body video {
	display: block;
	max-width: 100%;
	max-height: calc(92vh - 56px);
	border-radius: 14px;
	object-fit: contain;
}

.lightbox__caption {
	padding: 12px 16px 14px;
	font-size: 14px;
	text-align: center;
}

.lightbox__close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--shadow);
	color: var(--c-ink);
	cursor: pointer;
}

@media (max-width: 639px) {
	.lightbox__close {
		top: 8px;
		right: 8px;
	}
}

/* ---------- Китай, Корея / Турция ---------- */

.china {
	background-color: var(--c-sky);
	background-image:
		linear-gradient(rgba(22, 40, 63, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(22, 40, 63, .04) 1px, transparent 1px);
	background-size: 32px 32px;
	border-block: 1px solid #e1e9f2;
}

.china__cards {
	display: grid;
	gap: 16px;
}

@media (min-width: 900px) {
	.china__cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

.country-card {
	padding: 26px;
	border: 1px solid #dfe7f0;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.country-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
}

.country-card__flags {
	display: flex;
	flex: none;
	gap: 6px;
}

.country-card__flags img {
	width: 36px;
	height: 24px;
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .08);
	object-fit: cover;
}

.country-card__title {
	font-size: 22px;
	color: var(--c-ink);
}

.china__subtitle {
	margin: 40px 0 18px;
	font-size: 18px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
	color: var(--c-ink);
}

.china__services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 10px;
}

.chip-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #dfe7f0;
	border-radius: var(--radius);
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--c-ink);
	transition: transform .25s var(--ease), border-color .2s, box-shadow .25s, opacity .6s var(--ease);
}

/* Масштабируем всю карточку, а не размеры — соседние карточки не сдвигаются. */
.chip-card:hover {
	z-index: 3;
	transform: translateY(-4px) scale(1.35);
	border-color: var(--c-yellow);
	box-shadow: var(--shadow);
}

.chip-card__icon {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	transition: transform .25s var(--ease);
}

.chip-card:hover .chip-card__icon {
	transform: scale(1.45);
}

/* ---------- Как мы работаем ---------- */

.steps {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 16px;
}

@media (min-width: 900px) {
	.steps {
		grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
		gap: 28px;
	}

	.step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 30px;
		left: calc(50% + 52px);
		right: calc(-50% + 52px);
		border-top: 1.5px dashed #9aa0a6;
	}
}

.step {
	position: relative;
	text-align: center;
}

.step__top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 60px;
}

.step__num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--c-yellow);
	font-size: 14px;
	font-weight: 800;
	color: #161616;
}

.step__icon {
	width: 48px;
	height: 48px;
}

.step__title {
	margin: 8px 0 4px;
	font-size: 15px;
	color: var(--c-ink);
}

.step__text {
	max-width: 200px;
	margin: 0 auto;
	font-size: 13px;
	color: var(--c-muted);
}

/* ---------- Почему выбирают нас ---------- */

.advantages-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 16px;
}

@media (min-width: 900px) {
	.advantages-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.advantage {
	text-align: center;
}

.advantage__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	transition: transform .3s var(--ease);
}

.advantage:hover .advantage__icon {
	transform: translateY(-4px) scale(1.06);
}

.advantage p {
	font-size: 14px;
	line-height: 1.45;
	color: var(--c-ink);
}

/* ---------- Заявка ---------- */

.request {
	background: var(--c-bg-soft);
	border-top: 1px solid #eceef0;
}

.request__inner {
	display: grid;
	gap: 28px;
}

@media (min-width: 1000px) {
	.request__inner {
		grid-template-columns: .85fr 1.15fr;
		gap: 56px;
		align-items: start;
	}
}

.request__label {
	margin-top: 24px;
	font-size: 15px;
	font-weight: 700;
	color: var(--c-ink);
}

.request__alt-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.contact-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid #dcdfe3;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--c-ink);
	transition: border-color .2s, transform .2s;
}

.contact-pill:hover {
	border-color: var(--c-yellow);
	transform: translateY(-1px);
}

.contact-pill__icon {
	width: 22px;
	height: 22px;
}

/* ---------- Контакты ---------- */

.contacts-grid {
	display: grid;
	gap: 10px;
}

@media (min-width: 640px) {
	.contacts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.contacts-grid {
		grid-template-columns: repeat(var(--cols, 4), 1fr);
		gap: 0;
	}
}

.contact {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	padding: 12px 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	transition: background-color .2s, opacity .6s var(--ease), transform .6s var(--ease);
}

.contact:hover {
	background: var(--c-bg-soft);
}

@media (min-width: 900px) {
	.contact {
		justify-content: center;
		border: 0;
		border-right: 1px solid #ddd;
		border-radius: 0;
	}

	.contact:last-child {
		border-right: 0;
	}

	/* Две строки: разделители между колонками путаются — показываем отдельными карточками. */
	.contacts-grid--rows {
		gap: 12px;
	}

	.contacts-grid--rows .contact,
	.contacts-grid--rows .contact:last-child {
		justify-content: flex-start;
		padding-left: 24px;
		border: 1px solid var(--c-line);
		border-radius: var(--radius);
	}

	.contacts-grid--rows .contact--max {
		border-color: rgba(91, 77, 255, .35);
	}
}

.contact__icon {
	width: 34px;
	height: 34px;
	transition: transform .25s var(--ease);
}

.contact--max {
	background: linear-gradient(120deg, rgba(58, 123, 255, .08), rgba(162, 60, 255, .1));
	border-color: rgba(91, 77, 255, .35);
}

.contact--max .contact__text b {
	color: #4b3fe0;
}

.contact--max:hover {
	background: linear-gradient(120deg, rgba(58, 123, 255, .14), rgba(162, 60, 255, .16));
}

@media (min-width: 900px) {
	.contact--max {
		border-radius: var(--radius);
		border: 1px solid rgba(91, 77, 255, .35);
	}
}

.contact:hover .contact__icon {
	transform: scale(1.1) rotate(-6deg);
}

.contact__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 14px;
	overflow-wrap: anywhere;
}

.contact__text b {
	margin-bottom: 2px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-ink);
}

.contacts__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
	margin-top: 24px;
	font-size: 14px;
	color: var(--c-muted);
}

.contacts__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ---------- Внутренние страницы ---------- */

.page-hero {
	padding: 28px 0 44px;
	border-bottom: 1px solid #e9eef4;
	background: linear-gradient(180deg, #eef4fa 0%, #fff 100%);
}

.page-hero--simple {
	padding: 32px 0;
}

.page-hero__inner {
	display: grid;
	gap: 28px;
	align-items: center;
}

@media (min-width: 900px) {
	.page-hero__inner {
		grid-template-columns: 1.1fr .9fr;
		gap: 48px;
		padding-block: 16px;
	}
}

.page-hero__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	object-fit: cover;
	box-shadow: var(--shadow);
}

.page-hero__intro {
	max-width: 620px;
	margin-top: 14px;
	font-size: 17px;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 13px;
	color: var(--c-muted);
}

.breadcrumbs a:hover {
	color: var(--c-yellow-700);
}

.page-title {
	font-size: clamp(26px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.12;
	color: var(--c-ink);
	text-wrap: balance;
}

.page-body {
	padding-block: 40px 56px;
}

.page-body--seo {
	width: min(860px, 100% - 2 * var(--gutter));
}

.page-404__code {
	font-size: 72px;
	font-weight: 800;
	line-height: 1;
	color: var(--c-yellow);
}

.page-404 .section-lead {
	margin: 12px 0 0;
	text-align: left;
}

.post-list {
	display: grid;
	gap: 12px;
}

.post-list time {
	font-size: 13px;
	color: var(--c-muted);
}

.related {
	padding-top: 0;
}

.related__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.related__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: border-color .2s, transform .2s;
}

.related__link:hover {
	border-color: var(--c-yellow);
	transform: translateY(-1px);
}

/* Текст из редактора */
.prose {
	font-size: 16px;
	line-height: 1.7;
}

.prose > * + * {
	margin-top: 1em;
}

.prose h2 {
	margin-top: 1.8em;
	font-size: clamp(21px, 2.6vw, 26px);
	line-height: 1.25;
	color: var(--c-ink);
}

.prose h3 {
	margin-top: 1.5em;
	font-size: 19px;
	color: var(--c-ink);
}

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

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li + li {
	margin-top: .4em;
}

.prose li::marker {
	color: var(--c-yellow-600);
}

.prose a {
	color: #8f6500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose img {
	border-radius: 12px;
}

.prose table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 15px;
}

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

.prose th {
	background: var(--c-bg-soft);
}

.prose blockquote {
	padding: 4px 0 4px 16px;
	border-left: 4px solid var(--c-yellow);
	color: var(--c-ink);
}

.prose mark {
	background: #fff3cd;
}

.aligncenter {
	margin-inline: auto;
}

/* ---------- Подвал ---------- */

.site-footer {
	padding-top: 40px;
	border-top: 1px solid #e8eaed;
	background: #f4f5f7;
	font-size: 14px;
	color: var(--c-muted);
}

.site-footer__inner {
	display: grid;
	gap: 28px;
}

@media (min-width: 900px) {
	.site-footer__inner {
		grid-template-columns: 1.3fr 1fr 1fr;
		gap: 40px;
	}
}

.site-footer .logo__img {
	width: 220px;
}

.site-footer__note {
	max-width: 420px;
	margin-top: 14px;
	font-size: 12.5px;
	line-height: 1.5;
}

.site-footer__group {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 12.5px;
	transition: opacity .2s;
}

.site-footer__group img {
	width: 130px;
	height: auto;
}

.site-footer__group:hover {
	opacity: .8;
}

.site-footer__nav .nav__list {
	display: grid;
	gap: 8px;
}

.site-footer__nav a:hover,
.site-footer__contacts a:hover {
	color: var(--c-ink);
}

.site-footer__contacts,
.site-footer__nav .nav__list {
	align-content: start;
}

.site-footer__contacts {
	display: grid;
	gap: 10px;
}

.site-footer__contacts li,
.site-footer__contacts a {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
}

.site-footer__contacts .ui-icon {
	margin-top: 2px;
	color: var(--c-yellow-700);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 20px;
	margin-top: 32px;
	padding-block: 18px;
	border-top: 1px solid #e3e5e8;
	font-size: 12.5px;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.site-footer__legal a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 899px) {
	.site-footer {
		padding-bottom: 72px;
	}
}

/* ---------- Мобильная панель и «Наверх» ---------- */

.mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	gap: 8px;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -6px 20px rgba(16, 24, 40, .12);
	transform: translateY(110%);
	transition: transform .3s var(--ease);
}

.mobile-bar.is-visible {
	transform: none;
}

.mobile-bar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	border: 1px solid #dcdfe3;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-ink);
}

.mobile-bar__btn--primary {
	border-color: var(--c-yellow);
	background: var(--c-yellow);
}

.to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 30;
	display: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid #eee;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 15px rgba(0, 0, 0, .1);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, background-color .2s, transform .2s;
}

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

.to-top:hover {
	background: var(--c-yellow);
	transform: translateY(-2px);
}

@media (min-width: 900px) {
	.mobile-bar {
		display: none;
	}

	.to-top {
		display: grid;
	}
}

/* ---------- Cookie-баннер ---------- */

.cookie-bar {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: calc(76px + env(safe-area-inset-bottom));
	z-index: 45;
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
	font-size: 13.5px;
	line-height: 1.5;
}

.cookie-bar__text a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

@media (min-width: 900px) {
	.cookie-bar {
		left: 24px;
		right: auto;
		bottom: 24px;
		max-width: 440px;
	}
}

/* ---------- Анимации ---------- */

@keyframes ut-zoom {
	from { transform: scale(1); }
	to { transform: scale(1.07); }
}

@keyframes ut-sheen {
	0%, 100% { transform: translateX(-25%); }
	50% { transform: translateX(25%); }
}

@keyframes ut-dust {
	0%, 100% { transform: translate(0, 0) scale(1); opacity: .55; }
	50% { transform: translate(-6%, -10%) scale(1.18); opacity: .95; }
}

@keyframes ut-pop {
	from { transform: scale(.3); opacity: 0; }
	to { transform: none; opacity: 1; }
}

@keyframes ut-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(253, 185, 0, 0); }
	50% { box-shadow: 0 0 0 6px rgba(253, 185, 0, .35); }
}

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

@keyframes ut-draw {
	to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}

	.js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* Подпись к фото на SEO-странице: автор и лицензия, если фото взято по CC. */
.page-hero__credit {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--c-muted);
}

