:root { --rg-primary: #032075; --rg-accent: #ca1326; --rg-green: #007a3d; --rg-ink: #131a33; --rg-radius: 6px; --rg-h: 78px; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--rg-h) + 12px); }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--rg-ink); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--rg-primary); }
.rg-in { width: min(100% - 32px, 1200px); margin-inline: auto; }
.rg-skip { position: absolute; left: -9999px; } .rg-skip:focus { left: 8px; top: 8px; z-index: 99999; background: #fff; padding: 8px 12px; }
.rg-btn, .rg-entry a.rg-btn { display: inline-block; background: var(--rg-accent); color: #fff; font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: var(--rg-radius); line-height: 1.2; transition: transform .2s, box-shadow .2s; }
.rg-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(202,19,38,.7); color: #fff; }

/* header */
.rg-header { position: sticky; top: 0; z-index: 9000; background: #fff; border-bottom: 1px solid #eceef5; }
.admin-bar .rg-header { top: 32px; } @media (max-width: 782px) { .admin-bar .rg-header { top: 46px; } }
.rg-header__in { display: flex; align-items: center; gap: 22px; min-height: var(--rg-h); }
.rg-logo { display: inline-flex; align-items: center; flex: none; }
.rg-logo img { display: block; height: 48px; width: auto; }
.rg-logo--2 img { height: 34px; }
.rg-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.rg-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.rg-menu li { position: relative; margin: 0; }
.rg-menu a { display: block; padding: 10px 12px; color: #3a4262; text-decoration: none; font-weight: 600; font-size: .97rem; border-radius: var(--rg-radius); }
.rg-menu a:hover, .rg-menu .current-menu-item > a { color: var(--rg-primary); }
.rg-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.rg-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid #eceef5; border-radius: calc(var(--rg-radius) + 4px); box-shadow: 0 22px 40px -18px rgba(3,32,117,.35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.rg-menu .menu-item-has-children:hover > .sub-menu, .rg-menu .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rg-menu .sub-menu a { padding: 9px 12px; font-weight: 500; }
.rg-menu .sub-menu a:hover { background: #f3f5fb; }
.rg-sub-t { display: none; }
.rg-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.rg-burger span { display: block; height: 2px; background: var(--rg-primary); border-radius: 2px; transition: transform .25s, opacity .25s; }
.is-open .rg-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .is-open .rg-burger span:nth-child(2) { opacity: 0; } .is-open .rg-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
	:root { --rg-h: 64px; }
	.rg-logo img { height: 40px; } .rg-logo--2 { display: none; }
	.rg-burger { display: flex; }
	.rg-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 10px; background: #fff; border-bottom: 1px solid #eceef5; padding: 10px 16px 18px; max-height: calc(100vh - var(--rg-h) - 40px); overflow: auto; box-shadow: 0 24px 40px -24px rgba(3,32,117,.4); }
	.is-open .rg-nav { display: flex; }
	.rg-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rg-menu a { padding: 13px 8px; border-bottom: 1px solid #f0f1f6; border-radius: 0; }
	.rg-menu .menu-item-has-children { display: grid; grid-template-columns: 1fr 48px; align-items: stretch; }
	.rg-menu .menu-item-has-children > a::after { display: none; }
	.rg-sub-t { display: block; border: 0; border-bottom: 1px solid #f0f1f6; background: transparent; cursor: pointer; position: relative; }
	.rg-sub-t::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border-right: 2px solid var(--rg-primary); border-bottom: 2px solid var(--rg-primary); transform: rotate(45deg); transition: transform .2s; }
	.is-sub > .rg-sub-t::after { transform: rotate(-135deg); margin-top: -2px; }
	.rg-menu .sub-menu { position: static; grid-column: 1 / -1; display: none; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
	.rg-menu .is-sub > .sub-menu { display: block; }
	.rg-nav__cta { text-align: center; }
}

/* pages */
.rg-hero { background: linear-gradient(135deg, var(--rg-primary), #0a3aa8); color: #fff; padding: clamp(36px, 7vw, 72px) 0; }
.rg-hero h1 { margin: 0; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -.01em; }
.rg-page { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 7vw, 80px); }
.rg-entry { max-width: 820px; margin-inline: auto; }
.rg-page--wide .rg-entry { max-width: 1200px; }
.rg-entry h2 { color: var(--rg-primary); margin: 1.8em 0 .5em; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; } .rg-entry h2:first-child { margin-top: 0; }
.rg-entry p, .rg-entry li { font-size: 1.04rem; color: #3b4361; }
.rg-entry ul { padding-left: 1.2em; } .rg-entry li { margin: .35em 0; }
.rg-main--front { min-height: 40vh; }
.rg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.rg-card { border: 1px solid #e8ebf3; border-radius: calc(var(--rg-radius) + 4px); overflow: hidden; background: #fff; }
.rg-card__img img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rg-card__b { padding: 16px 18px 20px; } .rg-card h2 { margin: 0 0 8px; font-size: 1.1rem; } .rg-card h2 a { text-decoration: none; }

/* footer */
.rg-footer { background: #081538; color: #cfd6ee; margin-top: 0; }
.rg-footer__in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; padding: clamp(36px, 6vw, 64px) 0; }
.rg-footer p { margin: 14px 0 18px; font-size: 1.05rem; color: #fff; font-weight: 600; }
.rg-footer h2 { margin: 0 0 12px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #8fa0d6; }
.rg-footer ul { list-style: none; margin: 0; padding: 0; } .rg-footer li { margin: 0 0 8px; }
.rg-footer a:not(.rg-btn) { color: #fff; text-decoration: none; } .rg-footer a:not(.rg-btn):hover { text-decoration: underline; }
.rg-logo--chip { background: #fff; padding: 8px 14px; border-radius: var(--rg-radius); } .rg-logo--chip img { height: 38px; }
.rg-footer__copy { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 90px; font-size: .85rem; color: #8fa0d6; }
@media (max-width: 700px) { .rg-footer__in { grid-template-columns: 1fr; } }

.rg-title { margin: 0 0 .6em; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; color: var(--rg-primary); letter-spacing: -.01em; }
.rg-page--wide .rg-title { max-width: 1200px; }
.rg-main--builder { width: 100%; }
.rg-header { display: block !important; visibility: visible !important; }

/* About-style sections: text next to a photo */
.rg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin: clamp(32px, 6vw, 72px) 0; }
.rg-split--left .rg-split__img { order: -1; }
.rg-split__img { margin: 0; }
.rg-split__img img { display: block; width: 100%; height: auto; border-radius: calc(var(--rg-radius) + 4px); box-shadow: 0 24px 50px -30px rgba(3,32,117,.55); }
.rg-split--text { display: block; max-width: 820px; margin-inline: auto; }
.rg-split__txt > :first-child { margin-top: 0; } .rg-split__txt > :last-child { margin-bottom: 0; }
.rg-split__txt h2 { margin-top: 0; }
.rg-obj { padding-left: 1.3em; } .rg-obj li { margin: 0 0 14px; line-height: 1.6; } .rg-obj strong { color: var(--rg-primary); }
.rg-band { background: linear-gradient(135deg, var(--rg-primary), #0a3aa8); color: #fff; border-radius: calc(var(--rg-radius) + 6px); padding: clamp(28px, 5vw, 56px); margin: clamp(32px, 6vw, 72px) 0; text-align: center; }
.rg-band h2 { color: #fff; margin: 0 0 12px; } .rg-band p { color: #e6ecff; max-width: 760px; margin: 0 auto; font-size: 1.1rem; }
@media (max-width: 800px) { .rg-split { grid-template-columns: 1fr; } .rg-split--left .rg-split__img { order: 0; } }
