:root {
  color-scheme: light;
  --ink: #14231d;
  --muted: #64736d;
  --surface: #ffffff;
  --canvas: #f5f7f2;
  --green: #12372a;
  --green-2: #1d5a43;
  --gold: #f4c95d;
  --line: #dfe7e1;
  --shadow: 0 16px 45px rgba(18, 55, 42, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, .button { font: inherit; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(223, 231, 225, 0.9); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: var(--gold); font-weight: 900; }
.brand small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 10px 13px; border-radius: 10px; color: var(--muted); font-size: .92rem; font-weight: 700; }
.nav a:hover, .nav a.active { background: #edf3ee; color: var(--green); }

.hero { padding: 72px 0 48px; background: radial-gradient(circle at 85% 0%, rgba(244,201,93,.35), transparent 35%), linear-gradient(160deg, #eef5ef, #f8f8f2); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--green-2); text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: .76rem; }
.hero h1, .page-head h1 { max-width: 760px; margin: 12px 0; font-size: clamp(2.15rem, 6vw, 4.3rem); line-height: 1.03; letter-spacing: -.055em; }
.hero p, .page-head p { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--green); cursor: pointer; font-weight: 800; }
.button.primary { border-color: var(--green); background: var(--green); color: white; }
.button.gold { border-color: var(--gold); background: var(--gold); color: #27331d; }
.button.disabled { pointer-events: none; opacity: .55; }

.section { padding: 54px 0; }
.section + .section { padding-top: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 5px 0 0; font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -.035em; }
.text-link { color: var(--green-2); font-weight: 800; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.course-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 20px 55px rgba(18, 55, 42, .14); }
.course-media { aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #193f31, #2b7658); }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.media-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); font-size: 2.2rem; font-weight: 900; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.badge { padding: 5px 8px; border-radius: 999px; background: #edf3ee; color: var(--green-2); font-size: .7rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.badge.gold { background: #fff3c8; color: #745600; }
.course-card h3 { margin: 0; font-size: 1.16rem; line-height: 1.35; letter-spacing: -.02em; }
.course-card p { margin: 9px 0 18px; color: var(--muted); line-height: 1.55; font-size: .92rem; }
.card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price small { display: block; color: var(--muted); font-size: .7rem; }
.price strong { font-size: 1.28rem; color: var(--green); }

.page-head { padding: 52px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.empty { padding: 40px; border: 1px dashed #b9c8be; border-radius: 18px; background: rgba(255,255,255,.55); text-align: center; color: var(--muted); }

.detail { padding: 42px 0 68px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.detail-main, .purchase-box { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.detail-main { overflow: hidden; }
.detail-poster { aspect-ratio: 16/9; background: linear-gradient(135deg, #193f31, #2b7658); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: clamp(22px, 4vw, 36px); }
.detail-copy h1 { margin: 12px 0 14px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.07; letter-spacing: -.05em; }
.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.7; white-space: pre-line; }
.facts { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 22px 0; color: var(--muted); font-size: .9rem; }
.detail-section { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0 0 14px; font-size: 1.3rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 12px 14px; border-radius: 12px; background: #f2f6f2; }
.feature-list li::before { content: "✓"; margin-right: 8px; color: var(--green-2); font-weight: 900; }
.purchase-box { position: sticky; top: 92px; padding: 24px; }
.purchase-box .price strong { font-size: 2rem; }
.purchase-box h2 { margin: 18px 0 5px; }
.purchase-box p { color: var(--muted); line-height: 1.55; }
.purchase-actions { display: grid; gap: 10px; margin-top: 20px; }
.secure-note { padding: 12px; border-radius: 10px; background: #f2f6f2; font-size: .8rem; }
.status-page { min-height: 80vh; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; text-align: center; }
.status-page h1 { margin: 8px 0 0; }
.status-page p { color: var(--muted); }
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .purchase-box { position: static; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 22px, 1120px); }
  .header-inner { min-height: 64px; align-items: center; }
  .brand small { display: none; }
  .brand > span:last-child { font-size: .92rem; }
  .nav { gap: 0; }
  .nav a { padding: 9px 8px; font-size: .76rem; }
  .hero { padding: 48px 0 36px; }
  .course-grid { grid-template-columns: 1fr; }
  .section { padding: 38px 0; }
  .section-head { align-items: start; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
