:root {
  color-scheme: light;
  --ink: #352540;
  --body: #4e4054;
  --muted: #65556d;
  --brand: #633477;
  --brand-dark: #442151;
  --paper: #fffcf6;
  --mist: #f8efe3;
  --tint: #f2e8f5;
  --peach: #f8d7be;
  --line: #dfd0db;
  --error: #a3222c;
  --success: #24613a;
  --radius-control: 10px;
  --radius-panel: 20px;
  --gutter: clamp(22px, 5.3vw, 84px);
  --wrap: 1224px;
  font-family: "Atkinson Hyperlegible Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
[id] { scroll-margin-top: 30px; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 18px; top: 12px; padding: 12px 18px; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-controls { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; flex: none; }
.brand-mark {
  --mark-size: 40px;
  display: inline-block;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: none;
  color: var(--brand);
}
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-mark-core { fill: #b47952; }
.brand-wordmark { display: grid; gap: 3px; }
.brand-wordmark strong { font-size: 16px; font-weight: 730; line-height: 1.12; letter-spacing: -.025em; }
.brand-wordmark small { font-size: 11px; color: var(--muted); letter-spacing: .025em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 41px); }
.nav-link { color: var(--body); font-size: 14px; font-weight: 640; padding-block: 12px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  min-width: 56px;
  min-height: 44px;
  border-radius: var(--radius-control);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}
.language-switch:hover { background: var(--tint); }
.language-icon { position: relative; width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; }
.language-icon::before { content: ""; position: absolute; inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.language-icon::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px solid currentColor; }
.arrow { display: inline-block; font-size: 1.45em; line-height: 1; font-weight: 500; }
.mobile-menu { display: none; }

.hero { background: var(--mist); text-align: center; }
.hero-inner { display: grid; justify-items: center; padding-block: clamp(44px, 6vw, 92px); }
.hero-copy { width: min(100%, 900px); }
.hero-copy .brand-mark { --mark-size: clamp(49px, 6vw, 76px); margin-bottom: 14px; }
.status-line { color: var(--brand); font-size: 14px; font-weight: 680; line-height: 1.45; }
.hero h1 {
  color: var(--brand-dark);
  font-size: clamp(48px, 7.3vw, 102px);
  font-weight: 740;
  line-height: 1;
  letter-spacing: -.065em;
  text-wrap: balance;
  margin: 14px 0 18px;
}
html[lang="bg"] .hero h1 {
  font-size: clamp(24px, 8.3vw, 102px);
  white-space: nowrap;
}
.hero-lede {
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1.55;
  max-width: 600px;
  margin-inline: auto;
  text-wrap: pretty;
  color: var(--body);
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  width: fit-content;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 680;
}
.action { min-height: 45px; padding: 11px 19px; border: 1px solid transparent; border-radius: 999px; transition: background-color .17s ease; }
.action--primary { background: var(--peach); color: var(--brand-dark); }
.action--primary:hover { background: #f3c4a1; }
.action:disabled { opacity: .65; cursor: default; }
.action--text { color: var(--brand); padding: 6px 0; min-height: 38px; border-radius: 0; }
.action--text:hover { text-decoration: underline; text-underline-offset: 5px; }

.catalog-section { background: var(--mist); padding-block: 53px 62px; }
.course-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: clamp(13px, 1.65vw, 23px); }
.course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 252px;
  padding: clamp(19px, 2.1vw, 28px);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  transition: border-color .17s ease, box-shadow .17s ease;
}
.course-card:hover, .course-card:focus-within { border-color: #ac86b4; box-shadow: 0 10px 25px rgba(68, 33, 81, .08); }
.course-card--featured { background: var(--tint); border-color: #d8bddf; }
.card-topline { display: grid; gap: 5px; margin-bottom: 15px; line-height: 1.4; }
.course-type { color: var(--brand); font-size: 14px; font-weight: 680; }
.course-duration { color: var(--brand-dark); font-size: 23px; font-weight: 730; line-height: 1.15; }
.course-card-title {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.17;
  font-weight: 680;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  margin-bottom: 11px;
}
.course-card-copy { font-size: 14px; line-height: 1.61; color: var(--body); margin-bottom: 16px; }
.course-card .action { margin-top: auto; }

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(26px, 5.4vw, 80px);
  align-items: center;
  padding-block: clamp(38px, 6vw, 83px);
}
.mission-copy h2, .training-layout h2 {
  color: var(--brand-dark);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 730;
  letter-spacing: -.045em;
  line-height: 1.12;
  margin-bottom: 15px;
}
.mission-copy p, .training-layout > p { color: var(--body); font-size: 17px; line-height: 1.65; max-width: 680px; }
.mission-copy p + p { margin-top: 12px; }
.mission-copy .action, .training-layout .action { margin-top: 15px; }
.mission-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 42px 14px 42px 14px;
}
.training-section { background: var(--tint); }
.training-layout { padding-block: clamp(39px, 5vw, 68px); }
.training-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 23px 0 0;
  padding: 0;
}
.training-links li { display: flex; min-width: 0; }
.training-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--paper);
  color: var(--brand-dark);
  font-weight: 680;
  line-height: 1.35;
}
.training-links a:hover { border-color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.site-footer { background: var(--mist); color: var(--ink); }
.footer-inner { padding-block: 36px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 8px 0 0; font-size: 14px; font-weight: 560; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.page-intro { padding-block: 27px 51px; background: var(--tint); border-bottom: 1px solid var(--line); }
.breadcrumbs { color: var(--muted); margin-bottom: 31px; font-size: 13px; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.breadcrumbs li { display: flex; align-items: baseline; gap: 9px; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: #ad8bb1; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--brand-dark); }
.crumb-separator { color: var(--muted); }
.page-intro h1, .not-found h1 {
  font-size: clamp(39px, 5.2vw, 69px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -.055em;
  max-width: 970px;
  overflow-wrap: anywhere;
}
.page-intro--course h1 { font-size: clamp(37px, 4.6vw, 62px); max-width: 950px; }
.status-line--dark { color: var(--brand); margin-bottom: 13px; }
.page-lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--body); max-width: 850px; margin-top: 19px; }
.catalog-section--page { padding-block: 46px 70px; }
.catalog-section--page .course-card { min-height: 330px; }
.course-layout, .information-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(254px, 320px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-block: 46px 68px;
}
.course-main h2, .prose h2, .contact-panel h2 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.043em;
  line-height: 1.16;
  font-weight: 650;
  margin-bottom: 16px;
}
.module-list { list-style: none; padding: 0; }
.module {
  display: grid;
  grid-template-columns: 77px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.module:last-child { border-bottom: 1px solid var(--line); }
.module-month { font-size: 13px; font-weight: 720; color: var(--brand); }
.module h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.022em; margin-bottom: 6px; }
.module p, .assessment p, .prose p { color: var(--body); line-height: 1.64; font-size: 15px; }
.assessment { margin-top: 43px; }
.assessment p + p { margin-top: 10px; }
.course-sidebar-panel, .fact-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 22px;
  background: var(--mist);
}
.course-sidebar { position: sticky; top: 24px; }
.course-sidebar h2, .fact-sheet h2 { font-size: 23px; font-weight: 680; letter-spacing: -.035em; line-height: 1.2; margin-bottom: 9px; }
.course-sidebar p, .fact-sheet p { font-size: 14px; line-height: 1.58; color: var(--body); }
.course-sidebar .duration-detail { font-size: 15px; font-weight: 720; color: var(--brand); margin-bottom: 8px; }
.course-sidebar .action { margin-top: 16px; }
.prose section { margin-bottom: 27px; }
.legal-layout { padding-block: clamp(32px, 5vw, 62px); }
.legal-layout .prose { max-width: 72ch; overflow-wrap: anywhere; }
.legal-layout .prose h2 { font-size: clamp(21px, 2.8vw, 27px); margin-bottom: 10px; }
.legal-layout .prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose p + p { margin-top: 12px; }
.past-training + .past-training { margin-top: 18px; }
.past-training h3 { font-size: 16px; margin-bottom: 8px; }
.prose section .action { margin-top: 10px; }
.fact-sheet dl { margin-top: 15px; }
.fact-sheet dl > div { display: grid; gap: 3px; border-top: 1px solid var(--line); padding: 10px 0; }
.fact-sheet dl > div:last-child { padding-bottom: 0; }
.fact-sheet dt { color: var(--muted); font-size: 12px; }
.fact-sheet dd { font-size: 15px; font-weight: 660; }
.contact-help { font-size: 14px; color: var(--body); line-height: 1.6; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 12px 14px; margin-bottom: 21px; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px; margin-bottom: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--topic, .field--message { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 650; }
.field input, .field select, .field textarea {
  background: white;
  border: 1px solid #bfaac0;
  border-radius: var(--radius-control);
  color: var(--ink);
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  font-size: 16px;
  width: 100%;
}
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field--topic select {
  appearance: none;
  grid-area: 2 / 1;
  padding-inline-end: 35px;
}
.field--topic::after {
  content: "";
  grid-area: 2 / 1;
  place-self: center end;
  margin-inline-end: 15px;
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
.captcha { min-height: 78px; margin-bottom: 20px; }
.captcha:empty { display: none; }
form[aria-busy="true"] .action { cursor: progress; }
.form-feedback { color: var(--brand-dark); font-size: 14px; font-weight: 650; }
.form-feedback[data-state="error"] { color: var(--error); }
.form-feedback[data-state="success"] { color: var(--success); }
.form-feedback:not(:empty) { margin-top: 13px; }
.not-found { padding-block: 72px; }
.not-found h1 { margin-bottom: 22px; }

@media (max-width: 960px) {
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-layout, .information-layout { grid-template-columns: minmax(0, 1fr) minmax(224px, 260px); gap: 30px; }
}

@media (max-width: 740px) {
  .header-inner { min-height: 67px; }
  .header-controls { gap: 8px; }
  .header-inner .brand { flex: 0 1 auto; min-width: 0; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 650; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 13px; height: 1px; background: var(--ink); }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -4px; }
  .menu-icon::after { top: 4px; }
  .mobile-menu nav { position: absolute; display: grid; z-index: 3; top: calc(100% + 10px); right: 0; min-width: 195px; padding: 9px; background: white; border: 1px solid var(--line); border-radius: var(--radius-panel); box-shadow: 0 12px 25px rgba(68, 33, 81, .14); }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 9px; }
  .mobile-menu nav a + a { margin-top: 3px; }
  .hero-inner { padding-block: 44px 49px; }
  .mission-layout, .training-links { grid-template-columns: minmax(0, 1fr); }
  .mission-image { max-height: 335px; }
  .training-links a { min-height: 56px; }
  .catalog-section { padding-block: 35px 43px; }
  .course-grid { grid-template-columns: 1fr; gap: 13px; }
  .course-card, .catalog-section--page .course-card { min-height: auto; }
  .course-card-title { font-size: 22px; }
  .course-card-copy { margin-bottom: 10px; }
  .course-card .action { width: 100%; }
  .mission-copy p, .training-layout > p { font-size: 16px; }
  .footer-inner { flex-direction: column; padding-block: 31px; gap: 12px; }
  .footer-legal { padding-top: 4px; }
  .footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .page-intro { padding-block: 20px 36px; }
  .breadcrumbs { margin-bottom: 23px; }
  .course-layout, .information-layout { grid-template-columns: 1fr; gap: 29px; padding-block: 30px 47px; }
  .course-sidebar { position: static; grid-row: 1; }
  .assessment { margin-top: 31px; }
}

@media (max-width: 540px) {
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .module { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 12px; }
  .brand { gap: 9px; }
  .brand .brand-mark { --mark-size: 34px; }
  .brand-wordmark strong { font-size: 14px; }
  .hero h1 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
