/**
 * Первый экран главной v2 — br-hero (макет).
 */

.br-hero {
	--br-green: #208d79;
	--br-green-dark: #1a7565;
	--br-bg: #ffffff;
	--br-text: #373737;
	--br-muted: #4a4a4a;
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--br-bg);
}

.br-hero__media {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.br-hero__photo {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 0;
	width: min(58vw, 1024px);
	height: 100%;
	max-height: 100%;
	object-fit: cover;
	object-position: right center;
}

.br-hero__fade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		#ffffff 0%,
		#ffffff 34%,
		rgba(255, 255, 255, 0.98) 42%,
		rgba(255, 255, 255, 0.92) 48%,
		rgba(255, 255, 255, 0.8) 54%,
		rgba(255, 255, 255, 0.62) 60%,
		rgba(255, 255, 255, 0.42) 66%,
		rgba(255, 255, 255, 0.22) 72%,
		rgba(255, 255, 255, 0.08) 78%,
		transparent 86%
	);
}

.br-hero__shell {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	min-height: auto;
	padding-top: 0;
	padding-bottom: var(--br-hero-dock-gap, clamp(24px, 2.8vw, 40px));
}

.br-hero__container {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
}

.br-hero__main {
	width: 100%;
	max-width: min(54vw, 720px);
}

.br-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(32, 141, 121, 0.08);
	color: var(--br-green);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.br-hero__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	line-height: 0;
}

.br-hero__badge-shield {
	display: block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

/* Перебиваем глобальный h1 { text-transform: uppercase } из main.min / main-new */
.br-hero h1.br-hero__title,
h1.br-hero__title {
	margin: 0 0 20px;
	color: var(--br-text);
	font-family: var(--ff, "Manrope", sans-serif);
	font-weight: 500;
	font-size: clamp(28px, 3.2vw, 44px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-transform: none;
}

.br-hero__title-line {
	display: block;
	text-transform: none;
}

.br-hero__title-line--sub {
	font-weight: 500;
}

@media (min-width: 992px) {
	.br-hero__title-line--sub {
		white-space: nowrap;
	}
}

.br-hero__brand {
	color: var(--br-green);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.br-hero__lead {
	margin: 0 0 32px;
	max-width: none;
}

.br-hero__lead-line {
	margin: 0;
	color: var(--br-text);
	font-weight: 500;
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.br-hero__lead-line + .br-hero__lead-line {
	margin-top: 2px;
}

/* Макет: ровно 3 строки — по одному предложению, без переноса «капельницы.» */
@media (min-width: 992px) {
	.br-hero__lead-line {
		white-space: nowrap;
	}
}

.br-hero__features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0 0 36px;
	padding: 0;
	list-style: none;
}

.br-hero__feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
}

.br-hero__feature-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 48px 48px;
}

.br-hero__feature-icon--exam {
	background-image: url("../imgs/new/hero-icons/feature-exam.svg");
}

.br-hero__feature-icon--drug {
	background-image: url("../imgs/new/hero-icons/feature-drug.svg");
}

.br-hero__feature-icon--price {
	background-image: url("../imgs/new/hero-icons/feature-price.svg");
}

.br-hero__feature-icon--drop {
	background-image: url("../imgs/new/hero-icons/feature-drop.svg");
}

.br-hero__feature-text {
	display: block;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.28;
	letter-spacing: -0.01em;
	color: var(--br-text);
	text-transform: none;
}

.br-hero__feature-line {
	display: block;
	white-space: nowrap;
}

.br-hero__feature-line--cont {
	text-transform: none;
}

.br-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.br-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 24px;
	border-radius: 14px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.br-hero__btn::after {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 9h10M10 5l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.br-hero__btn--primary {
	background: var(--br-green);
	color: #fff;
	border: 2px solid var(--br-green);
}

.br-hero__btn--primary:hover {
	background: var(--br-green-dark);
	border-color: var(--br-green-dark);
	color: #fff;
}

.br-hero__btn--outline {
	background: #fff;
	color: var(--br-green);
	border: 2px solid var(--br-green);
}

.br-hero__btn--outline::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 18 18'%3E%3Cpath stroke='%23208D79' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 9h10M10 5l4 4-4 4'/%3E%3C/svg%3E");
}

.br-hero__btn--outline:hover {
	background: rgba(32, 141, 121, 0.06);
	color: var(--br-green-dark);
}

.br-hero__dock-container {
	position: relative;
	z-index: 2;
	margin-top: var(--br-hero-dock-gap, clamp(24px, 2.8vw, 40px));
	padding-top: 0;
}

.br-hero__dock {
	--br-hero-dock-divider: rgba(32, 141, 121, 0.16);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 1px;
	align-items: stretch;
	width: 100%;
	padding: 0;
	border-radius: 24px;
	background: var(--br-hero-dock-divider);
	box-shadow: 0 16px 48px rgba(55, 55, 55, 0.08);
	overflow: hidden;
}

.br-hero__dock-item {
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	padding: 20px 24px;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border-right: none;
	transition: background-color 0.2s ease;
}

.br-hero__dock-item:hover {
	background: rgba(32, 141, 121, 0.05);
}

.br-hero__dock-icon {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 48px 48px;
}

.br-hero__dock-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	justify-content: flex-start;
	min-width: 0;
}

.br-hero__dock-title-line {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.br-hero__dock-desc-line {
	display: block;
	max-width: 100%;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.br-hero__dock-title-line--cont,
.br-hero__dock-desc-line--cont {
	text-transform: none;
}

.br-hero__dock-icon--home {
	background-image: url("../imgs/new/hero-icons/dock-home.svg");
}

.br-hero__dock-icon--car {
	background-image: url("../imgs/new/hero-icons/dock-car.svg");
}

.br-hero__dock-icon--vitamin {
	background-image: url("../imgs/new/hero-icons/dock-vitamin.svg");
}

.br-hero__dock-icon--recovery {
	background-image: url("../imgs/new/hero-icons/dock-recovery.svg");
}

.br-hero__dock-title {
	display: block;
	margin: 0;
	padding: 0;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--br-text);
}

.br-hero__dock-desc {
	display: block;
	margin: 0;
	padding: 0;
	font-weight: 500;
	font-size: 13px;
	line-height: 1.25;
	color: var(--br-muted);
}

.br-hero__dock-title-line,
.br-hero__dock-desc-line {
	line-height: 1.2;
}

@media (max-width: 1200px) {
	.br-hero__main {
		max-width: min(58vw, 680px);
	}

	.br-hero__lead-line {
		white-space: normal;
	}

	.br-hero__photo {
		width: min(62vw, 1024px);
	}
}

@media (max-width: 991px) {
	.br-hero__title-line--sub {
		white-space: normal;
	}
}

@media (max-width: 1070px) {

	.br-hero__features {
		grid-template-columns: repeat(2, max-content);
		gap: 24px 32px;
	}

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

	.br-hero__dock-item {
		padding: 16px 24px;
	}
}

/* Адаптив: фото на весь экран за текстом, слева белый градиент */
@media (max-width: 991px) {
	.br-hero__main {
		max-width: none;
	}

	.br-hero__media {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		height: auto;
	}

	body.homepage--v2 .br-hero__media,
	body.homepage--v2 .br-hero__fade {
		top: var(--br-header-stack);
	}

	.br-hero__photo {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		object-fit: cover;
		object-position: 72% center;
	}

	.br-hero__fade {
		background: linear-gradient(
			90deg,
			#ffffff 0%,
			#ffffff 58%,
			rgba(255, 255, 255, 0.96) 66%,
			rgba(255, 255, 255, 0.86) 72%,
			rgba(255, 255, 255, 0.68) 78%,
			rgba(255, 255, 255, 0.45) 84%,
			rgba(255, 255, 255, 0.2) 90%,
			transparent 98%
		);
	}

	.br-hero__shell {
		min-height: auto;
	}
}

@media (max-width: 1071.98px) {
	body.homepage--v2 {
		--br-header-stack: calc(32px + 60px);
	}
}

@media (max-width: 768px) {
	body.homepage--v2 {
		--br-header-stack: calc(32px + 58px);
		--br-home-gap: 12px;
		--br-hero-dock-gap: 16px;
	}

	body.homepage--v2 .header__bottom {
		height: auto;
		min-height: 56px;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	body.homepage--v2 .header__bottom-flex {
		gap: 8px;
	}

	body.homepage--v2 .header__logo img {
		max-width: 100px;
	}

	body.homepage--v2 .header__btn {
		flex-grow: 0;
		flex-shrink: 1;
		min-width: 0;
		margin-left: auto;
		margin-right: 4px;
	}

	body.homepage--v2 .header__btn .btn.btn--with-icon {
		min-height: 40px;
		height: 40px;
		padding: 0 14px;
		font-size: 14px;
		gap: 6px;
	}

	body.homepage--v2 .header__btn .btn .btn__icon {
		width: 18px;
		height: 18px;
	}

	body.homepage--v2 .header__mobile {
		margin-left: 0;
		flex-shrink: 0;
	}

	body.homepage--v2 .br-hero {
		overflow: visible;
	}

	.br-hero__shell {
		padding-bottom: 20px;
	}

	.br-hero__container,
	.br-hero__dock-container {
		padding-right: 16px;
		padding-left: 16px;
	}

	.br-hero__main {
		width: 100%;
		max-width: none;
	}

	.br-hero__photo {
		object-position: 72% center;
	}

	.br-hero__fade {
		background: linear-gradient(
			90deg,
			#ffffff 0%,
			#ffffff 62%,
			rgba(255, 255, 255, 0.95) 70%,
			rgba(255, 255, 255, 0.82) 76%,
			rgba(255, 255, 255, 0.58) 82%,
			rgba(255, 255, 255, 0.32) 88%,
			rgba(255, 255, 255, 0.12) 94%,
			transparent 100%
		);
	}

	.br-hero h1.br-hero__title {
		margin-bottom: 14px;
		font-size: 26px;
		line-height: 1.2;
	}

	.br-hero__badge {
		margin-bottom: 12px;
		padding: 8px 14px;
		font-size: 13px;
	}

	.br-hero__lead {
		margin-bottom: 16px;
		max-width: none;
	}

	.br-hero__lead-line {
		font-size: 16px;
		line-height: 1.45;
	}

	.br-hero__lead-line + .br-hero__lead-line {
		margin-top: 4px;
	}

	.br-hero__features {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		width: 100%;
		margin-bottom: 18px;
	}

	.br-hero__feature {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		min-height: 0;
	}

	.br-hero__feature-icon {
		flex-shrink: 0;
		width: 44px;
		height: 44px;
		background-size: 44px 44px;
	}

	.br-hero__feature-text {
		font-size: 13px;
		line-height: 1.35;
	}

	.br-hero__feature-line {
		white-space: normal;
	}

	.br-hero__actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 100%;
	}

	.br-hero__btn {
		box-sizing: border-box;
		width: 100%;
		min-height: 52px;
		padding: 14px 18px;
		font-size: 16px;
	}

	.br-hero__btn::after {
		width: 16px;
		height: 16px;
		margin-left: 8px;
	}

	.br-hero__dock-container {
		margin-top: 16px;
	}

	.br-hero__dock {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 1px;
		border-radius: 16px;
	}

	.br-hero__dock-item {
		align-items: flex-start;
		padding: 14px 12px;
		gap: 10px;
	}

	.br-hero__dock-icon {
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		background-size: 44px 44px;
	}

	.br-hero__dock-title {
		font-size: 14px;
	}

	.br-hero__dock-desc {
		font-size: 12px;
	}

	.br-hero__dock-title-line,
	.br-hero__dock-desc-line {
		white-space: normal;
	}
}

@media (max-width: 480px) {
	body.homepage--v2 .header__btn .btn.btn--with-icon {
		padding: 0 12px;
		font-size: 13px;
	}

	.br-hero h1.br-hero__title {
		font-size: 24px;
	}

	.br-hero__lead-line {
		font-size: 15px;
	}

	.br-hero__feature-text {
		font-size: 12px;
	}

	.br-hero__btn {
		font-size: 15px;
	}
}

/* Главная v2: один отступ под шапку (не main + hero) */
body.homepage--v2 {
	--br-home-gap: clamp(8px, 1.5vw, 20px);
	--br-hero-dock-gap: clamp(24px, 2.8vw, 40px);
	--br-header-stack: calc(var(--header-top, 56px) + var(--header-bottom, 82px));
}

body.homepage--v2 main {
	padding-top: 0 !important;
}

body.homepage--v2 .header {
	height: auto;
	background-color: var(--br-bg);
}

/* Фото и градиент — строго под шапкой (padding не сдвигает absolute) */
body.homepage--v2 .br-hero {
	padding-top: 0;
}

body.homepage--v2 .br-hero__media {
	inset: auto;
	top: var(--br-header-stack);
	right: 0;
	bottom: 0;
	left: 0;
	height: auto;
}

body.homepage--v2 .br-hero__fade {
	inset: auto;
	top: var(--br-header-stack);
	right: 0;
	bottom: 0;
	left: 0;
}

body.homepage--v2 .br-hero__shell {
	padding-top: calc(var(--br-header-stack) + var(--br-home-gap));
}

@media (min-width: 1072px) {
	body.homepage--v2 .header {
		height: var(--header-height);
	}

	body.homepage--v2 {
		--br-header-stack: var(--header-height);
	}
}

.homepage--v2 {
	padding-top: 0;
}

.homepage--v2 > .br-hero,
.homepage--v2 > .br-kap,
.homepage--v2 > .br-kap-cta {
	margin: 0;
}

.homepage--v2 > .section-wrap-mx:first-of-type:not(.br-kap):not(.br-kap-cta),
.homepage--v2 > section:not(.br-hero):not(.br-kap):not(.br-kap-cta) {
	margin-top: var(--main-section-paddings, 48px);
}

/* CTA и «О клинике» — один серый блок без белого обрыва */
.homepage--v2 > .br-kap-cta + section.about.section-wrap-mx,
.homepage--v2 > .br-kap-cta + .section-wrap-mx.about {
	margin-top: 0;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.homepage--v2 > .br-kap-cta {
	padding-bottom: clamp(16px, 2vw, 28px);
}

.homepage--v2 > .br-kap-cta + .about {
	padding-top: clamp(56px, 6vw, 80px);
}
