.stock {
	padding: 30px 0px 100px;
}

.stock__title {
	font-weight: 700;
	font-size: 32px;
	line-height: 41px;
	color: #000000;
}

.stock__content {
	margin-top: 30px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-column-gap: 50px;
	-moz-column-gap: 50px;
	column-gap: 50px;
	row-gap: 30px;
}

.stock__item {
	-webkit-box-flex: 0;
	-ms-flex: 0 0 calc((100% - 50px * 2) / 3);
	flex: 0 0 calc((100% - 50px * 2) / 3);
}

.stock__image {
	width: 100%;
	max-width: 100%;
	position: relative;
	padding-bottom: 59%;
	display: block;
	overflow: hidden;
}

.stock__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	-o-object-fit: cover;
	object-fit: cover;
	-webkit-transition: all 0.3s ease 0s;
	-o-transition: all 0.3s ease 0s;
	transition: all 0.3s ease 0s;
}

.stock__body {
	padding: 20px 0px 0px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	row-gap: 10px;
}

.stock__name {
	font-weight: 500;
	font-size: 18px;
	line-height: 1.3;
	color: #000000;
}

.stock__date {
	font-weight: 400;
	font-size: 16px;
	line-height: 1.3;
	color: #9b9b9b;
}

/* =========================================================
   Offers index
   ========================================================= */

.offers-page {
	color: #111111;
	background: #ffffff;
}

.stock--offers .stock__date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.stock--offers .stock__date-label {
	color: #777777;
}

.stock--offers .stock__date time {
	color: #9a9a9a;
}

.stock--offers .stock__item {
	position: relative;
}

.stock--offers .stock__image::after {
	content: '';

	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;

	width: 7px;
	height: 7px;

	border-radius: 50%;

	background: #ffffff;

	box-shadow:
		0 0 0 5px rgba(255, 255, 255, 0.25),
		0 2px 8px rgba(0, 0, 0, 0.15);

	opacity: 0;

	transition: opacity 0.3s ease;
}

.stock--offers .stock__image:hover::after {
	opacity: 1;
}

/* Акции обычно содержат баннерный текст,
   поэтому не увеличиваем изображение слишком сильно. */

.stock--offers .stock__image:hover img {
	transform: scale(1.025);
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {
	.stock--offers .stock__date {
		display: flex;
		flex-wrap: wrap;
		gap: 3px;
	}

	.stock--offers .stock__image::after {
		display: none;
	}
}
/* =========================================================
   Offer item page
   ========================================================= */

.offer-item-page {
	color: #111111;
	background: #ffffff;
}

/* =========================================================
   Offer hero
   ========================================================= */

.offer-hero {
	padding: 20px 0 78px;
}

.offer-hero__container {
	min-width: 0;
}

.offer-hero__header {
	max-width: 940px;
	margin: 0 auto 40px;
	text-align: center;
}

.offer-hero__eyebrow {
	margin: 0 0 13px;

	font-weight: 500;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;

	color: #929292;
}

.offer-hero__title {
	margin: 0;

	font-weight: 500;
	font-size: clamp(40px, 5vw, 68px);
	line-height: 1.06;
	letter-spacing: -0.045em;

	text-wrap: balance;
}

/* =========================================================
   Main offer banner
   ========================================================= */

.offer-hero__media {
	position: relative;

	width: 100%;
	max-width: 100%;
	min-width: 0;

	aspect-ratio: 1920 / 720;

	overflow: hidden;

	background: #f4f3f1;
}

.offer-hero__media picture {
	position: absolute;
	inset: 0;

	display: block;

	width: 100%;
	height: 100%;
}

.offer-hero__image {
	position: absolute;
	inset: 0;

	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: center;
}

/* =========================================================
   Offer information
   ========================================================= */

.offer-hero__info {
	display: grid;
	grid-template-columns:
		minmax(0, 0.72fr)
		minmax(0, 1.28fr);
	gap: 64px;

	width: 100%;
	max-width: 980px;
	min-width: 0;
	margin: 46px auto 0;
}

.offer-hero__meta,
.offer-hero__description {
	min-width: 0;
}

/* =========================================================
   Offer meta
   ========================================================= */

.offer-hero__meta {
	display: flex;
	flex-direction: column;

	border-top: 1px solid #e7e7e7;
}

.offer-hero__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;

	padding: 20px 0;

	border-bottom: 1px solid #e7e7e7;
}

.offer-hero__meta-icon {
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;

	width: 40px;
	height: 40px;

	border: 1px solid #dedede;
	border-radius: 50%;

	color: #111111;
}

.offer-hero__meta-item > div {
	display: flex;
	flex-direction: column;
	gap: 4px;

	min-width: 0;
}

.offer-hero__meta-label {
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.07em;
	text-transform: uppercase;

	color: #999999;
}

.offer-hero__meta-value {
	font-weight: 500;
	font-size: 15px;
	line-height: 1.4;

	color: #111111;

	overflow-wrap: anywhere;
}

/* =========================================================
   Legacy editor content
   ========================================================= */

.offer-hero__description {
	width: 100%;
	max-width: 100%;

	font-size: 17px;
	line-height: 1.72;
	color: #3e3e3e;

	overflow-wrap: anywhere;
}

.offer-hero__description > * {
	max-width: 100%;
}

.offer-hero__description > *:first-child {
	margin-top: 0;
}

.offer-hero__description > *:last-child {
	margin-bottom: 0;
}

.offer-hero__description p {
	margin: 0 0 20px;
}

.offer-hero__description h2,
.offer-hero__description h3,
.offer-hero__description h4 {
	margin: 38px 0 18px;

	color: #111111;
}

.offer-hero__description h2 {
	font-weight: 500;
	font-size: 30px;
	line-height: 1.2;
}

.offer-hero__description h3 {
	font-weight: 600;
	font-size: 24px;
	line-height: 1.25;
}

.offer-hero__description h4 {
	font-weight: 600;
	font-size: 19px;
	line-height: 1.3;
}

.offer-hero__description ul,
.offer-hero__description ol {
	margin: 20px 0;
	padding-left: 22px;
}

.offer-hero__description li + li {
	margin-top: 8px;
}

.offer-hero__description a {
	border-bottom: 1px solid currentColor;
	color: inherit;
}

/*
 * Контент приходит из legacy-редактора и может содержать
 * inline width/height/position. Поэтому здесь !important
 * используется как защитный слой.
 */

.offer-hero__description picture,
.offer-hero__description figure {
	display: block;

	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;

	margin: 28px 0;
}

.offer-hero__description img {
	position: static !important;

	display: block;

	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;

	margin: 28px 0;

	object-fit: contain;
	object-position: center;
}

.offer-hero__description picture img,
.offer-hero__description figure img {
	margin: 0;
}

.offer-hero__description iframe,
.offer-hero__description video {
	display: block;

	width: 100% !important;
	max-width: 100% !important;

	margin: 28px 0;

	aspect-ratio: 16 / 9;

	border: 0;
}

.offer-hero__description table {
	display: block;

	width: 100%;
	max-width: 100%;

	margin: 28px 0;

	overflow-x: auto;

	border-collapse: collapse;
}

.offer-hero__description th,
.offer-hero__description td {
	padding: 12px 14px;
	border: 1px solid #e5e5e5;
	text-align: left;
}

/* =========================================================
   Offer products catalog
   ========================================================= */

.offer-catalog {
	padding: 64px 0 100px;

	border-top: 1px solid #e6e6e6;
}

.offer-catalog__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;

	margin-bottom: 42px;
}

.offer-catalog__eyebrow {
	margin: 0 0 10px;

	font-weight: 500;
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: 0.09em;
	text-transform: uppercase;

	color: #999999;
}

.offer-catalog__title {
	margin: 0;

	font-weight: 500;
	font-size: clamp(36px, 4vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.offer-catalog__count {
	flex: 0 0 auto;

	margin: 0 0 5px;

	font-size: 14px;
	line-height: 1.4;

	color: #999999;
}

.offer-catalog__empty {
	width: 100%;
	padding: 60px 24px;

	border: 1px solid #e5e5e5;

	font-size: 15px;
	line-height: 1.5;
	text-align: center;

	color: #777777;
}

/* =========================================================
   Existing catalog layout protection
   ========================================================= */

.offer-catalog .catalog__body,
.offer-catalog .catalog__main,
.offer-catalog .products_catalog,
.offer-catalog .main-catalog__body {
	min-width: 0;
}

/*
 * Карточку товара не переопределяем.
 * Страница акции должна использовать тот же компонент,
 * который уже работает в обычном каталоге.
 */

/* =========================================================
   Small desktop
   ========================================================= */

@media (max-width: 1100px) {
	.offer-hero__info {
		gap: 40px;
	}

	.offer-catalog__header {
		margin-bottom: 32px;
	}
}

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991.98px) {
	.offer-hero {
		padding-bottom: 62px;
	}

	.offer-hero__header {
		margin-bottom: 32px;
	}

	.offer-hero__info {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;

		max-width: 760px;
		margin-top: 36px;
	}

	.offer-hero__meta {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.offer-hero__meta-item {
		padding-right: 20px;
	}

	.offer-hero__meta-item + .offer-hero__meta-item {
		padding-left: 20px;
		border-left: 1px solid #e7e7e7;
	}

	.offer-catalog {
		padding-top: 52px;
	}
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767.98px) {
	.offer-hero {
		padding: 12px 0 50px;
	}

	.offer-hero__header {
		margin-bottom: 25px;
		text-align: left;
	}

	.offer-hero__eyebrow {
		margin-bottom: 10px;
		font-size: 11px;
	}

	.offer-hero__title {
		font-size: clamp(31px, 9.5vw, 42px);
		line-height: 1.08;
		letter-spacing: -0.04em;

		text-wrap: initial;
	}

	/*
	 * Отдельный mobile-баннер должен быть 420 × 480.
	 * picture сам выберет mobile source.
	 */

	.offer-hero__image {
		object-fit: cover;
		object-position: center;
	}

	.offer-hero__info {
		gap: 29px;

		width: 100%;
		margin-top: 28px;
	}

	.offer-hero__meta {
		display: flex;
		flex-direction: column;
	}

	.offer-hero__meta-item {
		padding: 16px 0;
	}

	.offer-hero__meta-item + .offer-hero__meta-item {
		padding-left: 0;
		border-left: 0;
	}

	.offer-hero__meta-icon {
		flex-basis: 38px;

		width: 38px;
		height: 38px;
	}

	.offer-hero__meta-value {
		font-size: 14px;
	}

	.offer-hero__description {
		font-size: 15px;
		line-height: 1.65;
	}

	.offer-hero__description p {
		margin-bottom: 17px;
	}

	.offer-hero__description h2 {
		font-size: 26px;
	}

	.offer-hero__description h3 {
		font-size: 22px;
	}

	.offer-hero__description img,
	.offer-hero__description picture,
	.offer-hero__description figure {
		margin-top: 24px;
		margin-bottom: 24px;
	}

	.offer-catalog {
		padding: 42px 0 70px;
	}

	.offer-catalog__header {
		display: block;
		margin-bottom: 26px;
	}

	.offer-catalog__title {
		font-size: 35px;
		line-height: 1.08;
	}

	.offer-catalog__count {
		display: none;
	}
}

/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 420px) {
	.offer-hero__title {
		font-size: 29px;
	}

	.offer-catalog__title {
		font-size: 31px;
	}
}
