.marketplace-store,
.catalog-shell.marketplace-store {
	--ms-navy: var(--vm-navy, #0e1a32);
	--ms-lime: var(--vm-lime, #9edc2a);
	--catalog-sidebar-width: 256px;
	--vm-store-fact-font-size: 0.8rem;
	--vm-store-fact-line-height: 1.25;
	--vm-store-fact-font-weight: 400;
	--vm-store-fact-color: #fff;
}

/* Каталог с сайдбаром: фиксированная ширина колонки фильтров */
@media (min-width: 992px) {
	.catalog-shell:not(.catalog-shell--no-sidebar) .catalog-shell__sidebar.secondary_home {
		width: var(--catalog-sidebar-width);
		max-width: var(--catalog-sidebar-width);
	}

	/* Ozon-style: панель фильтров на белом блоке контента */
	.catalog-shell:not(.catalog-shell--no-sidebar) #secondary.secondary_home .sticky_ {
		background: var(--color-back-stage, #f8f9fb);
		border: 1px solid rgba(15, 23, 42, 0.08);
		border-radius: 20px;
		padding: 8px 12px 12px;
	}

	.catalog-shell:not(.catalog-shell--no-sidebar) .catalog-shell__page--content #secondary.secondary_home .sticky_ {
		background: var(--color-back-stage, #f8f9fb);
	}

	.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .sticky_ > .mb-3 {
		margin-bottom: 10px;
	}
}

/* Сайдбар каталога — светлая панель как на Ozon */
.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .cat_filter_bar {
	background: transparent;
	margin: 0;
	padding: 0;
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .back-stage {
	background-color: var(--color-stage, #fff);
	color: var(--color-text-stage, #202020);
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .filters_area,
.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .wrap_checkbox,
.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .my-custom-button.border {
	border: none !important;
	background: transparent;
	box-shadow: none;
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .my-custom-button {
	display: none;
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .search-wrapp input.search {
	background: var(--color-stage, #fff);
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: 12px;
	padding: 10px 42px 10px 12px;
	font-size: 14px;
	line-height: 1.2;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .search-wrapp input.search:focus {
	background: var(--color-stage, #fff);
	border-color: rgb(15 23 42 / 0.12);
	outline: none;
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .search-wrapp input.search::placeholder {
	color: var(--color-deep-stage, #838383);
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .marketplace_facets_wrap,
.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .range_archive_container,
.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .category_filters_wrap,
.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .characteristics_filters_wrap {
	margin-bottom: 0 !important;
}

@media (min-width: 992px) {
	.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .range_archive_container,
	.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .category_filters_wrap,
	.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .characteristics_filters_wrap {
		padding-top: 14px;
		margin-top: 14px;
		border-top: 1px solid rgb(15 23 42 / 0.06);
	}
}

.catalog-shell:not(.catalog-shell--no-sidebar) #secondary .mb-3 > .search-wrapp {
	margin-bottom: 0;
}

html.dark .catalog-shell:not(.catalog-shell--no-sidebar) #secondary .search-wrapp input.search {
	background: var(--color-stage, #1a1f2e);
	border-color: var(--color-border, #2a3142);
}

html.dark .catalog-shell:not(.catalog-shell--no-sidebar) #secondary .range_archive_container,
html.dark .catalog-shell:not(.catalog-shell--no-sidebar) #secondary .category_filters_wrap,
html.dark .catalog-shell:not(.catalog-shell--no-sidebar) #secondary .characteristics_filters_wrap {
	border-top-color: rgb(255 255 255 / 0.08);
}

.marketplace-store__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-bottom: 14px;
	font-size: 0.82rem;
}

.marketplace-store__nav a {
	color: var(--color-deep-stage, #838383);
	text-decoration: none;
}

.marketplace-store__nav a:hover {
	color: var(--ms-navy);
	text-decoration: underline;
}

html.dark .marketplace-store__nav a:hover {
	color: var(--ms-lime);
}

.marketplace-store__header {
	margin-bottom: 1.5rem;
}

.marketplace-store__card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px 20px;
	padding: 20px 22px;
	background: var(--color-stage, #fff);
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

html.dark .marketplace-store__card {
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.18);
}

.marketplace-store__avatar {
	grid-row: 1 / span 3;
	width: 72px;
	height: 72px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ms-navy);
	background: color-mix(in srgb, var(--ms-lime) 55%, #fff);
	flex-shrink: 0;
}

html.dark .marketplace-store__avatar {
	color: #0e1a32;
}

.marketplace-store__identity {
	min-width: 0;
}

.marketplace-store__title {
	margin: 0 0 6px;
	font-family: var(--font-sans);
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	font-weight: var(--font-semibold, 600);
	line-height: 1.2;
	color: var(--color-text-stage, #202020);
}

.marketplace-store__meta {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ms-navy);
}

html.dark .marketplace-store__meta {
	color: var(--ms-lime);
}

.marketplace-store__desc {
	margin: 0;
	grid-column: 2;
	max-width: 62rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--color-deep-stage, #838383);
}

.marketplace-store__facts {
	grid-column: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.marketplace-store__fact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--color-back-stage, #f6f7f9);
	border: 1px solid var(--color-border, #ebebeb);
	font-size: 0.78rem;
	line-height: 1.2;
	color: var(--color-text-stage, #202020);
}

.marketplace-store__fact a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.marketplace-store__fact a:hover {
	color: var(--ms-navy);
	text-decoration: underline;
}

html.dark .marketplace-store__fact a:hover {
	color: var(--ms-lime);
}

.marketplace-store__avatar--logo {
	background: var(--color-stage, #fff);
	border: 1px solid var(--color-border, #ebebeb);
	overflow: hidden;
	padding: 6px;
}

.marketplace-store__avatar--logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.marketplace-store__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--ms-lime) 30%, #fff);
	color: var(--ms-navy);
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
}

.marketplace-store__legal {
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: var(--color-deep-stage, #838383);
}

/* ---------- О компании: медиа-блок ---------- */

.marketplace-store__about {
	margin-bottom: 1.75rem;
	padding: 20px 22px 22px;
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: 20px;
	background: var(--color-stage, #fff);
}

.marketplace-store__about-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 16px;
}

.marketplace-store__about-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.marketplace-store__about-meta {
	margin: 0;
	font-size: 0.78rem;
	color: var(--color-deep-stage, #838383);
}

.marketplace-store__about-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--color-text-stage, #202020);
}

.marketplace-store__tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-bottom: 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.marketplace-store__tabs::-webkit-scrollbar {
	display: none;
}

.marketplace-store__tab {
	flex: 0 0 auto;
	padding: 7px 14px;
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: 999px;
	background: var(--color-back-stage, #f6f7f9);
	color: var(--color-text-stage, #202020);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.marketplace-store__tab:hover {
	border-color: color-mix(in srgb, var(--ms-navy) 25%, var(--color-border, #ebebeb));
}

.marketplace-store__tab--active,
.marketplace-store__tab[aria-selected="true"] {
	border-color: var(--ms-navy);
	background: var(--ms-navy);
	color: #fff;
}

.marketplace-store__photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 10px;
}

.marketplace-store__photo {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: 12px;
	background: var(--color-stage, #fff);
}

.marketplace-store__photo-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.marketplace-store__photo-btn img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	vertical-align: middle;
}

.marketplace-store__photo-caption {
	padding: 6px 8px 8px;
	font-size: 0.72rem;
	line-height: 1.35;
	color: var(--color-deep-stage, #838383);
	border-top: 1px solid var(--color-border, #ebebeb);
}

.marketplace-store__photo[hidden] {
	display: none !important;
}

.marketplace-store__about-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.marketplace-store__about-fact {
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--color-back-stage, #f6f7f9);
	color: var(--color-deep-stage, #838383);
	font-size: 0.72rem;
	line-height: 1.3;
}

.marketplace-store__video-block {
	margin-top: 18px;
}

.marketplace-store__video-grid {
	display: grid;
	grid-template-columns: minmax(0, 720px);
	gap: 12px;
}

.marketplace-store__video-card {
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: 14px;
	background: var(--color-stage, #fff);
}

.marketplace-store__video-card--featured {
	max-width: 720px;
}

.marketplace-store__video-player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #0a0a0a;
}

.marketplace-store__video-poster,
.marketplace-store__video-poster--placeholder {
	position: absolute;
	inset: 0;
}

.marketplace-store__video-poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.marketplace-store__video-poster--placeholder {
	background: linear-gradient(135deg, var(--ms-navy) 0%, color-mix(in srgb, var(--ms-navy) 70%, #000) 100%);
}

.marketplace-store__video-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	background: color-mix(in srgb, #000 25%, transparent);
	cursor: pointer;
	transition: background 0.15s;
}

.marketplace-store__video-play:hover {
	background: color-mix(in srgb, #000 40%, transparent);
}

.marketplace-store__video-play-icon {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: color-mix(in srgb, #fff 92%, transparent);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.marketplace-store__video-play-icon::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin: 18px 0 0 22px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent var(--ms-navy);
}

.marketplace-store__video-player.is-playing .marketplace-store__video-poster,
.marketplace-store__video-player.is-playing .marketplace-store__video-play {
	display: none;
}

.marketplace-store__video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.marketplace-store__video-caption {
	padding: 8px 12px;
	font-size: 0.75rem;
	color: var(--color-deep-stage, #838383);
}

/* Lightbox */
.marketplace-store-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000005;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.92);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.marketplace-store-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.marketplace-store-lightbox__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(960px, 100%);
	margin-bottom: 10px;
	color: #fff;
	font-size: 0.85rem;
}

.marketplace-store-lightbox__close {
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
}

.marketplace-store-lightbox__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(960px, 100%);
	max-height: calc(100vh - 120px);
}

.marketplace-store-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
	border-radius: 8px;
}

.marketplace-store-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.marketplace-store-lightbox__nav--prev {
	left: -8px;
}

.marketplace-store-lightbox__nav--next {
	right: -8px;
}

.marketplace-store-lightbox__caption {
	width: min(960px, 100%);
	margin-top: 10px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
	text-align: center;
}

html.dark .marketplace-store__about,
html.dark .marketplace-store__photo,
html.dark .marketplace-store__video-card {
	background: var(--color-stage, #1a1a1a);
	border-color: var(--color-border, #333);
}

html.dark .marketplace-store__tab {
	background: var(--color-back-stage, #222);
	border-color: var(--color-border, #333);
	color: var(--color-text-stage, #eee);
}

html.dark .marketplace-store__about-fact {
	background: var(--color-back-stage, #222);
}

/* Banner, sticky CTA, RFQ, requisites */
.marketplace-store__banner {
	overflow: hidden;
	border-radius: 16px;
	margin-bottom: 12px;
	max-height: 200px;
}

.marketplace-store__banner img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.marketplace-store__requisites {
	grid-column: 1 / -1;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid var(--color-border, #ebebeb);
}

.marketplace-store__requisites summary {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 600;
	color: var(--color-text-stage, #202020);
	list-style: none;
	user-select: none;
}

.marketplace-store__requisites summary::-webkit-details-marker {
	display: none;
}

.marketplace-store__requisites summary::before {
	content: '';
	flex: 0 0 auto;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 5px 0 5px 6px;
	border-color: transparent transparent transparent currentColor;
	opacity: 0.55;
	transition: transform 0.15s ease;
}

.marketplace-store__requisites[open] summary::before {
	transform: rotate(90deg);
}

.marketplace-store__requisites-list {
	display: grid;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
}

.marketplace-store__requisites-list div {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 8px;
}

.marketplace-store__requisites-list dt {
	margin: 0;
	color: var(--color-deep-stage, #838383);
}

.marketplace-store__requisites-list dd {
	margin: 0;
}

.marketplace-store__sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--color-stage, #fff) 92%, transparent);
	border-top: 1px solid var(--color-border, #ebebeb);
	transform: translateY(110%);
	transition: transform 0.2s;
	backdrop-filter: blur(8px);
}

.marketplace-store__sticky-cta.is-visible {
	transform: translateY(0);
}

.marketplace-store__sticky-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	max-width: 720px;
	margin: 0 auto;
}

.marketplace-store__sticky-btn {
	flex: 1 1 auto;
	min-width: 100px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid var(--color-border, #ebebeb);
	background: var(--color-stage, #fff);
	color: var(--color-text-stage, #202020);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.marketplace-store__sticky-btn--primary {
	background: var(--ms-brand, var(--ms-navy, var(--vm-navy, #0e1a32)));
	border-color: var(--ms-brand, var(--ms-navy, var(--vm-navy, #0e1a32)));
	color: #fff;
}

.marketplace-store__sticky-btn--ghost {
	background: transparent;
}

html.marketplace-store-scroll-lock,
body.marketplace-store-scroll-lock {
	overflow: hidden;
	overscroll-behavior: none;
}

.tv-messenger-modal--rfq {
	--ms-navy: var(--vm-navy, #0e1a32);
	--ms-lime: var(--vm-lime, #9edc2a);
}

.tv-messenger-modal--rfq .tv-chat-page__shell {
	flex: 1;
	min-height: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.tv-messenger-modal--rfq .tv-chat-page__header {
	padding-right: 48px;
}

.tv-messenger-modal--rfq .tv-chat--page {
	flex: 1;
	min-height: 0;
}

.tv-messenger-modal--rfq .tv-chat--page .tv-chat__messages {
	min-height: 0;
}

.marketplace-store-rfq__title {
	margin: 0 36px 6px 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--ms-navy, var(--vm-navy, #0e1a32));
	letter-spacing: -0.02em;
}

.marketplace-store-rfq__hint {
	margin: 0 0 16px;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--color-deep-stage, #838383);
}

.marketplace-store-rfq__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.marketplace-store-rfq__form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-text-stage, #202020);
}

.marketplace-store-rfq__form input,
.marketplace-store-rfq__form textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: 12px;
	font: inherit;
	line-height: 1.45;
	background: var(--color-stage, #fff);
	color: var(--color-text-stage, #202020);
}

.marketplace-store-rfq__form input:focus,
.marketplace-store-rfq__form textarea:focus {
	border-color: rgb(15 23 42 / 0.18);
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms-lime) 28%, transparent);
}

.marketplace-store-rfq__form input[type="email"] {
	height: 42px;
}

.marketplace-store-rfq__form textarea {
	height: auto;
	min-height: 120px;
	max-height: 200px;
	resize: vertical;
	overflow-y: auto;
}

.marketplace-store-rfq__submit {
	display: block;
	width: 100%;
	margin: 4px 0 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 10px;
	background: var(--color-prime, var(--ms-lime));
	color: var(--color-text-second, var(--ms-navy));
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, filter 0.15s ease;
}

.marketplace-store-rfq__submit:hover {
	background: var(--vm-lime-hover, #8bc925);
	filter: none;
}

.marketplace-store-rfq__submit:disabled {
	opacity: 0.65;
	cursor: default;
}

.marketplace-store-rfq__status {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	color: var(--color-deep-stage, #838383);
}

@media (prefers-reduced-motion: reduce) {
	.marketplace-store-lightbox,
	.marketplace-store__sticky-cta,
	.marketplace-store__tab {
		transition: none;
	}
}

@media (max-width: 768px) {
	.marketplace-store__about {
		margin-left: -12px;
		margin-right: -12px;
		padding: 16px 14px 18px;
		border-radius: 16px;
	}

	.marketplace-store-lightbox__nav--prev {
		left: 4px;
	}

	.marketplace-store-lightbox__nav--next {
		right: 4px;
	}
}

@media (min-width: 769px) {
	.marketplace-store__photo-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 12px;
	}

	.marketplace-store__video-grid:has(.marketplace-store__video-card:not(.marketplace-store__video-card--featured)) {
		grid-template-columns: minmax(0, 720px) repeat(auto-fill, minmax(220px, 1fr));
	}

	.marketplace-store__video-card:not(.marketplace-store__video-card--featured) {
		align-self: start;
	}
}

@media (max-width: 640px) {
	.marketplace-store__card {
		grid-template-columns: 1fr;
		padding: 16px;
		gap: 12px;
	}

	.marketplace-store__verified {
		margin-left: 0;
	}

	.marketplace-store__avatar {
		grid-row: auto;
		width: 56px;
		height: 56px;
		border-radius: 14px;
		font-size: 1.1rem;
	}

	.marketplace-store__facts {
		grid-column: 1;
	}

	.marketplace-store__desc {
		grid-column: 1;
	}
}

.marketplace-store:not(.catalog-shell--no-sidebar) .products.vertical_4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--vm-catalog-col-gap, 2px);
	row-gap: var(--vm-catalog-row-gap, 12px);
}

/* Главная каталога без сайдбара — широкая сетка как на Ozon/WB */
.catalog-shell--no-sidebar .products.vertical_4 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	column-gap: var(--vm-catalog-col-gap, 2px);
	row-gap: var(--vm-catalog-row-gap, 12px);
}

@media (min-width: 1400px) {
	.catalog-shell--no-sidebar .products.vertical_4.catalog-grid--cols-4,
	html[data-marketplace-grid-cols="4"] .catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.catalog-shell--no-sidebar .products.vertical_4.catalog-grid--cols-5,
	html[data-marketplace-grid-cols="5"] .catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.catalog-shell--no-sidebar .products.vertical_4.catalog-grid--cols-6,
	html[data-marketplace-grid-cols="6"] .catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (max-width: 1399px) {
	.catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.catalog-shell--no-sidebar .products.vertical_4.catalog-grid--cols-4,
	html[data-marketplace-grid-cols="4"] .catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 1199px) {
	.marketplace-store:not(.catalog-shell--no-sidebar) .products.vertical_4 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.marketplace-store:not(.catalog-shell--no-sidebar) .products.vertical_4,
	.catalog-shell--no-sidebar .products.vertical_4,
	.catalog-shell--no-sidebar .products.vertical_4.catalog-grid--cols-4,
	.catalog-shell--no-sidebar .products.vertical_4.catalog-grid--cols-5,
	.catalog-shell--no-sidebar .products.vertical_4.catalog-grid--cols-6,
	html[data-marketplace-grid-cols="4"] .catalog-shell--no-sidebar .products.vertical_4,
	html[data-marketplace-grid-cols="5"] .catalog-shell--no-sidebar .products.vertical_4,
	html[data-marketplace-grid-cols="6"] .catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Страница витрины поставщика: 2 карточки в ряд на мобильных */
	.marketplace-store.marketplace-store-page .products.vertical_4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.marketplace-store:not(.catalog-shell--no-sidebar) .products.vertical_4,
	.catalog-shell--no-sidebar .products.vertical_4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--vm-catalog-col-gap, 2px);
		row-gap: var(--vm-catalog-row-gap, 10px);
	}
}

/* ---------- Store page presentation (hero / identity / about rows) ---------- */

.store-page__sr-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.store-nav-row .marketplace-store__nav {
	margin-bottom: 0;
}

.store-identity-section__layout {
	display: grid;
	grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
	gap: 16px 20px;
	align-items: stretch;
}

.store-identity-section__chip {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
}

.store-identity-section .stores-grid-section__head {
	margin-bottom: 12px;
}

.store-identity-section .stores-grid {
	grid-template-columns: 1fr;
	display: flex;
	flex-direction: column;
}

.store-identity-section .stores-grid__card {
	max-width: none;
	min-height: 72px;
}

.store-identity-section__chip .stores-grid__card--static {
	cursor: default;
}

.store-identity-section__legal {
	margin: 8px 0 0;
	padding-left: 4px;
	font-size: 0.78rem;
	color: rgb(255 255 255 / 0.72);
}

.store-identity-section__facts {
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-self: stretch;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.store-identity-section__fact {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.12);
	border: 1px solid rgb(255 255 255 / 0.18);
	font-size: var(--vm-store-fact-font-size, 0.8rem);
	font-weight: var(--vm-store-fact-font-weight, 400);
	line-height: var(--vm-store-fact-line-height, 1.25);
	color: var(--vm-store-fact-color, #fff);
}

.store-identity-section__fact a {
	color: inherit;
	text-decoration: none;
	font-weight: 600;
}

.store-identity-section__fact a:hover {
	text-decoration: underline;
}

.store-identity-section__requisites {
	grid-column: 1 / -1;
	color: rgb(255 255 255 / 0.82);
}

.store-identity-section__requisites summary {
	cursor: pointer;
	font-weight: 600;
}

.store-about-section {
	margin-bottom: 0;
	padding: 20px 22px 22px;
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: var(--vm-catalog-radius-shell, 5px);
	background: var(--color-stage, #fff);
	box-shadow: 0 1px 3px rgb(15 23 42 / 0.05);
}

.store-about-section .marketplace-store__about--store-page {
	margin-bottom: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.store-about-section .marketplace-store__about-head {
	margin-bottom: 14px;
	padding-bottom: 12px;
	gap: 4px 12px;
	border-bottom: 1px solid var(--color-border, #ebebeb);
}

.store-about-section .marketplace-store__about-meta {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-deep-stage, #838383);
}

.store-about-section .stores-grid-section__title {
	margin: 0;
	font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--vm-navy, #0e1a32);
}

html.dark .store-about-section .stores-grid-section__title {
	color: var(--color-text-stage, #f3f4f6);
}

.store-about-section .marketplace-store__about-lead {
	padding: 16px 18px;
	border: 1px solid var(--color-border, #ebebeb);
	border-radius: var(--vm-catalog-radius-inner, 8px);
	background: var(--color-back-stage, #f6f7f9);
}

.store-about-section .marketplace-store__about-text {
	margin: 0;
	max-width: none;
	font-family: var(--font-sans);
	font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.65;
	color: var(--color-text-stage, #202020);
}

.store-about-section .marketplace-store__about-text p {
	margin: 0;
}

.store-about-section .marketplace-store__about--copy-only .marketplace-store__about-layout {
	gap: 0;
}

.store-about-section .marketplace-store__about--copy-only .marketplace-store__about-lead {
	padding: 18px 20px;
}

/* Store page «О компании»: текст → видео → галерея (паттерн Alibaba / Thomas / Faire) */
.marketplace-store__about--store-page .marketplace-store__about-layout {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.marketplace-store__about--store-page .marketplace-store__about-copy {
	max-width: none;
}

.marketplace-store__about--store-page .marketplace-store__about-layout:has(.marketplace-store__about-media) .marketplace-store__about-lead {
	margin-bottom: 0;
	padding: 12px 14px;
}

.marketplace-store__about--store-page .marketplace-store__about-media {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
}

.marketplace-store__about--store-page .marketplace-store__about-subhead {
	margin: 0;
	font-size: clamp(0.75rem, 1vw, 0.8125rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--vm-navy, #0e1a32);
}

html.dark .marketplace-store__about--store-page .marketplace-store__about-subhead {
	color: var(--color-text-stage, #f3f4f6);
}

/* Видео: отдельный блок, featured-плеер */
.marketplace-store__about--store-page .marketplace-store__about-video-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.marketplace-store__about--store-page .marketplace-store__about-video-section .marketplace-store__video-block {
	margin-top: 0;
}

.marketplace-store__about--store-page .marketplace-store__video-grid--featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
	max-width: min(100%, 480px);
}

.marketplace-store__about--store-page .marketplace-store__video-grid--featured .marketplace-store__video-card--featured {
	max-width: none;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgb(15 23 42 / 0.08);
}

.marketplace-store__about--store-page .marketplace-store__video-grid--featured .marketplace-store__video-player {
	aspect-ratio: 16 / 9;
}

.marketplace-store__about--store-page .marketplace-store__video-grid--more {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	max-width: min(100%, 480px);
	margin-top: 8px;
}

.marketplace-store__about--store-page .marketplace-store__video-grid--more .marketplace-store__video-card {
	border-radius: 8px;
}

/* Галерея */
.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__about-gallery-section {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--color-border, #ebebeb);
}

.marketplace-store__about--store-page .marketplace-store__about-gallery-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.marketplace-store__about--store-page .marketplace-store__about-gallery-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
}

.marketplace-store__about--store-page .marketplace-store__about-gallery-head .marketplace-store__tabs {
	margin-bottom: 0;
}

.marketplace-store__about--store-page .marketplace-store__photo-grid {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	max-width: min(100%, 480px);
}

.marketplace-store__about--store-page .marketplace-store__photo {
	border-radius: 8px;
}

.marketplace-store__about--store-page .marketplace-store__photo-btn img {
	aspect-ratio: 4 / 3;
}

.marketplace-store__about--store-page .marketplace-store__photo-caption {
	padding: 4px 7px 6px;
	font-size: 0.6875rem;
}

/* Видео + галерея в одну строку на широком экране */
@media (min-width: 992px) {
	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__about-media {
		display: grid;
		grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
		gap: 16px 20px;
		align-items: start;
	}

	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__about-gallery-section {
		margin-top: 0;
		padding-top: 0;
		border-top: none;
	}

	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__video-grid--featured,
	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__video-grid--more {
		max-width: none;
	}

	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__video-grid--more {
		grid-template-columns: 1fr;
	}

	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__video-play-icon {
		width: 44px;
		height: 44px;
	}

	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__video-play-icon::after {
		margin: 14px 0 0 17px;
		border-width: 8px 0 8px 13px;
	}

	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__photo-grid {
		max-width: none;
		grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	}

	.marketplace-store__about--store-page:not(.marketplace-store__about--has-gallery) .marketplace-store__video-grid--featured {
		max-width: min(100%, 520px);
	}

	.marketplace-store__about--store-page:not(.marketplace-store__about--has-video) .marketplace-store__photo-grid {
		max-width: none;
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}
}

@media (min-width: 1200px) {
	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__about-media {
		grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
		gap: 18px 24px;
	}

	.marketplace-store__about--store-page.marketplace-store__about--has-video.marketplace-store__about--has-gallery .marketplace-store__photo-grid {
		grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
	}
}

@media (max-width: 767px) {
	.marketplace-store__about--store-page .marketplace-store__about-gallery-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.marketplace-store__about--store-page .marketplace-store__photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991px) {
	.store-identity-section__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.store-about-section {
		padding: 16px 16px 18px;
	}

	.store-about-section .marketplace-store__about-lead {
		padding: 14px 16px;
	}
}
