/**
 * Главная — мобильная вёрстка (Figma 74:861 / hero 2011:184, 390px)
 * Подключается после блоковых стилей на index.
 */

@media (max-width: 767px) {
	html,
	body {
		overflow-x: clip;
	}

	/* —— Hero (Figma 2011:184) —— */
	.hero_home {
		min-height: 0;
		background-color: #f4f8fd;
		background-image: none;
	}

	.hero_home__bg {
		display: block;
		background: linear-gradient(180deg, #f8fafc 0%, #eef4fc 62%, #f4f8fd 100%);
	}

	.hero_home__container {
		padding: 14px 16px 20px;
	}

	.hero_home__layout {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.hero_home__content {
		order: 1;
	}

	.hero_home__eyebrow {
		margin: 0 0 10px;
		font-size: 11px;
		letter-spacing: 0.05em;
	}

	.hero_home__title {
		font-size: 26px;
		line-height: 1.08;
	}

	.hero_home__lead {
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.45;
	}

	.hero_home__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-top: 16px;
	}

	.hero_home__btn {
		width: 100%;
		min-height: 46px;
	}

	.hero_home__media {
		order: 2;
		width: 100%;
	}

	.hero_home__media-panel {
		position: relative;
		display: block;
		overflow: hidden;
		border: 1px solid #e3ebf5;
		border-radius: 16px;
		background: linear-gradient(165deg, #dbeafe 0%, #eff6ff 48%, #fff 100%);
		aspect-ratio: 1.12;
		max-height: 272px;
		box-shadow: 0 10px 24px rgba(21, 36, 64, 0.08);
	}

	.hero_home__media-stage {
		position: absolute;
		inset: 0;
		z-index: 0;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		width: auto;
		height: auto;
		margin: 0;
		padding: 8px 12px 52px;
		overflow: hidden;
		clip: auto;
	}

	.hero_home__product {
		display: block;
		width: 100%;
		height: auto;
		max-height: 200px;
		object-fit: contain;
		object-position: center bottom;
	}

	.hero_home__badge {
		position: absolute;
		z-index: 2;
		right: 10px;
		bottom: 10px;
		left: 10px;
		width: auto;
		max-width: none;
		padding: 10px 12px;
		border-radius: 12px;
		box-shadow: 0 8px 20px rgba(21, 36, 64, 0.1);
	}

	.hero_home__badge strong {
		font-size: 13px;
	}

	.hero_home__badge > div > span {
		font-size: 11px;
	}

	.hero_home__features {
		order: 3;
		grid-template-columns: 1fr 1fr;
		gap: 10px 12px;
		margin-top: 4px;
		padding-top: 14px;
		border-top: 1px solid #e6edf5;
	}

	.hero_home__feature {
		gap: 10px;
		align-items: flex-start;
	}

	.hero_home__feature-icon {
		width: 36px;
		height: 36px;
	}

	.hero_home__feature-text {
		font-size: 12px;
		line-height: 1.35;
	}

	/* —— Категории —— */
	.categories_home__container {
		padding: 28px 16px 32px;
	}

	.categories_home__head {
		gap: 10px;
		margin-bottom: 14px;
	}

	.categories_home__head-main {
		flex: 0 1 auto;
		width: 100%;
		min-height: 0;
	}

	.categories_home__eyebrow {
		margin-bottom: 6px;
		font-size: 11px;
	}

	.categories_home__title {
		font-size: 24px;
		line-height: 1.1;
	}

	.categories_home__lead {
		margin-top: 6px;
		font-size: 12px;
		line-height: 1.4;
	}

	.categories_home__catalog-btn {
		min-height: 40px;
	}

	.categories_home__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.categories_home__card {
		min-height: 172px;
		padding: 12px 12px 14px;
		border-radius: 14px;
	}

	.categories_home__card-media {
		min-height: 88px;
		margin-bottom: 8px;
	}

	.categories_home__card-media img {
		max-height: 88px;
	}

	.categories_home__card-title {
		padding-right: 0;
		font-size: 11px;
		line-height: 1.3;
	}

	.categories_home__card-arrow {
		right: 10px;
		bottom: 10px;
		width: 28px;
		height: 28px;
	}

	/* —— Товары (карусель с «хвостом») —— */
	.products_home__container {
		padding: 36px 16px 44px;
	}

	.products_home__title {
		font-size: 26px;
	}

	.products_home__head-side {
		width: 100%;
	}

	/* —— CTA / сервисы / о компании / доставка —— */
	.cta_home__container,
	.services_home__container,
	.about_home__container,
	.delivery_pay_home__container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.services_home__title,
	.about_home__title,
	.delivery_pay_home__title,
	.cta_home__title {
		font-size: 26px;
	}

	.about_home__features {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}

@media (max-width: 399px) {
	.hero_home__title {
		font-size: 24px;
	}

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