:root {
  color-scheme: light;
  --ink: #251a28;
  --body: #4e424f;
  --dim: #665866;
  --plum: #623775;
  --plum-dark: #4b255e;
  --berry: #9a315d;
  --teal: #246561;
  --gold: #875a19;
  --rose-wash: #f9e9f0;
  --teal-wash: #e7f4ee;
  --gold-wash: #fbf2df;
  --violet: #f1e6f5;
  --cream: #faf7f2;
  --paper: #fffdfb;
  --white: #fff;
  --line: #e5dce3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  font-size: 100%;
  background: var(--cream);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
p, ul, ol, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum-dark); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -.045em; font-weight: 400; }
h1 em { font-weight: 400; color: var(--berry); }
h2 { font-size: clamp(2.05rem, 4vw, 3.5rem); line-height: 1.06; }
:focus-visible { outline: 3px solid #9565a6; outline-offset: 4px; }
.frame { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: 12px; left: 12px; background: white; padding: 12px; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.utility { background: #32213b; color: #f5eaf5; }
.utility-inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; letter-spacing: .02em; }
.utility a { color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.utility a:hover { text-decoration: underline; }
.site-header { position: relative; z-index: 3; background: var(--white); border-bottom: 1px solid #eee5e9; }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(18px, 3vw, 48px); align-items: center; min-height: 96px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; justify-self: start; }
.brand-logo { width: 132px; height: 90px; object-fit: contain; object-position: left center; }
.brand-name { display: grid; gap: 2px; font: 1.49rem/.95 var(--serif); letter-spacing: -.045em; white-space: nowrap; }
.brand-name > span { font: 650 .64rem/1.05 var(--sans); text-transform: uppercase; letter-spacing: .21em; }
.main-nav > ul { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.65vw, 25px); padding: 0; list-style: none; }
.nav-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-size: .875rem; font-weight: 550; white-space: nowrap; }
.nav-link:hover, .nav-link-active { color: var(--plum-dark); text-decoration: underline; text-underline-offset: .48em; }
.nav-group { position: relative; }
.nav-pair { display: flex; align-items: center; }
.nav-chevron { min-width: 28px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--plum-dark); }
.nav-chevron span { width: 7px; height: 7px; border-right: 1.6px solid; border-bottom: 1.6px solid; transform: translateY(-2px) rotate(45deg); }
.nav-chevron[aria-expanded="true"] span { transform: translateY(2px) rotate(225deg); }
.submenu { position: absolute; z-index: 4; top: 100%; left: -15px; min-width: 224px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 42px #34253a19; background: var(--paper); }
.submenu a { display: block; padding: 11px 12px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .875rem; white-space: nowrap; }
.submenu a:hover, .submenu a:focus-visible { background: var(--violet); }
.menu-toggle { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 21px; border: 1px solid var(--plum-dark); border-radius: 8px; background: var(--plum-dark); color: var(--white); font-size: .9375rem; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; }
.button:hover { background: #361849; border-color: #361849; }
.button.secondary { background: var(--paper); color: var(--plum-dark); border-color: #ccb8cc; }
.button.secondary:hover { background: var(--violet); }
.button.light { background: #f7ebfa; color: #422451; border-color: #f7ebfa; }
.button.light:hover { background: white; border-color: white; }
.button.header-cta { min-height: 43px; border-radius: 7px; padding: 9px 16px; font-size: .875rem; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; min-height: 42px; font-size: .9375rem; color: var(--teal); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.kicker { color: var(--teal); font-size: .8125rem; letter-spacing: .125em; font-weight: 700; line-height: 1.4; text-transform: uppercase; }

.hero-wrap { background: linear-gradient(115deg, var(--rose-wash), var(--cream) 58%, var(--teal-wash)); }
.hero-grid { display: grid; grid-template-columns: 1.03fr 1.12fr; gap: clamp(26px, 4vw, 65px); align-items: center; padding-block: clamp(32px, 5vw, 72px); }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 12ch; margin: 18px 0 19px; font-size: clamp(3.55rem, 6.25vw, 6.35rem); line-height: .98; letter-spacing: -.068em; text-wrap: initial; }
.hero-text { max-width: 42ch; color: var(--body); font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.62; }
.hero-actions { display: flex; gap: 12px 22px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.hero-stats { max-width: 453px; margin-top: clamp(26px, 4vw, 42px); padding-top: 17px; border-top: 1px solid #dcd0d9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: center; gap: clamp(10px, 2vw, 19px); }
.hero-stats strong { display: block; font: 400 clamp(1.45rem, 2.4vw, 2.18rem)/1.02 var(--serif); letter-spacing: -.05em; color: var(--plum-dark); }
.hero-stats span { display: block; color: var(--dim); margin-top: 4px; font-size: .875rem; }
.certification-badge { width: clamp(53px, 6vw, 75px); height: auto; mix-blend-mode: multiply; }
.hero-media { overflow: hidden; border-radius: 28px 28px 28px 8px; background: #d4c5b1; min-height: 420px; position: relative; }
.hero-media img { width: 100%; height: clamp(420px, 42vw, 570px); object-fit: cover; object-position: 55% center; }
.coverage { background: #d9eee8; }
.coverage-inner { display: flex; min-height: 72px; align-items: center; gap: 21px; justify-content: space-between; padding-block: 13px; }
.coverage-inner > strong { color: var(--teal); font-size: .9rem; min-width: 150px; }
.coverage-places { display: flex; flex-wrap: wrap; gap: 8px clamp(10px, 2.9vw, 41px); }
.coverage-places :is(a,span) { color: var(--ink); font-size: .938rem; font-weight: 520; }
.coverage-places a:hover { color: var(--plum-dark); }
.section-pad { padding-block: clamp(48px, 7vw, 98px); }
.section-intro { max-width: 640px; margin-bottom: clamp(21px, 4vw, 39px); }
.section-intro .kicker, .overview-copy .kicker { margin-bottom: 10px; }
.home-overview { display: grid; grid-template-columns: .84fr 1fr; align-items: center; gap: clamp(32px, 7vw, 105px); }
.photo-tile { overflow: hidden; background: #d2b9aa; border-radius: 130px 22px 22px 22px; }
.photo-tile img { width: 100%; min-height: 470px; object-fit: cover; object-position: 54% 39%; }
.overview-copy .prose { margin: 19px 0 12px; }
.benefit-section { background: #eef6f2; }
.benefit-intro { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.section-ball { width: clamp(55px, 7vw, 88px); height: auto; flex: 0 0 auto; mix-blend-mode: multiply; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
:is(.benefit, .resource-card):nth-child(3n + 1) { --card-accent: var(--berry); --card-wash: var(--rose-wash); }
:is(.benefit, .resource-card):nth-child(3n + 2) { --card-accent: var(--teal); --card-wash: var(--teal-wash); }
:is(.benefit, .resource-card):nth-child(3n) { --card-accent: var(--gold); --card-wash: var(--gold-wash); }
.benefit { padding: clamp(16px, 2.6vw, 31px); border-radius: 18px; background: var(--paper); border-top: 3px solid var(--card-accent); }
.benefit h3, .resource-card h3 { font: 400 clamp(1.34rem,2.1vw,1.75rem)/1.15 var(--serif); letter-spacing: -.035em; margin: 0 0 12px; }
.benefit h3 { color: var(--card-accent); }
.benefit p, .resource-card p { color: var(--body); font-size: 1rem; line-height: 1.57; }
.resources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource-card { display: block; min-height: 178px; color: var(--ink); text-decoration: none; padding: clamp(17px,2.5vw,30px); border: 1px solid var(--line); border-radius: 16px; background: var(--card-wash); }
.resource-card:hover { border-color: var(--card-accent); }
.resource-card > span { display: block; margin-top: 16px; color: var(--card-accent); text-decoration: underline; text-underline-offset: .23em; font-size: .9rem; font-weight: 650; }
.closing-wrap { margin-bottom: clamp(40px, 6vw, 80px); }
.closing { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px,4vw,53px); border-radius: 24px; background: var(--plum-dark); color: #f6eef8; }
.closing h2 { color: white; }
.closing p { margin-top: 9px; font-size: 1rem; }
.closing a { flex-shrink: 0; }

.page-banner { background: linear-gradient(115deg, var(--violet), var(--rose-wash)); border-bottom: 1px solid #e8dbe8; }
.banner-inner { padding-block: clamp(34px, 6vw, 75px); }
.page-banner h1, .family-hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1; }
.page-banner .kicker, .family-hero .kicker { margin-bottom: 12px; }
.page-summary, .family-intro > p:not(.kicker) { max-width: 56ch; font-size: clamp(1rem, 1.45vw, 1.2rem); color: var(--body); line-height: 1.6; margin-top: 13px; }
.article-frame { max-width: 960px; }
.prose { color: var(--body); font-size: 1rem; line-height: 1.68; overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin-bottom: 16px; }
.prose h2, .prose h3, .prose h4, .prose h5 { margin-top: 24px; margin-bottom: 10px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.85rem,3.2vw,2.45rem); }
.prose h3, .prose h4 { font-family: var(--serif); font-size: clamp(1.3rem,2.3vw,1.7rem); font-weight: 400; }
.prose :is(ul,ol) { padding-left: 1.35em; margin-block: 10px 16px; }
.prose li + li { margin-top: 5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 19px 0; text-align: left; background: var(--paper); }
.prose :is(th,td) { padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--violet); color: var(--ink); font-weight: 650; }
.prose tr:nth-child(even) { background: #fbf6fb; }
.prose img { margin-block: 10px; border-radius: 9px; object-fit: contain; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.prose :is(blockquote,.source-quote) { margin: 20px 0; padding: 17px 22px; border-left: 4px solid #aa79b5; background: var(--paper); border-radius: 0 12px 12px 0; }
.prose .source-quote > :last-child, .prose blockquote > :last-child { margin-bottom: 0; }
.legacy-action { margin-top: 24px; }
.hub-start { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 25px; margin-bottom: 25px; padding: clamp(18px,4vw,39px); border-radius: 20px; background: var(--violet); }
.hub-start h2 { font-size: clamp(1.8rem,3.4vw,2.9rem); }
.hub-start p { color: var(--body); margin-top: 8px; }
.hub-links { margin-top: 38px; }
.hub-links h2 { font-size: 2.1rem; margin-bottom: 11px; }
.hub-links ul { padding-left: 21px; line-height: 1.8; }

.family-hero { display: grid; grid-template-columns: 1.15fr .88fr; gap: clamp(24px,5vw,72px); align-items: center; margin-top: clamp(23px,4vw,56px); background: var(--rose-wash); border-radius: 24px; overflow: hidden; }
.family-intro { padding: clamp(22px, 4.7vw, 63px); }
.family-media { align-self: stretch; position: relative; min-height: 283px; }
.family-media img { width: 100%; height: 100%; min-height: 283px; position: absolute; inset: 0; object-fit: cover; object-position: 58% 39%; }
.application-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(228px, 315px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.application-layout#family-application { padding-top: clamp(24px, 4vw, 50px); scroll-margin-top: 12px; }
.contacts-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); }
.cv-frame { max-width: 925px; }
.form-card, .apply-guide { border-radius: 20px; border: 1px solid var(--line); background: var(--paper); padding: clamp(18px, 3.4vw, 42px); min-width: 0; }
.form-card > h2, .apply-guide h2 { font-size: clamp(1.9rem, 3.1vw, 2.95rem); }
.apply-guide { background: var(--teal-wash); }
.apply-guide h2 { font-size: 1.9rem; }
.apply-guide p { color: var(--body); margin-top: 12px; line-height: 1.56; }
.apply-guide ul { margin-top: 12px; padding-left: 20px; line-height: 1.8; }
.apply-guide .certification-badge { margin-top: 15px; }
.form-preview-note { margin: 10px 0 16px; color: var(--dim); font-size: .875rem; }
.form-progress { display: grid; gap: 8px; margin: 0 0 21px; color: var(--plum-dark); font-size: .875rem; font-weight: 680; }
.form-progress > div { display: flex; gap: 6px; }
.form-progress > div span { flex: 1; display: block; height: 6px; border-radius: 10px; background: #e9dce9; }
.form-progress > div span.current { background: var(--berry); }
.form-step h3 { margin: 0 0 14px; font: 400 1.55rem/1.15 var(--serif); }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 19px; }
.form-field, .form-group { min-width: 0; }
.form-field > label, .form-group legend, .job-search > label { display: block; color: var(--ink); font-size: .925rem; font-weight: 620; margin-bottom: 6px; }
.form-group legend { max-width: 100%; overflow-wrap: anywhere; padding: 0; }
.required { color: #8d3453; }
.form-field :is(input,select,textarea), .job-search input { width: 100%; min-width: 0; min-height: 45px; padding: 9px 12px; border: 1px solid #b9a8bb; border-radius: 7px; color: var(--ink); background: white; font-size: 1rem; }
.form-field textarea { resize: vertical; }
.form-field select { appearance: none; padding-right: 33px; background: linear-gradient(45deg, transparent 50%, var(--plum) 50%) calc(100% - 17px) 50% / 6px 6px no-repeat, linear-gradient(135deg, var(--plum) 50%, transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat, white; }
.form-field select::-ms-expand { display: none; }
.form-field input[type=file] { padding: 7px; }
.form-field input::file-selector-button { padding: 6px 9px; margin-right: 8px; background: #efe4f3; border: 0; border-radius: 5px; color: var(--ink); font: 600 .88rem var(--sans); cursor: pointer; }
.form-group { padding: 0; margin: 0; border: 0; }
.wide { grid-column: 1 / -1; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 8px; border: 1px solid #ece3ed; border-radius: 7px; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.choice input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--plum-dark); }
.choice:has(input:checked) { background: var(--violet); border-color: #c5acca; }
.field-error { margin-top: 5px; color: #912849; font-size: .875rem; }
.form-note :is(h2,h3,h4) { margin-bottom: 4px; }
.form-details { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #f8f1f8; }
.form-details summary { padding: 11px 13px; font-weight: 630; color: var(--plum-dark); cursor: pointer; }
.form-details .prose { overflow: auto; max-height: 410px; padding: 14px; background: white; border-radius: 0 0 9px 9px; }
.form-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin: 21px 0 0; }
.form-result { min-height: 180px; padding-block: 12px; }
.form-result p { color: var(--body); margin-bottom: 15px; }
.job-search { margin-top: 17px; }
.job-search-row { display: flex; align-items: stretch; gap: 9px; }
.job-result { color: var(--dim); padding-block: 15px; }

.site-footer { background: #302137; color: #f1e8ef; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .9fr .77fr 1fr; gap: clamp(20px, 3vw, 46px); padding-block: clamp(30px, 5vw, 58px); }
.site-footer a { color: #fff7ff; font-size: .9375rem; }
.site-footer .wordmark { margin-bottom: 11px; }
.footer-ball { width: 49px; height: 49px; object-fit: cover; border-radius: 50%; background: var(--white); }
.footer-grid h2 { color: #fff; margin-bottom: 10px; font: 650 .9375rem/1.4 var(--sans); letter-spacing: 0; }
.footer-grid p { margin-bottom: 8px; color: #eadfee; font-size: .9375rem; line-height: 1.58; }
.footer-grid ul { list-style: none; padding: 0; line-height: 1.9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px 18px; border-top: 1px solid #604568; padding-block: 16px; font-size: .875rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 17px; }
.footer-bottom a { font-size: .875rem; }

@media (max-width: 1060px) {
  .header-inner { grid-template-columns: auto auto 1fr; gap: 14px; }
  .menu-toggle { justify-self: end; display: inline-flex; gap: 9px; align-items: center; grid-column: 3; grid-row: 1; padding: 7px 11px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper); font-size: .9375rem; font-weight: 650; }
  .hamburger, .hamburger::before, .hamburger::after { display: block; width: 15px; height: 1.5px; background: var(--plum-dark); }
  .hamburger { position: relative; }
  .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
  .hamburger::before { top: -5px; }
  .hamburger::after { top: 5px; }
  .main-nav { display: none; grid-row: 2; grid-column: 1 / -1; padding-bottom: 10px; }
  .main-nav.open { display: block; }
  .main-nav > ul { display: block; border-top: 1px solid var(--line); }
  .main-nav > ul > li { border-bottom: 1px solid #efe6ef; }
  .nav-pair { justify-content: space-between; }
  .nav-chevron { min-width: 44px; }
  .submenu { position: static; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 8px 11px; }
  .submenu a { white-space: normal; }
  .header-cta { grid-column: 2; grid-row: 1; }
}

@media (max-width: 760px) {
  .frame { width: min(100% - 36px, 1240px); }
  .header-inner { min-height: 76px; }
  .brand-logo { width: 111px; height: 73px; }
  .hero-grid, .home-overview, .family-hero, .application-layout, .contacts-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 25px; padding-block: 25px 29px; }
  .hero-copy h1 { max-width: none; font-size: clamp(3.2rem, 9.2vw, 4.8rem); margin-block: 11px 13px; }
  .desktop-break { display: none; }
  .hero-actions { margin-top: 17px; }
  .hero-stats { margin-top: 22px; padding-top: 13px; }
  .hero-media { min-height: 0; border-radius: 21px 21px 21px 7px; }
  .hero-media img { height: clamp(230px, 56vw, 380px); object-position: 54% 41%; }
  .coverage-inner { display: block; min-height: auto; }
  .coverage-places { margin-top: 7px; }
  .home-overview { gap: 23px; }
  .photo-tile { border-radius: 72px 18px 18px 18px; }
  .photo-tile img { min-height: 0; height: clamp(235px, 54vw, 380px); }
  .benefit-grid, .resources, .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .closing { align-items: flex-start; flex-direction: column; }
  .family-hero { gap: 0; }
  .family-media { grid-row: 1; min-height: clamp(148px, 37vw, 220px); }
  .family-media img { min-height: 0; object-position: 56% 35%; }
  .family-intro { padding: 18px 18px 22px; }
  .family-hero h1 { font-size: clamp(2.45rem, 7.4vw, 4rem); }
  .prose :is(th,td) { padding: 7px 8px; font-size: .875rem; }
}

@media (max-width: 440px) {
  .utility-inner { font-size: .75rem; }
  .header-inner { grid-template-columns: auto 1fr; }
  .menu-toggle { grid-column: 2; }
  .button.header-cta { display: none; }
  .footer-ball { width: 42px; height: 42px; }
  .brand-name { font-size: 1.34rem; }
  .form-fields, .resources, .benefit-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: unset; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px 14px; }
  .footer-grid > :is(:first-child, :last-child) { grid-column: 1 / -1; }
}
