/* [bm_groups] – scoped to .bm-groups. Based on the site's original group block design. */

.bm-groups {
	--muted: #b6ceca;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	color: var(--bm-dark);
	font: 400 18px/1.5 var(--bm-body);
	container: bmgroups / inline-size;
}
.bm-groups *, .bm-groups *::before, .bm-groups *::after { box-sizing: border-box; }
.bm-groups p, .bm-groups h3, .bm-groups ul { margin: 0; padding: 0; }
.bm-groups a { text-decoration: none; box-shadow: none; }

.bm-groups__panel {
	position: relative;
	overflow: hidden;
	border-radius: 26px;
	background:
		radial-gradient(circle at 92% 2%, rgba(52, 211, 153, .11) 0, rgba(52, 211, 153, .055) 17%, rgba(52, 211, 153, .018) 30%, rgba(11, 15, 18, 0) 46%),
		var(--bm-dark);
	color: #fff;
}

.bm-groups__panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 25px 32px;
	border-bottom: 1px solid rgba(182, 206, 202, .18);
}
.bm-groups__panel-label { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.bm-groups__panel-detail { color: var(--muted); font-size: 15px; }
.bm-groups__panel-detail strong { color: var(--bm-green); }

.bm-groups__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bm-groups__card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 32px 30px 30px;
	border-right: 1px solid rgba(182, 206, 202, .18);
}
.bm-groups__card:last-child { border-right: 0; }
.bm-groups__card.is-open::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--bm-green); }

.bm-groups__topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 32px; }
.bm-groups__number { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bm-groups__status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.bm-groups__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bm-groups__card.is-open .bm-groups__status { color: var(--bm-green); }
.bm-groups__card.is-locked .bm-groups__status { color: #f87171; }

.bm-groups__title { color: #fff; font: 800 38px/.98 var(--bm-heading); letter-spacing: -.025em; text-transform: uppercase; }
.bm-groups__description { min-height: 46px; margin-top: 22px !important; color: var(--muted); font-size: 15px; }

.bm-groups__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 30px; }
.bm-groups__price strong { color: var(--bm-green); font: 800 42px/1 var(--bm-heading); letter-spacing: -.02em; }
.bm-groups__price span { color: var(--muted); font-size: 15px; }
.bm-groups__price-note { margin-top: 8px !important; color: var(--muted); font-size: 12px; }

.bm-groups__benefits {
	display: grid;
	gap: 13px;
	margin: 24px 0 28px !important;
	padding: 21px 0 0 !important;
	border-top: 1px solid rgba(182, 206, 202, .18);
	list-style: none;
	font-size: 15px;
}
.bm-groups__benefits li { position: relative; margin: 0; padding: 0 0 0 22px; color: #fff; list-style: none; }
.bm-groups__benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--bm-green); }

.bm-groups__button,
.bm-groups__button:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: auto;
	padding: 12px 24px;
	border: 1px solid var(--bm-green);
	border-radius: 999px;
	background: var(--bm-green);
	color: var(--bm-dark);
	font: 600 16px/1.3 var(--bm-body);
	letter-spacing: .02em;
	text-align: center;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.bm-groups__button:hover { background: #fff; border-color: #fff; color: var(--bm-dark); }
.bm-groups__button:active { transform: translateY(1px); }
.bm-groups__button:focus-visible { outline: 3px solid var(--bm-green); outline-offset: 5px; }
.bm-groups__card.is-open .bm-groups__button { background: transparent; color: var(--bm-green); }
.bm-groups__card.is-open .bm-groups__button:hover { background: var(--bm-green); color: var(--bm-dark); }

.bm-groups__renew { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; text-decoration: underline; }
.bm-groups__renew:hover { color: #fff; }
.bm-groups__access-detail { min-height: 18px; margin-top: 13px !important; color: var(--muted); font-size: 12px; }

.bm-groups__note { margin-top: 22px !important; font-size: 14px; }

.bm-groups__journey {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 35px;
	padding-top: 30px;
	border-top: 1px solid rgba(11, 15, 18, .14);
}
.bm-groups__step { display: flex; align-items: flex-start; gap: 15px; }
.bm-groups__step-number { flex: 0 0 24px; color: var(--bm-green); font: 700 25px/1.1 var(--bm-heading); }
.bm-groups__step strong { display: block; font-weight: 600; }
.bm-groups__step p { margin-top: 5px !important; opacity: .7; font-size: 15px; }

@media (max-width: 1100px) {
	.bm-groups__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bm-groups__card { padding: 28px; }
	.bm-groups__card:nth-child(2) { border-right: 0; }
	.bm-groups__card:nth-child(-n+2) { border-bottom: 1px solid rgba(182, 206, 202, .18); }
	.bm-groups__description { min-height: 0; }
	.bm-groups__journey { gap: 24px; }
}

@media (max-width: 760px) {
	.bm-groups__panel { border-radius: 22px; }
	.bm-groups__panel-head { display: block; padding: 20px; }
	.bm-groups__panel-detail { margin-top: 7px !important; font-size: 14px; }
	.bm-groups__grid { grid-template-columns: 1fr; }
	.bm-groups__card {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 16px;
		padding: 25px 22px;
		border-right: 0;
		border-bottom: 1px solid rgba(182, 206, 202, .18);
	}
	.bm-groups__card:last-child { border-bottom: 0; }
	.bm-groups__topline { grid-column: 1 / -1; margin-bottom: 24px; }
	.bm-groups__title { font-size: 36px; }
	.bm-groups__description { grid-column: 1 / -1; margin-top: 16px !important; font-size: 14px; }
	.bm-groups__price { grid-column: 2; grid-row: 2; align-self: center; justify-content: flex-end; margin: 0; }
	.bm-groups__price strong { font-size: 34px; }
	.bm-groups__price span { font-size: 13px; }
	.bm-groups__price-note, .bm-groups__benefits, .bm-groups__button, .bm-groups__renew, .bm-groups__access-detail { grid-column: 1 / -1; }
	.bm-groups__benefits { font-size: 14px; }
	.bm-groups__journey { grid-template-columns: 1fr; gap: 23px; }
}

@media (prefers-reduced-motion: reduce) {
	.bm-groups__button { transition: none; }
}

.bm-groups__record { margin-top: 14px !important; color: var(--bm-green); font-size: 13px; font-weight: 600; }
