* { box-sizing: border-box; }
:root { color-scheme: light; font-family: system-ui, "Malgun Gothic", sans-serif; color: #152c26; background: #f2f5f2; }
body { margin: 0; line-height: 1.55; }
a { color: #0d6350; text-underline-offset: .2em; }
.frame { width: min(70rem, calc(100% - 2rem)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #d9e3dd; }
.site-header .frame, nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { color: #154b3d; font-weight: 750; text-decoration: none; }
main { padding-block: clamp(2rem, 6vw, 4.5rem); }
.auth { max-width: 29rem; }
.panel { background: #fff; border: 1px solid #d9e3dd; border-radius: 1rem; padding: clamp(1.1rem, 4vw, 2.2rem); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(1.55rem, 4vw, 2.35rem); letter-spacing: -.04em; }
h2 { font-size: 1.3rem; }
.fields { display: grid; gap: 1rem; }
label { display: block; font-weight: 600; }
input:not([type=checkbox]) { display: block; margin-top: .35rem; width: 100%; border: 1px solid #a8bbb0; border-radius: .45rem; padding: .63rem .72rem; font: inherit; background: #fff; color: #152c26; }
input[type=checkbox] { accent-color: #12634f; inline-size: 1.05rem; block-size: 1.05rem; margin: 0 .45rem 0 0; vertical-align: -.15em; }
button { background: #14644f; color: white; border: 1px solid #14644f; border-radius: .45rem; padding: .62rem 1rem; font: inherit; font-weight: 700; cursor: pointer; width: fit-content; }
.auth button { width: 100%; }
.secondary { background: #fff; color: #14644f; }
:focus-visible { outline: 3px solid #357f6d; outline-offset: 2px; }
.error { padding: .8rem 1rem; border: 1px solid #dcadad; border-radius: .5rem; color: #8c2323; background: #fff6f6; }
.hint { color: #465d53; font-size: .92rem; }
.status { color: #14644f; font-weight: 700; }
.registration { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); align-items: end; }
.program { margin-block-end: 1rem; }
.section-title { margin-top: 2rem; }
.checks { display: flex; flex-wrap: wrap; gap: 1rem; }
fieldset { border: 1px solid #d9e3dd; border-radius: .5rem; padding: .7rem 1rem; }
legend { font-weight: 650; padding-inline: .25rem; }
.site-header .frame { min-height: 5rem; }
.brand { display: inline-flex; align-items: center; background: #ad4d15; color: #fff; border-radius: .6rem; min-height: 2.5rem; padding: .35rem 1rem; white-space: nowrap; }
.button { display: inline-block; width: fit-content; text-decoration: none; background: #14644f; color: #fff; border: 1px solid #14644f; border-radius: .45rem; padding: .62rem 1rem; font-weight: 700; text-align: center; }
.button.secondary { background: #fff; color: #14644f; }
.nav-link { background: #3a64aa; border-color: #355799; min-width: 6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.catalog { max-width: 62rem; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 4vw, 2.75rem); list-style: none; margin: 1.75rem 0 0; padding: 0; }
.course-circle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .25rem; text-align: center; text-decoration: none; aspect-ratio: 1; border-radius: 50%; border: 1px solid; padding: .5rem; margin-inline: auto; max-width: 11.5rem; transition: box-shadow .15s ease; }
.course-circle:hover, .course-circle:focus-visible { box-shadow: 0 0 0 4px #152c2630; }
.course-circle strong { font-size: clamp(.9rem, 2.4vw, 1.15rem); }
.course-circle span { font-size: .875rem; }
.course-circle.blue { background: #3574a7; color: #fff; border-color: #386b96; }
.course-circle.green { background: #79ab4d; color: #142a15; border-color: #61923d; }
.course-circle.yellow { background: #ffda89; color: #392a10; border-color: #ddad40; }
.compact { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.compact h2 { margin: 0; }
.compact span { white-space: nowrap; }
@media (max-width: 43rem) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .frame, nav { flex-wrap: wrap; gap: .55rem; padding-block: .35rem; }
  .nav-link { min-width: auto; }
}
