* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #253d4b;
  background: #f7f8f4;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  line-height: 1.6;
}
body { margin: 0; min-height: 100vh; min-height: 100svh; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid #a46212; outline-offset: 6px; }
svg, img { display: block; }
.skip-link {
  position: fixed; top: 10px; left: 16px; z-index: 5;
  transform: translateY(-160%); padding: 10px 16px;
  border: 1px solid #325c69; border-radius: 8px;
  color: #253d4b; background: #fff; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.site-header, main { width: min(100%, 1096px); margin-inline: auto; padding-inline: 40px; }
.site-header { padding-top: 34px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; }
.brand img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.brand span { font-size: 12px; font-weight: 750; letter-spacing: .105em; color: #3c0044; }
.intro { padding: 66px 0 42px; }
.intro h1 { margin: 0; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.3; font-weight: 750; letter-spacing: -.065em; word-break: keep-all; text-wrap: balance; }
.intro p { margin: 17px 0 0; color: #536973; font-size: 19px; line-height: 1.6; letter-spacing: -.035em; word-break: keep-all; }
.home-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; color: #285f88; text-underline-offset: 4px; }
.programs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 76px; }
.programs:focus { outline: none; }
.program-card {
  --accent: #285f88; --soft: #edf4f9; --edge: #cedde8;
  position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 340px;
  overflow: hidden; padding: 30px; border: 1px solid var(--edge); border-radius: 23px;
  background: var(--soft); text-decoration: none;
  touch-action: manipulation; transition: border-color .15s ease, background-color .15s ease;
}
.program-card--together { --accent: #1e6c63; --soft: #edf5f0; --edge: #cddfd7; }
.card-art { width: 100%; height: 112px; margin-bottom: 27px; }
.card-art svg { width: 134px; height: 108px; }
.program-category { margin: 0 0 7px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.program-card h2 { margin: 0; padding-right: 24px; color: #253d4b; font-size: clamp(23px, 2.6vw, 28px); font-weight: 750; line-height: 1.45; letter-spacing: -.055em; word-break: keep-all; overflow-wrap: anywhere; }
.program-description { max-width: 32em; margin: 11px 0 0; padding-right: 4px; color: #50656f; font-size: 14px; line-height: 1.8; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; }
.card-arrow { position: absolute; right: 27px; top: 30px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--edge); border-radius: 50%; color: var(--accent); background: #ffffff8c; }
.card-arrow svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .program-card:hover { border-color: var(--accent); background: #e6f0f7; }
  .program-card--together:hover { background: #e5f0e9; }
}
@media (max-width: 640px) {
  .site-header, main { padding-inline: 24px; }
  .site-header { padding-top: 23px; }
  .intro { padding: 48px 0 30px; }
  .intro p { font-size: 17px; margin-top: 14px; }
  .programs { grid-template-columns: minmax(0, 1fr); gap: 17px; padding-bottom: 38px; }
  .program-card { padding: 26px; min-height: 302px; border-radius: 20px; }
  .card-art { height: 91px; margin-bottom: 23px; }
  .card-art svg { width: 114px; height: 92px; }
  .program-card h2 { font-size: 25px; padding-right: 0; }
  .program-description { font-size: 14px; }
  .card-arrow { top: 24px; right: 24px; }
}
@media (max-width: 350px) {
  .site-header, main { padding-inline: 20px; }
  .intro { padding-top: 39px; }
  .intro p { font-size: 16px; }
  .program-card { padding: 23px; }
  .program-card h2 { font-size: 23px; }
}
@media (max-height: 500px) and (min-width: 641px) {
  .site-header { padding-top: 20px; }
  .intro { padding: 26px 0 25px; }
  .intro h1 { font-size: 44px; }
  .intro p { margin-top: 10px; font-size: 17px; }
  .programs { padding-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
