

.kh-photo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 28px;
}

.kh-seo-photo {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #f2f4fa;
	border: 1px solid var(--kh-line);
}

.kh-seo-photo__img {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
}

.kh-seo-photo figcaption {
	padding: 10px 14px 13px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--kh-muted);
	background: #fff;
}

@media (max-width: 992px) {
	.kh-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kh-seo-photo__img { height: 200px; }
}

@media (max-width: 640px) {
	.kh-photo-grid { grid-template-columns: 1fr; }
	.kh-seo-photo__img { height: 220px; }
}

.kh-prod {
	position: relative;
	background:
		radial-gradient(1100px 520px at 14% 78%, rgba(124, 58, 237, .16), rgba(124, 58, 237, 0) 62%),
		radial-gradient(900px 460px at 82% 12%, rgba(37, 99, 235, .14), rgba(37, 99, 235, 0) 60%),
		radial-gradient(700px 420px at 62% 96%, rgba(14, 165, 233, .10), rgba(14, 165, 233, 0) 65%),
		linear-gradient(135deg, #f7f5ff 0%, #eef3ff 46%, #f2f8ff 100%);
	padding: 74px 0 84px;
	overflow: hidden;
}

/* Мягкое свечение под вырезкой — скрывает край и «приземляет» картинку */
.kh-prod__media::before {
	content: "";
	position: absolute;
	left: -4%;
	right: -6%;
	top: 2%;
	bottom: 2%;
	background: radial-gradient(closest-side at 46% 52%, rgba(255, 255, 255, .9), rgba(255, 255, 255, .45) 58%, rgba(255, 255, 255, 0) 78%);
	pointer-events: none;
	z-index: 0;
}

.kh-prod__media::after {
	content: "";
	position: absolute;
	left: 6%;
	bottom: 0;
	width: 74%;
	height: 64px;
	background: radial-gradient(50% 50% at 50% 50%, rgba(15, 23, 42, .22), rgba(15, 23, 42, 0) 72%);
	filter: blur(10px);
	pointer-events: none;
	z-index: 0;
}

.kh-prod__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}

.kh-prod__media {
	position: relative;
	min-height: 460px;
}

.kh-prod__cut {
	position: absolute;
	line-height: 0;
}

.kh-prod__cut--a {
	z-index: 1;
	left: 0;
	bottom: 0;
	width: 94%;
	filter: drop-shadow(0 30px 45px rgba(15, 23, 42, .18));
}

/* Органическое градиентное пятно под вырезкой — скрывает край картинки */
.kh-prod__blob {
	position: absolute;
	left: -26%;
	top: -39%;
	width: 134%;
	height: 191%;
	z-index: 0;
	filter: drop-shadow(0 50px 90px rgba(91, 33, 182, .5));
	pointer-events: none;
}

.kh-prod__cut--a .kh-prod__img {
	position: relative;
	z-index: 1;
}

.kh-prod__card {
	position: absolute;
	right: 0;
	top: 4%;
	width: 40%;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	border: 4px solid #fff;
	background: #fff;
	box-shadow: 0 26px 54px -28px rgba(15, 23, 42, .45);
	transform: rotate(1.5deg);
	z-index: 2;
}

.kh-prod__card-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kh-prod__img {
	display: block;
	width: 100%;
	height: auto;
}

.kh-prod__tag {
	position: absolute;
	left: 0;
	bottom: 4%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e7eaf3;
	box-shadow: 0 20px 44px -26px rgba(15, 23, 42, .5);
	z-index: 3;
}

.kh-prod__tag strong {
	font-family: 'Manrope', sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: var(--kh-brand);
	letter-spacing: -.02em;
	line-height: 1;
}

.kh-prod__tag span {
	font-size: 12px;
	line-height: 1.25;
	color: var(--kh-muted);
}

.kh-prod__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--kh-brand-soft);
	color: var(--kh-brand);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .01em;
}

.kh-prod__title {
	margin: 0 0 16px;
	font-family: 'Manrope', sans-serif;
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 800;
	line-height: 1.14;
	letter-spacing: -.025em;
	color: var(--kh-ink);
}

.kh-prod__lead {
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.62;
	color: var(--kh-muted);
	max-width: 520px;
}

.kh-prod__content {
	position: relative;
	z-index: 2;
}

.kh-prod__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 26px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.kh-prod__list li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: 34px;
	position: relative;
}

.kh-prod__list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--kh-brand-soft);
	color: var(--kh-brand);
	font-size: 12px;
	font-weight: 700;
	display: grid;
	place-items: center;
}

.kh-prod__list strong {
	font-size: 15px;
	font-weight: 700;
	color: var(--kh-ink);
	line-height: 1.3;
}

.kh-prod__list span {
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--kh-muted);
}

.kh-prod__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.kh-gallery {
	background: #fff;
	padding: 72px 0;
}

.kh-gallery__head {
	text-align: center;
	margin-bottom: 34px;
}

.kh-gallery__sub {
	margin: 10px auto 0;
	max-width: 620px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--kh-muted);
}

.kh-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.kh-gallery__item {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #f2f4fa;
	border: 1px solid var(--kh-line);
}

.kh-gallery__img {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
	transition: transform .4s ease;
}

.kh-gallery__item:hover .kh-gallery__img {
	transform: scale(1.04);
}

.kh-gallery__cap {
	padding: 12px 16px 14px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--kh-muted);
	background: #fff;
}

.kh-gallery__more {
	margin: 26px 0 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
}

.kh-labels {
	background: #f6f7fb;
	padding: 70px 0 76px;
}

.kh-labels__inner {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: center;
}

.kh-section-title--left {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.kh-labels__text p {
	margin: 0 0 14px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--kh-muted);
	max-width: 460px;
}

.kh-labels__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-weight: 600;
	font-size: 14.5px;
}

.kh-labels__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.kh-labels__item {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--kh-line);
}

.kh-labels__img {
	display: block;
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.kh-labels__item figcaption {
	padding: 10px 14px 13px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--kh-muted);
}

.kh-photos {
	background: #fff;
	padding: 64px 0 76px;
	border-top: 1px solid var(--kh-line-2);
}

.kh-photos__lead {
	margin: 12px 0 28px;
	max-width: 720px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--kh-muted);
}

.kh-photos__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.kh-photos__item {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: #f2f4fa;
	border: 1px solid var(--kh-line);
}

.kh-photos__img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: cover;
	transition: transform .4s ease;
}

.kh-photos__item:hover .kh-photos__img {
	transform: scale(1.04);
}

.kh-photos__more {
	margin: 22px 0 0;
	font-size: 15px;
	font-weight: 600;
}

@media (max-width: 1150px) {
	.kh-prod__inner { gap: 36px; }
	.kh-prod__media { min-height: 400px; }
}

@media (max-width: 992px) {
	.kh-prod { padding: 56px 0 62px; }
	.kh-prod__inner {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.kh-prod__media {
		min-height: 0;
		display: grid;
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.kh-prod__cut { position: static; width: 100%; }
	.kh-prod__cut--a {
		position: relative;
		width: 100%;
		margin: 8px 0 18px;
	}
	.kh-prod__blob {
		left: -9%;
		top: -14%;
		width: 118%;
		height: 132%;
		-webkit-mask-image: none;
		mask-image: none;
	}
	.kh-prod__card { display: none; }
	.kh-prod__tag {
		position: static;
		width: fit-content;
		margin: 0;
	}
	.kh-gallery { padding: 54px 0; }
	.kh-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kh-gallery__img { height: 200px; }
	.kh-labels { padding: 52px 0 58px; }
	.kh-labels__inner {
		grid-template-columns: 1fr;
		gap: 26px;
	}
	.kh-labels__img { height: 210px; }
	.kh-photos { padding: 48px 0 56px; }
	.kh-photos__img { height: 220px; }
}

@media (max-width: 640px) {
	.kh-prod { padding: 44px 0 50px; }
	.kh-prod__content {
	position: relative;
	z-index: 2;
}

.kh-prod__list { grid-template-columns: 1fr; gap: 14px; }
	.kh-prod__actions .kh-btn { flex: 1 1 auto; justify-content: center; }
	.kh-gallery__grid { grid-template-columns: 1fr; }
	.kh-gallery__img { height: 210px; }
	.kh-labels__grid { grid-template-columns: 1fr; }
	.kh-labels__img { height: 220px; }
	.kh-photos__grid { grid-template-columns: 1fr; }
	.kh-photos__img { height: 230px; }
}

body.kh-theme .kh-gallery__img { height: 240px; object-fit: cover; }
body.kh-theme .kh-labels__img { height: 250px; object-fit: cover; }
body.kh-theme .kh-photos__img { height: 260px; object-fit: cover; }
body.kh-theme .kh-seo-photo__img { height: 240px; object-fit: cover; }

@media (max-width: 992px) {
	body.kh-theme .kh-gallery__img { height: 200px; }
	body.kh-theme .kh-labels__img { height: 210px; }
	body.kh-theme .kh-photos__img { height: 220px; }
	body.kh-theme .kh-seo-photo__img { height: 200px; }
}

@media (max-width: 640px) {
	body.kh-theme .kh-gallery__img { height: 210px; }
	body.kh-theme .kh-labels__img { height: 220px; }
	body.kh-theme .kh-photos__img { height: 230px; }
	body.kh-theme .kh-seo-photo__img { height: 220px; }
}

.kh-contacts-photo { margin: 0; }

body.kh-theme .kh-contacts-photo__img {
	display: block;
	width: 100%;
	height: clamp(260px, 34vw, 460px);
	object-fit: cover;
	border-radius: 22px;
	border: 1px solid var(--kh-line);
}

.kh-contacts-photo__cap {
	margin: 12px 0 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--kh-muted);
}

@media (max-width: 640px) {
	body.kh-theme .kh-contacts-photo__img { height: 220px; border-radius: 16px; }
	.kh-contacts-photo__cap { font-size: 12.5px; }
}

.kh-contacts-page__grid { align-items: stretch; }

.kh-contacts-photo-wrap {
	display: flex;
	max-width: 560px;
	margin: 6px auto 12px;
}

body.kh-theme .kh-contacts-photo-wrap .kh-contacts-photo__img {
	display: block;
	width: 100%;
	height: 300px;
	min-height: 0;
	object-fit: cover;
	border-radius: 18px;
	border: 1px solid var(--kh-line);
}

@media (max-width: 900px) {
	.kh-contacts-photo-wrap { max-width: 100%; }
	body.kh-theme .kh-contacts-photo-wrap .kh-contacts-photo__img {
		height: auto;
		border-radius: 16px;
	}
}
body.kh-theme .kh-contacts-photo-wrap picture {
	display: block;
	width: 100%;
}