/* Building Geometry â€” design system. Plain CSS, no build step. */
:root {
  --ink: #111214;
  --ink-2: #2a2c30;
  --muted: #676a70;
  --line: #e4e4e2;
  --paper: #ffffff;
  --paper-2: #f6f5f2;
  --night: #0d0e10;
  --night-2: #17181b;
  --accent: #c8102e;
  --accent-ink: #a50d26;
  --ok: #1f7a4d;
  --warn: #9a6400;
  --radius: 2px;
  --wrap: 1240px;
  --font-head: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 16px/1.65 var(--font-body); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 400; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.eyebrow { font: 500 .78rem/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); display: inline-block; }
.rule { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

/* Header */
.topbar { background: var(--night); color: #cfd0d3; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { text-decoration: none; }
.topbar .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
@media (max-width: 1280px) and (min-width: 1081px) { .brand-sub { display: none; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg, .brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 500 1.05rem var(--font-head); letter-spacing: .24em; text-transform: uppercase; }
.brand-name b { color: var(--accent); font-weight: 500; }
.brand-sub { font: 400 .62rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { margin-left: auto; }
.nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a { display: block; padding: 28px 10px; font: 500 .78rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav > ul > li > a.active { color: var(--accent); }
.nav .sub { position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 8px 18px; font-size: .9rem; text-decoration: none; }
.nav .sub a:hover { background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count { position: absolute; top: 3px; right: 1px; background: var(--accent); color: #fff; font-size: .65rem; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.nav-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter would trap the fixed slide-out menu inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; overflow-y: auto; padding: 72px 0 24px; box-shadow: var(--shadow); z-index: 60; }
  .nav.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; min-width: 0; }
  .nav li.expanded > .sub { display: block; }
  .nav .close-nav { position: absolute; top: 16px; right: 16px; }
  .header-actions { margin-left: auto; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; min-height: 64px; padding: 0 16px; }
  .brand svg, .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: .88rem; letter-spacing: .16em; }
  .brand-sub { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .header-actions .search-btn { display: none; }
  .wrap { padding: 0 16px; }
}
@media (min-width: 1081px) { .nav .close-nav { display: none; } }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; display: none; }
.nav-backdrop.open { display: block; }

/* Hero */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 110px; padding-bottom: 110px; z-index: 1; }
.hero h1 { max-width: 16ch; letter-spacing: .02em; }
.hero h1 b { color: var(--accent); font-weight: 400; }
.hero p.lead { color: #c9cacd; font-size: 1.15rem; max-width: 56ch; }
.hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000); }
.hero .hero-mark { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(560px, 55vw); color: rgba(255,255,255,.9); opacity: .9; }
.hero .hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.hero .divisions-line { margin-top: 28px; font: 400 .8rem var(--font-head); letter-spacing: .25em; text-transform: uppercase; color: #d7d8da; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.hero .divisions-line i { width: 6px; height: 6px; background: var(--accent); display: inline-block; }
@media (max-width: 860px) { .hero .hero-mark { opacity: .18; right: -120px; width: 480px; } .hero .wrap { padding-top: 72px; padding-bottom: 72px; } }
.page-head { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.page-head .wrap { position: relative; padding-top: 56px; padding-bottom: 48px; z-index: 1; }
.page-head p { color: #c9cacd; max-width: 70ch; margin: 0; }
.page-head .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; }
.crumbs { font-size: .8rem; color: #a5a7ab; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--night); color: #fff; }
.section.dark .muted { color: #a5a7ab; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.prose { max-width: 72ch; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose img { margin: 1.2em 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* Grid */
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.layout-side { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.layout-main-side { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
@media (max-width: 980px) { .layout-side, .layout-main-side { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 .8rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: var(--radius); transition: .15s ease; white-space: nowrap; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn.outline-light:hover { background: #fff; color: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: .72rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-arrow { font: 500 .8rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "â†’"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; position: relative; min-width: 0; }
a.card:hover { border-color: #cfcfcc; box-shadow: var(--shadow); color: var(--ink); }
.card .thumb { aspect-ratio: 4/3; background: var(--paper-2) center/cover no-repeat; position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .thumb img { transform: scale(1.03); }
.card .thumb.wide { aspect-ratio: 16/9; }
.card .thumb.square { aspect-ratio: 1/1; }
.card .thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #c4c4c0; }
.card .thumb .placeholder svg { width: 38%; }
.card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .meta { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card .foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card .tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
.tile { border: 1px solid var(--line); padding: 28px; background: #fff; }
.tile h3 { margin-bottom: 8px; }
.tile .num { font: 300 2.4rem var(--font-head); color: var(--accent); line-height: 1; margin-bottom: 12px; display: block; }
.section.dark .tile { background: var(--night-2); border-color: #2a2b2f; }

.badge { display: inline-block; padding: 4px 9px; font: 500 .68rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: var(--radius); }
.badge.accent { background: var(--accent); }
.badge.light { background: var(--paper-2); color: var(--ink); }
.badge.ok { background: #e6f3ec; color: var(--ok); }
.badge.warn { background: #fbf1df; color: var(--warn); }
.badge.bad { background: #fbe9ec; color: var(--accent-ink); }
.price { font: 500 1.05rem var(--font-head); }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.price.big { font-size: 1.8rem; }

/* Lists, chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); font-size: .85rem; text-decoration: none; border-radius: 40px; background: #fff; }
.chip:hover, .chip.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.service-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.service-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.service-list a { text-decoration: none; display: flex; justify-content: space-between; }
@media (max-width: 640px) { .service-list { columns: 1; } }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; border-top: 1px solid var(--line); margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; padding-right: 12px; }

/* Side filters */
.filters { position: sticky; top: 96px; }
.filters h4 { font: 500 .75rem var(--font-head); letter-spacing: .18em; text-transform: uppercase; margin: 22px 0 10px; color: var(--muted); }
.filters h4:first-child { margin-top: 0; }
.tree { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.tree ul { list-style: none; padding-left: 14px; margin: 2px 0 6px; border-left: 1px solid var(--line); }
.tree a { text-decoration: none; display: block; padding: 4px 0; color: var(--ink-2); }
.tree a.on { color: var(--accent); font-weight: 500; }
.tree details > summary { list-style: none; cursor: pointer; padding: 4px 0; display: flex; justify-content: space-between; }
.tree details > summary::-webkit-details-marker { display: none; }
.tree details > summary::after { content: "+"; color: var(--muted); }
.tree details[open] > summary::after { content: "â€“"; }
@media (max-width: 980px) { .filters { position: static; } .filters-box { border: 1px solid var(--line); padding: 0 16px; } .filters-box > summary { padding: 14px 0; cursor: pointer; font: 500 .8rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; } }
@media (min-width: 981px) { .filters-box > summary { display: none; } }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar { display: flex; flex: 1; min-width: 220px; max-width: 520px; }
.searchbar input { border-right: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
label .req { color: var(--accent); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=date], input[type=url], select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #d3d3d0; background: #fff; font: inherit; color: var(--ink); border-radius: var(--radius); min-height: 46px; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,18,20,.08); }
input[type=file] { font-size: .9rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.error { font-size: .82rem; color: var(--accent); margin-top: 5px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel { border: 1px solid var(--line); padding: 28px; background: #fff; }
.panel.sticky { position: sticky; top: 96px; }
.panel h3 { margin-bottom: 14px; }
.auth-box { max-width: 460px; margin: 0 auto; }

/* Alerts */
.alert { padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--paper-2); margin-bottom: 20px; font-size: .95rem; }
.alert.ok { border-color: var(--ok); background: #eef7f2; }
.alert.bad { border-color: var(--accent); background: #fcf0f2; }
.alert.warn { border-color: var(--warn); background: #fdf6e8; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.table { border-collapse: collapse; width: 100%; font-size: .93rem; background: #fff; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font: 500 .72rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table tfoot td { font-weight: 500; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(8,8,10,.94); z-index: 100; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; padding: 12px; }
.lightbox .lb-close { top: 10px; right: 16px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.ba { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba input[type=range] { position: absolute; inset: auto 0 12px 0; width: 80%; margin: 0 auto; z-index: 2; }
.ba .ba-label { position: absolute; top: 12px; z-index: 2; }
.ba .ba-label.l { left: 12px; } .ba .ba-label.r { right: 12px; }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 1; }
.product-gallery .main { aspect-ratio: 1/1; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.product-gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.product-gallery .thumbs button { width: 70px; height: 70px; padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.product-gallery .thumbs button.on { border-color: var(--ink); }
.product-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Curriculum, tabs */
.curriculum details { border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.curriculum details:last-child { border-bottom: 1px solid var(--line); }
.curriculum summary { padding: 16px 18px; cursor: pointer; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum ul { list-style: none; margin: 0; padding: 0 18px 12px; }
.curriculum li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.curriculum li a { text-decoration: none; }
.curriculum li .done { color: var(--ok); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs a { padding: 14px 18px; text-decoration: none; font: 500 .78rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
.stars { color: #c99a2e; letter-spacing: 2px; }
.player { position: relative; aspect-ratio: 16/9; background: #000; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.learn-layout { display: grid; grid-template-columns: 1fr 340px; min-height: calc(100vh - 77px); }
.learn-layout aside { border-left: 1px solid var(--line); background: var(--paper-2); max-height: calc(100vh - 77px); overflow-y: auto; position: sticky; top: 77px; }
.learn-layout main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
@media (max-width: 980px) { .learn-layout { grid-template-columns: 1fr; } .learn-layout aside { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--line); } }
.quiz-q { border: 1px solid var(--line); padding: 20px; margin-bottom: 16px; background: #fff; }
.quiz-q .opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-weight: 400; }
.quiz-q .opt.right { color: var(--ok); } .quiz-q .opt.wrong { color: var(--accent); }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.steps > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-increment: s; }
.steps > div::before { content: counter(s, decimal-leading-zero); font: 300 2rem var(--font-head); color: var(--accent); display: block; margin-bottom: 10px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.division-card { background: var(--night); color: #fff; padding: 44px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-height: 320px; }
.division-card:hover { color: #fff; }
.division-card h3 { font-size: 1.5rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }
.division-card p { color: #c0c1c4; }
.division-card .bg-mark { position: absolute; right: -60px; bottom: -60px; width: 260px; color: rgba(255,255,255,.07); }
.division-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; color: #d8d9db; }
.division-card ul li::before { content: "â–  "; color: var(--accent); font-size: .6rem; vertical-align: 2px; }
.empty { border: 1px dashed #cfcfcc; padding: 48px 24px; text-align: center; color: var(--muted); background: #fff; }
.empty h3 { color: var(--ink); }

/* Footer */
.site-footer { background: var(--night); color: #b9babd; font-size: .92rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font: 500 .75rem var(--font-head); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand .brand-sub { color: #8d8f93; max-width: 220px; line-height: 1.5; }
.site-footer .bottom { border-top: 1px solid #26272b; margin-top: 48px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #8d8f93; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border: 1px solid #34363a; display: grid; place-items: center; border-radius: 50%; }
.social a:hover { border-color: #fff; }
.social svg { width: 16px; height: 16px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.wa-float svg { width: 26px; height: 26px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; }
.pagination .on span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .off span { color: #bbb; }

/* Account */
.account-nav { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); background: #fff; }
.account-nav a { display: block; padding: 12px 18px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: .93rem; }
.account-nav li:last-child a { border-bottom: 0; }
.account-nav a.on { background: var(--ink); color: #fff; }
.stat { border: 1px solid var(--line); padding: 20px; background: #fff; }
.stat b { font: 300 2rem var(--font-head); display: block; }

/* Certificate / invoice print */
.doc-page { max-width: 900px; margin: 30px auto; background: #fff; padding: 48px; border: 1px solid var(--line); }
@media print {
  .no-print, .site-header, .site-footer, .topbar, .wa-float { display: none !important; }
  body { background: #fff; }
  .doc-page { border: 0; margin: 0; padding: 0; max-width: none; }
}
.certificate { aspect-ratio: 1.414/1; border: 10px solid var(--night); padding: 6%; position: relative; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 14px; background: #fff; }
.certificate::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--accent); pointer-events: none; }
.certificate .who { font: 400 clamp(1.6rem, 4vw, 2.6rem) var(--font-head); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 auto; min-width: 60%; }
.certificate .mark { width: 74px; margin: 0 auto; }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
