/* Страницы моделей брендов (DesignCode\BrandPage): /garia/<модель>/, /3electro/<модель>/.
   Префикс bp- — чтобы не пересекаться со стилями карточек каталога */

.brand-page {
	--bp-ink: #1C263C;
	--bp-accent: #BAE00B;
	--bp-grey: #F3F4F6;
	--bp-line: #E3E6EB;
	--bp-muted: #5B6475;
	--bp-radius: 20px;
	/* Поля как у контейнера шаблона (.all): блоки на всю ширину держат ту же сетку */
	--bp-gutter: 70px;
	color: var(--bp-ink);
}

@media (max-width: 1400px) {
	.brand-page {
		--bp-gutter: 30px;
	}
}

@media (max-width: 1200px) {
	.brand-page {
		--bp-gutter: 25px;
	}
}

@media (max-width: 800px) {
	.brand-page {
		--bp-gutter: 20px;
	}
}

.brand-page section {
	margin: 0 0 100px;
}

/* Блок на всю ширину окна внутри контейнера 1300 px. Общий .container
   режет выходящее за край (overflow: hidden), но сам он во всё окно —
   поэтому 100vw с отрицательным полем не обрезается */
.brand-page .bp-bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.brand-page h2 {
	font-size: 44px;
	line-height: 110%;
	font-weight: 400;
	margin: 0 0 24px;
	color: var(--bp-ink);
}

.brand-page h3 {
	font-size: 20px;
	font-weight: 600;
	margin: 28px 0 12px;
	color: var(--bp-ink);
}

.brand-page .bp-split-text p,
.brand-page .bp-details-head p,
.brand-page .bp-cards-head p,
.brand-page .bp-config-head p,
.brand-page .bp-colors-head p {
	font-size: 18px;
	line-height: 160%;
	color: var(--bp-ink);
	margin: 0 0 16px;
}

.brand-page .bp-kicker {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bp-muted);
	margin: 0 0 14px;
}

.brand-page .bp-crumbs {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 22px;
}

/* Крошки поверх снимка: общий стиль шаблона тёмный и на телефоне их прячет */
.brand-page .bp-hero .bp-crumbs li,
.brand-page .bp-hero .bp-crumbs a,
.brand-page .bp-hero .bp-crumbs span {
	color: rgba(255, 255, 255, .85);
	font-size: 14px;
}

.brand-page .bp-hero .bp-crumbs a:hover {
	color: #fff;
}

/* ---------- кнопки ---------- */

.brand-page .bp-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.brand-page .bp-btns .btn {
	width: auto;
	display: inline-block;
	white-space: nowrap;
}

.brand-page .bp-btn-ghost {
	background: transparent;
	color: var(--bp-ink);
	box-shadow: inset 0 0 0 1px var(--bp-ink);
	padding: 0 30px;
	transition: background .2s, color .2s;
}

.brand-page .bp-btn-ghost:hover {
	background: var(--bp-ink);
	color: #fff;
}

/* Заголовок блока на всю ширину — по сетке страницы, а не от края окна */
.brand-page .bp-bleed > .bp-kicker,
.brand-page .bp-bleed > h2 {
	/* Сдвиг считаем сами: общие стили шаблона задают заголовкам свои поля и ширину */
	padding: 0 max(var(--bp-gutter), calc((100vw - 1440px) / 2 + var(--bp-gutter)));
}

/* ---------- первый экран ---------- */

.brand-page .bp-hero {
	position: relative;
	margin-top: var(--bp-hero-shift, 0px);
	/* Высота — 2:1 от ширины, но не ниже сгиба (шапка сайта 100 px) и не меньше
	   содержимого: на узком экране текст в плашках выше кадра, и блок растёт за ним */
	min-height: max(520px, min(50vw, calc(100vh - 100px)));
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	background: var(--bp-ink);
	color: #fff;
}

.brand-page .bp-hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--bp-focus, 50% 50%);
}

/* Затемнение снизу — только под текстом, чтобы снимок оставался светлым */
/* Видео фоном шапки: проявляется поверх снимка, когда пошло воспроизведение */
.brand-page .bp-hero-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .8s ease;
}

.brand-page .bp-hero-video.is-playing video,
.brand-page .bp-hero-video.is-paused video {
	opacity: 1;
}

.brand-page .bp-hero-video .bp-video-toggle {
	z-index: 2;
}

/* Строчная плашка под текстом на снимке. box-decoration-break: clone повторяет
   поля и подложку на каждой строке переноса — у буквы на краю строки отступ
   тот же 0,5em, что и в начале. line-height больше высоты плашки (1em + 2×0,5em),
   иначе полупрозрачные подложки соседних строк накладываются и темнеют полосой */
.brand-page .bp-hl {
	display: inline;
	padding: .5em .65em;
	background: rgba(8, 12, 20, .62);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	border-radius: 6px;
}

/* Межстрочный интервал на снимке — 2,5em: плашка занимает высоту строки шрифта
   (≈1,35em) плюс поля 2×0,5em, остаток — зазор между плашками соседних строк */
.brand-page .bp-hero p + p {
	margin-top: 6px;
}

/* Крошки — одна плашка целиком: пункты и разделители внутри общих полей */
.brand-page .bp-hero .bp-crumbs {
	display: inline-flex;
	padding: .5em .8em;
	background: rgba(8, 12, 20, .62);
	border-radius: 6px;
	margin-bottom: 18px;
}

.brand-page .bp-hero-in {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: 64px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--bp-gutter) 64px;
}

.brand-page .bp-hero-text {
	max-width: 720px;
}

.brand-page .bp-hero h1 {
	font-size: 60px;
	line-height: 2.5;
	font-weight: 500;
	color: #fff;
	margin: 0 0 8px;
}

.brand-page .bp-hero p {
	font-size: 20px;
	line-height: 47px;
	color: #fff;
	margin: 0;
}

.brand-page .bp-hero .bp-kicker {
	color: var(--bp-accent);
	line-height: 2.5;
	margin-bottom: 4px;
}

.brand-page .bp-hero .bp-btn-ghost {
	color: #fff;
	background: rgba(8, 12, 20, .62);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.brand-page .bp-hero .bp-btn-ghost:hover {
	background: #fff;
	color: var(--bp-ink);
}

/* Тёмная кнопка на тёмном снимке теряется — в hero основная кнопка зелёная */
.brand-page .bp-hero .btn:not(.bp-btn-ghost) {
	background: var(--bp-accent);
	color: var(--bp-ink);
}

.brand-page .bp-hero .btn:not(.bp-btn-ghost) .arr {
	background: var(--bp-ink);
}

.brand-page .bp-hero .btn:not(.bp-btn-ghost) .arr:after {
	filter: invert(1);
}

.brand-page .bp-hero .btn:not(.bp-btn-ghost):hover .arr {
	background: #fff;
}

.brand-page .bp-hero .btn:not(.bp-btn-ghost):hover .arr:after {
	filter: none;
}

/* ---------- видео ---------- */

.brand-page .bp-video-box {
	position: relative;
	background: var(--bp-ink);
	overflow: hidden;
}

.brand-page .bp-video:not(.bp-bleed) .bp-video-box {
	border-radius: var(--bp-radius);
}

.brand-page .bp-video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Пауза для тех, кому движение мешает (WCAG 2.2.2) */
.brand-page .bp-video-toggle {
	position: absolute;
	right: 20px;
	bottom: 20px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85) center/14px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%231C263C' d='M2 1h3.5v12H2zM8.5 1H12v12H8.5z'/%3E%3C/svg%3E");
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s;
}

.brand-page .bp-video.is-playing .bp-video-toggle,
.brand-page .bp-video.is-paused .bp-video-toggle {
	opacity: 1;
}

.brand-page .bp-video.is-paused .bp-video-toggle {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%231C263C' d='M3 1l10 6-10 6z'/%3E%3C/svg%3E");
}

.brand-page .bp-caption {
	max-width: 1300px;
	margin: 14px auto 0;
	font-size: 14px;
	color: var(--bp-muted);
}

.brand-page .bp-bleed .bp-caption {
	padding: 0 var(--bp-gutter);
	max-width: 1440px;
}

/* ---------- текст + карусель ---------- */

.brand-page .bp-split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 60px;
	align-items: center;
}

.brand-page .bp-split.bp-reverse .bp-split-text {
	order: 2;
}

.brand-page .bp-split-text > :first-child {
	margin-top: 0;
}

.brand-page .bp-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.brand-page .bp-list li {
	position: relative;
	padding: 0 0 0 22px;
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 150%;
}

.brand-page .bp-list li:before {
	content: '';
	position: absolute;
	left: 0;
	top: .6em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bp-accent);
}

.brand-page .bp-carousel {
	position: relative;
	min-width: 0;
}

.brand-page .bp-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 16px) / 2);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.brand-page .bp-track::-webkit-scrollbar {
	display: none;
}

.brand-page .bp-slide {
	position: relative;
	display: block;
	aspect-ratio: var(--bp-ratio, 1);
	border-radius: var(--bp-radius);
	overflow: hidden;
	scroll-snap-align: start;
	background: var(--bp-grey);
}

.brand-page .bp-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.brand-page .bp-slide:hover img {
	transform: scale(1.04);
}

.brand-page .bp-slide-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 18px 16px;
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	background: linear-gradient(180deg, rgba(10, 16, 28, 0), rgba(10, 16, 28, .7));
}

/* Стрелки: в покое белый круг и тёмная стрелка, при наведении — наоборот */
.brand-page .bp-arrow {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(28, 38, 60, .18);
	cursor: pointer;
	transition: background .2s;
	z-index: 1;
}

.brand-page .bp-arrow:after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--bp-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10.5 2.5L5 8l5.5 5.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M10.5 2.5L5 8l5.5 5.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/16px no-repeat;
}

.brand-page .bp-arrow:hover {
	background: var(--bp-ink);
}

.brand-page .bp-arrow:hover:after {
	background: #fff;
}

.brand-page .bp-prev {
	left: -24px;
}

.brand-page .bp-next {
	right: -24px;
}

.brand-page .bp-next:after {
	transform: scaleX(-1);
}

/* «опционально» — мелко в углу снимка */
.brand-page .bp-option {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 500;
	color: var(--bp-ink);
	background: rgba(255, 255, 255, .9);
	z-index: 1;
}

/* ---------- текст + картинка ---------- */

.brand-page .bp-split-pic {
	position: relative;
	border-radius: var(--bp-radius);
	overflow: hidden;
}

.brand-page .bp-split-pic img {
	display: block;
	width: 100%;
	height: auto;
}

/* Текстовый блок без картинки — на всю ширину, без пустой правой колонки */
.brand-page .bp-text:not(:has(.bp-split-pic)) {
	grid-template-columns: minmax(0, 1fr);
}

.brand-page .bp-text:not(:has(.bp-split-pic)) .bp-split-text {
	max-width: 860px;
}

.brand-page .bp-text.bp-grey {
	background: var(--bp-grey);
	border-radius: 30px;
	padding: 60px;
}

/* ---------- широкий кадр ---------- */

.brand-page .bp-wide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	max-height: 100vh;
}

/* ---------- детали ---------- */

.brand-page .bp-details-head {
	max-width: 760px;
	margin: 0 0 40px;
}

.brand-page .bp-details-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
}

.brand-page .bp-detail {
	display: block;
	text-decoration: none;
	color: var(--bp-ink);
}

.brand-page .bp-detail-pic {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: var(--bp-radius);
	overflow: hidden;
	background: var(--bp-grey);
	margin: 0 0 16px;
}

.brand-page .bp-detail-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.brand-page .bp-detail:hover img {
	transform: scale(1.04);
}

.brand-page .bp-detail-title {
	display: block;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 6px;
}

.brand-page .bp-detail-text {
	display: block;
	font-size: 16px;
	line-height: 150%;
	color: var(--bp-muted);
}

/* ---------- цифры ---------- */

.brand-page .bp-facts ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: var(--bp-line);
	border-radius: var(--bp-radius);
	overflow: hidden;
	list-style: none;
	padding: 0;
	margin: 0;
}

.brand-page .bp-facts li {
	background: #fff;
	padding: 28px 24px;
}

.brand-page .bp-facts b {
	display: block;
	font-size: 36px;
	line-height: 110%;
	font-weight: 500;
	margin: 0 0 6px;
}

.brand-page .bp-facts span {
	font-size: 15px;
	color: var(--bp-muted);
}

/* ---------- вкладки ---------- */

.brand-page .bp-tablist {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 36px;
	padding: 6px;
	background: var(--bp-grey);
	border-radius: 16px;
	width: fit-content;
	max-width: 100%;
}

.brand-page .bp-tablist button {
	border: 0;
	background: transparent;
	padding: 14px 24px;
	border-radius: 12px;
	font: inherit;
	font-size: 17px;
	font-weight: 500;
	color: var(--bp-ink);
	cursor: pointer;
	transition: background .2s, color .2s;
}

.brand-page .bp-tablist button:hover {
	background: #fff;
}

.brand-page .bp-tablist button[aria-selected="true"] {
	background: var(--bp-ink);
	color: #fff;
}

.brand-page .bp-tablist button:focus-visible,
.brand-page .bp-arrow:focus-visible,
.brand-page .bp-swatches button:focus-visible {
	outline: 3px solid var(--bp-accent);
	outline-offset: 2px;
}

.brand-page .bp-groups {
	columns: 3 300px;
	column-gap: 48px;
}

.brand-page .bp-group {
	break-inside: avoid;
	margin: 0 0 36px;
}

.brand-page .bp-group h3 {
	margin-top: 0;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--bp-line);
}

.brand-page .bp-spec {
	margin: 0;
}

.brand-page .bp-spec div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--bp-line);
	font-size: 16px;
	line-height: 140%;
}

.brand-page .bp-spec dt {
	color: var(--bp-muted);
}

.brand-page .bp-spec dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
}

.brand-page .bp-tab-note {
	font-size: 15px;
	color: var(--bp-muted);
	margin: -12px 0 28px;
}

/* ---------- пакеты и опции (bespoke) ---------- */

.brand-page .bp-bespoke-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 32px 24px;
}

.brand-page .bp-bespoke-pic {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 16px;
	overflow: hidden;
	background: var(--bp-grey);
	margin: 0 0 14px;
}

.brand-page .bp-bespoke-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.brand-page .bp-bespoke-pic:hover img {
	transform: scale(1.04);
}

.brand-page .bp-bespoke-item h3 {
	margin: 0 0 8px;
	font-size: 19px;
}

.brand-page .bp-bespoke-item p,
.brand-page .bp-bespoke-item .bp-list li {
	font-size: 15px;
	line-height: 150%;
	color: var(--bp-muted);
	margin: 0 0 6px;
}

.brand-page .bp-bespoke-note {
	margin: 28px 0 0;
}

/* ---------- конфигуратор ---------- */

.brand-page .bp-config-head {
	max-width: 760px;
	margin: 0 0 32px;
}

/* Место под конфигуратор до загрузки: без него страница прыгала бы на высоту блока */
.brand-page .bp-config-embed {
	position: relative;
	min-height: 640px;
}

.brand-page .bp-config-embed:has(> .bp-config-wait) {
	border-radius: var(--bp-radius);
	background: var(--bp-grey);
}

.brand-page .bp-config-wait {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: var(--bp-muted);
}

.brand-page .bp-config-alt {
	margin: 14px 0 0;
	font-size: 15px;
}

.brand-page .bp-config-alt a {
	color: var(--bp-ink);
}

/* ---------- цвета ---------- */

.brand-page .bp-colors {
	background: var(--bp-grey);
	border-radius: 30px;
	padding: 60px;
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	grid-template-areas: 'head stage' 'sw stage';
	gap: 0 40px;
	align-items: start;
}

.brand-page .bp-colors-head {
	grid-area: head;
}

.brand-page .bp-colors-stage {
	grid-area: stage;
	aspect-ratio: 1;
	max-height: 620px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.brand-page .bp-colors-stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	animation: bp-fade .35s ease;
}

@keyframes bp-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.brand-page .bp-swatches {
	grid-area: sw;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.brand-page .bp-swatches button {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 0;
	background: #fff;
	border-radius: 30px;
	padding: 6px 16px 6px 6px;
	font: inherit;
	font-size: 15px;
	color: var(--bp-ink);
	cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--bp-line);
}

.brand-page .bp-swatches button[aria-checked="true"] {
	box-shadow: inset 0 0 0 2px var(--bp-ink);
}

.brand-page .bp-swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sw);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

/* ---------- карточки ---------- */

.brand-page .bp-cards-head {
	max-width: 760px;
	margin: 0 0 36px;
}

.brand-page .bp-cards-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.brand-page .bp-card {
	display: flex;
	flex-direction: column;
	border-radius: var(--bp-radius);
	overflow: hidden;
	background: var(--bp-grey);
	color: var(--bp-ink);
	text-decoration: none;
	transition: box-shadow .3s, transform .3s;
}

.brand-page a.bp-card:hover {
	box-shadow: 0 16px 40px rgba(28, 38, 60, .14);
	transform: translateY(-2px);
}

.brand-page .bp-card-pic {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.brand-page .bp-card-pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.brand-page a.bp-card:hover .bp-card-pic img {
	transform: scale(1.04);
}

.brand-page .bp-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 24px 28px;
	flex: 1;
}

.brand-page .bp-card-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bp-muted);
}

.brand-page .bp-card-title {
	font-size: 22px;
	line-height: 125%;
	font-weight: 600;
}

.brand-page .bp-card-text {
	font-size: 16px;
	line-height: 150%;
	color: var(--bp-muted);
}

.brand-page .bp-card-more {
	position: relative;
	margin-top: auto;
	padding: 8px 52px 0 0;
	min-height: 40px;
	font-size: 16px;
	font-weight: 500;
	align-self: flex-start;
}

/* Стрелка в кружке: покой — белый круг, наведение — тёмный круг и белая стрелка */
.brand-page .bp-card-more .arr {
	position: absolute;
	right: 0;
	top: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	transition: background .3s;
}

.brand-page .bp-card-more .arr:after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--svg-go-arr) center/16px auto no-repeat;
	transition: transform .3s, filter .3s;
}

.brand-page a.bp-card:hover .bp-card-more .arr {
	background: var(--bp-ink);
}

.brand-page a.bp-card:hover .bp-card-more .arr:after {
	transform: rotate(-45deg);
	filter: brightness(0) invert(1);
}

/* Четыре карточки — в один ряд, а не 3 + 1 сиротой */
@media (min-width: 1025px) {
	.brand-page .bp-cards-list:has(> .bp-card:nth-child(4):last-child) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.brand-page .bp-cards-list:has(> .bp-card:nth-child(4):last-child) .bp-card-title {
		font-size: 20px;
	}
}

/* Исполнения модели: рендеры из конфигуратора, машина целиком на сером фоне */
.brand-page .bp-cards-variants .bp-card-pic {
	aspect-ratio: 4 / 3;
	background: var(--bp-grey);
}

.brand-page .bp-cards-variants .bp-card-pic img {
	object-fit: contain;
}

.brand-page .bp-cards-variants .bp-card {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--bp-line);
}

.brand-page .bp-cards-variants .bp-card-body {
	padding: 18px 20px 22px;
	gap: 6px;
}

.brand-page .bp-cards-variants .bp-card-title {
	font-size: 20px;
}

.brand-page .bp-cards-variants .bp-card-text {
	font-size: 15px;
}

@media (max-width: 800px) {
	.brand-page .bp-cards-variants .bp-cards-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.brand-page .bp-cards-variants .bp-card-body {
		padding: 12px 14px 16px;
	}

	.brand-page .bp-cards-variants .bp-card-title {
		font-size: 17px;
	}

	.brand-page .bp-cards-variants .bp-card-text {
		font-size: 14px;
	}
}

/* Бренды на главной: две большие карточки-ссылки, снимок 16:10 */
.brand-page .bp-cards-brands .bp-cards-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.brand-page .bp-cards-brands .bp-card-pic {
	aspect-ratio: 16 / 10;
}

.brand-page .bp-cards-brands .bp-card-body {
	padding: 28px 32px 32px;
	gap: 12px;
}

.brand-page .bp-cards-brands .bp-card-title {
	font-size: 34px;
	font-weight: 500;
	line-height: 115%;
}

.brand-page .bp-cards-brands .bp-card-text {
	font-size: 18px;
	color: var(--bp-ink);
}

@media (max-width: 800px) {
	.brand-page .bp-cards-brands .bp-cards-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.brand-page .bp-cards-brands .bp-card-body {
		padding: 20px 20px 24px;
	}

	.brand-page .bp-cards-brands .bp-card-title {
		font-size: 26px;
	}

	.brand-page .bp-cards-brands .bp-card-text {
		font-size: 16px;
	}
}

/* Профили людей: квадратный портрет, без кнопки */
.brand-page .bp-cards-people .bp-cards-list {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.brand-page .bp-cards-people .bp-card-pic {
	aspect-ratio: 1;
}

.brand-page .bp-cards-people .bp-card-title {
	font-size: 18px;
}

.brand-page .bp-cards-people .bp-card-text {
	font-size: 15px;
}

/* ---------- страница-список: заголовок h1 и крошки на белом ---------- */

.brand-page .bp-cards-head h1 {
	font-size: 52px;
	line-height: 110%;
	font-weight: 500;
	margin: 0 0 16px;
	color: var(--bp-ink);
}

.brand-page .bp-plain-crumbs .bp-crumbs li,
.brand-page .bp-plain-crumbs .bp-crumbs a,
.brand-page .bp-plain-crumbs .bp-crumbs span {
	color: var(--bp-muted);
	font-size: 14px;
}

/* ---------- профиль человека ---------- */

/* Стиль шаблона рисует крошки белыми под тёмный первый экран каталога */
.brand-page .bp-profile .bp-crumbs li,
.brand-page .bp-profile .bp-crumbs a,
.brand-page .bp-profile .bp-crumbs span {
	color: var(--bp-muted);
	font-size: 14px;
}

.brand-page .bp-profile .bp-crumbs a:hover {
	color: var(--bp-ink);
}

.brand-page .bp-profile .bp-crumbs {
	margin-bottom: 28px;
}

.brand-page .bp-profile-in {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 60px;
	align-items: start;
}

/* Снимок целиком, на сером поле: у части людей есть только маленькие фото */
.brand-page .bp-profile-pic {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--bp-radius);
	overflow: hidden;
	background: var(--bp-grey);
	min-height: 320px;
}

.brand-page .bp-profile-pic img {
	display: block;
	max-width: 100%;
	height: auto;
}

.brand-page .bp-profile h1 {
	font-size: 52px;
	line-height: 110%;
	font-weight: 500;
	margin: 0 0 12px;
	color: var(--bp-ink);
}

.brand-page .bp-profile-who {
	font-size: 20px;
	line-height: 145%;
	color: var(--bp-muted);
	margin: 0 0 24px;
}

.brand-page .bp-profile-text p {
	font-size: 18px;
	line-height: 160%;
	color: var(--bp-ink);
	margin: 0 0 16px;
}

.brand-page .bp-profile-quote {
	position: relative;
	margin: 28px 0;
	padding: 4px 0 4px 28px;
	border-left: 4px solid var(--bp-accent);
	font-size: 22px;
	line-height: 145%;
	font-style: italic;
	color: var(--bp-ink);
}

.brand-page .bp-profile-car {
	font-size: 17px;
	color: var(--bp-muted);
	margin: 0;
}

.brand-page .bp-profile-car b {
	color: var(--bp-ink);
	font-weight: 600;
}

/* ---------- галерея ---------- */

.brand-page .bp-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.brand-page .bp-gallery-item {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 16px;
	overflow: hidden;
	background: var(--bp-grey);
}

.brand-page .bp-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.brand-page .bp-gallery-item:hover img {
	transform: scale(1.04);
}

/* ---------- цитата ---------- */

.brand-page .bp-quote figure {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 40px;
	align-items: center;
	margin: 0;
	padding: 50px 60px;
	border-radius: 30px;
	background: var(--bp-ink);
	color: #fff;
}

.brand-page .bp-quote-pic {
	grid-row: span 2;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	object-fit: cover;
}

.brand-page .bp-quote blockquote {
	margin: 0 0 16px;
	font-size: 26px;
	line-height: 140%;
}

.brand-page .bp-quote figcaption {
	font-size: 16px;
	color: rgba(255, 255, 255, .75);
}

.brand-page .bp-quote figcaption b {
	color: var(--bp-accent);
	font-weight: 600;
}

/* ---------- адаптив ---------- */


@media (max-width: 1024px) {
	.brand-page section {
		margin-bottom: 72px;
	}

	.brand-page h2 {
		font-size: 34px;
	}

	.brand-page .bp-hero h1 {
		font-size: 46px;
	}

	.brand-page .bp-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.brand-page .bp-split.bp-reverse .bp-split-text {
		order: 0;
	}

	.brand-page .bp-profile-in {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.brand-page .bp-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.brand-page .bp-details-grid,
	.brand-page .bp-cards-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.brand-page .bp-prev {
		left: 8px;
	}

	.brand-page .bp-next {
		right: 8px;
	}

	.brand-page .bp-colors {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: 'head' 'stage' 'sw';
		padding: 40px;
	}
}

@media (max-width: 800px) {
	.brand-page .bp-hero {
		aspect-ratio: auto;
		height: auto;
		min-height: 0;
		max-height: none;
		display: flex;
		flex-direction: column;
		background: var(--bp-ink);
	}

	/* На телефоне 2:1 даёт полоску высотой 190 px — снимок сверху 4:3, текст под ним */
	.brand-page .bp-hero-img {
		position: relative;
		aspect-ratio: 4 / 3;
		height: auto;
	}

	.brand-page .bp-hero-video video {
		inset: 0 0 auto;
		height: auto;
		aspect-ratio: 4 / 3;
	}

	.brand-page .bp-hero-video .bp-video-toggle {
		top: calc(75vw - 60px);
		bottom: auto;
	}

	.brand-page .bp-hero .bp-hl,
	.brand-page .bp-hero .bp-crumbs {
		padding: 0;
		background: none;
	}

	.brand-page .bp-hero h1,
	.brand-page .bp-hero p,
	.brand-page .bp-hero .bp-kicker {
		line-height: 1.3;
	}

	.brand-page .bp-hero-in {
		position: relative;
		padding: 28px var(--bp-gutter) 36px;
	}

	.brand-page .bp-hero h1 {
		font-size: 34px;
	}

	.brand-page .bp-hero p {
		font-size: 17px;
	}

	.brand-page .bp-wide img {
		aspect-ratio: 4 / 3;
	}

	.brand-page h2 {
		font-size: 28px;
	}

	.brand-page .bp-split-text p,
	.brand-page .bp-details-head p,
	.brand-page .bp-cards-head p,
	.brand-page .bp-config-head p,
	.brand-page .bp-colors-head p {
		font-size: 16px;
	}

	.brand-page .bp-track {
		grid-auto-columns: 78%;
		gap: 12px;
	}

	.brand-page .bp-arrow {
		display: none;
	}

	.brand-page .bp-details-grid {
		gap: 28px 16px;
	}

	.brand-page .bp-detail-title {
		font-size: 17px;
	}

	.brand-page .bp-detail-text {
		font-size: 14px;
	}

	.brand-page .bp-cards-people .bp-cards-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.brand-page .bp-cards-people .bp-card-body {
		padding: 14px 14px 18px;
	}

	.brand-page .bp-tablist {
		width: 100%;
	}

	.brand-page .bp-tablist button {
		flex: 1 1 auto;
		padding: 12px 14px;
		font-size: 15px;
	}

	.brand-page .bp-groups {
		columns: 1;
	}

	.brand-page .bp-text.bp-grey,
	.brand-page .bp-colors {
		padding: 28px 20px;
		border-radius: 20px;
	}


	.brand-page .bp-profile h1,
	.brand-page .bp-cards-head h1 {
		font-size: 34px;
	}

	.brand-page .bp-profile-who,
	.brand-page .bp-profile-quote {
		font-size: 18px;
	}

	.brand-page .bp-profile-text p {
		font-size: 16px;
	}

	.brand-page .bp-gallery-grid {
		gap: 8px;
	}

	.brand-page .bp-bespoke-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 12px;
	}

	.brand-page .bp-bespoke-item h3 {
		font-size: 16px;
	}

	.brand-page .bp-bespoke-item p,
	.brand-page .bp-bespoke-item .bp-list li {
		font-size: 14px;
	}

	.brand-page .bp-quote figure {
		grid-template-columns: 1fr;
		padding: 32px 24px;
		gap: 20px;
	}

	.brand-page .bp-quote-pic {
		width: 96px;
		height: 96px;
		grid-row: auto;
	}

	.brand-page .bp-quote blockquote {
		font-size: 20px;
	}

	.brand-page .bp-btns .btn {
		width: 100%;
	}
}

/* ---------- истории и пресс-релизы (DesignCode\BrandStories) ---------- */

/* Заголовки статей длинные: на 60 px они переносились двумя громоздкими плашками */
.brand-page.story-page .bp-hero h1 {
	font-size: 44px;
}

.brand-page .story-head {
	margin-bottom: 48px;
}

.brand-page .story-crumbs li,
.brand-page .story-crumbs a,
.brand-page .story-crumbs span {
	font-size: 14px;
}

.brand-page .story-head h1 {
	font-size: 56px;
	line-height: 110%;
	font-weight: 500;
	margin: 0 0 16px;
	color: var(--bp-ink);
}

.brand-page .story-lead {
	font-size: 20px;
	line-height: 150%;
	color: var(--bp-muted);
	max-width: 720px;
	margin: 0 0 28px;
}

.brand-page .story-tabs {
	display: inline-flex;
	gap: 6px;
	padding: 6px;
	background: var(--bp-grey);
	border-radius: 16px;
}

.brand-page .story-tabs a {
	padding: 12px 22px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
	color: var(--bp-ink);
	text-decoration: none;
	transition: background .2s, color .2s;
}

.brand-page .story-tabs a:hover {
	background: #fff;
}

.brand-page .story-tabs a[aria-current] {
	background: var(--bp-ink);
	color: #fff;
}

/* Текст статьи — узкая колонка для чтения, фото и видео шире текста */
.brand-page .story-body {
	max-width: 760px;
	margin: 0 auto 100px;
	font-size: 18px;
	line-height: 165%;
	color: var(--bp-ink);
}

.brand-page .story-body p {
	font-size: 18px;
	line-height: 165%;
	color: var(--bp-ink);
	margin: 0 0 20px;
}

.brand-page .story-body h2 {
	font-size: 30px;
	margin: 48px 0 16px;
}

.brand-page .story-body h3 {
	font-size: 22px;
	margin: 36px 0 12px;
}

.brand-page .story-body a {
	color: var(--bp-ink);
	text-decoration-color: var(--bp-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.brand-page .story-body figure,
.brand-page .story-body .story-video {
	margin: 36px -120px;
}

.brand-page .story-body blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 28px;
	border-left: 4px solid var(--bp-accent);
	font-size: 22px;
	line-height: 150%;
	font-style: italic;
}

.brand-page .story-body blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 15px;
	font-style: normal;
	color: var(--bp-muted);
}

.brand-page .story-body figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--bp-radius);
}

.brand-page .story-body figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--bp-muted);
}

.brand-page .story-body .story-photo {
	display: block;
}

.brand-page .story-body figure .story-photo img {
	border-radius: var(--bp-radius);
}

.brand-page .story-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 36px -120px;
}

.brand-page .story-gallery .story-photo {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 14px;
}

.brand-page .story-gallery-odd .story-photo:first-child {
	grid-column: 1 / -1;
	aspect-ratio: 2 / 1;
}

.brand-page .story-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.brand-page .story-gallery .story-photo:hover img {
	transform: scale(1.04);
}

.brand-page .story-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--bp-radius);
	background: var(--bp-ink);
}

@media (max-width: 1100px) {
	.brand-page .story-body figure,
	.brand-page .story-gallery,
	.brand-page .story-body .story-video {
		margin: 32px 0;
	}
}

@media (max-width: 800px) {
	.brand-page .story-head h1 {
		font-size: 34px;
	}

	.brand-page .story-lead,
	.brand-page .story-body p {
		font-size: 17px;
	}

	.brand-page .story-body h2 {
		font-size: 24px;
	}
}

/* Одна колонка — только на узком телефоне: на 600–800 px квадрат во всю ширину
   растягивал страницу втрое */
@media (max-width: 560px) {
	.brand-page .bp-details-grid,
	.brand-page .bp-cards:not(.bp-cards-variants):not(.bp-cards-people) .bp-cards-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.brand-page *,
	.brand-page *:before,
	.brand-page *:after {
		transition: none !important;
		animation: none !important;
	}
}

/* Главная: блок брендов вставлен между «Гольфкарами в наличии» и подпиской —
   отступы как у соседних блоков страницы */
.brand-extra .bp-cards-brands {
	margin: 0 0 100px;
}

h2.home-brands-title {
	margin-top: 100px;
}

/* На телефоне фигура из блока подписки выступает над его плашкой примерно на 200 px —
   без запаса она ложилась на карточку бренда */
@media (max-width: 800px) {
	.brand-extra .bp-cards-brands {
		margin-bottom: 230px;
	}

	h2.home-brands-title {
		margin-top: 60px;
	}
}
