:root { --ink:#18231f; --muted:#63706b; --green:#12372a; --green-2:#1f6048; --coral:#d95f45; --gold:#e4b84f; --paper:#fff; --wash:#f3f6f4; --line:#dbe2de; --danger:#a4372b; --shadow:0 14px 36px rgba(20,43,34,.12); color-scheme:light; font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--wash); color:var(--ink); }
body.drawer-open { overflow:hidden; }
button,input,select,textarea { font:inherit; letter-spacing:0; }
button,a { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.55; }
a { color:inherit; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.site-header { position:sticky; top:0; z-index:30; background:rgba(255,255,255,.97); border-bottom:1px solid var(--line); backdrop-filter:blur(12px); }
.header-inner { width:min(1440px,100%); min-height:68px; margin:auto; padding:10px clamp(16px,3vw,40px); display:grid; grid-template-columns:minmax(150px,220px) minmax(220px,640px) auto; align-items:center; gap:24px; }
.brand { color:var(--green); font-family:Georgia,serif; font-weight:700; font-size:24px; text-decoration:none; }
.search-box { height:42px; display:flex; align-items:center; gap:10px; padding:0 13px; border:1px solid var(--line); background:var(--wash); }
.search-box svg { width:18px; color:var(--muted); }
.search-box input { width:100%; border:0; outline:0; background:transparent; color:var(--ink); }
.header-actions { display:flex; align-items:center; gap:8px; }
.text-command,.icon-command { border:0; background:transparent; color:var(--ink); display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; }
.text-command { text-decoration:none; padding:8px 10px; font-weight:650; }
.text-command svg,.icon-command svg { width:19px; height:19px; }
.icon-command { width:40px; padding:0; }
.icon-command:hover,.text-command:hover { background:#e9eeeb; }
.icon-command.compact { width:32px; min-height:32px; }
.cart-command { position:relative; background:var(--green); color:#fff; }
.cart-command:hover { background:var(--green-2); }
.cart-command span { position:absolute; top:-6px; right:-6px; display:grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--coral); color:#fff; font-size:11px; font-weight:800; border:2px solid #fff; }
.category-nav { width:min(1440px,100%); margin:auto; padding:0 clamp(16px,3vw,40px); display:flex; overflow:auto; scrollbar-width:none; }
.category-nav button { flex:none; border:0; border-bottom:3px solid transparent; padding:10px 14px 9px; background:transparent; color:var(--muted); font-weight:650; }
.category-nav button.active { border-color:var(--coral); color:var(--green); }
.banner-carousel { position:relative; width:min(1440px,calc(100% - 48px)); margin:24px auto 0; overflow:hidden; border:1px solid var(--line); border-radius:6px; background:#e4eae6; box-shadow:var(--shadow); }
.banner-viewport { width:100%; aspect-ratio:2.8/1; overflow:hidden; touch-action:pan-y; }
.banner-track { height:100%; display:flex; transition:transform .42s ease; will-change:transform; }
.banner-slide { height:100%; flex:0 0 100%; min-width:0; }
.banner-slide a { height:100%; display:block; }
.banner-slide img { display:block; width:100%; height:100%; aspect-ratio:2.8/1; object-fit:cover; }
.banner-arrow { position:absolute; z-index:2; top:50%; width:40px; height:40px; padding:0; display:grid; place-items:center; transform:translateY(-50%); border:1px solid rgba(255,255,255,.72); border-radius:50%; color:#fff; background:rgba(18,35,28,.72); box-shadow:0 4px 16px rgba(0,0,0,.2); }
.banner-arrow:hover { background:rgba(18,35,28,.88); }
.banner-arrow svg { width:22px; height:22px; }
.banner-previous { left:14px; }
.banner-next { right:14px; }
.banner-dots { position:absolute; z-index:2; left:50%; bottom:12px; display:flex; gap:7px; transform:translateX(-50%); }
.banner-dots button { width:9px; height:9px; min-height:0; padding:0; border:1px solid rgba(255,255,255,.88); border-radius:50%; background:rgba(18,35,28,.55); box-shadow:0 1px 5px rgba(0,0,0,.2); }
.banner-dots button.active { background:#fff; }
@media (prefers-reduced-motion:reduce) { .banner-track { transition:none; } }
.catalog-shell { width:min(1440px,100%); margin:auto; padding:30px clamp(16px,3vw,40px) 64px; display:grid; grid-template-columns:220px minmax(0,1fr); gap:36px; }
.filters { align-self:start; position:sticky; top:126px; display:grid; gap:18px; }
.filter-heading { display:flex; align-items:center; justify-content:space-between; padding-bottom:10px; border-bottom:1px solid var(--line); }
.filters label,.checkout-form label,.auth-form label { display:grid; gap:7px; color:var(--muted); font-size:13px; font-weight:700; }
input,select,textarea { width:100%; min-height:42px; padding:9px 11px; border:1px solid #c7d0cb; background:#fff; color:var(--ink); outline:none; border-radius:3px; }
input:focus,select:focus,textarea:focus { border-color:var(--green-2); box-shadow:0 0 0 3px rgba(31,96,72,.12); }
.check-row { display:flex!important; grid-template-columns:auto 1fr; align-items:center; gap:9px!important; color:var(--ink)!important; }
.check-row input { width:18px; height:18px; min-height:0; accent-color:var(--green); }
.support-block { margin-top:8px; padding:16px 0; border-top:1px solid var(--line); display:grid; gap:5px; color:var(--muted); font-size:13px; }
.support-block svg { color:var(--coral); }
.support-block strong { color:var(--ink); }
.support-block a { color:var(--green-2); }
.catalog-content { min-width:0; }
.catalog-toolbar { min-height:78px; display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:20px; }
.catalog-toolbar h1 { margin:2px 0 4px; font-family:Georgia,serif; font-size:clamp(30px,4vw,46px); line-height:1.08; font-weight:700; letter-spacing:0; }
.catalog-toolbar p { margin:0; color:var(--muted); }
.catalog-toolbar label { display:grid; gap:5px; min-width:190px; color:var(--muted); font-size:12px; font-weight:700; }
.eyebrow { margin:0; color:var(--coral)!important; text-transform:uppercase; font-size:11px!important; font-weight:800; letter-spacing:.08em!important; }
.notice { margin-bottom:18px; padding:12px 14px; border-left:4px solid var(--gold); background:#fff9e8; color:#715713; }
.course-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.course-card { min-width:0; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:6px; transition:transform .18s ease,box-shadow .18s ease; }
.course-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.course-image { position:relative; display:block; width:100%; border:0; padding:0; background:#dfe7e2; aspect-ratio:16/9; overflow:hidden; }
.course-image img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .25s ease; }
.course-card:hover .course-image img { transform:scale(1.025); }
.level-badge { position:absolute; left:10px; bottom:10px; padding:5px 8px; background:rgba(18,55,42,.92); color:#fff; font-size:11px; font-weight:700; }
.course-body { min-height:276px; padding:17px; display:flex; flex-direction:column; }
.instructor { color:var(--coral); font-size:12px; font-weight:750; }
.course-body h2 { margin:6px 0 8px; font-size:19px; line-height:1.25; letter-spacing:0; }
.course-body h2 button { border:0; padding:0; background:transparent; color:inherit; text-align:left; font-weight:750; }
.course-body>p { margin:0 0 14px; display:-webkit-box; overflow:hidden; -webkit-line-clamp:3; -webkit-box-orient:vertical; color:var(--muted); line-height:1.48; font-size:14px; }
.course-meta { display:flex; flex-wrap:wrap; gap:13px; color:var(--muted); font-size:12px; }
.course-meta span { display:inline-flex; align-items:center; gap:5px; }
.course-meta svg { width:15px; height:15px; }
.course-footer { margin-top:auto; padding-top:16px; border-top:1px solid #edf0ee; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.price { display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.price strong { font-size:19px; color:var(--green); }
.price s { color:var(--muted); font-size:12px; }
.primary-button,.secondary-button { min-height:42px; border:1px solid var(--green); border-radius:3px; padding:10px 16px; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-weight:750; text-decoration:none; }
.primary-button { background:var(--green); color:#fff; }
.primary-button:hover { background:var(--green-2); }
.secondary-button { background:#fff; color:var(--green); }
.secondary-button:hover { background:#edf3ef; }
.compact-button { min-height:36px; padding:7px 11px; font-size:12px; white-space:nowrap; }
.load-more-row { display:flex; justify-content:center; padding-top:28px; }
.empty-state { grid-column:1/-1; min-height:300px; display:grid; place-items:center; align-content:center; text-align:center; color:var(--muted); }
.empty-state svg { width:34px; height:34px; color:var(--coral); }
.empty-state h2 { color:var(--ink); margin:12px 0 2px; }
.scrim { position:fixed; inset:0; z-index:70; background:rgba(12,22,18,.46); }
.cart-drawer { position:fixed; z-index:80; top:0; right:0; width:min(430px,100%); height:100dvh; display:flex; flex-direction:column; background:#fff; box-shadow:-16px 0 50px rgba(0,0,0,.18); transform:translateX(100%); transition:transform .22s ease; }
.cart-drawer[aria-hidden="false"] { transform:translateX(0); }
.drawer-heading { padding:22px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.drawer-heading h2 { margin:2px 0 0; font-family:Georgia,serif; font-size:28px; }
.cart-lines { flex:1; overflow:auto; padding:10px 22px; }
.cart-line { display:grid; grid-template-columns:72px 1fr 40px; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--line); }
.cart-line img { width:72px; aspect-ratio:16/10; object-fit:cover; }
.cart-line div { min-width:0; display:grid; gap:5px; }
.cart-line strong { font-size:14px; }
.cart-line span { color:var(--green-2); font-weight:750; }
.empty-cart { min-height:260px; display:grid; place-items:center; align-content:center; color:var(--muted); text-align:center; }
.empty-cart svg { color:var(--coral); }
.cart-summary { padding:20px 22px; border-top:1px solid var(--line); background:var(--wash); display:grid; gap:14px; }
.cart-summary>div { display:flex; justify-content:space-between; font-size:18px; }
dialog { width:min(760px,calc(100% - 28px)); max-height:calc(100dvh - 28px); padding:0; border:0; border-radius:6px; box-shadow:0 24px 80px rgba(0,0,0,.25); color:var(--ink); }
dialog::backdrop { background:rgba(12,22,18,.58); }
.course-dialog { width:min(1120px,calc(100% - 28px)); overflow:auto; }
.dialog-close { position:sticky; top:10px; float:right; margin:10px 10px -50px 0; z-index:3; background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.12); }
.detail-grid { display:grid; grid-template-columns:minmax(340px,.85fr) minmax(0,1.15fr); }
.detail-grid>div:first-child { background:var(--green); color:#fff; }
.detail-image { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.detail-copy { padding:26px; }
.detail-copy h2 { font-family:Georgia,serif; margin:7px 0 10px; font-size:34px; line-height:1.12; letter-spacing:0; }
.detail-summary { color:#d9e6df; line-height:1.55; }
.detail-copy .course-meta { color:#d9e6df; }
.detail-price { margin:20px 0 12px; font-size:24px; font-weight:800; }
.detail-copy .primary-button { background:var(--coral); border-color:var(--coral); }
.plain-link { display:block; margin-top:14px; color:#fff; font-weight:650; }
.detail-info { padding:34px; }
.detail-info h3 { margin:0 0 12px; font-size:18px; }
.detail-info ul { padding-left:20px; color:var(--muted); line-height:1.55; }
.curriculum { display:grid; gap:8px; margin-bottom:24px; }
.curriculum details { border:1px solid var(--line); }
.curriculum summary { padding:13px; display:flex; justify-content:space-between; gap:12px; cursor:pointer; font-weight:700; }
.curriculum summary small { color:var(--muted); white-space:nowrap; }
.unit { border-top:1px solid var(--line); padding:12px 14px; }
.unit>strong { font-size:13px; color:var(--green-2); }
.lesson-row { min-height:36px; display:grid; grid-template-columns:18px 1fr auto; align-items:center; gap:8px; color:var(--muted); font-size:13px; }
.lesson-row svg { width:15px; }
.dialog-top { min-height:64px; padding:12px 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:2; }
.dialog-top h2 { margin:0; font-family:Georgia,serif; font-size:26px; }
.checkout-form,.auth-form { padding:22px; display:grid; gap:20px; }
.checkout-form section { display:grid; gap:12px; }
.checkout-form h3 { margin:0; font-size:16px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.segmented { display:grid; grid-template-columns:repeat(2,1fr); border:1px solid var(--line); }
.segmented label { min-height:44px; display:flex; align-items:center; justify-content:center; gap:8px; padding:8px; color:var(--ink); cursor:pointer; }
.segmented label+label { border-left:1px solid var(--line); }
.segmented input { width:17px; min-height:0; accent-color:var(--green); }
.field-note { margin:0; color:var(--muted); font-size:12px; }
.checkout-total { padding:14px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; font-size:20px; }
.form-error { min-height:20px; margin:0; color:var(--danger); font-size:13px; }
.order-result { padding:28px; }
.order-result h3 { margin-top:0; font-family:Georgia,serif; font-size:28px; }
.auth-dialog { width:min(480px,calc(100% - 28px)); }
.auth-tabs { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--line); }
.auth-tabs button { min-height:44px; border:0; border-bottom:3px solid transparent; background:#fff; color:var(--muted); font-size:12px; font-weight:700; }
.auth-tabs button.active { color:var(--green); border-color:var(--coral); }
.logout-button { margin:0 22px 22px; width:calc(100% - 44px); }
.toast { position:fixed; z-index:120; left:50%; bottom:24px; transform:translateX(-50%); max-width:min(420px,calc(100% - 24px)); padding:11px 16px; background:var(--ink); color:#fff; box-shadow:var(--shadow); }
footer { background:#16241f; color:#dbe5e0; }
footer>div,footer>nav { width:min(1440px,100%); margin:auto; }
footer { padding:28px clamp(16px,3vw,40px); display:flex; align-items:center; justify-content:space-between; gap:20px; }
footer>div { display:grid; gap:5px; }
footer>div strong { color:#fff; font-family:Georgia,serif; font-size:20px; }
footer>div span { font-size:12px; }
footer nav { width:auto; display:flex; gap:16px; font-size:12px; }

@media (max-width:1100px) { .course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .header-inner { grid-template-columns:auto 1fr auto; gap:12px; } .text-command span { display:none; } }
@media (max-width:760px) {
  .banner-carousel { width:calc(100% - 32px); margin-top:16px; }
  .banner-arrow { width:34px; height:34px; }
  .banner-previous { left:8px; }
  .banner-next { right:8px; }
  .header-inner { min-height:116px; grid-template-columns:1fr auto; align-content:center; }
  .search-box { grid-column:1/-1; grid-row:2; }
  .header-actions { gap:2px; }
  .catalog-shell { display:block; padding-top:18px; }
  .filters { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:26px; }
  .filter-heading,.support-block { grid-column:1/-1; }
  .catalog-toolbar { align-items:start; }
  .catalog-toolbar h1 { font-size:34px; }
  .catalog-toolbar label { min-width:140px; }
  .detail-grid { display:block; }
  .detail-copy h2 { font-size:30px; }
  .detail-info { padding:24px 18px; }
  footer { align-items:flex-start; flex-direction:column; }
  footer nav { flex-wrap:wrap; }
}
@media (max-width:520px) {
  .course-grid { grid-template-columns:1fr; }
  .catalog-toolbar { display:grid; }
  .catalog-toolbar label { min-width:0; width:100%; }
  .filters { grid-template-columns:1fr; }
  .filter-heading,.support-block { grid-column:auto; }
  .form-grid { grid-template-columns:1fr; }
  .segmented { grid-template-columns:1fr; }
  .segmented label+label { border-left:0; border-top:1px solid var(--line); }
  .auth-tabs { grid-template-columns:1fr; }
  .auth-tabs button { border-bottom:1px solid var(--line); }
  .course-body { min-height:250px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
