.cms-blocks{
  width:min(1180px,calc(100% - 40px));
  margin:120px auto 78px;
  display:grid;
  gap:28px;
}
.cms-managed-main{padding-top:1px}
.cms-section{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(20,103,232,.14);
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(242,247,255,.92));
  box-shadow:0 22px 60px rgba(20,72,142,.10);
  padding:34px;
}
.cms-hero{
  min-height:430px;
  align-items:center;
  background:radial-gradient(circle at 92% 10%,rgba(102,183,255,.28),transparent 34%),linear-gradient(135deg,rgba(255,255,255,.96),rgba(237,246,255,.94));
}
.cms-hero h2{font-size:clamp(36px,5vw,66px);letter-spacing:-2.5px}
.cms-priority .cms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.cms-priority .cms-card:first-child{background:linear-gradient(145deg,#0b50b4,#1479ef);color:#fff}
.cms-priority .cms-card:first-child .cms-rich,.cms-priority .cms-card:first-child .cms-card-link{color:rgba(255,255,255,.78)}
.cms-process{background:linear-gradient(135deg,#0b2144,#0a56ad);color:#fff}
.cms-process h2,.cms-process .cms-card h3{color:#fff}
.cms-process .cms-rich{color:rgba(255,255,255,.68)}
.cms-steps{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.cms-step{
  min-height:180px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px;
  background:rgba(255,255,255,.1);
  padding:22px;
  backdrop-filter:blur(12px);
}
.cms-step b{color:#82c3ff;font-size:13px}
.cms-step h3{margin:16px 0 8px;color:#fff}
.cms-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.cms-gallery-item{
  margin:0;
  overflow:hidden;
  border-radius:20px;
  border:1px solid rgba(20,103,232,.12);
  background:#fff;
  box-shadow:0 12px 28px rgba(18,61,115,.07);
}
.cms-gallery-item img{display:block;width:100%;height:220px;object-fit:cover}
.cms-gallery-item figcaption{padding:12px 14px;color:#526173;font-weight:700}

.cms-gallery{
  background:linear-gradient(180deg,#fbfdff 0%,#f3f8ff 100%);
}
.cms-gallery .cms-gallery-grid{
  grid-template-columns:1.25fr .875fr .875fr;
  gap:18px;
}
.cms-gallery .cms-gallery-item{
  position:relative;
  min-height:260px;
  border-radius:26px;
  border:1px solid rgba(9,88,217,.10);
  box-shadow:0 24px 70px rgba(38,78,134,.12);
}
.cms-gallery .cms-gallery-item:first-child{
  grid-row:span 2;
  min-height:540px;
}
.cms-gallery .cms-gallery-item img{
  height:100%;
  transition:transform .45s ease;
}
.cms-gallery .cms-gallery-item:hover img{
  transform:scale(1.035);
}
.cms-gallery .cms-gallery-item figcaption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  padding:14px 15px;
  border-radius:16px;
  background:rgba(7,22,45,.68);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  color:#fff;
}
.cms-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  background:linear-gradient(120deg,#071a38,#0a5ec3);
  color:#fff;
}
.cms-cta h2{color:#fff}
.cms-cta .cms-rich{color:rgba(255,255,255,.7)}
.cms-cta .cms-action{background:#fff;color:#1467e8}
.cms-section:before{
  content:"";
  position:absolute;
  inset:auto -90px -140px auto;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(20,103,232,.18),rgba(20,103,232,0) 70%);
  pointer-events:none;
}
.cms-kicker{
  margin:0 0 10px;
  color:#1467e8;
  font-size:14px;
  font-weight:700;
  letter-spacing:.08em;
}
.cms-section h2{
  position:relative;
  margin:0 0 14px;
  color:#0d1b35;
  font-size:clamp(26px,3vw,42px);
  line-height:1.15;
}
.cms-section.cms-cta h2{
  color:#fff;
}
.cms-rich{
  position:relative;
  color:#526173;
  font-size:16px;
  line-height:1.78;
}
.cms-rich p{
  margin:0 0 10px;
}
.cms-intro{
  max-width:760px;
  margin-bottom:22px;
}
.cms-banner{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
  align-items:center;
  gap:28px;
  min-height:320px;
}
.cms-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:44px;
  margin-top:16px;
  padding:0 20px;
  border-radius:999px;
  background:#1467e8;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(20,103,232,.22);
}
.cms-section.cms-cta .cms-action{
  flex:0 0 auto;
  min-width:132px;
  white-space:nowrap;
  background:#fff;
  color:#1467e8;
}
.cms-visual{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  min-height:230px;
  box-shadow:inset 0 0 0 1px rgba(20,103,232,.08);
}
.cms-visual img{
  width:100%;
  height:100%;
  min-height:230px;
  display:block;
  object-fit:cover;
}
.cms-grid{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.cms-card{
  min-height:180px;
  border:1px solid rgba(20,103,232,.12);
  border-radius:20px;
  background:rgba(255,255,255,.86);
  padding:22px;
  box-shadow:0 12px 28px rgba(18,61,115,.07);
}
.cms-card-img{
  width:100%;
  height:152px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:16px;
}
.cms-card h3{
  margin:6px 0 10px;
  color:#0d1b35;
  font-size:20px;
}
.cms-tag{
  display:inline-flex;
  margin-bottom:8px;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(20,103,232,.09);
  color:#1467e8;
  font-size:12px;
  font-weight:700;
}
.cms-card-link{
  display:inline-flex;
  margin-top:10px;
  color:#1467e8;
  font-weight:700;
  text-decoration:none;
}
.cms-faq-list{
  position:relative;
  display:grid;
  gap:12px;
}
.cms-faq-item{
  border:1px solid rgba(20,103,232,.12);
  border-radius:16px;
  background:rgba(255,255,255,.9);
  padding:0 18px;
}
.cms-faq-item summary{
  cursor:pointer;
  padding:18px 0;
  color:#0d1b35;
  font-weight:800;
}
.cms-faq-item .cms-rich{
  padding:0 0 16px;
}
.cms-text{
  max-width:920px;
}
@media(max-width:900px){
  .cms-banner{grid-template-columns:1fr}
  .cms-grid{grid-template-columns:1fr 1fr}
  .cms-steps{grid-template-columns:1fr 1fr}
  .cms-gallery-grid{grid-template-columns:1fr 1fr}
  .cms-gallery .cms-gallery-grid{grid-template-columns:1fr 1fr}
  .cms-gallery .cms-gallery-item:first-child{
    grid-column:1/-1;
    grid-row:auto;
    min-height:390px;
  }
  .cms-gallery .cms-gallery-item{min-height:260px}
  .cms-cta{display:block}
}
@media(max-width:640px){
  .cms-blocks{width:min(100% - 24px,1180px);margin-bottom:54px}
  .cms-section{border-radius:20px;padding:24px}
  .cms-section.cms-cta{
    padding:30px 24px;
  }
  .cms-section.cms-cta h2{
    font-size:clamp(27px,8vw,34px);
    line-height:1.18;
  }
  .cms-section.cms-cta .cms-action{
    width:max-content;
    max-width:100%;
    height:48px;
    padding:0 22px;
  }
  .cms-grid{grid-template-columns:1fr}
  .cms-priority .cms-grid,.cms-steps,.cms-gallery-grid{grid-template-columns:1fr}
  .cms-gallery .cms-gallery-grid{grid-template-columns:1fr}
  .cms-gallery .cms-gallery-item,
  .cms-gallery .cms-gallery-item:first-child{min-height:280px}
  .cms-gallery .cms-gallery-item figcaption{
    left:12px;
    right:12px;
    bottom:12px;
  }
  .cms-gallery-item img{height:190px}
}

/* Dark CMS blocks text guard: prevent global card/title rules from turning text black on blue backgrounds. */
.cms-section.cms-process,
.cms-section.cms-cta,
.cms-priority .cms-card:first-child{
  color:#fff;
}
.cms-section.cms-process h2,
.cms-section.cms-process h3,
.cms-section.cms-process .cms-step h3,
.cms-section.cms-cta h2,
.cms-priority .cms-card:first-child h3{
  color:#fff;
}
.cms-section.cms-process .cms-kicker,
.cms-section.cms-cta .cms-kicker{
  color:#8fc7ff;
}
.cms-section.cms-process .cms-rich,
.cms-section.cms-process .cms-rich p,
.cms-section.cms-process .cms-intro,
.cms-section.cms-cta .cms-rich,
.cms-section.cms-cta .cms-rich p,
.cms-priority .cms-card:first-child .cms-rich,
.cms-priority .cms-card:first-child .cms-rich p{
  color:rgba(255,255,255,.72);
}
.cms-section.cms-process .cms-step{
  color:#fff;
}
.cms-section.cms-process .cms-step b{
  color:#82c3ff;
}
.cms-section.cms-cta .cms-action{
  background:#fff;
  color:#1467e8;
}
