.course-hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; padding-block: 55px 65px; }
.course-hero h1 { font-size: clamp(36px, 4.7vw, 55px); font-weight: 850; line-height: 1.3; letter-spacing: -.035em; }
.course-hero p { margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.course-facts { display: flex; gap: 36px; margin-block: 30px; }
.course-facts span { font-size: 14px; color: var(--muted); }
.course-facts strong { font-size: 32px; color: var(--green); display: block; line-height: 1.4; }
.course-chapter-art { width: 245px; justify-self: center; }
.course-chapter-art img { width: 100%; height: auto; border-radius: 24px; }
.course-intro { border-block: 2px solid var(--line); padding-block: 45px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.course-intro h2 { color: var(--green); }
.course-intro p { color: var(--muted); font-size: 16px; }
.course-demo { padding-block: 65px; }
.course-demo h2 { color: var(--green); }
.course-switcher { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 30px; }
.course-switcher label { padding: 10px 20px; min-height: 44px; background: white; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 13px; color: #666; font-size: 14px; font-weight: 750; cursor: pointer; }
.course-switcher input:checked + label { border-color: #aad077; background: #e8f5d8; color: #438900; }
.course-switcher input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 4px; }
.course-sample { display: none; flex-direction: column; height: 700px; background: #f7faf2; border: 2px solid #e1ead6; border-bottom-width: 5px; border-radius: 24px; overflow: hidden; }
.course-demo:has(#theory-card-0:checked) [data-course="0"], .course-demo:has(#theory-card-1:checked) [data-course="1"], .course-demo:has(#theory-card-2:checked) [data-course="2"] { display: flex; }
.course-sample-header { padding: 23px 30px; flex-shrink: 0; border-bottom: 2px solid #e1ead6; }
.course-sample-header > span { color: #777; font-size: 12px; }
.course-sample-header h3 { font-size: 25px; margin-top: 9px; }
.course-sample-header p { font-size: 13px; color: #777; margin-top: 5px; }
.course-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 25px 30px; }
.course-point-image { width: auto; height: auto; max-width: 280px; max-height: 190px; margin: 0 auto 24px; }
.course-copy, .course-video { border-bottom: 2px solid #e1ead6; }
.course-copy summary, .course-video summary { font-size: 16px; padding-block: 16px; color: var(--link); }
.course-copy p { font-size: 16px; color: #555; line-height: 1.95; padding-bottom: 18px; max-width: none; }
.course-source { font-size: 12px; color: #777; margin-top: 20px; }
.course-sample-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; padding: 17px 30px; font-size: 13px; color: #777; border-top: 2px solid #e1ead6; }
.course-sample-footer button { min-height: 44px; padding: 10px 18px; border: 2px solid var(--line); border-radius: 13px; background: white; color: var(--link); font: inherit; font-weight: 750; cursor: pointer; }
.course-sample-footer button:disabled { opacity: .4; cursor: default; }
.course-sample-footer button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.course-chapters { padding-bottom: 70px; }
.course-chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 55px; margin-top: 35px; }
.course-chapter-grid img { width: 100%; height: auto; border-radius: 22px; }
.course-chapter-grid strong, .course-chapter-grid span { display: block; }
.course-chapter-grid strong { font-size: 16px; color: var(--ink); }
.course-chapter-grid span { font-size: 13px; margin-top: 6px; }
@media (max-width: 620px) {
  .course-hero { display: flex; flex-direction: column; gap: 30px; padding-block: 35px 45px; }
  .course-hero > div { width: 100%; }
  .course-hero h1 { font-size: 36px; }
  .course-hero p { font-size: 15px; margin-top: 20px; }
  .course-chapter-art { width: 205px; }
  .course-intro { grid-template-columns: 1fr; gap: 22px; padding-block: 32px; }
  .course-intro p { font-size: 14px; }
  .course-demo { padding-block: 40px; }
  .course-switcher { gap: 8px; margin-block: 25px; }
  .course-switcher label { padding: 10px 12px; font-size: 12px; }
  .course-sample { height: 680px; }
  .course-sample-header { padding: 20px; }
  .course-sample-header h3 { font-size: 21px; }
  .course-scroll { padding: 20px; }
  .course-point-image { max-width: 100%; max-height: 160px; }
  .course-copy p { font-size: 14px; }
  .course-copy summary, .course-video summary { font-size: 14px; }
  .course-sample-footer { padding: 15px 20px; font-size: 12px; }
  .course-chapter-grid { display: flex; overflow-x: auto; gap: 18px; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .course-chapter-grid figure { flex: 0 0 210px; scroll-snap-align: start; }
}

.tips-demo { padding-bottom: 70px; }
.tips-demo h2 { color: var(--green); }
.tips-chapter { color: var(--muted); font-size: 14px; margin-block: 24px; }
.tips-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 30px; align-items: start; }
.tips-menu { display: flex; flex-direction: column; gap: 12px; }
.tips-demo button { font: inherit; cursor: pointer; min-height: 44px; border: 2px solid var(--line); border-radius: 13px; padding: 12px 18px; background: white; color: var(--ink); }
.tips-menu button { text-align: left; }
.tips-menu button[aria-pressed="true"] { background: #e8f5d8; color: var(--link); }
.tips-menu span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tips-menu strong { font-size: 16px; }
.tips-demo button:disabled { opacity: .45; cursor: default; }
.tips-demo button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.tips-lesson { padding: 30px; border: 2px solid var(--line); border-radius: 24px; scroll-margin-top: 24px; }
.tips-lesson[hidden], .tips-stage[hidden], .tips-feedback[hidden], .tips-demo button[hidden] { display: none; }
.tips-lesson header > span, .tips-step-label { color: var(--muted); font-size: 13px; }
.tips-lesson h3 { font-size: 23px; margin-block: 10px; }
.tips-stage { margin-top: 24px; }
.tips-stage h4 { font-size: 18px; margin-bottom: 18px; }
.tips-stage p { font-size: 16px; line-height: 1.9; margin-bottom: 16px; max-width: none; overflow-wrap: anywhere; }
.tips-stage .tips-italian { font-size: 20px; font-weight: 750; }
.tips-translation { color: var(--muted); }
.tips-answers { display: flex; gap: 12px; margin-block: 24px; }
.tips-answers button { flex: 1; font-weight: 750; }
.tips-feedback, .tips-how { background: #f7faf2; padding: 20px; border-radius: 13px; }
.tips-verdict { font-weight: 750; }
.tips-stage mark { background: #e8f5d8; color: inherit; }
.tips-example { padding-block: 20px; border-bottom: 2px solid var(--line); }
.tips-example > strong { display: block; color: var(--link); margin-bottom: 10px; }
.tips-lesson footer { margin-top: 24px; }
.tips-lesson footer button { width: 100%; font-weight: 750; color: var(--link); }
.tips-finish { border-top: 2px solid var(--line); padding-top: 20px; }
@media (max-width: 620px) {
  .tips-demo { padding-bottom: 40px; }
  .tips-layout { grid-template-columns: 1fr; gap: 20px; }
  .tips-menu strong { font-size: 14px; }
  .tips-lesson { padding: 20px; }
  .tips-lesson h3 { font-size: 21px; }
  .tips-stage p { font-size: 14px; }
  .tips-stage .tips-italian { font-size: 18px; }
}
