/* Бренды, меню «Бренды», «категория × бренд» (бриф, раздел 2). Цвета — переменные темы --im-*. */

/* ---------- Верхнее меню и мега-меню «Бренды» ---------- */
.header__nav .vtv-nav {
	gap: 22px;
	align-items: center;
}
/* мега-меню центрируется под всей навигацией (nav — точка отсчёта; стили грузятся только при флаге brands) */
.header__nav {
	position: relative;
}
.header__nav .vtv-nav__item--brands {
	position: static;
	/* пункт на всю высоту строки меню — между ним и панелью не остаётся «мёртвой» полосы */
	align-self: stretch;
	display: flex;
	align-items: center;
}
.vtv-nav__brands-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.vtv-nav__brands-link::after {
	content: "";
	width: 10px;
	height: 6px;
	background: url(../../../../../assets/img/icons/arrow.svg) center / contain no-repeat;
	opacity: .6;
	transition: .2s ease 0s;
}
.vtv-mega {
	position: absolute;
	left: 50%;
	top: 100%;
	z-index: 60;
	width: min(980px, calc(100vw - 32px));
	padding: 26px 28px 20px;
	margin-top: 6px;
	background: var(--im-fon);
	border: 1px solid rgba(128, 126, 125, .2);
	box-shadow: 0 18px 40px rgba(25, 24, 22, .12);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.vtv-mega::before {
	/* «мостик», чтобы меню не закрывалось при переходе курсора */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -24px;
	height: 24px;
}
.vtv-nav__item--brands:hover .vtv-mega,
.vtv-nav__item--brands:focus-within .vtv-mega,
.vtv-nav__item--brands.is-open .vtv-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
	transform: translate(-50%, 0);
}
.vtv-nav__item--brands:hover .vtv-nav__brands-link::after,
.vtv-nav__item--brands.is-open .vtv-nav__brands-link::after {
	transform: rotate(180deg);
}
.vtv-mega__cols {
	display: flex;
	gap: 28px;
}
.vtv-mega__col {
	flex: 2 1 0;
	min-width: 0;
}
.vtv-mega__col--santeh {
	flex-grow: 3;
}
.vtv-mega__title {
	margin-bottom: 12px;
	font-weight: 600;
	font-size: 18px;
	line-height: 140%;
	color: var(--im-chernyy);
}
/* .header__nav ul в теме — flex с большими отступами: перебиваем специфичностью */
.header__nav .vtv-mega__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 130%;
	text-align: left;
	color: var(--im-chernyy);
}
.header__nav .vtv-mega__col--tech .vtv-mega__list,
.header__nav .vtv-mega__col--other .vtv-mega__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.vtv-mega__item {
	margin: 0;
	list-style: none;
}
.vtv-mega__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	min-height: 48px;
	padding: 6px 10px;
	background: var(--im-belyy);
	border: 1px solid rgba(128, 126, 125, .15);
	color: var(--im-chernyy);
	transition: .2s ease 0s;
}
.vtv-mega__brand:hover,
.vtv-mega__brand:focus-visible {
	border-color: var(--im-akcent---dop);
	color: var(--im-akcent---dop);
}
.vtv-mega__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 26px;
	flex-shrink: 0;
}
.vtv-mega__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.vtv-mega__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.vtv-mega__name {
	font-weight: 600;
	line-height: 1.2;
}
.vtv-mega__country {
	font-size: 12px;
	line-height: 1.2;
	color: var(--im-seryy);
}
.vtv-mega__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(128, 126, 125, .2);
	font-weight: 600;
	font-size: 14px;
}
.vtv-mega__all {
	color: var(--im-akcent---dop);
}
.vtv-mega__all:hover {
	text-decoration: underline;
}

@media (max-width: 1444px) {
	.header__nav .vtv-nav {
		gap: 12px;
	}
}
@media (max-width: 1200px) {
	/* узкий десктоп: 8 пунктов в одну строку, подписи переносятся внутри пункта */
	.header__nav .vtv-nav {
		gap: 10px;
		font-size: 11px;
	}
	.header__nav .vtv-nav__item {
		flex: 0 1 auto;
		min-width: 0;
	}
}
@media (max-width: 1120px) {
	.header__nav .vtv-nav {
		gap: 8px;
		font-size: 10px;
	}
	.vtv-nav__brands-link {
		gap: 3px;
	}
	.vtv-nav__brands-link::after {
		width: 8px;
		height: 5px;
	}
}

/* мобильное меню (бургер) */
.vtv-burger-brands__group {
	margin-bottom: 16px;
}
.vtv-burger-brands__title {
	margin-bottom: 10px;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--im-seryy);
}
.vtv-burger-brands__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.vtv-burger-brands__list li {
	margin: 0;
	list-style: none;
}
.vtv-burger-brands__list a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 6px 14px;
	border: 1px solid var(--im-chernyy);
	border-radius: 100px;
	font-weight: 500;
	font-size: 15px;
	color: var(--im-chernyy);
}

/* ---------- Чипы брендов над товарами категории ---------- */
.vtv-brand-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}
.vtv-brand-chips__label {
	margin-right: 4px;
	font-weight: 600;
	font-size: 14px;
	color: var(--im-seryy);
}
.vtv-brand-chips .vtv-brand-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: transparent;
}
.vtv-brand-chips__count {
	font-size: 12px;
	opacity: .6;
}
.vtv-brand-chips .vtv-brand-chips__item.vtv-is-active {
	background: var(--im-akcent---dop);
	border-color: var(--im-akcent---dop);
	color: var(--im-belyy);
}

/* ---------- Страница бренда ---------- */
/* section:not(.socials-section) в теме даёт отступы --section-margin сверху и снизу — задаём свои */
section.vtv-brand-hero {
	padding: 10px 0 0;
	margin-bottom: 30px;
}
.vtv-brand-hero__box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 44px 40px;
	background: var(--im-belyy);
	border: 1px solid rgba(25, 24, 22, .12);
	overflow: hidden;
}
.vtv-brand-hero__bg {
	position: absolute;
	inset: 0;
}
.vtv-brand-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vtv-brand-hero--banner .vtv-brand-hero__box {
	min-height: 380px;
	color: var(--im-belyy);
	border: 0;
}
.vtv-brand-hero--banner .vtv-brand-hero__box::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(25, 24, 22, .78) 0%, rgba(25, 24, 22, .5) 60%, rgba(25, 24, 22, .3) 100%);
}
.vtv-brand-hero__logo {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 140px;
	padding: 18px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid rgba(25, 24, 22, .08);
}
.vtv-brand-hero__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.vtv-brand-hero__main {
	position: relative;
	z-index: 2;
	max-width: 860px;
}
.vtv-brand-hero__title {
	margin-bottom: 10px;
	color: inherit;
}
.vtv-brand-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 14px;
	font-weight: 500;
	font-size: 16px;
	color: var(--im-seryy);
}
.vtv-brand-hero--banner .vtv-brand-hero__meta {
	color: rgba(252, 252, 252, .85);
}
.vtv-brand-hero__country {
	color: var(--im-akcent---dop);
	font-weight: 600;
}
.vtv-brand-hero__short {
	max-width: 760px;
	margin-bottom: 10px;
	color: inherit;
}
.vtv-brand-hero__desc {
	max-width: 760px;
	font-size: 16px;
	line-height: 150%;
	opacity: .9;
}
.vtv-brand-hero__desc p:not(:last-child) {
	margin-bottom: 10px;
}
.vtv-brand-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}
.vtv-brand-hero__buttons .button,
.vtv-brand-hero__buttons .button-border {
	min-height: 52px;
	padding: 10px 26px;
}
.vtv-brand-hero--banner .button-border {
	color: var(--im-belyy);
	border-color: rgba(252, 252, 252, .85);
}

section.vtv-brand-tabs {
	padding: 10px 0 var(--section-margin);
}
.vtv-brand-tabs .vtv-brand-tabs__buttons {
	margin-bottom: 30px;
}
.vtv-brand-tabs .menu-two__button {
	flex-grow: 0;
	width: auto;
	min-height: 72px;
	padding: 10px 36px;
	font-size: 22px;
}
.vtv-brand-tabs__heading {
	margin-bottom: 24px;
}
.vtv-brand-group:not(:last-child) {
	margin-bottom: 40px;
}
.vtv-brand-group__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
	margin-bottom: 20px;
}
.vtv-brand-group__title {
	margin-bottom: 0;
}
.vtv-brand-group__all,
.vtv-cxb-head__links a {
	font-weight: 600;
	font-size: 16px;
	color: var(--im-akcent---dop);
}
.vtv-brand-group__all:hover,
.vtv-cxb-head__links a:hover {
	text-decoration: underline;
}
.vtv-tile .vtv-tile__image {
	display: block;
	overflow: hidden;
	background: var(--im-belyy);
}
.vtv-tile .vtv-tile__image img {
	transition: transform .4s ease 0s;
}
.vtv-tile .vtv-tile__image:hover img {
	transform: scale(1.03);
}
.vtv-tile .vtv-tile__image--contain img {
	object-fit: contain;
	padding: 12px;
}
.vtv-tile__title {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vtv-tile__title a {
	transition: .3s ease 0s;
}
.vtv-tile__title a:hover {
	color: var(--im-akcent---dop);
}
.vtv-tile__count {
	font-weight: 500;
	font-size: 14px;
	color: var(--im-seryy);
}
.vtv-tile__list li {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.vtv-tile__sub-count {
	font-size: 13px;
	color: var(--im-seryy);
	opacity: .8;
}
.vtv-brand-tabs__more {
	margin-top: 30px;
}
.vtv-brand-tabs__more .button-border {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 10px 26px;
}

section.vtv-brand-empty {
	padding: 0 0 var(--section-margin);
}
.vtv-brand-empty__box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	padding: 40px;
	background: var(--im-belyy);
	border: 1px solid rgba(25, 24, 22, .12);
}
.vtv-brand-empty__box p {
	max-width: 760px;
	font-size: 18px;
	line-height: 150%;
	color: var(--im-seryy);
}
.vtv-brand-empty__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.vtv-brand-empty__box .button,
.vtv-brand-empty__box .button-border {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 10px 26px;
}

/* ---------- /brands/ ---------- */
.vtv-brands-index__intro {
	margin-bottom: 30px;
}
section.vtv-brands-group {
	padding: 0;
	margin-bottom: var(--section-margin);
}
.vtv-brands-group__title {
	margin-bottom: 24px;
}
.vtv-bcards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}
.vtv-bcard {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	background: var(--im-belyy);
	border: 1px solid rgba(128, 126, 125, .15);
	color: var(--im-chernyy);
	transition: .3s ease 0s;
}
.vtv-bcard:hover {
	border-color: var(--im-akcent---dop);
	box-shadow: 0 10px 30px rgba(25, 24, 22, .08);
}
.vtv-bcard__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
	margin-bottom: 10px;
	background: #fff;
}
.vtv-bcard__logo img {
	max-width: 80%;
	max-height: 70px;
	object-fit: contain;
}
.vtv-bcard__wordmark {
	font-family: var(--third-family);
	font-size: 28px;
	line-height: 1;
	letter-spacing: .02em;
	text-align: center;
}
.vtv-bcard__name {
	font-weight: 700;
	font-size: 20px;
	line-height: 125%;
}
.vtv-bcard__country {
	font-weight: 600;
	font-size: 14px;
	color: var(--im-akcent---dop);
}
.vtv-bcard__short {
	font-size: 14px;
	line-height: 140%;
	color: var(--im-seryy);
}
.vtv-bcard__count {
	margin-top: auto;
	padding-top: 8px;
	font-weight: 600;
	font-size: 14px;
}

/* ---------- «Категория × бренд» ---------- */
section.vtv-cxb-head {
	padding: 10px 0 0;
	margin-bottom: 10px;
}
.vtv-cxb-head__top {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 16px;
	margin-bottom: 10px;
}
.vtv-cxb-head__title {
	margin: 0;
}
.vtv-cxb-head__count {
	font-weight: 500;
	font-size: 18px;
	color: var(--im-seryy);
}
.vtv-cxb-head__prices {
	margin-bottom: 10px;
	font-size: 18px;
}
.vtv-cxb-head__text {
	max-width: 960px;
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 150%;
	color: var(--im-seryy);
}
.vtv-cxb-head__links {
	margin-bottom: 20px;
}
section.vtv-cxb-list {
	padding: 0 0 var(--section-margin);
}
.vtv-sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-bottom: 20px;
	font-weight: 500;
	font-size: 14px;
}
.vtv-sort__label {
	color: var(--im-seryy);
}
.vtv-sort__item {
	transition: .3s ease 0s;
}
.vtv-sort__item:hover,
.vtv-sort__item.vtv-is-active {
	color: var(--im-akcent---dop);
	text-decoration: underline;
	text-decoration-skip-ink: none;
}
.vtv-grid .catalog__body {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.vtv-grid .catalog__body .cards-card {
	width: calc((100% - 60px) / 4);
}
.vtv-pagination {
	justify-content: center;
}
.vtv-pagination .catalog__pagination-dott {
	min-width: 28px;
	height: 28px;
}

@media (max-width: 1024px) {
	.vtv-grid .catalog__body .cards-card {
		width: calc((100% - 40px) / 3);
	}
	.vtv-bcards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.vtv-brand-hero__box {
		gap: 24px;
		padding: 32px 24px;
	}
	.vtv-brand-hero__logo {
		width: 180px;
		height: 110px;
	}
	.vtv-brand-tabs .menu-two__button {
		font-size: 18px;
		min-height: 60px;
	}
}

@media (max-width: 768px) {
	.vtv-grid .catalog__body .cards-card {
		width: calc((100% - 20px) / 2);
	}
	.vtv-bcards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.vtv-brand-hero__box {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 16px;
	}
	.vtv-brand-hero--banner .vtv-brand-hero__box {
		min-height: 0;
	}
	.vtv-brand-hero__logo {
		width: 160px;
		height: 90px;
		padding: 12px;
	}
	.vtv-brand-hero__buttons .button,
	.vtv-brand-hero__buttons .button-border {
		width: 100%;
	}
	.vtv-brand-tabs .menu-two__buttons {
		flex-wrap: nowrap;
		gap: 10px;
	}
	.vtv-brand-tabs .menu-two__button {
		flex: 1 1 0;
		width: auto;
		min-height: 52px;
		padding: 8px 10px;
		font-size: 16px;
	}
	.vtv-brand-empty__box {
		padding: 24px 16px;
	}
	.vtv-brand-chips .vtv-brand-chips__item {
		padding: 6px 12px;
		font-size: 13px;
	}
	.vtv-bcard {
		padding: 14px;
	}
	.vtv-bcard__logo {
		height: 64px;
	}
	.vtv-bcard__name {
		font-size: 17px;
	}
	.vtv-bcard__short {
		display: none;
	}
}

@media (max-width: 480px) {
	.vtv-grid .catalog__body .cards-card {
		width: 100%;
	}
}
