:root {
  --ink: #002941;
  --muted: #385769;
  --line: #c6d9e2;
  --paper: #fafcfd;
  --sky: #b6dfed;
  --coral: #fd6e6e;
}
.study-frame { width: min(1216px, 100%); padding-inline: clamp(16px, 4.5vw, 64px); margin-inline: auto; }
.study-header { background: white; border-bottom: 1px solid var(--line); }
.study-header nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 70px; }
.study-header a { text-decoration: none; }
.study-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.18rem; font-weight: 750; letter-spacing: -.045em; }
.study-brand img { width: 33px; height: auto; }
.back-link { font-size: .88rem; font-weight: 650; padding-block: 10px; }
.back-link span { margin-right: .3em; }
.back-link:hover { text-decoration: underline; }
.catalog { padding-block: clamp(18px, 3.6vw, 48px) 60px; }
.catalog-cover {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff; border-radius: 16px;
}
.cover-copy { padding: clamp(28px, 4.5vw, 66px); align-self: center; }
.category { display: flex; align-items: center; gap: 9px; font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.category::before { content: ""; width: 23px; height: 3px; background: var(--coral); flex: none; }
.cover-copy .category { color: var(--sky); }
.catalog-cover h1 { font-size: clamp(3.1rem, 6.5vw, 5.9rem); margin: 12px 0 14px; }
.dot { color: var(--coral); }
.cover-copy > p:last-child { line-height: 1.55; max-width: 37ch; color: #eff8fb; }
.greenhouse { display: grid; place-items: center; background: radial-gradient(ellipse at 63% 80%, #f0f7ef, transparent 64%), var(--sky); border-radius: 34% 0 0 0 / 72% 0 0 0; }
.greenhouse img { width: 97%; height: auto; }
.course-list { margin-top: clamp(28px, 4vw, 52px); }
.list-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 17px; }
.list-heading h2 { font: 600 clamp(1.8rem, 3.2vw, 2.75rem)/1.12 var(--serif); letter-spacing: -.035em; }
.level-select select, .tools button { border-color: #98b7c6; color: var(--ink); min-height: 38px; }
.list-heading .level-select { display: flex; align-items: center; gap: 10px; }
.course-card { display: grid; grid-template-columns: minmax(240px, .85fr) 1.15fr; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.course-card:hover, .course-card:focus-visible { border-color: var(--ink); box-shadow: 0 5px 16px #00294112; }
.cell-preview { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 18px 7%; background-color: #d9eef4; background-image: radial-gradient(#6c9ead70 1px, transparent 1px); background-size: 13px 13px; }
.cell-preview img { display: block; width: 117%; height: auto; }
.cell-preview img:first-child { justify-self: end; transform: translate(10%, -7%); }
.cell-preview img:last-child { width: 110%; transform: translate(-4%, 10%); }
.card-copy { padding: clamp(22px, 3.2vw, 42px); align-self: center; }
.card-copy h3 { margin: 10px 0; font: 650 clamp(1.45rem, 2.5vw, 2.2rem)/1.13 var(--serif); letter-spacing: -.025em; }
.card-copy > p:not(.category) { max-width: 46ch; color: var(--muted); line-height: 1.55; }
.open-course { display: inline-flex; align-items: center; gap: 17px; margin-top: 18px; padding: 10px 17px; border-radius: 7px; background: var(--coral); font-size: .9rem; font-weight: 750; }
.course-card:hover .open-course { background: #ff8585; }
:focus-visible { outline-color: #116c91; }
.lesson-heading { padding: clamp(20px, 3vw, 38px); background: var(--ink); border-radius: 14px; color: white; }
.lesson-heading .category, .lesson-heading .intro { color: var(--sky); }
.lesson h1 { margin-top: 10px; font-size: clamp(2rem, 4.6vw, 4.1rem); }
.lesson .model { background-color: #e0f2f7; background-image: radial-gradient(#89abb966 1px, transparent 1px); }
.lesson .animal-view { background-color: #fbeaea; background-image: radial-gradient(#baa3a166 1px, transparent 1px); }
.explanation { border-left-color: var(--coral); }
.explanation .subject { color: var(--muted); }
@media (max-width: 640px) {
  .study-header nav { min-height: 56px; }
  .study-brand { font-size: 1.03rem; }
  .study-brand img { width: 27px; }
  .catalog-cover { grid-template-columns: 1fr; }
  .cover-copy { padding: 25px; }
  .greenhouse { border-radius: 34% 0 0 0 / 30% 0 0 0; }
  .greenhouse img { width: auto; height: clamp(125px, 34vw, 175px); max-width: 100%; object-fit: contain; }
  .course-card { grid-template-columns: 1fr; }
  .cell-preview { justify-content: center; grid-template-columns: repeat(2, minmax(0, 140px)); padding-block: 13px; }
  .list-heading .level-select { display: grid; gap: 3px; }
}
