/* ================================================================
   BR — Shared block primitives (Option Б refactor 2026-05-28)
   Used by: front-page.php, single-br_geo.php, page-landing.php, page-geo-hub.php
   ================================================================
   Rules extracted from pages/home.css + pages/catalog.css
   so non-home templates (br_geo) render the same blocks correctly.
   ================================================================ */

/* ============================================================
   WELCOME (Hero) — used by home, br_geo, landing
   ============================================================ */
.br-welcome {
	background: var(--br-gradient);
	color: #fff;
	padding-block: var(--br-gap-2xl);
	position: relative;
	overflow: hidden;
}
.br-welcome::after {
	content: "";
	position: absolute;
	right: -100px;
	top: -100px;
	width: 500px;
	height: 500px;
	border-radius: var(--br-r-circle);
	background: rgba(255,255,255,.04);
	pointer-events: none;
}
.br-welcome::before {
	content: "";
	position: absolute;
	left: -50px;
	bottom: -150px;
	width: 350px;
	height: 350px;
	border-radius: var(--br-r-circle);
	background: rgba(255,255,255,.03);
	pointer-events: none;
}
.br-welcome__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 50px;
}
.br-welcome__content {
	max-width: 620px;
}
.br-welcome__promo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: rgba(255,255,255,.12);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: var(--br-r-pill);
	padding: 8px 18px;
	margin-bottom: 22px;
	font-size: var(--br-text-sm);
}
.br-welcome__promo-text {
	font-weight: 600;
}
.br-welcome__promo-timer {
	background: var(--br-berry);
	padding: 4px 12px;
	border-radius: var(--br-r-pill);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .5px;
}
.br-welcome__title {
	margin-bottom: 16px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.2;
	font-weight: 700;
}
.br-welcome__desc {
	font-size: var(--br-text-lg);
	opacity: .9;
	margin-bottom: 28px;
	line-height: 1.65;
}
.br-welcome__perks {
	display: flex;
	gap: 28px;
	margin-top: 30px;
}
.br-welcome__perk {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	opacity: .9;
}
.br-welcome__perk-icon {
	width: 38px;
	height: 38px;
	border-radius: var(--br-r-circle);
	background: rgba(255,255,255,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.br-welcome__visual {
	flex-shrink: 0;
}
.br-welcome__visual img,
.br-welcome__visual-img {
	border-radius: var(--br-r-xl);
	object-fit: cover;
}
@media (max-width: 991px) {
	.br-welcome__visual { display: none; }
}
@media (max-width: 767px) {
	.br-welcome__perks { flex-direction: column; gap: 12px; }
	.br-welcome__promo { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   REASONS / ADVANTAGES (Преимущества)
   ============================================================ */
.br-reasons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--br-gap-lg);
}
.br-reason {
	text-align: center;
	padding: 30px 20px;
	border-radius: var(--br-r-lg);
	background: var(--br-paper);
	border: 1px solid var(--br-line);
	transition: box-shadow var(--br-ease), border-color var(--br-ease);
	display: flex;
	flex-direction: column;
}
.br-reason:hover {
	box-shadow: var(--br-shadow-soft);
	border-color: var(--br-pine);
}
.br-reason__icon {
	width: 68px;
	height: 68px;
	border-radius: var(--br-r-circle);
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}
.br-reason__icon--pine  { background: var(--br-pine-mist); color: var(--br-pine); }
.br-reason__icon--berry { background: var(--br-berry-mist); color: var(--br-berry); }
.br-reason__icon--sky   { background: var(--br-sky-mist); color: var(--br-sky); }
.br-reason__icon--slate { background: #eef; color: var(--br-slate); }
.br-reason__icon--sun   { background: var(--br-sun-mist); color: var(--br-sun); }
.br-reason__icon--earth { background: var(--br-earth-mist); color: var(--br-earth); }
.br-reason__title {
	font-size: 18px;
	margin-bottom: 8px;
	font-weight: 700;
}
.br-reason__text {
	font-size: 15px;
	color: var(--br-ink-faded);
	line-height: 1.6;
	margin-bottom: 14px;
}
@media (max-width: 991px) {
	.br-reasons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.br-reasons { grid-template-columns: 1fr; }
}

/* ============================================================
   QA / FAQ
   ============================================================ */
.br-qa__layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--br-gap-xl);
	align-items: start;
}
.br-qa__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.br-qa__item {
	border: 1px solid var(--br-line);
	border-radius: var(--br-r-sm);
	overflow: hidden;
	background: var(--br-paper);
	transition: border-color var(--br-ease);
}
.br-qa__item:hover {
	border-color: var(--br-pine);
}
.br-qa__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 18px 22px;
	text-align: left;
	font-size: 17px;
	font-weight: 600;
	gap: 16px;
	transition: background var(--br-ease);
	cursor: pointer;
}
.br-qa__question:hover {
	background: var(--br-pine-mist);
}
.br-qa__arrow {
	flex-shrink: 0;
	color: var(--br-ink-faded);
	transition: transform .3s;
}
.br-qa__item.is-open .br-qa__arrow {
	transform: rotate(180deg);
}
.br-qa__answer {
	display: none;
	padding: 0 22px 20px;
}
.br-qa__item.is-open .br-qa__answer {
	display: block;
}
.br-qa__answer p {
	font-size: 15px;
	color: var(--br-ink-light);
	line-height: 1.7;
}
@media (max-width: 991px) {
	.br-qa__layout { grid-template-columns: 1fr; }
}

/* ============================================================
   SEO text block
   ============================================================ */
.br-seo h2 {
	font-size: 24px;
	margin-bottom: 16px;
}
.br-seo h3 {
	font-size: 20px;
	color: var(--br-pine);
	margin: 20px 0 10px;
}
.br-seo p {
	font-size: 15px;
	color: var(--br-ink-light);
	line-height: 1.8;
	margin-bottom: 14px;
}
.br-seo ul {
	margin: 14px 0 14px 24px;
	list-style: disc;
}
.br-seo li {
	font-size: 15px;
	color: var(--br-ink-light);
	line-height: 1.7;
	margin-bottom: 6px;
}

/* ============================================================
   CHIPS (категорий) — from catalog.css
   ============================================================ */
.br-chips { margin-bottom: 12px; }
.br-chips__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: var(--br-gap-md);
}
.br-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 14px;
	background: var(--br-bone);
	border: 1px solid var(--br-line);
	border-radius: var(--br-r-pill);
	font-size: 13px;
	font-weight: 500;
	color: var(--br-ink);
	text-decoration: none;
	transition: all var(--br-ease);
	white-space: nowrap;
}
.br-chips__item:hover {
	border-color: var(--br-pine);
	background: var(--br-pine-mist);
	color: var(--br-pine);
}
.br-chips__count {
	font-size: 11px;
	color: var(--br-ink-faded);
}

/* ============================================================
   CAPTURE (форма заявки)
   ============================================================ */
.br-capture {
	background: var(--br-gradient);
	color: #fff;
	padding-block: var(--br-gap-2xl);
	border-radius: var(--br-r-lg);
}
.br-capture__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.br-capture__text h2 {
	margin-bottom: 10px;
}
.br-capture__text p {
	font-size: 17px;
	opacity: .85;
}
.br-capture__fields {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: flex-start;
}
.br-capture__input {
	padding: 12px 18px;
	border: 1px solid rgba(255,255,255,.3);
	border-radius: var(--br-r-sm);
	background: rgba(255,255,255,.1);
	color: #fff;
	font-size: 15px;
	min-width: 200px;
}
.br-capture__input::placeholder {
	color: rgba(255,255,255,.7);
}
@media (max-width: 991px) {
	.br-capture__inner { flex-direction: column; text-align: center; }
}

/* ==== Pt 3: helpme refactored ==== */
.br-helpme__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 32px;
	align-items: center;
}
.br-helpme__person {
	display: flex;
	align-items: center;
	gap: 14px;
}
.br-helpme__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(255,255,255,.35);
	background: #fff;
}
.br-helpme__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.18);
	color: #fff;
	font-size: 36px;
	font-weight: 600;
}
.br-helpme__person-text { display: flex; flex-direction: column; line-height: 1.25; }
.br-helpme__person-text strong { font-size: 17px; font-weight: 600; }
.br-helpme__person-text span { font-size: 13px; opacity: .8; }
.br-helpme__title { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.br-helpme__text { margin: 0; font-size: 16px; opacity: .92; line-height: 1.5; }
.br-helpme__fields { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }
.br-helpme__input {
	padding: 14px 18px;
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 8px;
	background: rgba(255,255,255,.12);
	color: #fff;
	font-size: 16px;
	width: 100%;
}
.br-helpme__input::placeholder { color: rgba(255,255,255,.7); }
.br-helpme__submit { width: 100%; }
@media (max-width: 900px) {
	.br-helpme__inner { grid-template-columns: 1fr; text-align: center; }
	.br-helpme__person { justify-content: center; }
	.br-helpme__fields { min-width: 0; }
}

/* ==== Pt 5: b2b compact strip — отличается от helpme и subscribe ==== */
.br-b2b-strip {
	background: linear-gradient(90deg, #f1ecdc 0%, #e3d8b8 100%);
	color: #3d2f1e;
	padding-block: 28px;
	border-radius: 14px;
}
.br-b2b-strip__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.br-b2b-strip__text {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 1 1 60%;
}
.br-b2b-strip__badge {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	background: #b8893a;
	color: #fff;
	padding: 8px 14px;
	border-radius: 6px;
}
.br-b2b-strip__title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; }
.br-b2b-strip__desc { margin: 0; font-size: 15px; line-height: 1.4; }
.br-b2b-strip__desc strong { color: #8b5e1a; }
.br-b2b-strip__cta { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 768px) {
	.br-b2b-strip__inner { flex-direction: column; align-items: stretch; text-align: center; }
	.br-b2b-strip__text { flex-direction: column; gap: 10px; }
	.br-b2b-strip__cta { width: 100%; }
}

/* ==== Pt 4: переработан правый блок FAQ ==== */
.br-qa__bonus-illustration { color: #369155; margin-bottom: 14px; }
.br-qa__bonus-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 8px; }
.br-qa__bonus-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600; }
.br-action--ghost {
	background: transparent;
	border: 2px solid currentColor;
	color: #369155;
}
.br-action--ghost:hover { background: #36915510; }
.br-qa__bonus-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6b7280; margin-top: 12px; }
.br-qa__bonus-meta span { line-height: 1.4; }

/* fix: ghost button inside green bonus card needs white outline */
.br-qa__bonus-card .br-action--ghost {
	color: #fff;
	border-color: rgba(255,255,255,.55);
}
.br-qa__bonus-card .br-action--ghost:hover {
	background: rgba(255,255,255,.12);
	border-color: #fff;
}
.br-qa__bonus-meta { color: rgba(255,255,255,.85); }
