:root {
  font: 16px/1.58 Arial, Helvetica, sans-serif;
  color: #17354d;
  background: #fff8f3;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #168eb0; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1160px; margin: auto; padding: 0 22px; }

.top {
  background: #fff9e8;
  color: #17354d;
  border-bottom: 1px solid #e8dfd3;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: #17354d; text-decoration: none; font-weight: 800; }
.brand img { display: block; width: 82px; height: 66px; object-fit: contain; }
.brand .academy-mark { display: block; font-size: 1.18rem; line-height: 1.1; }
.brand small { display: block; color: #257e94; font-size: .73rem; font-weight: 700; margin-top: 5px; letter-spacing: .035em; }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a { color: #17354d; text-decoration: none; font-size: .91rem; font-weight: 700; }
.top nav a:hover { color: #168eb0; }
.top nav form { display: inline; }
.top nav button { border: 0; color: #17354d; background: transparent; cursor: pointer; font: 700 .91rem Arial, sans-serif; }

.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; padding-top: 30px; padding-bottom: 70px; }
.shell.solo { display: block; }
.side { align-self: start; position: sticky; top: 20px; background: #fffdfb; border: 1px solid #efe5dc; border-radius: 20px; padding: 10px; }
.side a { display: block; padding: 10px 12px; color: #17354d; text-decoration: none; border-radius: 12px; font-weight: 700; font-size: .93rem; }
.side a:hover { background: #dff5f7; color: #167f9d; }
.main { min-width: 0; }
.hero {
  position: relative; overflow: hidden; min-height: 210px;
  background: #dff5f7; color: #17354d; border: 1px solid #cce9ec;
  border-radius: 29px; padding: 36px 38px; margin-bottom: 24px;
}
.hero::before { content: ''; position: absolute; width: 250px; height: 250px; right: -66px; top: -105px; border: 28px solid #f8ded5; border-radius: 50%; opacity: .8; pointer-events: none; }
.hero::after { content: '✳'; position: absolute; right: 56px; bottom: -34px; color: #80bac3; font-size: 170px; line-height: 1; opacity: .42; transform: rotate(-17deg); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .25em 0; letter-spacing: -.045em; line-height: 1.08; max-width: 720px; }
.hero p { max-width: 670px; color: #3d5868; margin-bottom: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #198bad; font-size: .79rem; }
.hero .eyebrow { color: #1287a5; }

.card { background: #fffdfb; border: 1px solid #ece1d9; box-shadow: 0 8px 26px #17354d0c; border-radius: 19px; padding: 24px; margin: 0 0 16px; }
.card h2, .card h3 { line-height: 1.25; margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.grid .card { margin: 0; }
.grid .card:nth-child(4n+2) { background: #f0f9fa; }
.grid .card:nth-child(4n+3) { background: #fff3ef; }
.grid .card:nth-child(4n+4) { background: #f3f6fe; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn, button.primary { display: inline-block; background: #17354d; color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font: 700 1rem Arial, sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover, button.primary:hover { background: #168eab; color: #fff; }
.btn.light { background: #dff5f7; color: #17354d; }
.btn.gold { background: #f8ded5; color: #17354d; }
.muted { color: #5a6c76; }
.status { display: inline-block; border-radius: 999px; background: #dff5f7; color: #176f86; padding: 4px 11px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.status.pending { background: #fff0d9; color: #885a22; }
.status.rejected { background: #f8ded5; color: #963c31; }
progress { width: 100%; height: 13px; accent-color: #168eab; }
.row { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.row > div { min-width: 0; }
.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li { border-top: 1px solid #ece6e0; padding: 14px 0; }
.lesson-list li:first-child { border: 0; }
label { display: block; font-weight: 650; margin: 12px 0 5px; }
input:not([type=radio]):not([type=checkbox]), textarea, select { width: 100%; border: 1px solid #d5c9c1; border-radius: 12px; padding: 12px 13px; font: inherit; background: #fff; color: #17354d; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid #75c4d2; outline-offset: 2px; }
textarea { min-height: 145px; }
input[type=radio], input[type=checkbox] { accent-color: #168eab; }
.choice { display: block; padding: 10px 13px; margin: 8px 0; border: 1px solid #e4d9d2; border-radius: 12px; font-weight: 400; cursor: pointer; background: #fff; }
.choice:hover { background: #eaf8fa; }
.error { border-left: 4px solid #cb6756; background: #fff0eb; padding: 12px 16px; border-radius: 8px; }
.success { border-left: 4px solid #3c9cb3; background: #e8f7f9; padding: 12px 16px; border-radius: 8px; }
.pill { font-size: .84rem; color: #607884; }
.number { font-size: 2rem; font-weight: 800; color: #168eab; }
.case { border-left: 4px solid #edaa9c; padding: 12px 18px; background: #fff3ef; border-radius: 8px; }
.footer { border-top: 1px solid #e8dfd8; background: #fff9e8; color: #667684; padding: 25px 0; font-size: .89rem; }
details { border-top: 1px solid #e7e1da; padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px; border-bottom: 1px solid #e9e3dd; vertical-align: top; }
form.inline { display: inline; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 7px; background: #dff5f7; font-weight: 700; font-size: .82rem; }
h1 { line-height: 1.12; letter-spacing: -.03em; }
h2 { letter-spacing: -.02em; }

@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow: auto; gap: 4px; }
  .side a { white-space: nowrap; }
  .top .wrap { align-items: flex-start; padding-top: 13px; padding-bottom: 13px; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .wrap { padding-left: 15px; padding-right: 15px; }
  .shell { gap: 15px; padding-top: 15px; }
  .hero, .card { padding: 20px; }
  .hero::after { right: -10px; font-size: 125px; }
  .hero::before { width: 150px; height: 150px; right: -70px; top: -75px; }
  .row { display: block; }
  .top nav { gap: 11px; }
  .top nav a { font-size: .84rem; }
  .brand img { width: 67px; height: 55px; }
}
