/* ==========================================================================
   Vikrin — corporate design system
   Light surfaces, one sans-serif family, pill buttons, soft card elevation.
   ========================================================================== */

:root {
  --brand: #2450d8;
  --brand-dark: #1b3fb0;
  --brand-tint: #ebf1fd;
  --brand-tint-2: #dbe6fc;

  --ink: #1f1f1f;
  --ink-2: #444746;
  --muted: #5f6368;
  --line: #dadce0;
  --line-soft: #e8eaed;
  --bg: #ffffff;
  --surface: #f8fafd;
  --surface-2: #f0f4f9;

  --font-head: 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Google Sans Text', 'Google Sans', 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --elev-1: 0 1px 2px rgba(60, 64, 67, .15), 0 1px 3px 1px rgba(60, 64, 67, .08);
  --elev-2: 0 1px 3px rgba(60, 64, 67, .15), 0 4px 8px 3px rgba(60, 64, 67, .08);
  --container: 1920px;
  --gutter: clamp(20px, 4vw, 80px);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-tint-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); font-weight: 500; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.14; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.35; }
h4 { font-size: 1rem; }
h1 em, h2 em { font-style: normal; color: var(--brand); }
p { margin: 0 0 1em; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--elev-2); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-head); font-size: 15px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); box-shadow: var(--elev-1); }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { background: var(--brand-tint); border-color: var(--brand-tint-2); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 4px rgba(60, 64, 67, .12); }
.nav-bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 3vw, 56px); height: var(--header-h); }
.brand { display: flex; align-items: center; justify-self: start; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: stretch; height: var(--header-h); list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; display: flex; }
.nav-links > li.has-mega { position: static; }
.nav-links > li > a, .nav-links > li > button {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 0 clamp(12px, 1.1vw, 20px);
  font-family: var(--font-head); font-size: 15.5px; font-weight: 500; color: var(--ink-2); transition: color .2s;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li.is-open > button { color: var(--ink); }
.nav-links .is-active { color: var(--brand) !important; }
.nav-links .is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.nav-links .ic { width: 16px; height: 16px; transition: transform .2s; }
.nav-links li.is-open > button .ic { transform: rotate(180deg); }
.nav-cta { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-cta .nav-link { font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 0 8px; }
.nav-cta .nav-link:hover { color: var(--brand); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; color: var(--ink-2); }
.menu-toggle:hover { background: var(--surface-2); }
.menu-toggle .ic { width: 24px; height: 24px; }

.mega {
  position: absolute; top: calc(100% + 1px); left: var(--gutter); right: var(--gutter); padding: 24px 20px 18px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--elev-2);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
li.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-col h6 { margin: 8px 12px 6px; font-family: var(--font-head); font-size: 13px; font-weight: 500; color: var(--muted); }
.mega-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .15s; }
.mega-item:hover { background: var(--surface-2); }
.mi-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.mi-icon .ic { width: 20px; height: 20px; }
.mega-item strong { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--ink); }
.mega-item span:not(.mi-icon) { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mega-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 8px; }
.mega-item { padding: 8px 10px; }
.mega-item strong { font-size: 14.5px; line-height: 1.35; }
.mega-item span span { font-size: 12.5px; margin-top: 2px; }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.mega-foot a { color: var(--brand); font-weight: 500; }
.mega-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega-all { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); }
.mega .mega-all .ic { width: 16px; height: 16px; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: #fff; overflow-y: auto;
  padding: 8px var(--gutter) 32px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); font-family: var(--font-head); font-size: 18px; font-weight: 500; color: var(--ink); }
.mobile-menu nav a.is-active { color: var(--brand); }
.mobile-menu nav .ic { width: 18px; height: 18px; color: var(--muted); }
.mobile-menu .mm-foot { margin-top: 24px; display: grid; gap: 14px; }
.mobile-menu .mm-foot a:not(.btn) { color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.s-section { padding: 88px 0; }
.s-section--soft { background: var(--surface); }
.s-section--tight { padding: 48px 0; }
.s-head { max-width: 680px; margin-bottom: 40px; }
.s-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.s-head h2 { margin-bottom: 12px; }
.s-head p { font-size: 1.075rem; color: var(--ink-2); margin: 0; }
.s-label { display: block; font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--brand); margin-bottom: 10px; }
.s-label--dark { color: var(--brand); }
.s-label--center { text-align: center; color: var(--muted); font-weight: 400; margin-bottom: 24px; }
.s-lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 620px; margin-bottom: 32px; }
.s-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.s-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; font-family: var(--font-head); font-weight: 500; color: var(--brand); }
.s-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.s-more .ic { width: 18px; height: 18px; }
.s-center { text-align: center; }
.s-empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- Home hero ---------- */
.s-hero { padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); overflow: hidden; }
.s-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.s-hero h1 { margin-bottom: 20px; }
.s-hero-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.s-hero-note .ic { width: 18px; height: 18px; color: #188038; }
.s-frame { border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); box-shadow: 0 24px 48px -16px rgba(32, 33, 36, .22); overflow: hidden; }
.s-frame-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.s-frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.s-frame img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top center; }
.s-hero-art img { width: 100%; height: auto; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 18px 24px rgba(32, 33, 36, .16)); }

/* ---------- Inner page header ---------- */
.s-hero--page { padding: 48px 0 56px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.s-hero--page h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); max-width: 860px; margin-bottom: 14px; }
.s-hero--page .s-lead { margin-bottom: 0; }
.s-hero--page .s-actions { margin-top: 28px; }
.s-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.s-crumbs a:hover { color: var(--brand); text-decoration: underline; }
.s-crumbs [aria-current] { color: var(--ink-2); }
.s-hero-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* ---------- Logos ---------- */
.s-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 56px; }
.s-logos img { height: 34px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; }

/* ---------- Tabs ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tab { height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--ink-2); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.tab:hover { background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Grids & cards ---------- */
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.s-grid--2 { grid-template-columns: repeat(2, 1fr); }
.s-grid--3 { grid-template-columns: repeat(3, 1fr); }
.s-grid--4 { grid-template-columns: repeat(4, 1fr); }
.s-card { display: block; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); transition: box-shadow .2s, border-color .2s; }
.s-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0; }
.s-card--link { display: flex; flex-direction: column; }
.s-card--link:hover { border-color: transparent; box-shadow: var(--elev-2); }
.s-card--link:hover h3 { color: var(--brand); }
.s-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-bottom: 20px; }
.s-icon .ic { width: 22px; height: 22px; }
.s-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--brand); }
.s-card-link .ic { width: 16px; height: 16px; transition: transform .2s; }
.s-card--link:hover .s-card-link .ic { transform: translateX(3px); }
.s-tag { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 500; color: var(--brand); background: var(--brand-tint); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.s-checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.s-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.s-checks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--brand); }
.s-checks--2 { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.s-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.s-meta dt { font-size: 12.5px; color: var(--muted); }
.s-meta dd { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }

/* Plain feature list (no card chrome) */
.s-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.s-features h3 { font-size: 1.125rem; margin-bottom: 8px; }
.s-features p { font-size: 15px; margin: 0; }
.s-features .s-icon { margin-bottom: 16px; }

/* ---------- About / facts ---------- */
.s-about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.s-about p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 24px; max-width: 560px; }
.s-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.s-facts div { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); }
.s-facts dt { font-family: var(--font-head); font-size: 2.25rem; font-weight: 500; color: var(--brand); line-height: 1.1; margin-bottom: 8px; }
.s-facts dd { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ---------- Steps ---------- */
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; counter-reset: step; }
.s-steps li { counter-increment: step; }
.s-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-family: var(--font-head); font-weight: 500; margin-bottom: 16px; }
.s-steps h3 { font-size: 1.125rem; }
.s-steps p { font-size: 15px; margin: 0; }

/* ---------- Work ---------- */
.s-work { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line-soft); }
.s-work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line-soft); }
.s-work figcaption { padding: 20px 24px 24px; display: grid; gap: 4px; }
.s-work span { font-size: 13px; color: var(--muted); }
.s-work strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.s-work p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; }
.s-work .s-result { font-style: normal; font-size: 14px; font-weight: 500; color: #188038; }

/* ---------- Quotes & posts ---------- */
.s-quote { margin: 0; display: flex; flex-direction: column; }
.s-quote blockquote { margin: 0 0 20px; font-size: 1.02rem; line-height: 1.65; color: var(--ink); }
.s-quote figcaption { margin-top: auto; font-size: 14px; }
.s-quote figcaption strong { font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.s-quote figcaption span { display: block; color: var(--muted); }
.s-post { overflow: hidden; }
.s-post-img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 22px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line-soft); }
.s-post-foot { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: var(--muted); }

/* ---------- Products ---------- */
.s-stack { display: grid; gap: 24px; }
.s-product { display: grid; grid-template-columns: 360px 1fr; gap: clamp(28px, 4vw, 56px); padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); align-items: start; }
.s-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--brand-tint); display: grid; place-items: center; }
.s-media img { width: 100%; height: 100%; object-fit: cover; }
.s-media-icon { color: var(--brand); }
.s-media-icon .ic { width: 56px; height: 56px; stroke-width: 1.4; }
.s-product-body h2 { margin-bottom: 10px; }
.s-product-body > p { font-size: 1.05rem; }
.s-product-body .s-checks { margin-bottom: 28px; }

/* ---------- Detail pages ---------- */
.s-detail { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px, 6vw, 80px); align-items: start; }
.s-block { margin-top: 48px; }
.s-block:first-child { margin-top: 0; }
.s-block h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); margin-bottom: 18px; }
.s-cover { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-soft); margin-bottom: 40px; }
.s-aside { position: sticky; top: calc(var(--header-h) + 24px); padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--elev-1); }
.s-aside h3 { font-size: 1.15rem; }
.s-aside p { font-size: 15px; }
.s-aside .btn + .btn { margin-top: 10px; }
.kv { display: grid; gap: 12px; margin: 0 0 24px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; }
.modules { counter-reset: m; display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.modules li { counter-increment: m; display: flex; gap: 16px; align-items: center; padding: 14px 20px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; color: var(--ink); }
.modules li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-head); font-weight: 500; color: var(--brand); font-size: 14px; width: 28px; }

/* ---------- Prose / article ---------- */
.prose, .s-prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 2em 0; padding: 16px 24px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--ink); }
.prose img { border-radius: 12px; margin: 1.5em 0; }
.prose pre { background: var(--surface-2); padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.article { max-width: 760px; margin: 0 auto; }
.s-article-lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); margin-bottom: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.share { display: flex; gap: 10px; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.share strong { font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: background .2s; }
.share a:hover, .share button:hover { background: var(--surface-2); }
.share .ic { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 22px; height: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > div { padding: 0 4px 24px; max-width: 760px; }
.faq details p { margin: 0; }
.faq a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact band ---------- */
.s-contact { text-align: center; padding: 56px 32px; border-radius: var(--radius-lg); background: var(--brand-tint); }
.s-contact h2 { margin-bottom: 10px; }
.s-contact p { margin: 0 auto 28px; max-width: 560px; }
.s-contact .s-actions { justify-content: center; }

/* ---------- Filters ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: var(--surface-2); }
.chip.is-active { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand); }
.search { position: relative; min-width: 280px; }
.search input { width: 100%; height: 44px; padding: 0 18px 0 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.is-filtered-out { display: none !important; }

/* ---------- Home: sectors we serve ---------- */
.s-sectors { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-evenly; gap: 20px 40px; }
.s-sectors li { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--muted); }
.s-sectors .ic, .s-sectors svg { width: 20px; height: 20px; flex: none; }

/* ---------- Clients: logo icon tiles ---------- */
.client-tile {
  flex: none; height: 88px; min-width: 88px; padding: 0 10px; display: grid; place-items: center;
  border-radius: 22px; background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--elev-1);
  transition: transform .25s, box-shadow .25s;
}
/* The logo fills most of the tile; the tile itself stays 88px. */
.client-tile img { height: 68px; width: auto; max-width: 160px; object-fit: contain; }
a.client-tile:hover, a.client-tile:focus-visible { transform: translateY(-4px) scale(1.05); box-shadow: var(--elev-2); }
.client-tile-initials { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--brand); }

/* Clients page: bare logos in an even grid, no tiles. */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 32px; }
.client-grid .client-tile { width: 100%; height: 110px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.client-grid .client-tile img { height: auto; max-height: 96px; max-width: 190px; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s, transform .25s; }
.client-grid a.client-tile:hover, .client-grid a.client-tile:focus-visible { transform: none; box-shadow: none; }
.client-grid .client-tile:hover img, .client-grid .client-tile:focus-visible img, .client-grid .client-tile:target img { filter: none; opacity: 1; transform: scale(1.06); }
.client-grid .client-tile:target { outline: 2px solid var(--brand); outline-offset: 8px; border-radius: 8px; }

.client-marquee {
  overflow: hidden; padding: 12px 0 20px; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-marquee-track { display: flex; width: max-content; animation: client-marquee var(--marquee-duration, 48s) linear infinite; }
/* Spacing via margin (not gap) so both halves are exactly the same width and the loop is seamless. */
.client-marquee-track > * { margin-right: 20px; }
.client-marquee:hover .client-marquee-track, .client-marquee:focus-within .client-marquee-track { animation-play-state: paused; }
@keyframes client-marquee { to { transform: translateX(-50%); } }

/* ---------- Careers ---------- */
.jobs { display: grid; gap: 12px; }
.job { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .2s; }
.job.is-open { box-shadow: var(--elev-2); }
.job-head { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 26px; text-align: left; }
.job-head h3 { font-size: 1.125rem; margin: 0 0 6px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.toggle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--surface-2); transition: transform .25s, background .2s; }
.toggle .ic { width: 18px; height: 18px; }
.job.is-open .toggle { transform: rotate(45deg); background: var(--brand-tint); color: var(--brand); }
.job-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.job.is-open .job-body { grid-template-rows: 1fr; }
.job-body > div { overflow: hidden; }
.job-body .inner { padding: 0 26px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.job-body .inner > p { grid-column: 1 / -1; margin: 0; }
.job-body h4 { margin-bottom: 4px; }
.job-body .actions { grid-column: 1 / -1; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  outline: none; font-size: 15.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 12px 16px; border-radius: 8px; font-size: 15px; }
.form-status.is-ok { display: block; background: #e6f4ea; color: #137333; }
.form-status.is-err { display: block; background: #fce8e6; color: #c5221f; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.s-contact-list { margin: 24px 0 0; border-top: 1px solid var(--line-soft); }
.s-contact-list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.s-contact-list dt { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14.5px; }
.s-contact-list dt .ic { width: 18px; height: 18px; color: var(--brand); }
.s-contact-list dd { margin: 0; font-weight: 500; color: var(--ink); word-break: break-word; }
.s-contact-list a:hover { color: var(--brand); }
.form-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--elev-1); }
.form-panel h3 { font-size: 1.35rem; }
.map { border-radius: var(--radius); overflow: hidden; margin-top: 56px; border: 1px solid var(--line-soft); }
.map iframe { width: 100%; height: 400px; border: 0; display: block; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s; }
.socials a:hover { background: var(--brand-tint); color: var(--brand); border-color: var(--brand-tint); }
.socials .ic { width: 18px; height: 18px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(32, 33, 36, .5); opacity: 0; transition: opacity .2s; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--elev-2); transform: translateY(12px); opacity: 0; transition: transform .2s, opacity .2s; }
.modal.is-open .modal-panel { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.modal-close:hover { background: var(--surface-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line-soft); padding: 64px 0 24px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr 1fr 1.2fr; gap: clamp(32px, 4vw, 72px); padding-bottom: 48px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 400px; color: var(--muted); }
.footer-services ul { grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.footer-all { display: inline-flex; align-items: center; gap: 6px; color: var(--brand) !important; font-weight: 500; }
.footer-all .ic { width: 16px; height: 16px; }
.site-footer h4.footer-sub { margin-top: 28px; }
.footer-cta { margin-top: 20px; }
.site-footer h4 { font-size: 15px; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.contact-line { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.contact-line .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom strong { color: var(--ink); font-weight: 500; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--elev-2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Service directory & domains ---------- */
.s-jump { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line-soft); }
.s-jump .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.s-jump .container::-webkit-scrollbar { display: none; }
.s-jump .chip { display: inline-flex; align-items: center; flex: none; white-space: nowrap; }
.s-section[id] { scroll-margin-top: calc(var(--header-h) + 60px); }
.s-dir { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.s-dir-card, .s-domain { display: flex; flex-direction: column; }
.s-dir-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); }
.s-dir-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.s-dir-head .s-icon { margin-bottom: 0; flex: none; }
.s-dir-head h3 { margin: 0; transition: color .2s; }
.s-dir-head:hover h3 { color: var(--brand); }
.s-dir-card > p, .s-card.s-domain > p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.s-dir-list { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.s-dir-list a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.s-dir-list a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.s-domain .s-dir-list { grid-template-columns: 1fr; }
.s-grid--2 .s-domain .s-dir-list { grid-template-columns: 1fr 1fr; }
.s-domain .s-dir-head { flex-direction: column; align-items: flex-start; gap: 16px; }
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.s-tags li { font-size: 13.5px; line-height: 1.2; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--ink-2); }
.s-block .s-tags { margin-bottom: 0; }
.s-aside-link { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.s-aside-link strong { color: var(--ink); font-weight: 500; transition: color .2s; }
.s-aside-link:hover strong { color: var(--brand); }

/* ---------- Courses: enrolment ---------- */
.nav-cta .nav-account { display: inline-flex; align-items: center; gap: 6px; }
.nav-cta .nav-account .ic { width: 18px; height: 18px; }
.s-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.s-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.s-badge .ic { width: 14px; height: 14px; }
.s-badge--free { background: #e6f4ea; color: #137333; }
a.s-badge--free:hover { background: #ceead6; }
.s-badge--ok { background: var(--brand-tint); color: var(--brand); }
.s-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 24px; border-radius: 12px; background: var(--brand-tint); color: var(--ink); font-size: 15px; line-height: 1.55; }
.s-notice .ic { width: 20px; height: 20px; margin-top: 1px; color: var(--brand); }
.s-notice a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.s-notice--warn { background: #fef7e0; }
.s-notice--warn .ic { color: #b06000; }
.s-aside .s-notice { margin: 0 0 16px; font-size: 14.5px; }
.s-aside .s-price { font-family: var(--font-head); font-size: 2rem; font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0 0 18px; }
.s-price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.enrol-note { margin-top: 12px; }
.enrol-note a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.kv--aside { margin: 24px 0 20px; }
.pay-note { padding: 14px 16px; margin-bottom: 16px; border-radius: 12px; border: 1px dashed var(--line); font-size: 14.5px; }
.pay-note p { margin: 4px 0 0; white-space: pre-line; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .4s; }
.enrol-progress { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.enrol-progress .progress { margin-bottom: 8px; }

/* Curriculum built from lessons */
.curr-sum { color: var(--muted); font-size: 15px; margin: -8px 0 18px; }
.curr { display: grid; gap: 12px; }
.curr-mod { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; overflow: hidden; }
.curr-mod summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.curr-mod summary::-webkit-details-marker { display: none; }
.curr-mod summary small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.curr-count { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.curr-count .ic { width: 18px; height: 18px; transition: transform .2s; }
.curr-mod[open] .curr-count .ic { transform: rotate(180deg); }
.curr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.curr-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.curr-list li:last-child { border-bottom: 0; }
.curr-ic { color: var(--muted); padding-top: 2px; }
.curr-ic .ic { width: 18px; height: 18px; }
.curr-list li.is-done .curr-ic { color: #188038; }
.curr-main { min-width: 0; font-size: 15px; color: var(--ink); }
.curr-main a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.curr-main small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.curr-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--muted); text-align: right; max-width: 260px; }

/* Lesson player */
.learn-bar { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.learn-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.learn-bar .s-crumbs { margin: 0; }
.learn-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.learn-progress .progress { width: 180px; }
.learn { padding: 32px 0 88px; }
.learn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.lang-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.lang-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-right: 4px; }
.lang-label .ic { width: 16px; height: 16px; }
.lang-tabs .chip { display: inline-flex; align-items: center; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--elev-1); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-foot { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.player-foot strong { color: var(--ink-2); font-weight: 500; }
.player-foot a { display: inline-flex; align-items: center; gap: 2px; color: var(--brand); }
.player-foot a .ic { width: 14px; height: 14px; }
.player-foot > span > a { margin-left: 6px; }
.alt-videos a { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
.learn-head { margin-top: 32px; }
.learn-head h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 10px; }
.learn-head .s-lead { margin-bottom: 0; max-width: none; }
.learn-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.learn-notes-link { margin-left: auto; }
.learn-notes h2 { display: flex; align-items: center; gap: 10px; }
.learn-notes h2 .ic { width: 24px; height: 24px; color: var(--brand); }
.learn-notes .prose, .notes-lesson .prose { font-size: 1rem; }
.learn-notes .prose h2, .notes-lesson .prose h2 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.learn-notes .prose h3, .notes-lesson .prose h3 { font-size: 1.1rem; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.prose pre code { padding: 0; background: none; }
.prose pre { white-space: pre; line-height: 1.55; color: var(--ink); }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.res-list a { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); font-size: 15px; }
.res-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.res-list .ic { width: 16px; height: 16px; }
.learn-side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }
.learn-side-head { padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.learn-side-head strong { display: block; font-family: var(--font-head); font-weight: 500; color: var(--ink); }
.learn-side-head span { font-size: 13.5px; color: var(--muted); }
.ls-mod { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ls-mod:last-child { border-bottom: 0; }
.ls-mod h3 { font-size: 14.5px; margin: 0; padding: 4px 20px 8px; }
.ls-mod h3 small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.ls-mod ol { list-style: none; margin: 0; padding: 0; }
.ls-mod li > a, .ls-mod li > span { display: flex; gap: 10px; align-items: flex-start; padding: 8px 20px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.ls-mod li > a:hover { background: var(--surface); color: var(--ink); }
.ls-mod li .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.ls-mod li small { display: block; font-size: 12.5px; color: var(--muted); }
.ls-mod li.is-current > a { background: var(--brand-tint); color: var(--brand); font-weight: 500; box-shadow: inset 3px 0 0 var(--brand); }
.ls-mod li.is-current .ic { color: var(--brand); }
.ls-mod li.is-done .ic { color: #188038; }
.ls-mod li.is-locked > span { color: var(--muted); }

/* Course notes page */
.notes-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.notes-toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; font-size: 14px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.notes-toc strong { font-family: var(--font-head); font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.notes-toc-mod { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.notes-toc a { padding: 4px 0; color: var(--ink-2); }
.notes-toc a:hover { color: var(--brand); }
.notes-body { max-width: 860px; }
.notes-lesson { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: calc(var(--header-h) + 24px); }
.notes-lesson:last-child { border-bottom: 0; }

/* Student accounts */
.auth-section { background: var(--surface); }
.auth { max-width: 480px; margin: 0 auto; }
.auth h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 8px; }
.auth-lead { color: var(--ink-2); margin-bottom: 24px; }
.auth .form-status { margin-bottom: 18px; }
.auth .opt { font-weight: 400; color: var(--muted); }
.auth-swap { margin: 20px 0 0; text-align: center; font-size: 15px; }
.auth-swap a, .auth-help a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.auth-help { margin-top: 10px; text-align: center; }
.my-courses { display: grid; gap: 16px; }
.my-course { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-soft); }
.my-course .s-icon { margin: 0; }
.my-course h2 { font-size: 1.25rem; margin-bottom: 12px; }
.my-course h2 a:hover { color: var(--brand); }
.my-course .s-tag { margin-bottom: 6px; }
.my-course .progress { max-width: 420px; margin-bottom: 8px; }
.my-course .form-note { display: flex; align-items: center; gap: 6px; }
.my-course .form-note .ic { width: 16px; height: 16px; }
.my-course-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.account-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.account-grid .kv { max-width: 460px; }
.account-grid .form-status { margin-bottom: 16px; }

@media (max-width: 1080px) {
  .learn-grid { grid-template-columns: minmax(0, 1fr); }
  .learn-side { position: static; max-height: none; }
}
@media (max-width: 960px) {
  .notes-layout, .account-grid { grid-template-columns: 1fr; }
  .notes-toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .curr-list li { grid-template-columns: auto 1fr; }
  .curr-meta { grid-column: 2; justify-content: flex-start; text-align: left; }
  .my-course { grid-template-columns: 1fr; gap: 14px; }
  .my-course-actions { justify-content: flex-start; }
  .learn-notes-link { margin-left: 0; }
  .learn-progress .progress { width: 120px; }
}
@media print {
  .site-header, .site-footer, .wa-float, .mobile-menu, .s-hero--page .s-actions, .s-crumbs, .notes-toc, .no-print { display: none !important; }
  .notes-layout { display: block; }
  .s-section, .s-hero--page { padding: 16px 0; background: none; border: 0; }
  .notes-lesson { break-inside: auto; padding-bottom: 24px; margin-bottom: 24px; }
  .prose pre { white-space: pre-wrap; }
  .js [data-reveal]:not(.is-in) { opacity: 1; }
}

/* ---------- Reveal (subtle) ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; }
.js [data-reveal].is-in { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (min-width: 1440px) {
  .s-grid { grid-template-columns: repeat(4, 1fr); }
  .s-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .s-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .s-features { grid-template-columns: repeat(4, 1fr); }
  .s-dir { grid-template-columns: repeat(3, 1fr); }
  .s-head { max-width: 820px; }
  .s-lead { max-width: 760px; }
  .s-hero--page h1 { max-width: 1100px; }
  .s-detail { grid-template-columns: 1fr 400px; }
  .s-product { grid-template-columns: 480px 1fr; }
  .faq { max-width: 1040px; }
  .faq details > div { max-width: 920px; }
  .article { max-width: 840px; }
}
@media (min-width: 1800px) {
  h1 { font-size: 3.9rem; }
  .s-dir { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1080px) {
  :root { --header-h: 72px; }
  .brand img { height: 30px; }
  .nav-links, .nav-cta .nav-link, .nav-cta .btn { display: none; }
  .menu-toggle { display: grid; }
  .s-detail { grid-template-columns: 1fr; }
  .s-aside { position: static; }
}
@media (max-width: 960px) {
  .s-hero-inner, .s-about, .contact-grid { grid-template-columns: 1fr; }
  .s-hero-inner { gap: 48px; }
  .s-grid, .s-grid--4, .s-features { grid-template-columns: 1fr 1fr; }
  .s-product { grid-template-columns: 1fr; }
  .s-dir { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-services { grid-column: 1 / -1; }
  .job-body .inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .s-section { padding: 64px 0; }
  .s-hero { padding: 48px 0 64px; }
  .s-hero--page { padding: 32px 0 40px; }
  .s-grid, .s-grid--2, .s-grid--4, .s-features, .s-checks--2, .form-row { grid-template-columns: 1fr; }
  .s-logos { gap: 24px 36px; }
  .s-dir-list, .s-grid--2 .s-domain .s-dir-list { grid-template-columns: 1fr; }
  .s-dir-card { padding: 22px; }
  .s-logos img { height: 28px; }
  .client-tile { height: 72px; min-width: 72px; padding: 0 8px; border-radius: 18px; }
  .client-tile img { height: 56px; max-width: 120px; }
  .client-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 20px; }
  .client-grid .client-tile { height: 80px; }
  .client-grid .client-tile img { max-height: 68px; max-width: 130px; }
  .s-product { padding: 20px; }
  .s-contact { padding: 40px 20px; }
  .s-contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .search { min-width: 0; width: 100%; }
  .job-head { padding: 18px 20px; }
  .job-body .inner { padding: 0 20px 20px; }
  :root { --header-h: 64px; }
  .brand img { height: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 88px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .s-facts dt { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* No scrolling: show each client logo once, wrapped onto rows. */
  .client-marquee { -webkit-mask-image: none; mask-image: none; }
  .client-marquee-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .client-marquee-track > * { margin-right: 0; }
  .client-marquee-track > [aria-hidden="true"] { display: none; }
}
