:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102c49;
  background: #eef5f6;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #0069a6; outline-offset: 4px; }
.shell { max-width: 1120px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 48px) 48px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.3rem; font-weight: 850; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #102c49; color: #e3f75a; font-size: 1.45rem; line-height: 1; }
.brand-copy { display: grid; gap: 1px; line-height: 1.1; }
.brand-subtitle { color: #3e6171; font-size: .82rem; font-weight: 650; letter-spacing: 0; }
.header-link { color: #23556c; font-weight: 750; text-underline-offset: 4px; }
.eyebrow { display: inline-block; padding: 7px 12px; border: 1px solid #9cc1c8; border-radius: 99px; color: #23556c; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 18px 0; font-size: clamp(2.55rem, 6vw, 5rem); line-height: 1.03; letter-spacing: -.06em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.035em; line-height: 1.2; }
.lead { max-width: 700px; color: #456575; font-size: 1.15rem; line-height: 1.6; }
.welcome { padding-top: clamp(48px, 8vw, 84px); }
.welcome-intro { max-width: 780px; margin-bottom: 46px; }
.welcome h1 { max-width: 700px; font-size: clamp(2.55rem, 5vw, 4.4rem); }
.welcome h1 span { color: #218e9a; }
.welcome .lead { margin-bottom: 0; }
.welcome-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.welcome-gallery figure { min-width: 0; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border: 5px solid #fff; border-radius: 20px; background: #dff2f3; box-shadow: 0 13px 34px rgba(16,44,73,.10); }
.welcome-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.choose-label { margin: 0 0 15px; color: #315c71; font-weight: 800; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.role-card { min-height: 236px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #b5d0d5; border-radius: 22px; background: #fff; text-decoration: none; box-shadow: 0 13px 34px rgba(16,44,73,.06); transition: transform .18s, box-shadow .18s; }
.role-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(16,44,73,.12); }
.role-card.teacher { background: #102c49; color: #fff; border-color: #102c49; }
.role-card .tag { align-self: flex-start; padding: 7px 10px; border-radius: 9px; background: #e3f75a; color: #102c49; font-size: .78rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.role-card.student .tag { background: #dff2f3; }
.role-card h2 { margin: 26px 0 6px; font-size: 2rem; }
.role-card p { margin-bottom: 0; line-height: 1.5; color: #456575; }
.role-card.teacher p { color: #d7e7eb; }
.role-card .card-end { display: block; margin-top: 24px; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.role-page { padding-top: clamp(48px, 8vw, 88px); }
.role-page .lead { margin-bottom: 34px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .85fr); gap: 20px; align-items: start; }
.panel { padding: 30px; border: 1px solid #c8dbe0; border-radius: 22px; background: #fff; box-shadow: 0 13px 34px rgba(16,44,73,.05); }
.panel h2 { margin-bottom: 20px; }
.role-page > .panel { margin-top: 22px; }
.role-page > .panel p { color: #456575; line-height: 1.6; }
.role-page > details.panel > summary { cursor: pointer; font-weight: 750; }
.role-page > details.panel[open] > summary { margin-bottom: 18px; }
.role-page > details.panel > summary:focus-visible { outline: 3px solid #0069a6; outline-offset: 4px; }
#support .support-device { padding: 14px 0; border-top: 1px solid #c8dbe0; }
#support .support-device summary { cursor: pointer; font-weight: 750; }
#support .support-device[open] summary { margin-bottom: 12px; }
#support .support-device p { margin-bottom: 0; }
#support .support-device summary:focus-visible { outline: 3px solid #0069a6; outline-offset: 4px; }
#support > h3 { margin-top: 26px; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid #dce9ec; }
.step-list li:first-child { border-top: 0; padding-top: 0; }
.step-list .number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #dff2f3; color: #23556c; font-size: .88rem; font-weight: 900; }
.step-list h3 { margin-bottom: 4px; font-size: 1.04rem; }
.step-list p { margin: 0; color: #456575; line-height: 1.5; }
.feature-panel { padding: 30px; border-radius: 22px; background: #e3f75a; }
.feature-panel h2 { margin-bottom: 15px; }
.feature-panel p, .feature-panel li { line-height: 1.55; }
.feature-panel ul { margin: 0; padding-left: 20px; }
.feature-panel li + li { margin-top: 8px; }
.feature-panel .small { margin: 18px 0 0; font-size: .94rem; color: #385240; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 22px; border-radius: 13px; background: #102c49; color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { background: #245371; }
.text-link { color: #23556c; font-weight: 750; text-underline-offset: 4px; }
.site-footer { margin-top: 50px; padding-top: 20px; border-top: 1px solid #c8dbe0; color: #607b85; font-size: .9rem; }
.visitor-counter { display: inline-block; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #dff2f3; color: #102c49; font-weight: 800; }
.site-footer > span { display: block; }
@media (max-width: 760px) {
  .role-grid, .content-grid { grid-template-columns: 1fr; }
  .welcome { padding-top: 62px; }
  .welcome-intro { margin-bottom: 32px; }
  .welcome-gallery { grid-template-columns: 1fr; gap: 20px; margin-top: 34px; }
  .role-card { min-height: 200px; }
  .feature-panel { order: 2; }
}
@media (max-width: 480px) {
  .shell { padding: 18px 16px 36px; }
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .header-link { font-size: .9rem; text-align: right; }
  .welcome { padding-top: 52px; }
  .welcome-intro { margin-bottom: 28px; }
  .welcome-gallery figure { border-width: 4px; border-radius: 19px; }
  .role-card, .panel, .feature-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .role-card { transition: none; } }

.student-language-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; color: #315c71; font-weight: 750; }
.student-language-picker select { max-width: 100%; min-height: 44px; padding: 8px 12px; border: 2px solid #9cc1c8; border-radius: 11px; background: #fff; color: #102c49; font: inherit; cursor: pointer; }
.student-language-picker select:focus-visible { outline: 3px solid #0069a6; outline-offset: 3px; }
.student-translation { margin-top: 26px; padding-top: 24px; border-top: 1px solid #c8dbe0; overflow-wrap: anywhere; }
.student-translation[hidden] { display: none; }

.student-page { padding-top: clamp(28px, 4vw, 48px); }
.student-page h1 { font-size: clamp(2.15rem, 5vw, 3.8rem); }
.student-entry { margin: 24px 0 28px; }
.student-entry .student-language-picker { margin-bottom: 16px; }
.button.student-start { display: flex; justify-content: flex-start; gap: 18px; width: 100%; max-width: 540px; min-height: 100px; padding: 20px 24px; border-radius: 20px; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.25; box-shadow: 0 7px 18px #102c4926; }
.student-start-icon { display: grid; place-items: center; flex: 0 0 56px; height: 56px; border-radius: 50%; background: #e3f75a; color: #102c49; }
.student-start-icon svg { display: block; width: 38px; height: 38px; }
.student-start-copy { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.student-start-help { display: block; color: #d7e7eb; font-size: 1rem; font-weight: 650; line-height: 1.4; }
.student-start-help[hidden] { display: none; }
.student-start.is-introduced { animation: student-start-pulse .75s ease-in-out 4; }
@keyframes student-start-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 7px 18px #102c4926; }
  50% { transform: scale(1.025); box-shadow: 0 0 0 6px #218e9a40, 0 9px 22px #102c4933; }
}
@media (prefers-reduced-motion: reduce) {
  .student-start.is-introduced { animation: none; }
}
