/*!
 * RAI Building Group – Site Pages
 * Front-end styles. All font sizes are px; responsive values are driven by
 * CSS custom properties written from the plugin settings.
 * Breakpoints: Desktop > 1280 · Laptop ≤ 1280 · Tablet ≤ 1024 · Mobile ≤ 767
 */

/* ------------------------------------------------------------------
 * 1. Breakpoint value switching (section-level vars)
 * ---------------------------------------------------------------- */
.rbg-sec {
	--r-pt: var(--r-pt-d); --r-pb: var(--r-pb-d); --r-ti: var(--r-ti-d); --r-tx: var(--r-tx-d);
	--r-sb: var(--r-sb-d); --r-co: var(--r-co-d); --r-ih: var(--r-ih-d); --r-mh: var(--r-mh-d); --r-gp: var(--r-gp-d);
}
@media (max-width: 1280px) {
	.rbg-sec {
		--r-pt: var(--r-pt-l); --r-pb: var(--r-pb-l); --r-ti: var(--r-ti-l); --r-tx: var(--r-tx-l);
		--r-sb: var(--r-sb-l); --r-co: var(--r-co-l); --r-ih: var(--r-ih-l); --r-mh: var(--r-mh-l); --r-gp: var(--r-gp-l);
	}
}
@media (max-width: 1024px) {
	.rbg-sec {
		--r-pt: var(--r-pt-t); --r-pb: var(--r-pb-t); --r-ti: var(--r-ti-t); --r-tx: var(--r-tx-t);
		--r-sb: var(--r-sb-t); --r-co: var(--r-co-t); --r-ih: var(--r-ih-t); --r-mh: var(--r-mh-t); --r-gp: var(--r-gp-t);
	}
}
@media (max-width: 767px) {
	.rbg-sec {
		--r-pt: var(--r-pt-m); --r-pb: var(--r-pb-m); --r-ti: var(--r-ti-m); --r-tx: var(--r-tx-m);
		--r-sb: var(--r-sb-m); --r-co: var(--r-co-m); --r-ih: var(--r-ih-m); --r-mh: var(--r-mh-m); --r-gp: var(--r-gp-m);
	}
}

/* ------------------------------------------------------------------
 * 2. Base & resets (scoped so themes / Elementor don't interfere)
 * ---------------------------------------------------------------- */
.rbg-scope,
.rbg-scope *,
.rbg-scope *::before,
.rbg-scope *::after { box-sizing: border-box; }

.rbg-scope {
	font-family: var(--rbg-f-body);
	font-weight: var(--rbg-f-body-w);
	font-size: var(--rbg-fs);
	line-height: var(--rbg-lh);
	color: var(--rbg-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-align: left;
}
.rbg-scope h1, .rbg-scope h2, .rbg-scope h3, .rbg-scope h4, .rbg-scope h5, .rbg-scope h6 {
	margin: 0; padding: 0; border: 0; letter-spacing: normal; text-transform: none; background: none;
}
.rbg-scope p { margin: 0 0 14px; padding: 0; }
.rbg-scope p:last-child { margin-bottom: 0; }
.rbg-scope ul { margin: 0; padding: 0; }
.rbg-scope li { margin: 0; }
.rbg-scope img { max-width: 100%; height: auto; border: 0; box-shadow: none; }
.rbg-scope a { color: inherit; text-decoration: none; box-shadow: none; }
.rbg-scope figure { margin: 0; }
.rbg-scope button { font-family: inherit; text-transform: none; letter-spacing: normal; }
.rbg-scope svg { flex-shrink: 0; }
.rbg-scope :focus-visible { outline: 2px solid var(--rbg-primary); outline-offset: 2px; }

.rbg-container {
	width: 100%;
	max-width: calc(var(--rbg-container) + var(--rbg-gut) * 2);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rbg-gut);
	padding-right: var(--rbg-gut);
}

.rbg-sec {
	position: relative;
	background-color: var(--r-bg, transparent);
	padding-top: var(--r-pt, 80px);
	padding-bottom: var(--r-pb, 80px);
	margin-top: var(--r-mt, 0);
	margin-bottom: var(--r-mb, 0);
	overflow: hidden;
	isolation: isolate;
}
.rbg-sec > .rbg-container { position: relative; z-index: 2; }

.rbg-bg-img {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important;
	max-width: none !important; object-fit: cover; display: block; z-index: 0;
}
.rbg-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rbg-overlay--x { background: linear-gradient(90deg, var(--r-ov1) 0%, var(--r-ov1) 22%, var(--r-ov2) 72%); }
.rbg-overlay--y { background: linear-gradient(180deg, var(--r-ov1) 0%, var(--r-ov2) 100%); }

/* Typography */
.rbg-scope .rbg-eyebrow {
	display: block;
	font-family: var(--rbg-f-body);
	font-size: var(--r-ey, 12px);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: var(--rbg-ey-ls);
	text-transform: uppercase;
	color: var(--r-ey-c, var(--rbg-primary));
	margin: 0 0 12px;
}
.rbg-scope .rbg-title {
	font-family: var(--rbg-f-head);
	font-weight: var(--rbg-f-head-w);
	font-size: var(--r-ti, 44px);
	line-height: var(--rbg-h-lh);
	color: var(--r-ti-c, var(--rbg-heading));
	margin: 0 0 16px;
}
.rbg-scope .rbg-hl { color: var(--r-ac, var(--rbg-primary)); }
.rbg-scope .rbg-text {
	font-size: var(--r-tx, 16px);
	line-height: var(--rbg-lh);
	color: var(--r-tx-c, var(--rbg-text));
}
.rbg-scope .rbg-text p { margin: 0 0 12px; }
.rbg-scope .rbg-text p:last-child { margin: 0; }
.rbg-scope .rbg-text a { color: var(--rbg-primary); text-decoration: underline; }
.rbg-scope .rbg-sub {
	font-family: var(--rbg-f-head);
	font-weight: var(--rbg-f-head-w);
	font-size: var(--r-sb, 20px);
	line-height: 1.25;
	color: var(--rbg-heading);
	margin: 0 0 12px;
}
.rbg-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.rbg-scope .rbg-head.rbg-center { margin-bottom: 36px; }

/* Buttons */
.rbg-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.rbg-scope .rbg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--rbg-f-body);
	font-size: var(--rbg-btn-fs);
	font-weight: var(--rbg-btn-w);
	line-height: 1.2;
	padding: var(--rbg-btn-py) var(--rbg-btn-px);
	border-radius: var(--rbg-btn-r);
	border: 1px solid transparent;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.rbg-scope .rbg-btn--primary { background: var(--rbg-primary); color: #fff; box-shadow: 0 10px 22px -12px var(--rbg-primary); }
.rbg-scope .rbg-btn--primary:hover,
.rbg-scope .rbg-btn--primary:focus-visible { background: var(--rbg-primary-h); color: #fff; transform: translateY(-1px); }
.rbg-scope .rbg-btn--light { background: #fff; color: var(--rbg-heading); border-color: #fff; box-shadow: 0 10px 22px -14px rgba(0,0,0,.35); }
.rbg-scope .rbg-btn--light .rbg-btn__icon { color: var(--rbg-primary); }
.rbg-scope .rbg-btn--light:hover { background: var(--rbg-cream); color: var(--rbg-heading); border-color: var(--rbg-cream); transform: translateY(-1px); }
.rbg-scope .rbg-btn--sm { padding: 12px 18px; font-size: 13px; }
.rbg-scope .rbg-btn--md { padding: 13px 26px; font-size: 14px; }
.rbg-scope .rbg-btn--block { width: 100%; }
.rbg-btn__arrow { transition: transform .2s ease; }
.rbg-btn:hover .rbg-btn__arrow { transform: translateX(3px); }
.rbg-btn[disabled], .rbg-btn.is-loading { opacity: .7; pointer-events: none; }

.rbg-scope .rbg-link {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 600; color: var(--r-ac, var(--rbg-primary));
	text-decoration: none; transition: gap .2s ease;
}
.rbg-scope .rbg-link:hover { gap: 10px; color: var(--rbg-primary-h); }

.rbg-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.rbg-sep { margin: 0 8px; opacity: .7; }
.rbg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------
 * 3. Header
 * ---------------------------------------------------------------- */
.rbg-header {
	position: relative;
	z-index: 990;
	background: var(--rbg-h-bg);
	font-family: var(--rbg-f-body);
	transition: box-shadow .25s ease;
}
.rbg-header.is-sticky { position: sticky; top: 0; }
.admin-bar .rbg-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .rbg-header.is-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .rbg-header.is-sticky { top: 0; } }
.rbg-header.has-shadow { box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 4px 18px rgba(0,0,0,.05); }
.rbg-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.09); }
.rbg-header__inner { display: flex; align-items: center; gap: 24px; height: var(--rbg-h-h); }

.rbg-scope .rbg-logo { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: var(--rbg-logo-w); flex-shrink: 0; text-decoration: none; line-height: 1; }
.rbg-logo__mark { display: block; width: 62%; color: var(--rbg-primary); line-height: 0; }
.rbg-logo__mark svg { width: 100%; height: auto; display: block; }
.rbg-logo__words { display: flex; flex-direction: column; align-items: center; }
.rbg-logo__text { display: block; font-family: var(--rbg-f-body); font-weight: 700; font-size: calc(var(--rbg-logo-w) * .084); letter-spacing: .1px; line-height: 1.15; color: #1f2125; white-space: nowrap; margin-top: 2px; }
.rbg-logo__sub { display: block; font-size: calc(var(--rbg-logo-w) * .036); font-weight: 600; letter-spacing: 1px; color: #6b6e74; margin-top: 2px; }
.rbg-logo--image img { width: 100%; height: auto; display: block; }

.rbg-nav { margin-left: auto; }
.rbg-scope .rbg-menu { display: flex; align-items: center; gap: var(--rbg-h-gap); list-style: none; margin: 0; padding: 0; }
.rbg-scope .rbg-menu > li { position: relative; list-style: none; }
.rbg-scope .rbg-menu a {
	display: block; padding: 8px 0; font-size: var(--rbg-h-fs); font-weight: 400;
	color: var(--rbg-h-link); text-decoration: none; transition: color .2s ease; white-space: nowrap;
}
.rbg-scope .rbg-menu a:hover,
.rbg-scope .rbg-menu .current-menu-item > a,
.rbg-scope .rbg-menu .current_page_item > a { color: var(--rbg-h-link-h); }
.rbg-scope .rbg-menu .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 210px; padding: 10px 0; margin: 0;
	list-style: none; background: #fff; border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease;
}
.rbg-scope .rbg-menu li:hover > .sub-menu,
.rbg-scope .rbg-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rbg-scope .rbg-menu .sub-menu a { padding: 8px 18px; }
.rbg-header__cta { margin-left: 10px; }

.rbg-burger {
	display: none; width: 44px; height: 44px; margin-left: 4px; padding: 11px 10px; border: 0; border-radius: 8px;
	background: var(--rbg-cream); cursor: pointer; flex-direction: column; justify-content: space-between;
}
.rbg-burger span { display: block; height: 2px; width: 100%; background: var(--rbg-heading); border-radius: 2px; }

/* Mobile menu */
.rbg-mobile { position: fixed; inset: 0; z-index: 100000; visibility: hidden; pointer-events: none; }
.rbg-mobile.is-open { visibility: visible; pointer-events: auto; }
.rbg-mobile__backdrop { position: absolute; inset: 0; background: rgba(12,13,16,.55); opacity: 0; transition: opacity .3s ease; }
.rbg-mobile.is-open .rbg-mobile__backdrop { opacity: 1; }
.rbg-mobile__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: 360px; max-width: 88%;
	background: #fff; display: flex; flex-direction: column; padding: 18px 22px 26px;
	transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.rbg-mobile.is-open .rbg-mobile__panel { transform: none; }
.rbg-mobile__top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--rbg-border); margin-bottom: 8px; }
.rbg-mobile__top .rbg-logo { --rbg-logo-w: 130px; }
.rbg-mobile__close { width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--rbg-cream); color: var(--rbg-heading); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rbg-scope.rbg-mobile .rbg-menu { flex-direction: column; align-items: stretch; gap: 0; }
.rbg-scope.rbg-mobile .rbg-menu a { padding: 14px 4px; font-size: 16px; font-weight: 500; border-bottom: 1px solid #f0ece4; }
.rbg-scope.rbg-mobile .rbg-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
.rbg-mobile__foot { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.rbg-mobile__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--rbg-heading); font-size: 15px; }
.rbg-mobile__phone svg { color: var(--rbg-primary); }
html.rbg-lock, html.rbg-lock body { overflow: hidden; }

/* ------------------------------------------------------------------
 * 4. Home hero
 * ---------------------------------------------------------------- */
.rbg-hero { display: flex; flex-direction: column; justify-content: center; min-height: var(--r-mh); color: #fff; }
.rbg-hero__inner { width: 100%; }
.rbg-scope .rbg-badge {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 7px 15px; margin-bottom: 22px;
	border: 1px solid rgba(201,154,58,.8); border-radius: 40px; background: rgba(10,12,15,.45);
	font-size: var(--r-ey, 11px); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #fff; line-height: 1.4;
}
.rbg-badge__dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--rbg-primary); flex-shrink: 0; }
.rbg-scope .rbg-hero__title { margin-bottom: 20px; line-height: 1.02; }
.rbg-hero .rbg-text { max-width: 560px; }
.rbg-scope .rbg-hero__phones { display: flex; align-items: center; gap: 12px; margin: 30px 0 0; font-size: 17px; font-weight: 500; color: #fff; }
.rbg-hero__phones .rbg-sep { margin: 0 10px; }
.rbg-hero__phones a:hover { color: var(--rbg-primary); }
.rbg-hero__fwrap { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; }
.rbg-hero__fwrap .rbg-container { display: flex; justify-content: flex-end; }
.rbg-scope .rbg-hero__features {
	display: flex; list-style: none; margin: 0; padding: 25px 8px;
	background: rgba(18,20,24,.84); border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rbg-hero__features li { display: flex; align-items: center; gap: 14px; padding: 4px 22px; color: var(--rbg-primary); }
.rbg-hero__features li + li { border-left: 1px solid rgba(255,255,255,.14); }
.rbg-hero__features strong { display: block; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; }
.rbg-hero__features small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--rbg-primary); line-height: 1.4; margin-top: 2px; }

/* ------------------------------------------------------------------
 * 5. About intro / story media
 * ---------------------------------------------------------------- */
.rbg-about__grid { display: grid; grid-template-columns: 1.14fr 1fr; gap: 50px; align-items: center; }
.rbg-scope .rbg-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; margin: 28px 0 0; padding: 0; }
.rbg-feat {
	display: flex; align-items: center; gap: 16px; padding: 21px 22px;
	background: var(--r-cb, var(--rbg-cream)); border-radius: 8px;
	font-size: var(--r-sb, 14px); font-weight: 500; color: var(--rbg-heading); line-height: 1.35;
}
.rbg-feat__icon { display: inline-flex; color: var(--r-ac, var(--rbg-primary)); }
.rbg-feat__icon svg { width: 22px; height: 22px; }

.rbg-media { position: relative; }
.rbg-media__img { height: var(--r-ih, 420px); border-radius: var(--r-rd, 10px); overflow: hidden; box-shadow: 0 24px 44px -24px rgba(0,0,0,.45); }
.rbg-media__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbg-media__badge {
	position: absolute; right: 8px; bottom: -12px; min-width: 210px; padding: 30px 36px 26px;
	background: var(--rbg-primary); color: #fff; text-align: center; border-radius: 6px;
	box-shadow: 0 20px 40px -14px rgba(0,0,0,.45);
}
.rbg-media__badge strong { display: block; font-family: var(--rbg-f-head); font-weight: var(--rbg-f-head-w); font-size: 36px; line-height: 1.08; }
.rbg-media__badge span { display: block; margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; opacity: .95; }

/* ------------------------------------------------------------------
 * 6. Services slider (home)
 * ---------------------------------------------------------------- */
.rbg-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 30px; }
.rbg-head__main { max-width: 700px; }
.rbg-scope .rbg-head__main .rbg-title { margin-bottom: 12px; }
.rbg-head__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding-bottom: 6px; }
.rbg-head__actions .rbg-link { margin-right: 14px; }
.rbg-scope .rbg-arrow {
	width: 40px; height: 40px; padding: 0; border-radius: 50%;
	border: 1.5px solid var(--r-ac, var(--rbg-primary)); background: transparent; color: var(--r-ac, var(--rbg-primary));
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease;
}
.rbg-scope .rbg-arrow:hover:not([disabled]) { background: var(--r-ac, var(--rbg-primary)); color: #fff; }
.rbg-scope .rbg-arrow[disabled] { opacity: .35; cursor: default; }
.rbg-slider { position: relative; }
.rbg-slider__track {
	display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--r-co, 3) - 1) * var(--r-gp, 24px)) / var(--r-co, 3));
	gap: var(--r-gp, 24px);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding: 8px 6px 30px; margin: -8px -6px -30px; scroll-padding-inline: 6px;
	outline: none;
}
.rbg-slider__track::-webkit-scrollbar { display: none; }
.rbg-scard {
	position: relative; display: flex; flex-direction: column; scroll-snap-align: start;
	background: var(--r-cb, #fff); border-radius: var(--r-rd, 12px); overflow: hidden;
	box-shadow: 0 12px 30px -16px rgba(40,30,10,.25);
	transition: transform .25s ease, box-shadow .25s ease;
}
.rbg-scard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(40,30,10,.3); }
.rbg-scard__media { position: relative; height: var(--r-ih, 225px); overflow: hidden; }
.rbg-scard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rbg-scard:hover .rbg-scard__media img { transform: scale(1.04); }
.rbg-scard__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 18px; fill: var(--r-cb, #fff); }
.rbg-scard__icon {
	position: absolute; left: 26px; top: calc(var(--r-ih, 225px) - 34px); z-index: 2;
	width: 62px; height: 62px; border-radius: 50%; background: #fff;
	display: flex; align-items: center; justify-content: center;
	color: var(--r-ac, var(--rbg-primary)); box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.rbg-scard__icon::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--rbg-cream2); }
.rbg-scard__icon svg { position: relative; }
.rbg-scard__body { flex: 1; padding: 56px 28px 40px; }
.rbg-scard__body p { font-size: 14px; line-height: 1.7; margin: 0; padding-right: 34px; color: var(--r-tx-c, var(--rbg-text)); }
.rbg-scope .rbg-scard__more {
	position: absolute; right: 22px; bottom: 24px; z-index: 2;
	width: 36px; height: 36px; border-radius: 50%; background: var(--rbg-cream2);
	color: var(--r-ac, var(--rbg-primary)); display: flex; align-items: center; justify-content: center; transition: all .2s ease; pointer-events: none;
}
.rbg-scope .rbg-scard:hover .rbg-scard__more { background: var(--r-ac, var(--rbg-primary)); color: #fff; }

/* ------------------------------------------------------------------
 * 7. Why choose us
 * ---------------------------------------------------------------- */
.rbg-why { display: flex; flex-direction: column; justify-content: center; min-height: var(--r-mh); color: #fff; }
.rbg-why__media { position: absolute; top: 0; right: 0; bottom: 0; width: var(--r-iw, 62%); z-index: 0; }
.rbg-why__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--r-bg) 0%, rgba(0,0,0,0) 42%); }
.rbg-why__content { max-width: 600px; }
.rbg-why .rbg-text { max-width: 590px; }
.rbg-scope .rbg-checks { list-style: none; margin: 20px 0 0; padding: 0; }
.rbg-checks li { display: flex; align-items: center; gap: 18px; padding: 14px 0; list-style: none; }
.rbg-checks__icon {
	flex: 0 0 46px; height: 46px; border-radius: 50%;
	background: var(--r-ac, var(--rbg-primary)); color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6);
}
.rbg-scope .rbg-checks .rbg-sub { display: block; font-family: var(--rbg-f-body); font-weight: 600; font-size: var(--r-sb, 15px); color: #fff; margin: 0 0 3px; line-height: 1.35; }
.rbg-checks__body > span { display: block; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.72); }

/* ------------------------------------------------------------------
 * 8. Split layouts, info lists, map
 * ---------------------------------------------------------------- */
.rbg-split { display: grid; grid-template-columns: 1fr 1.07fr; gap: 52px; align-items: center; }
.rbg-scope .rbg-info { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.rbg-info__item { display: flex; align-items: center; gap: 18px; list-style: none; }
.rbg-info__icon { flex: 0 0 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.rbg-info--blue .rbg-info__icon { background: var(--rbg-blue-bg); color: var(--rbg-blue); }
.rbg-info--gold .rbg-info__icon { background: var(--rbg-primary); color: #fff; border-radius: 50%; box-shadow: 0 8px 18px -10px var(--rbg-primary); }
.rbg-info--gold-soft .rbg-info__icon { background: var(--rbg-cream2); color: var(--rbg-primary); border-radius: 50%; }
.rbg-info--dark .rbg-info__icon { background: var(--rbg-dark); color: #fff; border-radius: 50%; }
.rbg-info__body { min-width: 0; }
.rbg-info__label { display: block; font-size: var(--r-sb, 15px); font-weight: 600; color: var(--rbg-heading); line-height: 1.35; margin-bottom: 3px; }
.rbg-info__val { display: block; font-size: 15px; line-height: 1.55; color: var(--r-tx-c, var(--rbg-text)); }
.rbg-info__val.is-hl { color: var(--rbg-primary); }
.rbg-scope .rbg-info__val a:hover { color: var(--rbg-primary); }

.rbg-map { position: relative; height: var(--r-ih, 400px); border-radius: var(--r-rd, 12px); overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0,0,0,.35); background: #e9eef1; }
.rbg-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------------
 * 9. CTA banner (dark, image right)
 * ---------------------------------------------------------------- */
.rbg-cta-banner { display: flex; flex-direction: column; justify-content: center; min-height: var(--r-mh); color: #fff; }
.rbg-cta__media { position: absolute; top: 0; right: 0; bottom: 0; width: var(--r-iw, 58%); z-index: 0; }
.rbg-cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--r-bg) 0%, rgba(0,0,0,0) 38%); }
.rbg-cta__content { max-width: 640px; }
.rbg-cta-banner .rbg-btns { margin-top: 26px; }
.rbg-scope .rbg-cta-banner .rbg-title { margin-bottom: 12px; }

/* ------------------------------------------------------------------
 * 10. Contact (home + page) and form
 * ---------------------------------------------------------------- */
.rbg-contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.rbg-contact__content { padding-top: 20px; }
.rbg-cpage__grid { grid-template-columns: 1fr 1.08fr; gap: 50px; align-items: start; }
.rbg-cpage__content .rbg-info { margin-top: 22px; gap: 20px; }
.rbg-cpage__map { margin-top: 34px; }

.rbg-scope .rbg-form-card,
.rbg-form-card {
	background: var(--r-cb, var(--rbg-cream)); border-radius: var(--r-rd, 12px);
	padding: 32px 36px 32px; scroll-margin-top: 120px;
}
.rbg-scope .rbg-form-card__title { font-family: var(--rbg-f-head); font-weight: var(--rbg-f-head-w); font-size: var(--rbg-fm-ts); line-height: 1.2; color: var(--rbg-heading); margin: 0 0 16px; }
.rbg-form { position: relative; margin: 0; }
.rbg-field { margin: 0 0 10px; }
.rbg-scope .rbg-field label { display: block; font-size: var(--rbg-lb-fs); font-weight: 500; line-height: 1.4; color: #3c3f45; margin: 0 0 6px; }
.rbg-scope .rbg-field input,
.rbg-scope .rbg-field textarea {
	display: block; width: 100%; max-width: 100%; height: var(--rbg-in-h); margin: 0; padding: 0 14px;
	font-family: var(--rbg-f-body); font-size: var(--rbg-in-fs); line-height: 1.4; color: var(--rbg-heading);
	background: var(--rbg-in-bg); border: 1px solid var(--rbg-in-bd); border-radius: 6px;
	box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.rbg-scope .rbg-field textarea { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; }
.rbg-scope .rbg-field input::placeholder,
.rbg-scope .rbg-field textarea::placeholder { color: #a3a6ab; opacity: 1; }
.rbg-scope .rbg-field input:focus,
.rbg-scope .rbg-field textarea:focus { border-color: var(--rbg-primary); box-shadow: 0 0 0 3px rgba(184,137,42,.16); }
.rbg-field.has-error input,
.rbg-field.has-error textarea { border-color: #d93025; }
.rbg-field__err { display: block; font-size: 12px; line-height: 1.4; color: #d93025; }
.rbg-field__err:empty { display: none; }
.rbg-field__err:not(:empty) { margin-top: 5px; }
.rbg-form .rbg-btn { margin-top: 12px; padding-top: 15px; padding-bottom: 15px; }
.rbg-form__msg { font-size: 14px; line-height: 1.5; }
.rbg-form__msg:empty { display: none; }
.rbg-form__msg.is-success, .rbg-form__msg.is-error { margin-top: 14px; padding: 12px 14px; border-radius: 6px; }
.rbg-form__msg.is-success { background: #e6f5ea; color: #1d6b35; }
.rbg-form__msg.is-error { background: #fdecea; color: #a52a1f; }
.rbg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------
 * 11. Inner page banner, strip, story, commitment
 * ---------------------------------------------------------------- */
.rbg-page-hero { display: flex; flex-direction: column; justify-content: center; min-height: var(--r-mh); color: #fff; }
.rbg-scope .rbg-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--r-ey, 14px); font-weight: 500; color: var(--r-ey-c, var(--rbg-primary)); margin: 0 0 14px; }
.rbg-scope .rbg-crumb a:hover { color: #fff; }
.rbg-scope .rbg-page-hero .rbg-title { margin-bottom: 14px; }

.rbg-scope .rbg-strip__grid { display: grid; grid-template-columns: repeat(var(--r-co, 4), minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.rbg-strip__grid li { display: flex; align-items: center; justify-content: center; gap: 16px; list-style: none; }
.rbg-strip__icon { flex: 0 0 66px; height: 66px; border-radius: 50%; background: var(--r-cb, var(--rbg-cream2)); color: var(--r-ac, var(--rbg-primary)); display: flex; align-items: center; justify-content: center; }
.rbg-strip__label { font-family: var(--rbg-f-body); font-size: var(--r-ti, 15px); font-weight: 500; line-height: 1.35; color: var(--r-ti-c, var(--rbg-heading)); }

.rbg-story__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.rbg-story.is-reverse .rbg-story__media { order: 2; }
.rbg-story__content .rbg-btns { margin-top: 28px; }

.rbg-commitment { color: #fff; }
.rbg-commitment .rbg-center { max-width: 660px; }
.rbg-scope .rbg-commit__grid { display: grid; grid-template-columns: repeat(var(--r-co, 4), minmax(0, 1fr)); gap: 26px; list-style: none; margin: 52px auto 0; padding: 0; max-width: 1000px; }
.rbg-commit__grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; list-style: none; }
.rbg-commit__icon { width: 88px; height: 88px; border-radius: 50%; background: rgba(10,12,15,.62); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
.rbg-commit__icon > span { width: 56px; height: 56px; border-radius: 50%; background: var(--r-ac, var(--rbg-primary)); color: #fff; display: flex; align-items: center; justify-content: center; }
.rbg-scope .rbg-commit__grid .rbg-sub { font-family: var(--rbg-f-body); font-weight: 600; font-size: var(--r-sb, 15px); color: #fff; margin: 0; }
.rbg-commit__grid small { font-size: 13px; color: rgba(255,255,255,.75); }

/* ------------------------------------------------------------------
 * 12. Grids: services, gallery, project cards
 * ---------------------------------------------------------------- */
.rbg-grid { display: grid; grid-template-columns: repeat(var(--r-co, 3), minmax(0, 1fr)); gap: var(--r-gp, 24px); }

.rbg-gcard { position: relative; display: flex; flex-direction: column; background: var(--r-cb, #fff); border-radius: var(--r-rd, 12px); overflow: hidden; box-shadow: 0 12px 32px -18px rgba(0,0,0,.28); transition: transform .25s ease, box-shadow .25s ease; }
.rbg-gcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.32); }
.rbg-gcard__media { height: var(--r-ih, 215px); overflow: hidden; }
.rbg-gcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rbg-gcard:hover .rbg-gcard__media img { transform: scale(1.04); }
.rbg-gcard__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 30px 30px; }
.rbg-gcard__body .rbg-link { font-size: 15px; }
.rbg-gcard__body p { font-size: var(--r-tx, 15px); line-height: 1.7; margin: 0 0 16px; color: var(--r-tx-c, var(--rbg-text)); }
.rbg-gcard__body .rbg-link { margin-top: auto; }

.rbg-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.rbg-scope .rbg-filter {
	padding: 10px 24px; margin: 0; border-radius: 40px; border: 1px solid var(--rbg-border); background: #fff;
	font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--rbg-heading); cursor: pointer;
	box-shadow: 0 4px 12px -8px rgba(0,0,0,.2); transition: all .2s ease;
}
.rbg-scope .rbg-filter:hover { border-color: var(--r-ac, var(--rbg-primary)); color: var(--r-ac, var(--rbg-primary)); }
.rbg-scope .rbg-filter.is-active { background: var(--r-ac, var(--rbg-primary)); border-color: var(--r-ac, var(--rbg-primary)); color: #fff; }
.rbg-gitem { position: relative; height: var(--r-ih, 300px); border-radius: var(--r-rd, 10px); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(0,0,0,.35); animation: rbgFade .35s ease; }
.rbg-gitem.is-hidden { display: none; }
.rbg-gitem__link { display: block; height: 100%; position: relative; }
.rbg-gitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rbg-gitem:hover img { transform: scale(1.05); }
.rbg-gitem__cap {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 18px 16px; color: #fff;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
	opacity: 0; transform: translateY(8px); transition: all .3s ease;
}
.rbg-gitem__cap strong { display: block; font-family: var(--rbg-f-head); font-weight: var(--rbg-f-head-w); font-size: var(--r-sb, 18px); line-height: 1.25; }
.rbg-gitem__cap span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; opacity: .9; margin-top: 4px; }
.rbg-gitem__zoom { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--rbg-primary); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: all .3s ease; }
.rbg-gitem:hover .rbg-gitem__cap, .rbg-gitem:focus-within .rbg-gitem__cap { opacity: 1; transform: none; }
.rbg-gitem:hover .rbg-gitem__zoom, .rbg-gitem:focus-within .rbg-gitem__zoom { opacity: 1; transform: none; }
@media (hover: none) { .rbg-gitem__cap { opacity: 1; transform: none; } }
@keyframes rbgFade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

.rbg-pcard { position: relative; display: flex; flex-direction: column; background: var(--r-cb, #fff); border-radius: var(--r-rd, 10px); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(0,0,0,.3); transition: transform .25s ease, box-shadow .25s ease; }
.rbg-pcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.32); }
.rbg-pcard__media { height: var(--r-ih, 215px); overflow: hidden; }
.rbg-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.rbg-pcard:hover .rbg-pcard__media img { transform: scale(1.04); }
.rbg-pcard__body { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 22px; }
.rbg-scope .rbg-pcard .rbg-sub { margin-bottom: 12px; }
.rbg-pcard__body > p { font-size: var(--r-tx, 14px); line-height: 1.6; margin: 0 0 12px; }
.rbg-pcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.rbg-pcard__loc { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--r-tx-c, var(--rbg-text)); }
.rbg-pcard__loc svg { color: var(--r-ac, var(--rbg-primary)); }
.rbg-status { display: inline-block; padding: 5px 14px; border-radius: 30px; font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.rbg-status--green { background: #e2f3e5; color: #2d7d41; }
.rbg-status--blue { background: #e2edfc; color: #2560c2; }
.rbg-status--gold { background: #f6ecd4; color: #8f6818; }
.rbg-status--gray { background: #eceef1; color: #565a61; }
.rbg-status--red { background: #fde5e2; color: #b33224; }
.rbg-progress { height: 6px; margin-top: 16px; border-radius: 6px; background: #efebe3; overflow: hidden; }
.rbg-progress span { display: block; height: 100%; border-radius: 6px; background: var(--r-ac, var(--rbg-primary)); }
.rbg-progress__label { display: block; margin-top: 6px; font-size: 12px; color: var(--rbg-text); }

/* CTA split (image left on cream) */
.rbg-cta-split { display: flex; flex-direction: column; justify-content: center; min-height: var(--r-mh); }
.rbg-ctas__media { position: absolute; top: 0; left: 0; bottom: 0; width: var(--r-iw, 46%); z-index: 0; }
.rbg-ctas__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, var(--r-bg) 0%, rgba(255,255,255,0) 42%); }
.rbg-ctas__content { width: 52%; max-width: 620px; margin-left: auto; }
.rbg-scope .rbg-cta-split .rbg-title { margin-bottom: 10px; }
.rbg-cta-split .rbg-btns { margin-top: 26px; }

/* ------------------------------------------------------------------
 * 13. Lightbox
 * ---------------------------------------------------------------- */
.rbg-lb { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: rgba(10,11,13,.93); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; font-family: var(--rbg-f-body); }
.rbg-lb.is-open { opacity: 1; visibility: visible; }
.rbg-lb figure { margin: 0; text-align: center; max-width: 100%; }
.rbg-lb img { max-width: min(1200px, 92vw); max-height: 78vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.rbg-lb figcaption { color: #fff; margin-top: 14px; font-size: 15px; }
.rbg-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; transition: background .2s ease; }
.rbg-lb button:hover { background: var(--rbg-primary); }
.rbg-lb__close { top: 18px; right: 18px; }
.rbg-lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.rbg-lb__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------
 * 14. Footer
 * ---------------------------------------------------------------- */
.rbg-footer { position: relative; overflow: hidden; background: var(--rbg-ft-bg); color: var(--rbg-ft-tx); font-size: var(--rbg-ft-fs); line-height: 1.75; padding: var(--rbg-ft-pt) 0 var(--rbg-ft-pb); }
.rbg-footer .rbg-container { position: relative; z-index: 1; }
.rbg-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.37fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rbg-footer__brand p { max-width: 360px; margin: 16px 0 0; }
.rbg-scope .rbg-logo--footer { flex-direction: row; align-items: center; gap: 12px; width: var(--rbg-ft-logo-w); }
.rbg-logo--footer .rbg-logo__mark { width: 32%; }
.rbg-logo--footer .rbg-logo__words { align-items: flex-end; }
.rbg-logo--footer .rbg-logo__text { color: #fff; font-size: calc(var(--rbg-ft-logo-w) * .062); margin-top: 0; }
.rbg-logo--footer .rbg-logo__sub { color: #9a9ea6; font-size: calc(var(--rbg-ft-logo-w) * .03); }
.rbg-scope .rbg-footer__title { font-family: var(--rbg-f-body); font-size: var(--rbg-ft-ts); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rbg-ft-hd); margin: 4px 0 14px; line-height: 1.4; }
.rbg-scope .rbg-footer__list { list-style: none; margin: 0; padding: 0; }
.rbg-footer__list li { list-style: none; margin: 0 0 4px; }
.rbg-scope.rbg-footer a { color: inherit; transition: color .2s ease; }
.rbg-scope.rbg-footer a:hover { color: var(--rbg-ft-lh); }
.rbg-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; font-size: 13px; }
.rbg-scope .rbg-footer__copy { margin: 0; }
.rbg-scope .rbg-footer__links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.rbg-watermark { position: absolute; right: 40px; bottom: 60px; width: 250px; height: auto; color: rgba(255,255,255,.035); z-index: 0; pointer-events: none; }

/* ------------------------------------------------------------------
 * 15. Plugin page templates (canvas / blog / archive)
 * ---------------------------------------------------------------- */
body.rbg-canvas { margin: 0; padding: 0; background: #fff; }
html.rbg-html { scroll-padding-top: calc(var(--rbg-h-h) + 16px); }
.rbg-main { display: block; }
.rbg-entry { padding-top: 70px; padding-bottom: 80px; }
.rbg-entry__inner { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.8; color: var(--rbg-text); }
.rbg-entry__inner h2, .rbg-entry__inner h3, .rbg-entry__inner h4 { font-family: var(--rbg-f-head); font-weight: var(--rbg-f-head-w); color: var(--rbg-heading); line-height: 1.25; margin: 34px 0 14px; }
.rbg-entry__inner h2 { font-size: 32px; } .rbg-entry__inner h3 { font-size: 26px; } .rbg-entry__inner h4 { font-size: 21px; }
.rbg-entry__inner p, .rbg-entry__inner ul, .rbg-entry__inner ol { margin: 0 0 18px; }
.rbg-entry__inner ul, .rbg-entry__inner ol { padding-left: 22px; }
.rbg-entry__inner a { color: var(--rbg-primary); text-decoration: underline; }
.rbg-entry__inner img { border-radius: 8px; }
.rbg-entry__inner input:not([type=checkbox]):not([type=radio]):not([type=submit]), .rbg-entry__inner textarea, .rbg-entry__inner select { max-width: 100%; width: 100%; padding: 10px 12px; border: 1px solid var(--rbg-in-bd); border-radius: 6px; font: inherit; }
.rbg-entry__inner input[type=submit] { background: var(--rbg-primary); color: #fff; border: 0; border-radius: var(--rbg-btn-r); padding: 13px 26px; font-weight: 600; cursor: pointer; }
.rbg-entry__inner .comment-list { list-style: none; padding: 0; }
.rbg-entry__inner .comments-area { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--rbg-border); }
.rbg-entry__meta { font-size: 14px; color: var(--rbg-primary); margin-bottom: 18px; }
.rbg-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.rbg-post { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px -18px rgba(0,0,0,.3); display: flex; flex-direction: column; }
.rbg-post__media { height: 210px; background: var(--rbg-cream); }
.rbg-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbg-post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.rbg-post__body h2 { font-family: var(--rbg-f-head); font-weight: var(--rbg-f-head-w); font-size: 21px; line-height: 1.3; color: var(--rbg-heading); margin: 6px 0 10px; }
.rbg-post__body p { font-size: 14px; margin: 0 0 16px; }
.rbg-post__body .rbg-link { margin-top: auto; }
.rbg-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.rbg-pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--rbg-border); display: inline-flex; align-items: center; justify-content: center; color: var(--rbg-heading); }
.rbg-pagination .page-numbers.current, .rbg-pagination .page-numbers:hover { background: var(--rbg-primary); border-color: var(--rbg-primary); color: #fff; }
.rbg-404 { text-align: center; }

/* Desktop only: let cards / feature bar breathe slightly past the text column like the design */
@media (min-width: 1281px) {
	.rbg-services-slider .rbg-slider { margin-left: -26px; margin-right: -26px; }
	.rbg-hero__features { margin-right: -16px !important; }
}

/* ------------------------------------------------------------------
 * 16. Laptop ≤ 1280
 * ---------------------------------------------------------------- */
@media (max-width: 1280px) {
	.rbg-about__grid { gap: 40px; }
	.rbg-contact__grid { gap: 56px; }
	.rbg-story__grid { gap: 48px; }
	.rbg-hero__features li { padding: 4px 18px; }
}

/* Small laptop: tighten the menu before switching to the burger */
@media (max-width: 1180px) {
	.rbg-scope .rbg-menu { gap: calc(var(--rbg-h-gap) * .62); }
	.rbg-scope .rbg-menu a { font-size: calc(var(--rbg-h-fs) - 1px); }
	.rbg-header__inner { gap: 18px; }
}

/* ------------------------------------------------------------------
 * 17. Tablet ≤ 1024
 * ---------------------------------------------------------------- */
@media (max-width: 1024px) {
	.rbg-nav { display: none; }
	.rbg-burger { display: inline-flex; }
	.rbg-header__cta { margin-left: auto; }

	.rbg-hero { justify-content: flex-start; }
	.rbg-hero .rbg-overlay--x, .rbg-page-hero .rbg-overlay--x { background: linear-gradient(180deg, var(--r-ov1) 0%, var(--r-ov1) 70%, var(--r-ov2) 130%); }
	.rbg-hero__fwrap { position: relative; bottom: auto; margin-top: 44px; }
	.rbg-hero__fwrap .rbg-container { padding: 0; display: block; }
	.rbg-scope .rbg-hero__features { width: 100%; justify-content: space-between; }
	.rbg-hero__features li { flex: 1; }

	.rbg-about__grid,
	.rbg-split,
	.rbg-contact__grid,
	.rbg-cpage__grid,
	.rbg-story__grid { gap: 32px; }
	.rbg-contact__content { padding-top: 0; }
	.rbg-scope .rbg-form-card { padding: 28px 24px; }

	.rbg-head--split { flex-direction: column; align-items: flex-start; gap: 18px; }
	.rbg-head__actions { padding-bottom: 0; }

	.rbg-why { justify-content: flex-start; }
	.rbg-why__media { position: relative; order: 2; width: auto; height: var(--r-ih, 360px); margin: 36px var(--rbg-gut) 0; border-radius: 12px; overflow: hidden; }
	.rbg-why__media::after { display: none; }
	.rbg-why__content, .rbg-why .rbg-text { max-width: none; }

	.rbg-cta__media { width: 100%; }
	.rbg-cta__media::after { background: var(--r-bg); opacity: .8; }

	.rbg-cta-split { justify-content: flex-start; }
	.rbg-ctas__media { position: relative; order: -1; width: auto; height: var(--r-ih, 300px); margin: calc(var(--r-pt) * -1) 0 34px; }
	.rbg-ctas__media::after { display: none; }
	.rbg-ctas__content { width: 100%; max-width: none; margin: 0; }

	.rbg-footer__grid { grid-template-columns: 1fr 1fr; }
	.rbg-footer__brand { grid-column: 1 / -1; }
	.rbg-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Small tablet ≤ 900: stack two-column layouts */
@media (max-width: 900px) {
	.rbg-about__grid,
	.rbg-split,
	.rbg-contact__grid,
	.rbg-cpage__grid,
	.rbg-story__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
	.rbg-story.is-reverse .rbg-story__media { order: 0; }
}

/* ------------------------------------------------------------------
 * 18. Mobile ≤ 767
 * ---------------------------------------------------------------- */
@media (max-width: 767px) {
	.rbg-burger { margin-left: 10px; }

	.rbg-btns { gap: 12px; margin-top: 26px; }
	.rbg-scope .rbg-hero__features { flex-direction: column; padding: 6px 18px; }
	.rbg-hero__features li { padding: 14px 0; }
	.rbg-hero__features li + li { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
	.rbg-hero__fwrap { margin-top: 36px; }

	.rbg-scope .rbg-feats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.rbg-feat { padding: 15px 16px; }
	.rbg-media__badge { right: 12px; bottom: -14px; min-width: 0; padding: 18px 22px 16px; }
	.rbg-media__badge strong { font-size: 26px; }
	.rbg-media__badge span { font-size: 11px; margin-top: 6px; }

	.rbg-head__actions .rbg-link { margin-right: auto; }
	.rbg-head__actions { width: 100%; }
	.rbg-slider__track { grid-auto-columns: calc((100% - (var(--r-co, 1) - 1) * var(--r-gp, 16px)) / var(--r-co, 1) - 28px); }
	.rbg-scard__body { padding: 40px 22px 26px; }

	.rbg-checks__icon { flex-basis: 38px; height: 38px; }
	.rbg-checks li { gap: 14px; align-items: flex-start; }
	.rbg-why__media { margin-top: 30px; }

	.rbg-info__icon { flex-basis: 44px; height: 44px; }
	.rbg-info__item { gap: 14px; }

	.rbg-scope .rbg-form-card { padding: 26px 20px 24px; }

	.rbg-scope .rbg-strip__grid { gap: 22px 14px; }
	.rbg-strip__grid li { flex-direction: column; text-align: center; gap: 10px; }
	.rbg-strip__icon { flex-basis: 52px; width: 52px; height: 52px; }

	.rbg-scope .rbg-commit__grid { gap: 26px 14px; margin-top: 34px; }
	.rbg-commit__icon { width: 66px; height: 66px; }
	.rbg-commit__icon > span { width: 44px; height: 44px; }

	.rbg-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-left: calc(var(--rbg-gut) * -1); margin-right: calc(var(--rbg-gut) * -1); padding: 4px var(--rbg-gut) 10px; scrollbar-width: none; }
	.rbg-filters::-webkit-scrollbar { display: none; }
	.rbg-scope .rbg-filter { flex-shrink: 0; }

	.rbg-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.rbg-footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
	.rbg-watermark { right: 20px; bottom: 90px; width: 150px; }
	.rbg-posts { grid-template-columns: minmax(0, 1fr); }
	.rbg-entry { padding-top: 50px; padding-bottom: 60px; }
	.rbg-lb__prev, .rbg-lb__next { top: auto; bottom: 18px; transform: none; }
}

@media (max-width: 420px) {
	.rbg-scope .rbg-header__cta { display: none; }
	.rbg-burger { margin-left: auto; }
}
@media (max-width: 480px) {
	.rbg-btns .rbg-btn { flex: 1 1 100%; }
	.rbg-scope .rbg-hero__phones { font-size: 14px; }
	.rbg-cta-banner .rbg-btns .rbg-btn, .rbg-cta-split .rbg-btns .rbg-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.rbg-scope *, .rbg-lb { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
