/* ===== v9: premium header and menu (shared by every page) ===== */
:root{--hdh:72px;--sv-line:#1E3345;--sv-card:#0E1B27;--sv-ink:#EAF1F6;--sv-mut:#9CB0BF;--sv-red:#E60F24;--sv-blue:#3CB0FD}
header#hd{background:#070E16e6;backdrop-filter:saturate(1.4) blur(18px);-webkit-backdrop-filter:saturate(1.4) blur(18px);border-bottom:1px solid #1E334566;transition:background .3s,box-shadow .3s}
header#hd.scrolled{background:#070E16f5;box-shadow:0 14px 40px -24px #000}
header#hd:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,#E60F24 25%,#3CB0FD 75%,transparent);opacity:.55}
/* desktop mega menu: a glass panel of blocks, aligned under the header */
.mega{top:calc(34px + var(--hdh)) !important;background:linear-gradient(180deg,#0E1B27f2,#0A1520f7) !important;backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);border:1px solid #1E3345;border-top:0;border-radius:0 0 22px 22px;position:absolute;box-shadow:0 40px 90px -30px #000d;visibility:hidden;opacity:0;transform:translateY(-10px);transition:opacity .28s ease,transform .36s cubic-bezier(.2,.7,.2,1),visibility .28s}
.mega.open{visibility:visible;opacity:1;transform:none}
.mega .mg-items a,.mega .mg-items a{transition:background .2s,transform .25s cubic-bezier(.2,.7,.2,1),border-color .2s;border-radius:14px}
.mega .mg-items a:hover,.mega .mg-items a:focus-visible{transform:translateY(-2px);background:#132332;border-color:#3CB0FD44}
.mega .mg-items .ico{transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.mega .mg-items a:hover .ico{transform:scale(1.08) rotate(-3deg)}
.mega .mg-rail button{transition:background .2s,color .2s;border-radius:10px}
.mega .mg-rail button[aria-selected=true]{position:relative}
.mega .mg-rail button[aria-selected=true]:before{content:"";position:absolute;left:-14px;top:12px;bottom:12px;width:3px;border-radius:3px;background:linear-gradient(180deg,#E60F24,#3CB0FD)}
.mega .mg-feat{border-radius:18px;overflow:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s}
.mega .mg-feat:hover{transform:translateY(-3px);box-shadow:0 24px 50px -24px #3CB0FD55}
/* burger: animated to a cross */
.burger{transition:background .2s,border-color .2s}
.burger i{transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .2s}
/* mobile and tablet drawer */
.drawer{background:#070E16f7 !important;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.drawer .dr-in{max-width:880px;margin:0 auto;padding:88px 22px 40px;display:grid;gap:0}
.drawer a.l{min-height:58px;display:flex;align-items:center;justify-content:space-between;font-size:19px;font-weight:600;letter-spacing:-.01em;border-bottom:1px solid #1E3345;transition:color .2s,padding .3s cubic-bezier(.2,.7,.2,1)}
.drawer a.l:hover{padding-left:8px;color:#3CB0FD}
.drawer details summary{min-height:58px;display:flex;align-items:center;justify-content:space-between;font-size:19px;font-weight:600;border-bottom:1px solid #1E3345;cursor:pointer}
.drawer .cta{position:sticky;bottom:0;margin-top:22px;display:grid;gap:10px;background:linear-gradient(180deg,transparent,#070E16 30%)}
@media(min-width:768px) and (max-width:1023px){
  .drawer .dr-in{grid-template-columns:1fr 1fr;column-gap:40px;padding-top:104px}
  .drawer h3{grid-column:1/-1}
  .drawer .dr-in>*:first-child{grid-column:1/-1}
  .drawer .dr-in>*:last-child{grid-column:1/-1}
  .drawer .cta{grid-column:1/-1;position:static;flex-direction:row}
}
/* footer columns respond to the screen width */
footer .fg4{display:grid;gap:36px 28px}
@media(min-width:1024px){footer .fg4{grid-template-columns:1.4fr 1fr 1fr 1fr}}
@media(min-width:600px) and (max-width:1023px){footer .fg4{grid-template-columns:1fr 1fr}}
@media(max-width:599px){footer .fg4{grid-template-columns:1fr}}

.mega:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,#E60F24,#3CB0FD);border-radius:2px}
