.rb-grid a.rb-brand-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 74px;
	padding: 8px 14px;
}

.rb-grid a.rb-brand-card img {
	width: min(100%, 128px);
	height: auto;
	aspect-ratio: 8 / 3;
	object-fit: contain;
	border-radius: 0;
	margin: 0;
}

.rb-all-brands { margin: 16px 0 0; }

.rb-gallery-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.rb-gallery-controls[hidden], .rb-brand-gallery-item[hidden] { display: none; }
.rb-gallery-controls label { display: grid; gap: 4px; font-weight: 650; }
.rb-gallery-controls input { min-height: 44px; max-width: 100%; padding: 6px 10px; border: 1px solid #78838e; border-radius: 6px; font: inherit; }
.rb-gallery-arrows { display: flex; gap: 8px; }
.rb-gallery-arrows button {
	width: 44px; height: 44px; border: 0; border-radius: 6px; background: #243b53; color: white; font: inherit; cursor: pointer;
}
.rb-gallery-arrows button:disabled { opacity: .45; cursor: default; }
.rb-gallery-status { margin: 8px 0; min-height: 1.5em; font-size: .875rem; }
.rb-gallery-status:empty, .rb-form-demo-status:empty { display: none; }
.rb-gallery-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(112px, 15vw, 158px); gap: 10px;
	overflow-x: auto; padding: 4px 1px 12px; margin: 0; list-style: none; scroll-snap-type: x proximity;
}
.rb-brand-gallery-item { display: grid; place-items: center; min-height: 74px; border: 1px solid #dce1e6; border-radius: 8px; scroll-snap-align: start; }
.rb-brand-gallery-item img { width: min(100%, 128px); height: auto; }
.rb-hero .rb-hero-panel.rb-hero-panel--lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
.rb-hero-lead { min-width: 0; background: #fff; border: 1px solid #dce1e6; border-radius: 10px; padding: clamp(16px, 2.2vw, 26px); }
.rb-hero-lead h2 { margin-bottom: 12px; }

@media (max-width: 740px) {
	.rb-hero .rb-hero-panel.rb-hero-panel--lead { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
