* { box-sizing: border-box; }

body { margin: 0; font-family: Arial, sans-serif; background: #F4F7FA; color: #162033; }
.container { max-width: 760px; margin: 0 auto; padding: 22px 16px 32px; }
h1 { margin: 0; color: #162033; font-size: 28px; letter-spacing: -.02em; text-align: left; }
.page-intro::after { display: block; width: 54px; height: 1px; margin: 14px 0 0; background: #2F4A66; content: ""; opacity: .42; }
.subtitle { margin: 6px 0 16px; color: #6B7480; font-size: 15px; line-height: 1.45; }
.is-group-page .page-intro { display: none; }

.groups { display: grid; gap: 12px; }
.program-section { margin-bottom: 0; border: 1px solid #DCE3EA; border-radius: 14px; background: #FFFFFF; overflow: hidden; }
.program-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 17px 16px; border: 0; background: #FFFFFF; color: inherit; font: inherit; font-size: 19px; font-weight: 700; text-align: left; cursor: pointer; }
.program-toggle--pp { border-left: 4px solid #2F4A66; }
.program-toggle--orp { border-left: 4px solid #6F879D; }
.program-toggle--pp .program-arrow { color: #2F4A66; }
.program-toggle--orp .program-arrow { color: #6F879D; }
.program-arrow { margin-left: 16px; font-size: 24px; font-weight: 400; line-height: 1; }
.program-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.program-panel.is-open { grid-template-rows: 1fr; }
.program-panel-inner { min-height: 0; overflow: hidden; }
.group-list { display: grid; gap: 8px; padding: 0 12px 12px; }
.group-button { width: 100%; padding: 15px; border: 1px solid #DCE3EA; border-radius: 12px; background: #FFFFFF; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(22, 32, 51, .03); transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.group-button:hover { background: #F8FAFC; border-color: #B9C9D7; box-shadow: 0 3px 8px rgba(22, 32, 51, .05); }
.group-button:active { transform: scale(.985); background: #EEF3F7; border-color: #3F5872; }
.group-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.group-schedule, .group-page-schedule { margin-top: 6px; color: #6B7480; font-size: 14px; line-height: 1.45; }

.materials { margin-top: 0; }
.hidden { display: none; }
.captcha-gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: #f3f5f7; }
.captcha-gate.hidden { display: none; }
.captcha-card { width: min(100%, 420px); padding: 26px 20px; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px #17202a1a; text-align: center; }
.captcha-card h2 { margin-bottom: 18px; }.captcha-card img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 14px; }.captcha-card input,.captcha-card button { min-height: 48px; border-radius: 8px; font-size: 16px; }.captcha-card input { width: 100%; padding: 0 12px; text-align: center; letter-spacing: 4px; text-transform: uppercase; border: 1px solid #b9c1cc; }.captcha-card button { width: 100%; margin-top: 10px; border: 0; background: #1769aa; color: #fff; }.captcha-card p { min-height: 20px; color: #b42318; }
.back-button { margin: -6px 0 14px -8px; padding: 10px 8px; border: none; background: transparent; color: #2F4A66; font-size: 15px; cursor: pointer; }
h2 { margin: 0; color: #162033; font-size: 27px; letter-spacing: -.02em; line-height: 1.22; }
.group-page-schedule { margin-top: 5px; }
section { margin-bottom: 24px; }
h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.3; }
.material-card { display: block; margin-bottom: 8px; padding: 14px; border-radius: 12px; background: #FFFFFF; border: 1px solid #DCE3EA; box-shadow: 0 1px 2px rgba(22, 32, 51, .03); text-decoration: none; color: #162033; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.material-card:hover { background: #F8FAFC; border-color: #B9C9D7; box-shadow: 0 3px 9px rgba(22, 32, 51, .06); }
.material-card:active { transform: scale(.985); background: #EEF3F7; border-color: #3F5872; }
.material-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.material-date { margin-top: 5px; font-size: 13px; color: #6B7480; }
.new-badge { display: inline-block; margin-left: 7px; padding: 2px 6px; border: 1px solid #C8D6E2; border-radius: 999px; background: #EDF3F7; color: #3F5872; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.group-button:focus-visible, .program-toggle:focus-visible, .back-button:focus-visible, .material-card:focus-visible { outline: 3px solid #2F4A66; outline-offset: -3px; }

@media (min-width: 640px) {
  .container { padding-top: 40px; }
  .group-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
