:root {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: var(--ink); color:var(--on-primary); }
.skip-link:focus { top: 12px; }

main { overflow: hidden; }
.hero {
  max-width: 1440px;
  min-height: 420px;
  margin: auto;
  padding: 78px 40px 62px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: end;
  gap: 8vw;
}
.eyebrow, .section-kicker { margin: 0 0 22px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: normal; text-transform: none; }
h1 { max-width: 900px; margin: 0; font: 500 clamp(36px, 4.8vw, 66px)/1.12 "Unbounded", "Manrope", sans-serif; letter-spacing: -.045em; }
h1 span { color: var(--coral); }
.hero-lead { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.button-primary { background: var(--ink); color:var(--on-primary); }
.button-primary span { color: inherit; }
.button-quiet { background: transparent; border: 1px solid var(--line); }

.week-card { --focus: var(--accent-ink); position: relative; min-height: 290px; padding: 24px; border: 1px solid var(--week-shadow); border-radius: var(--radius); background: var(--acid); color: var(--accent-ink); box-shadow: 12px 12px 0 var(--week-shadow); transform: rotate(1.5deg); }
.week-card-top, .week-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.week-schedule { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; text-underline-offset: 3px; }
.week-number { margin-top: 22px; font: 600 clamp(64px, 7vw, 100px)/1 "Unbounded", "Manrope", sans-serif; letter-spacing: -.07em; }
.week-label { margin: 8px 0 20px; font-size: 14px; font-weight: 700; }
.week-note { margin: 10px 0 0; color: #4b552f; font-size: 12px; }


.courses-section { padding: 90px max(40px, calc((100vw - 1360px) / 2)); }
.courses-section { background: var(--section-bg); color: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading h2, .contact-strip h2 { margin: 0; font: 500 clamp(28px, 3vw, 40px)/1.2 "Unbounded", "Manrope", sans-serif; letter-spacing: -.04em; }
.courses-section .section-kicker { color: var(--muted); }
.course-tools { display: flex; align-items: center; gap: 16px; }
.course-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.search-field { width: min(320px, 28vw); height: 44px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); }
.search-field svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.search-field input { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card { padding: 24px; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.course-code { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 12px "Manrope", sans-serif; }
.color-coral { --accent: var(--coral); }
.color-blue { --accent: var(--blue); }
.color-lime { --accent: var(--acid); }
.color-violet { --accent: var(--violet); }
.color-sand { --accent: var(--sand); }
.course-card h3 { max-width: 620px; margin: 0 0 13px; font: 700 clamp(20px, 1.8vw, 26px)/1.3 "Manrope", sans-serif; letter-spacing: -.035em; }
.course-card p { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.group-list { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-footer { margin-top: auto; display: flex; align-items: center; gap: 9px; }
.card-action { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 9px; font-size: 13px; font-weight: 600; text-decoration: none; }
.card-action.primary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.card-action.primary:hover { border-color: var(--line-strong); background: var(--subtle); }
.card-action.disabled { background: var(--subtle); color: var(--muted); }
.icon-action { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font: 700 11px monospace; text-decoration: none; }
.empty-state { padding: 60px 0; color: var(--muted); text-align: center; }

.brs-section { max-width: 1360px; margin: 96px auto 0; padding: 48px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; border-radius: var(--radius); background: var(--subtle); }
.brs-copy h2 { margin-bottom: 20px; font-size: clamp(28px, 3.2vw, 42px); }
.brs-copy > p { max-width: 650px; line-height: 1.65; }
.brs-form { align-self: center; padding: 24px; display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.brs-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.brs-form select, .brs-form input { width: 100%; min-height: 47px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; }
.brs-form small { color: var(--muted); line-height: 1.5; }

.contact-strip { max-width: 1360px; margin: 48px auto 64px; padding: 24px 32px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-strip h2 { font: 600 clamp(20px, 2.2vw, 28px)/1.3 "Manrope", sans-serif; letter-spacing: -.025em; }
.contact-strip > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.site-footer { max-width: 1440px; margin: auto; min-height: 100px; padding: 32px 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; padding: 12px 18px; border-radius: 6px; background: var(--ink); color:var(--on-primary); font-size: 12px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .25s; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 58px; padding-top: 60px; }
  .week-card { width: min(440px, calc(100% - 14px)); min-height: 0; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-strip { margin-inline: 24px; grid-template-columns: 1fr; gap: 24px; }
  .brs-section { margin-inline: 24px; grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 50px 20px 62px; }
  h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { flex: 1; }
  .week-card { padding: 20px; box-shadow: 8px 8px 0 var(--week-shadow); }
  .week-schedule { min-height: 44px; }
  .courses-section { padding: 72px 20px; }
  .section-heading { align-items: stretch; flex-direction: column; margin-bottom: 34px; }
  .course-tools { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .course-grid { grid-template-columns: 1fr; }
  .contact-strip { margin: 24px 20px 48px; padding: 20px; gap: 12px; }
  .brs-section { margin: 60px 20px 0; padding: 28px 22px; }
  .site-footer { padding: 28px 20px; grid-template-columns: 1fr; gap: 16px; font-size: 14px; line-height: 1.5; }
  .footer-links { justify-content: flex-start; }
  .footer-links a { min-height: 44px; display: flex; align-items: center; font-weight: 700; }
}
