:root {
    --msd-ink: #262229;
    --msd-muted: #615b65;
    --msd-violet: #7137df;
    --msd-violet-dark: #5b23c5;
    --msd-lavender: #efe6ff;
    --msd-yellow: #ffc928;
    --msd-orange: #ff772d;
    --msd-green: #91c91c;
    --msd-cream: #fffaf0;
    --msd-line: #e8e2e9;
    --msd-white: #fff;
    --msd-radius: 22px;
    --msd-shadow: 0 16px 45px rgba(74, 43, 105, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.msd-home { margin: 0; color: var(--msd-ink); background: var(--msd-white); font-family: "Quicksand", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
.msd-site-notice { padding: 10px 20px; color: #fff; background: linear-gradient(90deg, #7137df, #8e56ed); text-align: center; font-weight: 700; }
.msd-site-notice a, .msd-site-notice > span { color: inherit; text-decoration: none; }
.msd-site-notice a:hover { text-decoration: underline; }
.msd-home img { display: block; max-width: 100%; }
.msd-home a { color: inherit; text-decoration: none; }
.msd-wrap { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.msd-skip { position: fixed; top: -100px; left: 16px; z-index: 999; padding: 10px 16px; background: var(--msd-ink); color: #fff !important; border-radius: 8px; }
.msd-skip:focus { top: 16px; }

.msd-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(231,224,235,.75); backdrop-filter: blur(12px); }
.msd-header__inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.msd-logo { flex: 0 0 218px; }
.msd-logo img { width: 218px; height: auto; }
.msd-nav { display: flex; align-items: center; justify-content: center; gap: 26px; margin-left: auto; font-weight: 600; }
.msd-nav a { position: relative; white-space: nowrap; }
.msd-nav a:hover, .msd-nav a:focus, .msd-nav .is-current { color: var(--msd-violet); }
.msd-nav .is-current::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 3px; background: var(--msd-violet); border-radius: 3px; }
.msd-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 25px; border-radius: 12px; color: #fff !important; background: linear-gradient(135deg, var(--msd-violet), var(--msd-violet-dark)); font-weight: 700; box-shadow: 0 10px 25px rgba(113,55,223,.24); transition: transform .2s ease, box-shadow .2s ease; }
.msd-button:hover, .msd-button:focus { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(113,55,223,.31); }
.msd-button--small { min-height: 44px; padding-inline: 19px; white-space: nowrap; }
.msd-menu-toggle { display: none; min-width: 92px; height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 13px; border: 2px solid rgba(113,55,223,.18); border-radius: 12px; color: var(--msd-violet); background: var(--msd-lavender); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.msd-menu-toggle__icon { position: relative; display: block !important; width: 22px !important; height: 14px !important; flex: 0 0 22px; margin: 0 !important; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0 !important; background: none !important; }
.msd-menu-toggle__icon::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.msd-menu-toggle[aria-expanded="true"] .msd-menu-toggle__icon { border-color: transparent; }
.msd-menu-toggle[aria-expanded="true"] .msd-menu-toggle__icon::before, .msd-menu-toggle[aria-expanded="true"] .msd-menu-toggle__icon::after { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.msd-menu-toggle[aria-expanded="true"] .msd-menu-toggle__icon::after { transform: rotate(-45deg); }
.msd-nav__group { position: relative; }
.msd-nav__group > button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.msd-submenu { position: absolute; top: calc(100% + 18px); left: 50%; z-index: 110; display: none; width: 230px; padding: 10px; border: 1px solid var(--msd-line); border-radius: 15px; background: #fff; box-shadow: var(--msd-shadow); transform: translateX(-50%); }
.msd-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; }
.msd-submenu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--msd-ink); font-size: 14px; }
.msd-submenu a:hover { background: var(--msd-lavender); }
.msd-nav__group:hover .msd-submenu, .msd-nav__group:focus-within .msd-submenu, .msd-nav__group.is-open .msd-submenu { display: block; }
.msd-nav__list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.msd-nav__list > li { position: relative; margin: 0; }
.msd-nav__list a { display: block; }
.msd-nav__list .menu-item-has-children > a::after { content: "⌄"; margin-left: 5px; }
.msd-nav__list .sub-menu { position: absolute; top: calc(100% + 18px); left: 50%; z-index: 110; display: none; width: 230px; margin: 0; padding: 10px; border: 1px solid var(--msd-line); border-radius: 15px; background: #fff; box-shadow: var(--msd-shadow); list-style: none; transform: translateX(-50%); }
.msd-nav__list .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px; }
.msd-nav__list .sub-menu li { margin: 0; }
.msd-nav__list .sub-menu a { padding: 10px 12px; border-radius: 9px; color: var(--msd-ink); font-size: 14px; }
.msd-nav__list .sub-menu a:hover { background: var(--msd-lavender); }
.msd-nav__list .menu-item-has-children:hover > .sub-menu, .msd-nav__list .menu-item-has-children:focus-within > .sub-menu, .msd-nav__list .menu-item-has-children.is-open > .sub-menu { display: block; }
.msd-nav__list > .current-menu-item > a, .msd-nav__list > .current-menu-ancestor > a { color: var(--msd-violet); }

.msd-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 18% 10%, #fff7df 0, transparent 30%), linear-gradient(105deg, #fffdf8, #fff9ee 51%, #f7f0ff); }
.msd-hero__grid { min-height: 570px; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 60px; padding-block: 64px; }
.msd-hero__copy { position: relative; z-index: 2; }
.msd-hero h1 { margin: 0 0 22px; font-size: clamp(48px, 5vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.msd-hero h1 em { position: relative; color: var(--msd-violet); font-family: "Courgette", cursive; font-weight: 400; white-space: nowrap; }
.msd-hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; border-top: 4px solid var(--msd-violet); border-radius: 50%; transform: rotate(-2deg); }
.msd-hero__copy > p { max-width: 540px; margin: 0 0 30px; color: var(--msd-muted); font-size: 18px; }
.msd-doodle { position: absolute; color: var(--msd-yellow); font-size: 42px; }
.msd-doodle--moon { width: 22px; height: 22px; left: -46px; top: 30px; border: 4px solid var(--msd-violet); border-right-color: transparent; border-radius: 50%; }
.msd-doodle--heart { right: 30px; top: 4px; transform: rotate(-12deg); }
.msd-hero__visual { position: relative; height: 460px; }
.msd-hero__visual::before { content: ""; position: absolute; inset: 28px -70px -70px 80px; background: #decfff; border-radius: 46% 54% 42% 58% / 62% 42% 58% 38%; transform: rotate(4deg); }
.msd-hero__photo { position: absolute; overflow: hidden; box-shadow: var(--msd-shadow); background: #ddd; }
.msd-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.msd-hero__photo--large { inset: 0 0 0 95px; border-radius: 44% 34% 42% 31% / 39% 43% 36% 45%; }
.msd-hero__photo--large img { object-position: center 37%; }
.msd-hero__photo--small { width: 205px; height: 235px; left: 0; bottom: -20px; border: 8px solid #fff; border-radius: 48% 52% 45% 55% / 44% 42% 58% 56%; }
.msd-flower { position: absolute; right: -24px; bottom: 5px; color: var(--msd-violet); font-size: 88px; line-height: 1; transform: rotate(12deg); }

.msd-benefits { position: relative; z-index: 3; margin-top: -20px; }
.msd-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.msd-benefit { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; min-height: 132px; padding: 22px; border-radius: var(--msd-radius); box-shadow: 0 10px 30px rgba(30,20,40,.07); }
.msd-benefit--green { background: #f3fae7; }
.msd-benefit--violet { background: #f4edff; }
.msd-benefit--orange { background: #fff0e7; }
.msd-benefit__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: #fff; font-size: 35px; font-family: Arial, sans-serif; }
.msd-benefit--green .msd-benefit__icon { background: var(--msd-green); }
.msd-benefit--violet .msd-benefit__icon { background: #9858ec; }
.msd-benefit--orange .msd-benefit__icon { background: var(--msd-orange); }
.msd-benefit h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.2; }
.msd-benefit p { margin: 0; color: var(--msd-muted); font-size: 14px; line-height: 1.4; }

.msd-section { padding-block: 78px; }
.msd-section__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.msd-section__head h2 { position: relative; margin: 0; font-size: 32px; line-height: 1.1; }
.msd-section__head h2::after { content: ""; position: absolute; left: 3px; bottom: -9px; width: 62px; border-top: 4px solid var(--msd-violet); border-radius: 50%; transform: rotate(-3deg); }
.msd-section__head > a { color: var(--msd-violet); font-weight: 700; }
.msd-news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.msd-news-card { min-width: 0; overflow: hidden; display: grid; grid-template-columns: 44% 56%; min-height: 218px; border: 1px solid var(--msd-line); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.msd-news-card:hover { transform: translateY(-4px); box-shadow: var(--msd-shadow); }
.msd-news-card__image { overflow: hidden; background: var(--msd-lavender); }
.msd-news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.msd-news-card:hover .msd-news-card__image img { transform: scale(1.04); }
.msd-news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--msd-violet); font-size: 56px; }
.msd-news-card__body { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.msd-news-card time { color: var(--msd-violet); font-size: 13px; font-weight: 700; }
.msd-news-card h3 { margin: 6px 0 8px; font-size: 19px; line-height: 1.25; }
.msd-news-card p { margin: 0 0 12px; color: var(--msd-muted); font-size: 14px; line-height: 1.45; }
.msd-text-link { margin-top: auto; color: var(--msd-violet) !important; font-weight: 700; font-size: 14px; }

.msd-operation { padding-top: 42px; background: linear-gradient(180deg, #fff, #fdfbff); }
.msd-operation__head { align-items: flex-end; }
.msd-operation__head h2 { margin-bottom: 3px; }
.msd-operation__head p { margin: 0; color: var(--msd-muted); font-size: 14px; font-weight: 600; }
.msd-operation__head > span { color: var(--msd-violet); font-size: 30px; }
.msd-operation__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.msd-operation-card { min-width: 0; padding: 23px 18px 20px; border: 1px solid var(--msd-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(55,39,68,.06); }
.msd-operation-card__icon { display: block; min-height: 45px; margin-bottom: 8px; font-size: 38px; line-height: 1; }
.msd-operation-card h3 { min-height: 44px; margin: 0 0 13px; font-size: 17px; line-height: 1.3; }
.msd-operation-card__items { display: grid; gap: 12px; }
.msd-operation-item { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; padding-top: 11px; border-top: 1px dashed #ded5e3; }
.msd-operation-item time { color: var(--msd-ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.msd-operation-item small { color: var(--msd-muted); font-size: 12px; }
.msd-operation-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; }
.msd-operation-status--open { color: #31711f; background: #e8f7df; }
.msd-operation-status--closed { color: #a63a32; background: #fff0ed; }
.msd-operation-status--conditional { color: #8a6200; background: #fff5cf; }
.msd-operation-card--1 .msd-operation-card__icon { color: #ef6d2f; }
.msd-operation-card--2 .msd-operation-card__icon { color: #b58a37; }
.msd-operation-card--3 .msd-operation-card__icon { color: #3c9a32; }
.msd-operation-card--4 .msd-operation-card__icon { color: #e45a82; }
.msd-operation-card--5 .msd-operation-card__icon { color: #edae00; }

.msd-community { padding-top: 5px; }
.msd-community__grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 58px; align-items: start; }
.msd-team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.msd-avatar--photo { display: block; object-fit: cover; }
.msd-person { text-align: center; }
.msd-avatar { display: grid; place-items: center; width: 100px; height: 100px; margin: 0 auto 13px; border-radius: 45% 55% 48% 52% / 54% 42% 58% 46%; color: #fff; font-size: 29px; font-weight: 700; box-shadow: 0 10px 25px rgba(63,38,82,.16); }
.msd-avatar--violet { background: linear-gradient(145deg, #a46aef, #7137df); }
.msd-avatar--yellow { background: linear-gradient(145deg, #ffd95c, #efaa00); }
.msd-avatar--orange { background: linear-gradient(145deg, #ff9d68, #f05b20); }
.msd-person h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.msd-person p { margin: 4px 0 0; color: var(--msd-muted); font-size: 13px; }
.msd-gallery { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: repeat(2, 135px); gap: 12px; }
.msd-gallery a { overflow: hidden; border-radius: 16px; }
.msd-gallery a:first-child { grid-row: 1 / 3; }
.msd-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.msd-gallery a:hover img { transform: scale(1.05); }

.msd-enrolment { padding: 12px 0 54px; }
.msd-enrolment__inner { display: grid; grid-template-columns: 62px 1.15fr 1fr auto; gap: 22px; align-items: center; padding: 26px 30px; border-radius: var(--msd-radius); background: linear-gradient(95deg, #f5edff, #fff2fa); }
.msd-enrolment__icon { display: grid; place-items: center; width: 60px; height: 60px; border: 2px solid #a76cf0; border-radius: 15px; color: var(--msd-violet); font-size: 31px; }
.msd-enrolment h2 { margin: 0; font-size: 27px; }
.msd-enrolment p { margin: 3px 0 0; color: var(--msd-muted); }
.msd-enrolment__contact { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.msd-enrolment__contact a { color: var(--msd-violet); }

.msd-footer { padding: 42px 0 20px; border-top: 1px solid var(--msd-line); background: #fff; }
.msd-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.msd-footer__brand img { width: 210px; height: auto; margin-bottom: 13px; }
.msd-footer h2 { margin: 0 0 13px; font-size: 16px; }
.msd-footer p { margin: 0; color: var(--msd-muted); font-size: 14px; }
.msd-footer__grid > div:not(.msd-footer__brand) { display: flex; flex-direction: column; align-items: flex-start; }
.msd-footer__grid a { margin-bottom: 6px; color: var(--msd-muted); font-size: 14px; }
.msd-footer__grid a:hover { color: var(--msd-violet); }
.msd-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--msd-line); color: #777078; font-size: 12px; }
.msd-footer__bottom a { color: var(--msd-violet); font-weight: 700; }

/* Inner pages */
.msd-page-hero { overflow: hidden; background: radial-gradient(circle at 85% 30%, #eadcff 0, transparent 27%), linear-gradient(105deg, #fffaf0, #fbf7ff); }
.msd-page-hero--enrolment { background: radial-gradient(circle at 80% 25%, #ffedb2 0, transparent 30%), linear-gradient(105deg, #f6edff, #fffaf2); }
.msd-page-hero--about { background: radial-gradient(circle at 12% 20%, #fff0bd 0, transparent 27%), linear-gradient(105deg, #fffaf0, #f6edff); }
.msd-page-hero__inner { min-height: 315px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 65px; }
.msd-page-hero h1 { margin: 12px 0 8px; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.msd-page-hero p { max-width: 620px; margin: 18px 0 0; color: var(--msd-muted); font-size: 18px; }
.msd-breadcrumbs { display: flex; gap: 9px; color: var(--msd-violet); font-size: 14px; font-weight: 700; }
.msd-breadcrumbs span:last-child { color: var(--msd-muted); }
.msd-page-hero__art { flex: 0 0 auto; color: var(--msd-violet); font-size: clamp(44px, 7vw, 90px); letter-spacing: .12em; transform: rotate(-8deg); }
.msd-about-hero-photo { width: min(54%, 650px); height: 270px; overflow: hidden; border-radius: 45% 35% 42% 32% / 43% 46% 35% 40%; box-shadow: var(--msd-shadow); }
.msd-about-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.msd-about { padding-top: 48px; }
.msd-about-intro { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 46px; margin-bottom: 58px; }
.msd-about-intro > img { width: 100%; height: 330px; object-fit: cover; border-radius: 22px; box-shadow: var(--msd-shadow); }
.msd-about-intro h2 { margin: 8px 0 15px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.msd-about-intro p, .msd-about-details p { color: var(--msd-muted); }
.msd-kicker { color: var(--msd-violet); font-weight: 700; }
.msd-about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.msd-about-values article { padding: 27px; border-radius: 20px; background: #f4ebff; }
.msd-about-values article:nth-child(2) { background: #f2f8df; }
.msd-about-values article:nth-child(3) { background: #fff0e4; }
.msd-about-values article > span { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; color: #fff; background: var(--msd-violet); font-size: 27px; }
.msd-about-values article:nth-child(2) > span { background: var(--msd-green); }
.msd-about-values article:nth-child(3) > span { background: var(--msd-orange); }
.msd-about-values h3 { margin: 15px 0 8px; font-size: 19px; }
.msd-about-values p { margin: 0; color: var(--msd-muted); font-size: 14px; }
.msd-about-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 35px 0 62px; padding: 20px; border-radius: 18px; background: linear-gradient(90deg, #fff8e9, #f8f0ff); }
.msd-about-facts div { display: flex; flex-direction: column; align-items: center; padding: 7px 15px; border-right: 1px dashed #d9cfde; }
.msd-about-facts div:last-child { border-right: 0; }
.msd-about-facts strong { font-size: 27px; }
.msd-about-facts span { color: var(--msd-muted); font-size: 13px; }
.msd-about-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 58px; }
.msd-about-places article { overflow: hidden; border: 1px solid var(--msd-line); border-radius: 18px; background: #fff; }
.msd-about-places img { width: 100%; height: 210px; object-fit: cover; }
.msd-about-places article div { padding: 20px; }
.msd-about-places h3 { margin: 0 0 8px; }
.msd-about-places p { margin: 0; color: var(--msd-muted); font-size: 14px; }
.msd-about-activities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.msd-about-activities article { text-align: center; }
.msd-about-activities img { width: 100%; height: 125px; object-fit: cover; border-radius: 15px; }
.msd-about-activities h3 { margin: 8px 0 0; font-size: 14px; }
.msd-about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 35px; padding: 30px; border-radius: 18px; background: #fffaf0; }
.msd-about-details p { margin: 0; }
.msd-about-quote { max-width: 900px; margin: 45px auto 0; padding: 37px 55px; border: 0; border-radius: 22px; color: #3d2d49; background: linear-gradient(135deg, #f0e4ff, #fbf7ff); text-align: center; font-size: clamp(23px, 3vw, 34px); font-weight: 700; line-height: 1.3; }
.msd-about-news-head { margin-top: 62px; }
.msd-enrolment-hero-photo { position: relative; }
.msd-enrolment-hero-photo > span { position: absolute; right: 24px; bottom: 18px; padding: 10px 18px; border-radius: 999px; background: #ffe598; font-weight: 700; }
.msd-enrolment-page { padding-top: 48px; }
.msd-enrolment-top { display: grid; grid-template-columns: .75fr 1.55fr; gap: 34px; align-items: stretch; }
.msd-enrolment-date { position: relative; padding: 33px; border: 1px solid #ddcdf5; border-radius: 20px; background: linear-gradient(145deg, #f3ebff, #fff); text-align: center; }
.msd-enrolment-date__label { display: inline-block; padding: 6px 13px; border-radius: 999px; color: #fff; background: var(--msd-orange); font-size: 13px; font-weight: 700; }
.msd-enrolment-date__icon { display: block; margin: 15px auto 4px; color: var(--msd-violet); font-size: 48px; line-height: 1; }
.msd-enrolment-date h2 { margin: 5px 0; font-size: 23px; }
.msd-enrolment-date strong { display: block; margin: 8px 0; color: var(--msd-violet); font-size: clamp(25px, 3vw, 38px); line-height: 1.1; }
.msd-enrolment-date p { margin: 12px 0 0; color: var(--msd-muted); }
.msd-enrolment-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.msd-enrolment-steps article { position: relative; padding: 25px 20px 20px; border: 1px solid var(--msd-line); border-radius: 17px; }
.msd-enrolment-steps b { display: grid; width: 39px; height: 39px; place-items: center; margin-bottom: 16px; border-radius: 50%; color: #fff; background: var(--msd-violet); font-size: 20px; }
.msd-enrolment-steps article:nth-child(2) b { background: var(--msd-green); }
.msd-enrolment-steps article:nth-child(3) b { background: var(--msd-orange); }
.msd-enrolment-steps h3 { margin: 0 0 7px; font-size: 17px; }
.msd-enrolment-steps p { margin: 0; color: var(--msd-muted); font-size: 13px; }
.msd-enrolment-content { display: grid; grid-template-columns: 2fr .9fr; gap: 30px; margin-top: 55px; align-items: start; }
.msd-document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.msd-document-grid article { display: flex; min-height: 290px; flex-direction: column; align-items: flex-start; padding: 25px; border: 1px solid var(--msd-line); border-radius: 18px; background: #fff; }
.msd-document-icon { display: grid; width: 55px; height: 55px; place-items: center; border-radius: 15px; color: var(--msd-violet); background: #f0e7ff; font-size: 30px; }
.msd-document-grid article:nth-child(2) .msd-document-icon { color: #659c00; background: #eff7dc; }
.msd-document-grid article:nth-child(3) .msd-document-icon { color: #dc571e; background: #fff0e6; }
.msd-document-grid h3 { margin: 17px 0 7px; }
.msd-document-grid p { margin: 0 0 18px; color: var(--msd-muted); font-size: 13px; }
.msd-document-grid .msd-button { width: 100%; margin-top: auto; justify-content: center; padding: 11px 13px; font-size: 13px; }
.msd-enrolment-checklist { margin-top: 54px; padding: 29px; border-radius: 20px; background: linear-gradient(145deg, #f1f8df, #fffdf5); }
.msd-enrolment-checklist h2 { margin: 0 0 17px; }
.msd-enrolment-checklist ul { margin: 0; padding: 0; list-style: none; }
.msd-enrolment-checklist li { position: relative; margin: 13px 0; padding-left: 30px; }
.msd-enrolment-checklist li::before { content: "✓"; position: absolute; left: 0; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #fff; background: #78aa13; font-size: 12px; font-weight: 700; }
.msd-enrolment-help { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 28px; margin-top: 40px; padding: 27px 32px; border-radius: 20px; background: linear-gradient(105deg, #fff5e8, #f5edff); }
.msd-enrolment-help > div { display: flex; align-items: center; gap: 18px; }
.msd-enrolment-help > div:nth-child(2) { flex-direction: column; align-items: flex-start; gap: 5px; }
.msd-enrolment-help h2, .msd-enrolment-help p { margin: 0; }
.msd-enrolment-help a:not(.msd-button) { color: var(--msd-violet); font-weight: 700; }
.msd-documents-hero-art { position: relative; width: 360px; height: 190px; color: var(--msd-violet); }
.msd-documents-hero-art span { position: absolute; right: 55px; bottom: 5px; font-size: 150px; line-height: 1; transform: rotate(-3deg); }
.msd-documents-hero-art b { position: absolute; left: 105px; top: 5px; color: #fff; font-size: 76px; transform: rotate(-7deg); z-index: 2; }
.msd-documents-hero-art i { position: absolute; right: 10px; top: 12px; color: var(--msd-orange); font-size: 74px; transform: rotate(22deg); }
.msd-documents-page { padding-top: 34px; }
.msd-documents-info { display: flex; align-items: center; gap: 12px; margin-bottom: 35px; padding: 14px 20px; border: 1px solid #dbe8bd; border-radius: 14px; background: #f6fae9; }
.msd-documents-info span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; color: #fff; background: #76a914; font-weight: 700; }
.msd-documents-important { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.msd-documents-important article { display: flex; min-height: 315px; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--msd-line); border-radius: 19px; background: #fff; }
.msd-documents-important article:nth-child(2) .msd-document-icon { color: #669d00; background: #eff7dc; }
.msd-documents-important article:nth-child(3) .msd-document-icon { color: #dc571e; background: #fff0e6; }
.msd-documents-important h3 { margin: 17px 0 5px; font-size: 21px; }
.msd-file-type { display: inline-block; padding: 2px 9px; border-radius: 999px; color: #5f5863; background: #eeeaf0; font-size: 11px; font-weight: 700; }
.msd-documents-important p { margin: 12px 0; color: var(--msd-muted); font-size: 14px; }
.msd-documents-important small, .msd-documents-other small { color: #777078; }
.msd-documents-important .msd-button { width: 100%; margin-top: auto; justify-content: center; padding: 11px; font-size: 13px; }
.msd-documents-secondary-head { margin-top: 45px; }
.msd-documents-other { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.msd-documents-other article { display: grid; grid-template-columns: 65px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--msd-line); border-radius: 17px; }
.msd-documents-other article:nth-child(4n+2) .msd-document-icon { color: #669d00; background: #eff7dc; }
.msd-documents-other article:nth-child(4n+3) .msd-document-icon { color: #dc571e; background: #fff0e6; }
.msd-documents-other article:nth-child(4n) .msd-document-icon { color: #d69c00; background: #fff6d5; }
.msd-documents-other h3 { margin: 0 8px 3px 0; font-size: 17px; }
.msd-documents-other p { margin: 9px 0; color: var(--msd-muted); font-size: 13px; }
.msd-documents-other a { display: block; margin-top: 8px; color: var(--msd-violet); font-weight: 700; }
.msd-documents-help { display: grid; grid-template-columns: 70px 1.2fr 1fr auto; align-items: center; gap: 25px; margin-top: 35px; padding: 26px 30px; border-radius: 20px; background: linear-gradient(105deg, #fff2df, #f6edff); }
.msd-documents-help > span { color: var(--msd-orange); font-size: 60px; }
.msd-documents-help h2, .msd-documents-help p { margin: 0; }
.msd-documents-help > div:nth-child(3) { display: flex; flex-direction: column; }
.msd-documents-help > div:nth-child(3) a { color: var(--msd-violet); font-weight: 700; }
.msd-first-day { padding-top: 48px; }
.msd-first-day .msd-section__head > div p { margin: 8px 0 0; color: var(--msd-muted); }
.msd-packing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.msd-packing-grid article { display: grid; grid-template-columns: 110px 1fr; gap: 25px; min-height: 230px; align-items: center; padding: 28px; border: 1px solid var(--msd-line); border-radius: 20px; }
.msd-packing-icon { display: grid; width: 105px; height: 105px; place-items: center; border-radius: 50%; color: var(--msd-violet); background: #f0e7ff; font-size: 50px; }
.msd-packing-grid article:nth-child(2) .msd-packing-icon { color: #619800; background: #edf6d8; }
.msd-packing-grid article:nth-child(3) .msd-packing-icon { color: #de5a1f; background: #ffecdf; }
.msd-packing-grid article:nth-child(4) .msd-packing-icon { color: #d79d00; background: #fff4c9; }
.msd-packing-grid article:nth-child(1) h3 { color: var(--msd-violet); }
.msd-packing-grid article:nth-child(2) h3 { color: #619800; }
.msd-packing-grid article:nth-child(3) h3 { color: #de5a1f; }
.msd-packing-grid article:nth-child(4) h3 { color: #d79d00; }
.msd-packing-grid h3 { margin: 0 0 12px; font-size: 23px; }
.msd-packing-grid ul { margin: 0; padding: 0; list-style: none; }
.msd-packing-grid li { position: relative; margin: 7px 0; padding-left: 25px; }
.msd-packing-grid li::before { content: "✓"; position: absolute; left: 0; color: #60a400; font-weight: 700; }
.msd-name-label { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 30px; margin: 35px 0 58px; padding: 25px 35px; border-radius: 20px; background: linear-gradient(105deg, #eee3ff, #faf6ff); }
.msd-name-label > span { padding: 13px 16px; border: 3px solid var(--msd-violet); border-radius: 14px; color: var(--msd-violet); font-size: 19px; font-weight: 700; text-align: center; transform: rotate(-5deg); }
.msd-name-label h2, .msd-name-label p { margin: 0; }
.msd-name-label b { color: var(--msd-violet); font-size: 34px; }
.msd-first-day-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.msd-first-day-tips article { padding: 28px; border: 1px solid var(--msd-line); border-radius: 19px; text-align: center; }
.msd-first-day-tips article > span { display: grid; width: 64px; height: 64px; place-items: center; margin: 0 auto 17px; border-radius: 50%; color: #fff; background: var(--msd-violet); font-size: 26px; font-weight: 700; }
.msd-first-day-tips article:nth-child(2) > span { background: var(--msd-green); }
.msd-first-day-tips article:nth-child(3) > span { background: var(--msd-orange); }
.msd-first-day-tips h3 { margin: 0 0 9px; font-size: 19px; }
.msd-first-day-tips p { margin: 0; color: var(--msd-muted); font-size: 14px; }
.msd-first-day-bottom { display: grid; grid-template-columns: 1.6fr .8fr; gap: 22px; margin-top: 38px; }
.msd-first-day-bottom > section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; overflow: hidden; border-radius: 20px; background: #fff8ef; }
.msd-first-day-bottom > section img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.msd-first-day-bottom > section div { padding: 28px; }
.msd-first-day-bottom h2 { margin: 0 0 9px; }
.msd-first-day-bottom p { color: var(--msd-muted); }
.msd-first-day-bottom > aside { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid #dfd1f4; border-radius: 20px; background: #f5edff; }
.msd-first-day-bottom > aside .msd-button { width: 100%; margin-top: auto; justify-content: center; }
.msd-day-page { padding-top: 48px; }
.msd-day-intro { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; margin-bottom: 55px; }
.msd-day-intro h2 { margin: 0 0 10px; font-size: 31px; }
.msd-day-intro p { max-width: 700px; margin: 0; color: var(--msd-muted); }
.msd-day-intro > span { display: flex; align-items: center; gap: 9px; padding: 18px 22px; border-radius: 16px; color: var(--msd-orange); background: #fff0e4; font-size: 25px; }
.msd-day-intro > span:last-child { color: #5d9300; background: #f0f7df; }
.msd-day-intro b { font-size: 15px; }
.msd-day-heading { justify-content: center; }
.msd-day-timeline { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 25px 95px; max-width: 1020px; margin: 0 auto; }
.msd-day-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; border-radius: 4px; background: linear-gradient(var(--msd-violet), #a887e8); transform: translateX(-50%); }
.msd-day-timeline article { position: relative; display: grid; grid-template-columns: 105px 1fr; gap: 20px; align-items: center; min-height: 190px; padding: 25px; border: 1px solid var(--msd-line); border-radius: 20px; background: #fff; }
.msd-day-timeline article:nth-child(even) { grid-column: 2; transform: translateY(80px); }
.msd-day-timeline article:nth-child(odd) { grid-column: 1; }
.msd-day-timeline article::after { content: ""; position: absolute; top: 50%; width: 48px; height: 2px; background: #d7c9e7; }
.msd-day-timeline article:nth-child(odd)::after { right: -48px; }
.msd-day-timeline article:nth-child(even)::after { left: -48px; }
.msd-day-icon { display: grid; width: 100px; height: 100px; place-items: center; border-radius: 50%; color: var(--msd-violet); background: #f0e7ff; font-size: 45px; }
.msd-day-timeline article:nth-child(3n+2) .msd-day-icon { color: var(--msd-orange); background: #fff0e5; }
.msd-day-timeline article:nth-child(3n) .msd-day-icon { color: #609500; background: #eef6dc; }
.msd-day-timeline strong { color: var(--msd-violet); font-size: 27px; }
.msd-day-timeline article:nth-child(3n+2) strong, .msd-day-timeline article:nth-child(3n+2) h3 { color: var(--msd-orange); }
.msd-day-timeline article:nth-child(3n) strong, .msd-day-timeline article:nth-child(3n) h3 { color: #609500; }
.msd-day-timeline h3 { margin: 2px 0 7px; font-size: 20px; }
.msd-day-timeline p { margin: 0; color: var(--msd-muted); font-size: 14px; }
.msd-day-note { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 25px; margin: 125px 0 50px; padding: 25px 38px; border-radius: 20px; background: linear-gradient(105deg, #fff0d9, #fff9ef); }
.msd-day-note > span { color: var(--msd-orange); font-size: 65px; }
.msd-day-note h2, .msd-day-note p { margin: 0; }
.msd-day-note b { color: var(--msd-orange); font-size: 38px; }
.msd-day-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.msd-day-gallery img { width: 100%; height: 250px; object-fit: cover; border-radius: 18px; }
.msd-prose { max-width: none; padding: clamp(28px, 4vw, 58px); border: 1px solid var(--msd-line); border-radius: 26px; background: #fff; box-shadow: 0 18px 55px rgba(63,38,82,.08); }
.msd-content-page .msd-prose { width: min(1240px, calc(100% - 40px)); }
/* Existing pages were built with boxed Elementor sections. On the new full-width
   page template they should use the complete content column. */
.msd-content-page .elementor-section.elementor-section-boxed > .elementor-container,
.msd-content-page .e-con.e-con-boxed > .e-con-inner,
.msd-content-page .elementor > .e-con,
.msd-content-page .elementor > .elementor-element { max-width: 100% !important; width: 100% !important; }
.msd-prose > :first-child { margin-top: 0; }
.msd-prose > :last-child { margin-bottom: 0; }
.msd-prose h2, .msd-prose h3, .msd-prose h4 { line-height: 1.2; }
.msd-prose h2 { margin-top: 1.7em; font-size: 30px; }
.msd-prose h3 { margin-top: 1.5em; font-size: 23px; }
.msd-prose p, .msd-prose li { color: #514b55; }
.msd-prose a:not(.msd-button) { color: var(--msd-violet); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.msd-prose img { height: auto; border-radius: 18px; }
.msd-prose table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--msd-line); border-radius: 14px; }
.msd-prose th, .msd-prose td { padding: 13px 15px; border-bottom: 1px solid var(--msd-line); text-align: left; }
.msd-prose th { background: var(--msd-lavender); }
.msd-archive { background: #fff; }
.msd-archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.msd-archive-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--msd-line); border-radius: 20px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.msd-archive-card:hover { transform: translateY(-4px); box-shadow: var(--msd-shadow); }
.msd-archive-card__image { display: grid; place-items: center; height: 230px; overflow: hidden; background: var(--msd-lavender); color: var(--msd-violet); font-size: 60px; }
.msd-archive-card__image img { width: 100%; height: 100%; object-fit: cover; }
.msd-archive-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.msd-archive-card time { color: var(--msd-violet); font-size: 13px; font-weight: 700; }
.msd-archive-card h2 { margin: 7px 0 10px; font-size: 22px; line-height: 1.2; }
.msd-archive-card p { margin: 0 0 18px; color: var(--msd-muted); }
.msd-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; }
.msd-contact-main, .msd-contact-people article { border: 1px solid var(--msd-line); border-radius: 22px; background: #fff; box-shadow: 0 13px 38px rgba(63,38,82,.07); }
.msd-contact-main { padding: 42px; background: linear-gradient(145deg, #f6eeff, #fff); }
.msd-contact-main h2 { margin: 18px 0 10px; font-size: 29px; }
.msd-contact-main a:not(.msd-button) { color: var(--msd-violet); font-weight: 700; }
.msd-contact-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: var(--msd-violet); color: #fff; font-size: 40px; }
.msd-contact-people { display: grid; gap: 18px; }
.msd-contact-people article { display: grid; grid-template-columns: 94px 1fr; gap: 22px; align-items: center; padding: 24px; }
.msd-contact-people .msd-avatar { width: 88px; height: 88px; margin: 0; border-radius: 50%; }
.msd-contact-people img.msd-avatar { aspect-ratio: 1; object-fit: cover; object-position: center; }
.msd-contact-people h2 { margin: 0; font-size: 21px; }
.msd-contact-people p { margin: 2px 0 8px; color: var(--msd-muted); }
.msd-contact-people a { display: block; color: var(--msd-violet); font-size: 14px; font-weight: 600; }
.msd-gallery-page { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 340px; gap: 18px; }
.msd-gallery-page a { overflow: hidden; border-radius: 20px; }
.msd-gallery-page a:nth-child(4n+1) { grid-row: span 2; }
.msd-gallery-page img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.msd-gallery-page a:hover img { transform: scale(1.04); }
.msd-lightbox-link { cursor: zoom-in; }
body.msd-lightbox-open { overflow: hidden; }
.msd-lightbox[hidden] { display: none !important; }
.msd-lightbox { position: fixed; inset: 0; z-index: 10000; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 28px; color: #fff; background: rgba(24,18,28,.94); backdrop-filter: blur(8px); }
.msd-lightbox figure { display: flex; max-width: min(1100px, 100%); max-height: calc(100vh - 80px); flex-direction: column; align-items: center; justify-self: center; margin: 0; }
.msd-lightbox__image { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 135px); border-radius: 13px; object-fit: contain; box-shadow: 0 18px 55px rgba(0,0,0,.42); }
.msd-lightbox figcaption { display: flex; width: 100%; justify-content: center; gap: 18px; padding-top: 12px; color: rgba(255,255,255,.9); font-size: 14px; text-align: center; }
.msd-lightbox__counter { flex: 0 0 auto; color: #e4d3ff; font-weight: 700; }
.msd-lightbox button { display: grid; place-items: center; border: 0; color: #fff; background: rgba(255,255,255,.13); cursor: pointer; transition: background .18s ease, transform .18s ease; }
.msd-lightbox button:hover, .msd-lightbox button:focus { background: #7137df; outline: 3px solid rgba(255,255,255,.72); outline-offset: 3px; }
.msd-lightbox__close { position: absolute; top: 20px; right: 22px; width: 48px; height: 48px; border-radius: 50%; font-size: 34px; line-height: 1; }
.msd-lightbox__arrow { width: 56px; height: 72px; border-radius: 14px; font-size: 52px; line-height: 1; }
.msd-lightbox__arrow--prev { justify-self: start; }
.msd-lightbox__arrow--next { justify-self: end; }
.msd-article__cover { margin: 0 0 30px; }
.msd-article__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.msd-article__meta { margin-bottom: 24px; color: var(--msd-violet); font-weight: 700; }
.msd-article__back { margin-top: 45px !important; }

@media (max-width: 1100px) {
    .msd-header__inner { gap: 16px; }
    .msd-logo { flex-basis: 180px; }
    .msd-logo img { width: 180px; }
    .msd-nav { gap: 15px; font-size: 14px; }
    .msd-nav__list { gap: 15px; }
    .msd-hero__grid { gap: 25px; }
    .msd-news-card { grid-template-columns: 1fr; }
    .msd-news-card__image { height: 180px; }
    .msd-enrolment__inner { grid-template-columns: 62px 1fr auto; }
    .msd-enrolment__contact { grid-column: 2; }
    .msd-about-activities { grid-template-columns: repeat(3, 1fr); gap: 20px 12px; }
    .msd-enrolment-top { grid-template-columns: 1fr; }
    .msd-enrolment-content { grid-template-columns: 1fr; }
    .msd-enrolment-checklist { margin-top: 0; }
    .msd-documents-help { grid-template-columns: 60px 1fr 1fr; }
    .msd-documents-help .msd-button { grid-column: 2 / 4; justify-self: start; }
    .msd-first-day-bottom { grid-template-columns: 1fr; }
    .msd-day-intro { grid-template-columns: 1fr 1fr; }
    .msd-day-intro > div { grid-column: 1 / 3; }
    .msd-operation__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .msd-header__inner { min-height: 72px; }
    .msd-menu-toggle { display: inline-flex; margin-left: auto; }
    .msd-nav { position: absolute; left: 20px; right: 20px; top: 68px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--msd-line); border-radius: 16px; background: #fff; box-shadow: var(--msd-shadow); }
    .msd-nav.is-open { display: flex; }
    .msd-nav a { padding: 12px 14px; }
    .msd-nav .is-current::after { display: none; }
    .msd-nav__group > button { width: 100%; padding: 12px 14px; text-align: left; }
    .msd-submenu { position: static; width: auto; margin: 0 7px 8px; box-shadow: none; transform: none; background: #faf7ff; }
    .msd-submenu::before { display: none; }
    .msd-nav__group:hover .msd-submenu, .msd-nav__group:focus-within .msd-submenu { display: none; }
    .msd-nav__group.is-open .msd-submenu { display: block; }
    .msd-nav__list { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
    .msd-nav__list > li > a { padding: 12px 14px; }
    .msd-nav__list .sub-menu { position: static; width: auto; margin: 0 7px 8px; padding: 6px; box-shadow: none; transform: none; background: #faf7ff; }
    .msd-nav__list .menu-item-has-children:hover > .sub-menu, .msd-nav__list .menu-item-has-children:focus-within > .sub-menu { display: none; }
    .msd-nav__list .menu-item-has-children.is-open > .sub-menu { display: block; }
    .msd-button--small { display: none; }
    .msd-hero__grid { grid-template-columns: 1fr; padding-block: 55px 70px; }
    .msd-hero__copy { text-align: center; }
    .msd-hero__copy > p { margin-inline: auto; }
    .msd-hero__visual { height: 420px; max-width: 680px; width: 100%; margin-inline: auto; }
    .msd-benefits { margin-top: -28px; }
    .msd-benefits__grid { grid-template-columns: 1fr; max-width: 650px; }
    .msd-community__grid { grid-template-columns: 1fr; }
    .msd-enrolment__inner { grid-template-columns: 62px 1fr; }
    .msd-enrolment__contact { grid-column: 2; }
    .msd-enrolment .msd-button { grid-column: 2; justify-self: start; }
    .msd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .msd-footer__grid > :last-child { grid-column: 2 / 4; }
    .msd-archive__grid { grid-template-columns: repeat(2, 1fr); }
    .msd-contact-grid { grid-template-columns: 1fr; }
    .msd-about-hero-photo { width: 48%; height: 220px; }
    .msd-about-intro { grid-template-columns: 1fr; }
    .msd-about-values, .msd-about-places { grid-template-columns: 1fr; }
    .msd-about-places article { display: grid; grid-template-columns: 42% 58%; }
    .msd-about-places img { height: 100%; min-height: 220px; }
    .msd-document-grid { grid-template-columns: 1fr; }
    .msd-document-grid article { min-height: 0; }
    .msd-enrolment-help { grid-template-columns: 1fr; }
    .msd-enrolment-help .msd-button { justify-self: start; }
    .msd-documents-important { grid-template-columns: 1fr; }
    .msd-documents-important article { min-height: 0; }
    .msd-documents-other { grid-template-columns: 1fr; }
    .msd-documents-hero-art { display: none; }
    .msd-packing-grid { grid-template-columns: 1fr; }
    .msd-first-day-tips { grid-template-columns: 1fr; }
    .msd-day-timeline { grid-template-columns: 1fr; padding-left: 35px; }
    .msd-day-timeline::before { left: 10px; transform: none; }
    .msd-day-timeline article:nth-child(n) { grid-column: 1; transform: none; }
    .msd-day-timeline article:nth-child(n)::after { left: -26px; width: 25px; }
    .msd-day-note { margin-top: 50px; }
}

@media (max-width: 640px) {
    .msd-lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) 58px; gap: 12px; padding: 68px 14px 14px; }
    .msd-lightbox figure { grid-column: 1 / 3; grid-row: 1; max-height: calc(100vh - 145px); }
    .msd-lightbox__image { max-height: calc(100vh - 195px); }
    .msd-lightbox__arrow { width: 100%; height: 50px; font-size: 40px; }
    .msd-lightbox__arrow--prev { grid-column: 1; grid-row: 2; }
    .msd-lightbox__arrow--next { grid-column: 2; grid-row: 2; }
    .msd-lightbox__close { top: 12px; right: 14px; }
    .msd-lightbox figcaption { align-items: center; flex-direction: column; gap: 2px; }
}

@media (max-width: 650px) {
    .msd-wrap { width: min(100% - 28px, 560px); }
    .msd-logo { flex-basis: 165px; }
    .msd-logo img { width: 165px; }
    .msd-hero__grid { min-height: auto; padding-top: 45px; }
    .msd-hero h1 { font-size: 45px; }
    .msd-hero__copy > p { font-size: 16px; }
    .msd-hero__visual { height: 330px; }
    .msd-hero__photo--large { left: 45px; }
    .msd-hero__photo--small { width: 140px; height: 165px; }
    .msd-flower { font-size: 62px; }
    .msd-section { padding-block: 58px; }
    .msd-section__head { align-items: flex-end; }
    .msd-section__head h2 { font-size: 27px; }
    .msd-section__head > a { font-size: 13px; text-align: right; }
    .msd-news__grid { grid-template-columns: 1fr; }
    .msd-operation__grid { grid-template-columns: 1fr; }
    .msd-operation-card h3 { min-height: 0; }
    .msd-news-card { grid-template-columns: 42% 58%; min-height: 200px; }
    .msd-news-card__image { height: auto; }
    .msd-team__grid { grid-template-columns: 1fr; gap: 22px; }
    .msd-person { display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 14px; text-align: left; align-items: end; }
    .msd-avatar { grid-row: 1 / 3; width: 76px; height: 76px; margin: 0; font-size: 22px; }
    .msd-person p { align-self: start; }
    .msd-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px 150px; }
    .msd-gallery a:first-child { grid-column: 1 / 3; grid-row: auto; }
    .msd-gallery a:last-child { display: none; }
    .msd-enrolment__inner { grid-template-columns: 1fr; padding: 25px; text-align: center; }
    .msd-enrolment__icon, .msd-enrolment .msd-button { grid-column: 1; justify-self: center; }
    .msd-enrolment__contact { grid-column: 1; }
    .msd-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .msd-footer__brand { grid-column: 1 / 3; }
    .msd-footer__grid > :last-child { grid-column: 1 / 3; }
    .msd-footer__bottom { flex-direction: column; }
    .msd-content-page .msd-prose { width: min(100% - 28px, 560px); padding: 24px 18px; border-radius: 18px; }
    .msd-page-hero__inner { min-height: 250px; padding-block: 46px; }
    .msd-page-hero__art { display: none; }
    .msd-page-hero h1 { font-size: 43px; }
    .msd-archive__grid { grid-template-columns: 1fr; }
    .msd-contact-main { padding: 28px; }
    .msd-gallery-page { grid-template-columns: 1fr 1fr; grid-auto-rows: 230px; }
    .msd-gallery-page a:nth-child(4n+1) { grid-row: auto; }
    .msd-page-hero--about .msd-page-hero__inner { display: block; }
    .msd-about-hero-photo { width: 100%; height: 220px; margin-top: 28px; }
    .msd-about-facts { grid-template-columns: 1fr 1fr; }
    .msd-about-facts div:nth-child(2) { border-right: 0; }
    .msd-about-facts div:nth-child(-n+2) { border-bottom: 1px dashed #d9cfde; }
    .msd-about-activities { grid-template-columns: 1fr 1fr; }
    .msd-about-details { grid-template-columns: 1fr; padding: 22px; }
    .msd-about-quote { padding: 28px 22px; }
    .msd-about-places article { display: block; }
    .msd-about-places img { height: 210px; min-height: 0; }
    .msd-enrolment-steps { grid-template-columns: 1fr; }
    .msd-enrolment-date { padding: 26px 18px; }
    .msd-enrolment-help { padding: 24px 20px; }
    .msd-documents-help { grid-template-columns: 1fr; padding: 23px 20px; }
    .msd-documents-help > span { display: none; }
    .msd-documents-help .msd-button { grid-column: 1; }
    .msd-packing-grid article { grid-template-columns: 75px 1fr; gap: 15px; padding: 21px 17px; }
    .msd-packing-icon { width: 70px; height: 70px; font-size: 34px; }
    .msd-name-label { grid-template-columns: 1fr; padding: 24px 20px; }
    .msd-name-label > span { width: 145px; }
    .msd-name-label b { display: none; }
    .msd-first-day-bottom > section { grid-template-columns: 1fr; }
    .msd-first-day-bottom > section img { min-height: 220px; }
    .msd-day-intro { grid-template-columns: 1fr; }
    .msd-day-intro > div { grid-column: 1; }
    .msd-day-timeline article { grid-template-columns: 70px 1fr; padding: 20px 15px; }
    .msd-day-icon { width: 66px; height: 66px; font-size: 31px; }
    .msd-day-timeline strong { font-size: 22px; }
    .msd-day-note { grid-template-columns: 60px 1fr; padding: 22px 18px; }
    .msd-day-note > span { font-size: 48px; }
    .msd-day-note b { display: none; }
    .msd-day-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
    .msd-hero h1 { font-size: 39px; }
    .msd-benefit { grid-template-columns: 58px 1fr; padding: 18px; }
    .msd-benefit__icon { width: 56px; height: 56px; font-size: 29px; }
    .msd-news-card { grid-template-columns: 1fr; }
    .msd-news-card__image { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
