/* Consistent page rhythm; header/footer styling is copied from rusbac. */
:root{--container:1300px;--header-bg:#1f2f77;--surface-strong:rgba(255,255,255,.96);--text:#1d1d1d;--muted:#6b7280;--border:rgba(15,23,42,.08);--accent:#e0423f;--accent-hover:#c4201d;--button-text:#fff;--nav-link:#ffffff91;--nav-link-bg:transparent;--nav-link-hover:#ffffffbd;--nav-link-bg-hover:transparent;--nav-submenu-bg:#fff;--mainbar-height:84px;--header-gap:10px;--logo-width:140px}
body.mgimo-prep{padding-top:var(--prep-header-height);background:#f4f7fa}
.prep-container,.prep-wide-container{max-width:1300px}.prep-section,.prep-text-section,.prep-facilities,.prep-short-programs{padding:72px 32px}.prep-benefits{padding:64px 32px}.prep-benefits>.prep-section-title,.prep-benefits>.prep-carousel{max-width:1300px;margin-inline:auto}.prep-benefits-track{padding-inline:0;gap:24px}
.prep-section-title{margin-bottom:40px!important;line-height:1.2!important;font-size:32px}.prep-short-programs>.prep-container{max-width:1300px}.prep-course-grid,.prep-program-grid,.prep-facility-grid{gap:24px;align-items:stretch}.prep-course,.prep-program{display:flex;flex-direction:column;height:100%;border:1px solid #e6edf2;border-radius:18px;box-shadow:0 6px 24px #213e5b05}.prep-course-body,.prep-program-body{display:flex;flex-direction:column;flex:1;padding:28px}.prep-course-price{margin-top:auto;padding-top:24px}.prep-course-body>.prep-button{align-self:stretch;margin-top:4px}.prep-program-body>.prep-actions{margin-top:auto;display:grid;grid-template-columns:1fr;gap:10px}.prep-program-body>.prep-details{margin-top:24px}.prep-course-cover{height:250px;flex-shrink:0;padding:28px}.prep-course-cover h3{font-size:21px;line-height:1.3}.prep-course-fact{margin-bottom:16px;line-height:1.6}.prep-program h3{font-size:25px;line-height:1.3;margin-bottom:16px}.prep-program .prep-duration{margin-bottom:28px!important}.prep-program>img{height:240px!important;aspect-ratio:auto;mask:none}.prep-program-details{background:#fff;border-radius:18px;margin-top:24px;padding:32px;line-height:1.7}.prep-benefit{flex-basis:calc((100% - 48px)/3);padding:32px;line-height:1.65;font-size:16px;border:1px solid #e6edf2;box-shadow:0 6px 24px #213e5b05}.prep-benefit h3{font-size:25px;line-height:1.3;min-height:65px}.prep-benefit .prep-animation{width:100%;max-width:220px;height:210px;aspect-ratio:auto}.prep-facility{height:100%;min-height:420px;border-radius:18px;padding:100px 32px 32px}.prep-facility-title{font-size:30px;min-height:84px}.prep-facility-more{opacity:1}.prep-intro-inner{max-width:1300px}.prep-intro{padding:48px 32px}.prep-semester-content{padding:40px}.prep-text-section p{line-height:1.7}.prep-reviews-track{gap:24px}.prep-review{flex-basis:calc((100% - 48px)/3);height:460px;padding:24px}.prep-review-text{line-height:1.7}.prep-gallery{gap:20px}.mgimo-prep .prep-button{min-height:48px;border-radius:8px}.prep-section+.prep-section{padding-top:24px}
/* Consultation and registration, matching the supplied field-card design. */
.prep-consultation{padding:72px 32px 8px}.prep-consultation-box{max-width:1300px;grid-template-columns:25% 75%;padding:0 32px;border:1px solid #e6edf2;box-shadow:0 12px 36px #213e5b08;min-height:340px}.prep-consultation-content{padding:32px 0 32px 32px}.prep-form-slot{min-height:0}.prep-form{position:relative}.prep-form-short{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.prep-form-short>.prep-form-bottom{grid-column:1/-1}.prep-field{min-width:0;margin:0;padding:22px;background:#fff;border:0;border-radius:12px}.prep-form-short .prep-field{padding:0}.prep-field label,.prep-field legend{display:flex;gap:12px;justify-content:space-between;color:#404449;font-size:14px;font-weight:700;line-height:1.5;width:100%}.prep-required{color:#e0423f}.prep-field .prep-field-hint{font-size:14px;line-height:1.5;color:#6b7280;margin:6px 0 14px}.prep-field input:not([type=checkbox]){display:block;width:100%;min-width:0;min-height:48px;margin-top:12px;border:0;border-bottom:1px solid #dce3e9;border-radius:0;background:transparent;color:#2f3031;font:inherit;font-size:16px;padding:8px 0}.prep-field input:focus{outline:0;border-bottom-color:var(--prep-blue);box-shadow:0 2px 0 var(--prep-blue)}.prep-field input:focus-visible{outline:2px solid var(--prep-blue);outline-offset:4px;border-radius:2px}.prep-field input::placeholder{color:#9ca3af;font-size:14px}.prep-form-bottom{display:flex;align-items:center;gap:18px;margin-top:8px}.prep-form-status{font-size:14px!important;margin:0!important;color:#a42b29}.prep-form-status.is-success{color:#18733b}.prep-form-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.prep-form button:disabled{opacity:.55;cursor:wait}.prep-registration{max-width:none;padding:80px 24px 96px;min-height:0;background:url('../prep/2023/06/overlay-var-3.svg') center/cover no-repeat}.prep-registration>.prep-container{max-width:700px;padding:28px;background:#e7f0f3;border-radius:18px;box-shadow:0 18px 48px #20395112}.prep-registration .prep-form-slot{min-height:0}.prep-registration-heading{padding:0 6px 22px}.prep-registration-heading h1{font-size:27px;color:var(--prep-blue);margin-bottom:10px}.prep-registration-heading p{font-weight:700;font-size:16px;margin:0;line-height:1.5}.prep-form-full{display:grid;gap:12px}.prep-form-full .prep-field{padding:24px}.prep-form-full .prep-program-options{padding-top:20px}.prep-program-options legend{float:left;margin-bottom:16px}.prep-program-choices{clear:both;display:grid;gap:16px}.prep-program-choices label{justify-content:flex-start;align-items:flex-start;gap:12px;font-weight:400;font-size:14px;line-height:1.6;cursor:pointer}.prep-program-choices input{appearance:auto;flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:var(--prep-blue)}
/* Reference chrome with this site's bilingual menu and two contacts. */
.site-header,.site-footer{font-family:Montserrat,Arial,sans-serif;font-size:16px}.site-header .container,.site-footer .container{width:min(1300px,calc(100% - 48px));margin-inline:auto}.site-header{background:var(--header-bg)}.site-header.header-style-full .main-bar{width:auto;margin-left:0;position:static}.site-header.header-style-full .main-bar__wrap{width:auto;margin-left:0;padding:12px 0;background:var(--header-bg)!important}.site-header .main-bar__wrap{gap:24px}.site-header .site-logo img{width:140px;max-height:60px;object-fit:contain}.site-header .nav-menu{gap:4px}.site-header .nav-item.dropdown{display:flex;align-items:center;flex-wrap:wrap}.site-header .nav-item.dropdown>.nav-button{padding-right:2px}.site-header .prep-submenu-toggle{padding:8px;color:#ffffff91}.site-header .dropdown-menu .nav-button{color:#1d1d1d;min-height:42px;white-space:normal;line-height:1.4;justify-content:flex-start}.site-header .dropdown-menu{list-style:none;min-width:280px}.site-header .nav-item:has(>.prep-submenu-toggle[aria-expanded=true])>.dropdown-menu{opacity:1;visibility:visible;pointer-events:auto;transform:none}.prep-header-actions{display:flex;align-items:center;gap:16px}.prep-header-actions .language{transform:none}.site-header a:hover{text-decoration:none}.site-header .prep-menu-toggle{margin:0}.site-header .menu-toggle .line{stroke:#ffffff91}.site-header .menu-toggle.opened .line{stroke:#fff}.site-header .nav-button:focus-visible{color:#1f2f77!important}.site-footer .footer-grid{padding:40px 24px;gap:32px}.site-footer .footer-card__title{font:400 23.2px/1.2 Montserrat,sans-serif;color:#6b7280;margin-bottom:18px}.site-footer .footer-brand{margin-bottom:22px}.site-footer .footer-info-item{font-size:15.2px;line-height:1.45}.site-footer .footer-info-item a{color:#6b7280;overflow-wrap:anywhere}.site-footer .prep-footer-person{font:700 16px/1.5 Montserrat,sans-serif;margin-bottom:18px}.site-footer .site-footer__copy,.site-footer .site-footer__dev{font:400 14.72px/1.4 Montserrat,sans-serif;margin:0;color:#6b7280}.site-footer .site-footer__bottom{margin-top:16px}.site-footer .social-icon,.site-footer .footer-info-item__icon img{width:18px;height:18px}.prep-header-actions .header-cta{min-width:170px}
@media(min-width:1500px){.prep-benefit{flex-basis:calc((100% - 72px)/4)}.prep-reviews .prep-review{flex-basis:calc((100% - 48px)/3)}}
@media(max-width:1100px){.prep-header-actions .header-cta{display:none}.prep-consultation-box{grid-template-columns:22% 78%}.prep-form-short{grid-template-columns:1fr}.prep-phone{align-self:center}.prep-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.prep-program h3{font-size:22px}.prep-program-body,.prep-course-body{padding:24px}.prep-facility-title{font-size:25px}.prep-facility{padding:100px 24px 28px}.prep-benefit{flex-basis:calc((100% - 24px)/2)}}
@media(max-width:1024px){.site-header .main-bar__wrap{grid-template-columns:1fr auto auto}.site-header .header-menu{display:none}.site-header .header-menu.is-open{display:block;position:fixed;left:0;right:0;top:var(--prep-header-height);height:calc(100dvh - var(--prep-header-height));overflow:auto;background:var(--header-bg);padding:20px 24px 40px}.site-header .header-menu .nav-menu{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:0;border:0}.site-header .nav-item{width:100%}.site-header .nav-button{justify-content:flex-start;width:100%;min-height:46px;padding:12px 16px;white-space:normal;line-height:1.4}.site-header .nav-item.dropdown>.nav-button{flex:1}.site-header .dropdown-menu{display:none;position:static;width:100%;margin:0;padding:4px 12px;background:#ffffff0a;border-radius:12px}.site-header .dropdown-menu .nav-button{color:#ffffffb0}.site-header .nav-item:has(>.prep-submenu-toggle[aria-expanded=true])>.dropdown-menu{display:block}.site-header .prep-submenu-toggle{padding:12px 16px}.site-header .menu-toggle{display:inline-flex}}
@media(max-width:767px){.prep-section,.prep-text-section,.prep-facilities,.prep-short-programs,.prep-benefits{padding:44px 20px}.prep-section-title{font-size:26px!important}.prep-course-grid,.prep-program-grid,.prep-facility-grid{grid-template-columns:1fr;gap:24px}.prep-course-cover{height:230px;padding:24px}.prep-course{min-height:650px}.prep-program{min-height:490px}.prep-facility{height:380px;min-height:380px;padding:80px 28px 28px}.prep-facility-title{font-size:30px;min-height:80px}.prep-benefit{flex-basis:100%;padding:28px}.prep-review,.prep-reviews .prep-review{flex-basis:100%;height:460px;padding:20px}.prep-consultation{padding:40px 20px 0}.prep-consultation-box{display:block;padding:24px}.prep-consultation-content{padding:0}.prep-consultation-content h2{font-size:20px;max-width:none;line-height:1.4}.prep-form-short{gap:22px}.prep-phone{display:none}.prep-intro{padding:36px 20px}.prep-semester-content{padding:28px}.prep-registration{padding:40px 16px 56px}.prep-registration>.prep-container{padding:16px;border-radius:16px}.prep-registration-heading{padding:8px 4px 20px}.prep-registration-heading h1{font-size:25px}.prep-registration-heading p{font-size:14px}.prep-form-full .prep-field{padding:20px}.prep-form-bottom{align-items:stretch;flex-direction:column;gap:14px}.prep-form-bottom .prep-button{width:100%}.site-header .container,.site-footer .container{width:calc(100% - 32px)}.site-header .main-bar__wrap{gap:14px;min-height:78px}.site-header .main-bar{top:0}.site-header .site-logo .logo{width:140px!important;min-width:140px!important}.site-header .langButton a{min-width:34px;padding:4px 8px;font-size:13px}.site-header .prep-menu-toggle{width:40px;height:44px;padding:0}.site-header .prep-menu-toggle svg{width:44px;height:44px}.site-header .language{outline-offset:2px}.site-footer .footer-grid{padding:0;grid-template-columns:1fr;gap:0}.site-footer .footer-card{padding:20px}.site-footer .site-footer__bottom{margin-top:24px}.site-footer{padding:24px 0 20px}.prep-program-details{padding:24px}.prep-hero .prep-actions{gap:12px}}
.mgimo-prep .site-header .header-cta{color:#fff}.prep-registration{background-image:none;background-color:#f4f7fa}.site-header .container{width:100%;padding-inline:clamp(14px,3.2vw,44px)}
/* Overflow navigation: one row, continuous pointer area to the dropdown. */
.site-header .header-menu{min-width:0}.site-header .header-menu>.nav-menu{width:100%;flex-wrap:nowrap;justify-content:center}.site-header .header-menu>.nav-menu>.nav-item{flex-shrink:0}.site-header .dropdown-menu{top:100%;margin-top:0!important;transform:none!important}.site-header .dropdown-menu::before{content:'';position:absolute;left:0;right:0;top:-8px;height:8px}.site-header .prep-overflow-toggle{font-family:Montserrat,Arial,sans-serif;border:0;gap:7px;cursor:pointer}.site-header .prep-overflow-toggle>span::after{display:none!important}.site-header .prep-overflow-menu{right:0;left:auto;max-height:calc(100dvh - var(--prep-header-height) - 24px);overflow:auto;min-width:300px}.site-header .prep-overflow:has(>.prep-overflow-toggle[aria-expanded=true])>.dropdown-menu{opacity:1;visibility:visible;pointer-events:auto}.site-header .prep-overflow-menu>.nav-item{display:flex;width:100%;flex-wrap:wrap}.site-header .prep-overflow-menu>.nav-item>.nav-button{flex:1;justify-content:flex-start;padding:12px}.site-header .prep-overflow-menu .prep-submenu-toggle{color:#555}.site-header .prep-overflow-menu .dropdown-menu{position:static;display:none;max-height:none;min-width:0;width:100%;padding:0 0 0 16px;border:0;box-shadow:none}.site-header .prep-overflow-menu .dropdown-menu::before{display:none}.site-header .prep-overflow-menu .nav-item:hover>.dropdown-menu,.site-header .prep-overflow-menu .nav-item:focus-within>.dropdown-menu,.site-header .prep-overflow-menu .nav-item:has(>.prep-submenu-toggle[aria-expanded=true])>.dropdown-menu{display:block;opacity:1;visibility:visible;pointer-events:auto}
@media(max-width:1024px){.site-header .header-menu>.nav-menu{flex-direction:column;align-items:stretch}.site-header .header-menu>.nav-menu>.nav-item{flex-shrink:1}.site-header .prep-overflow{display:none!important}}
.prep-course-grid,.prep-program-grid{grid-auto-rows:1fr}
@media(max-width:767px){.prep-benefits .prep-carousel-prev{left:-18px}.prep-benefits .prep-carousel-next{right:-18px}}
.prep-intro-centered .prep-intro-inner{display:block;text-align:center;max-width:1000px;margin:0 auto}
.prep-intro-centered .prep-intro-inner>div:last-child{padding:0}
/* WordPress already reserves toolbar space on html; keep it out of header height. */
body.admin-bar.mgimo-prep .prep-site-header{top:var(--prep-admin-offset,32px);padding-top:6px!important}
@media(max-width:782px){body.admin-bar.mgimo-prep .prep-site-header{top:var(--prep-admin-offset,46px)}}
@media(max-width:767px){body.admin-bar.mgimo-prep .prep-site-header{padding-top:10px!important}}
@media(max-width:1024px){body.admin-bar.mgimo-prep .site-header .header-menu.is-open{top:calc(var(--prep-header-height) + var(--prep-admin-offset,0px))}}

/* Shared background and breathing room for consultation and benefits. */
.prep-consultation{background:#f4f7fa;padding-top:104px}
.prep-consultation-box{background:#fff}
@media(max-width:767px){.prep-consultation{padding-top:64px}}
/* Original curved image edge, shared by all course and program cards. */
.prep-course-cover,.prep-semester-image,.prep-program>img{
    -webkit-mask-image:url('../prep/2024/03/corner-mask.svg');
    mask-image:url('../prep/2024/03/corner-mask.svg');
    -webkit-mask-size:cover;
    mask-size:cover;
    -webkit-mask-position:center bottom;
    mask-position:center bottom;
    -webkit-mask-repeat:no-repeat;
    mask-repeat:no-repeat;
}

/* Edge-to-edge course images and blue headings below the photographs. */
.prep-course,.prep-program,.prep-semester-card{padding:0;overflow:hidden}
.prep-semester-card+.prep-semester-card{margin-top:24px}
.prep-course-description{margin:8px 0 18px;text-align:left;line-height:1.6}
.prep-course-body>.prep-duration{text-align:left;margin-bottom:18px!important}
.prep-course-cover,.prep-program>img,.prep-semester-image{display:block;width:100%;max-width:none;margin:0;border:0}
.prep-course-cover{padding:0}
.prep-course-cover::before{display:none}
.prep-course-body>h3,.prep-program-body>h3,.prep-semester-content>h3{color:var(--prep-blue);font-size:21px;font-weight:700;line-height:1.3;text-transform:uppercase;margin:0 0 20px}
.prep-semester-card{grid-template-columns:1fr}
.prep-semester-image{height:360px!important;min-height:0;object-fit:cover}
@media(max-width:767px){.prep-course-body>h3,.prep-program-body>h3,.prep-semester-content>h3{font-size:19px}.prep-semester-image{height:230px!important}}
/* Keep the course facts aligned even when titles wrap to different line counts. */
.prep-course-body>h3,.prep-program-body>h3{min-height:2.6em}
.prep-course-body,.prep-program-body,.prep-semester-content{text-align:left}
.prep-course-body>h3,.prep-program-body>h3,.prep-semester-content>h3{text-align:left}
/* Compact uppercase navigation and CTA. */
.mgimo-prep .site-header .nav-button,.mgimo-prep .site-header .prep-overflow-toggle{font-size:12px;text-transform:uppercase;letter-spacing:.02em;line-height:1.35;padding:10px 10px}
.mgimo-prep .site-header .nav-item.dropdown>.nav-button{padding-right:2px}
.mgimo-prep .site-header .dropdown-menu .nav-button{font-size:12px}
.mgimo-prep .site-header .header-cta{font-size:12px;letter-spacing:.02em;min-width:0;height:44px!important;padding:0 18px;text-transform:uppercase}
.mgimo-prep .site-header .main-bar__wrap{gap:18px}
.mgimo-prep .prep-header-actions{gap:12px}
@media(max-width:1024px){.mgimo-prep .site-header .header-menu .nav-button{min-height:44px;padding:12px 16px}}
/* Submenu links use their own readable hover palette instead of the dark-header palette. */
.mgimo-prep .site-header .dropdown-menu .nav-button{width:100%;justify-content:flex-start;color:#26344c;background:transparent;border-radius:8px;box-shadow:none;transform:none;transition:color .15s ease,background-color .15s ease}
.mgimo-prep .site-header .dropdown-menu .nav-button:hover,.mgimo-prep .site-header .dropdown-menu .nav-button:focus-visible{color:#1f2f77!important;background:#edf3fa;box-shadow:none;transform:none}
.mgimo-prep .site-header .dropdown-menu .nav-button::after{display:none}
.mgimo-prep .site-header .dropdown-menu .nav-button:focus-visible{outline:2px solid #1e80d5;outline-offset:-2px}
@media(max-width:1024px){
.mgimo-prep .site-header .dropdown-menu .nav-button{color:#ffffffc9}
.mgimo-prep .site-header .dropdown-menu .nav-button:hover,.mgimo-prep .site-header .dropdown-menu .nav-button:focus-visible{color:#fff!important;background:#ffffff18}
}
/* The toolbar offset is external to the 84px header itself. */
body.mgimo-prep .prep-site-header,body.admin-bar.mgimo-prep .prep-site-header{padding-top:0!important;height:84px;max-height:84px;--mainbar-height:84px}
body.mgimo-prep .prep-site-header .main-bar__wrap{height:84px;min-height:84px;max-height:84px;padding-block:10px}
