/* =========================================================
   eduapphub – site styles
   Same identity as the old site (navy #0e4479, gold #a07749,
   light-blue panels, grey footer), cleaner spacing and type.
   ========================================================= */
:root {
  --navy: #0e4479; --navy-2: #0f4477; --navy-hover: #1b66ca; --sky: #1e90ff;
  --gold: #a07749; --gold-line: #bc9352; --gold-soft: #f7f0e6;
  --grey: #666; --grey-2: #888; --line: #e4e6ec; --line-2: #e9eaed;
  --panel: #f8f8fc; --panel-2: #f0f4f8; --bg: #fcfcff; --white: #fff;
  --text: #1f2430; --muted: #5d6475; --ok: #1f8a4c; --bad: #c0392b; --warn: #b7791f;
  --r: 8px; --r-lg: 14px;
  --shadow-1: 0 0 8px rgba(59, 64, 69, .16);
  --shadow-2: 0 6px 22px rgba(20, 34, 60, .14);
  --font: Gotham, "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 75px;
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-hover); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 9999; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.gold { color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.page { background: var(--white); min-height: 60vh; }
.section { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; color: var(--gold); font-weight: 600; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }

/* ---------- buttons & form controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r);
  border: 1px solid transparent; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, box-shadow .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); color: #fff; }
.btn-dark { background: var(--navy-2); color: #fff; }
.btn-dark:hover { background: var(--sky); color: #fff; }
.btn-light { background: #fff; color: var(--text); border-color: var(--line); }
.btn-light:hover { background: #deeafe; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8a6339; color: #fff; }
.btn-round { border-radius: 999px; }
.btn-lg { min-height: 50px; padding: 12px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.btn-icon { width: 40px; padding: 0; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
input:not([type]), input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
  font: inherit; color: var(--text); background: #f9f9fc; border: 1px solid #bcbcbf; border-radius: var(--r); padding: 9px 12px; width: 100%; min-height: 42px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-hover); box-shadow: 0 0 0 3px rgba(27, 102, 202, .18); background: #fff; }
label { font-weight: 600; font-size: .92rem; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .err { font-size: .85rem; color: var(--bad); margin-top: 4px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--panel-2); color: var(--navy); border: 1px solid transparent; white-space: nowrap; }
a.chip:hover { border-color: var(--navy); text-decoration: none; }
.chip-gold { background: var(--gold-soft); color: #7a5730; }
.chip-new { background: #e6f6ec; color: var(--ok); }
.chip-x { cursor: pointer; }
.chip-x .ico { width: .9em; height: .9em; }
.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid; }
.alert-ok { background: #edf8f1; border-color: #bfe3cd; color: #17643a; }
.alert-err { background: #fdf0ee; border-color: #f3c4bd; color: #8e2a1e; }
.alert-info { background: var(--panel-2); border-color: #d6e0ea; color: var(--navy); }

/* ---------- header (same layout as before: gold line, logo, Apps, wide search) ---------- */
.site-header { position: sticky; top: 0; z-index: 500; background: #fff; box-shadow: 0 4px 6px -4px rgba(0, 0, 0, .18); }
.site-header::before { content: ""; display: block; height: 3px; background: var(--gold-line); }
.hdr { display: flex; align-items: center; gap: 18px; height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 20px; transition: height .2s; }
.site-header.is-compact .hdr { height: 58px; }
.hdr-logo { flex: none; display: flex; align-items: center; height: 100%; }
.hdr-logo img { height: 62px; width: auto; transition: height .2s; }
.site-header.is-compact .hdr-logo img { height: 46px; }
.hdr-nav { display: flex; gap: 4px; flex: none; }
.hdr-nav a { padding: 8px 12px; border-radius: var(--r); color: #333; font-weight: 600; font-size: .98rem; }
.hdr-nav a:hover, .hdr-nav a[aria-current=page] { background: #deeafe; color: var(--navy); text-decoration: none; }
.hdr-search { position: relative; flex: 1; min-width: 0; max-width: 640px; margin-left: auto; }
.hdr-search form { position: relative; }
.hdr-search input { min-height: 48px; padding: 10px 150px 10px 44px; border-radius: 999px; background: #f9f9fc; }
.hdr-search .s-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--grey); width: 20px; height: 20px; pointer-events: none; }
.hdr-search .adv { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: .86rem; color: var(--navy-2); font-weight: 600; }
.hdr-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.hdr-menu-btn, .hdr-search-btn { display: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); border: 1px solid var(--line); padding: 8px; max-height: 70vh; overflow: auto; z-index: 600; }
.suggest[hidden] { display: none; }
.suggest h4 { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); margin: 8px 10px 4px; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r); color: var(--text); }
.suggest a:hover, .suggest a.is-active { background: var(--panel-2); text-decoration: none; }
.suggest img { width: 48px; height: 32px; object-fit: cover; border-radius: 4px; flex: none; background: var(--panel); }
.suggest .s-meta { font-size: .8rem; color: var(--muted); }
.suggest mark { background: none; color: var(--navy); font-weight: 700; }
.suggest .s-all { justify-content: center; font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 var(--r) var(--r); }
.suggest .s-empty { padding: 16px; color: var(--muted); text-align: center; }
.mobile-nav { display: none; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 12px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: #aaa; }
.crumbs a { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--grey); color: #fff; margin-top: 0; }
.site-footer a { color: #fff; }
.ftr-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding: 40px 20px 24px; max-width: var(--max); margin: 0 auto; }
.ftr-cols h3 { color: #fff; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 12px; }
.ftr-cols ul { list-style: none; margin: 0; padding: 0; }
.ftr-cols li { margin: 0 0 8px; font-size: .92rem; }
.ftr-brand p { font-size: .92rem; opacity: .9; }
.ftr-brand .logo { font-size: 1.5rem; letter-spacing: -.01em; }
.ftr-social { display: flex; gap: 10px; margin-top: 12px; }
.ftr-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ftr-social a:hover { background: rgba(255, 255, 255, .28); }
.ftr-bottom { border-top: 1px solid rgba(255, 255, 255, .18); }
.ftr-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; font-size: .88rem; flex-wrap: wrap; }
.ftr-bottom button { background: none; border: 0; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- cookie consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); border: 1px solid var(--line); padding: 18px 20px; }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.consent p { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.consent .row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.consent .opts { display: grid; gap: 8px; margin: 0 0 12px; }
.consent .opts[hidden] { display: none; }
.consent .opts label { font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }

/* ---------- ads (fixed height = no layout shift) ---------- */
.ad { display: flex; align-items: center; justify-content: center; margin: 24px auto; min-height: 110px; max-width: 100%; overflow: hidden; }
.ad-square { min-height: 260px; }
.ad::before { content: "Advertisement"; position: absolute; font-size: .7rem; color: #bbb; transform: translateY(-62px); }
.ad { position: relative; }
.ad ins { display: block; width: 100%; }

/* ---------- app cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow .18s, transform .18s; }
.card:hover { box-shadow: 0 0 8px rgba(59, 64, 69, .4); transform: translateY(-2px); }
.card-img { display: block; aspect-ratio: 3 / 2; background: var(--panel); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; }
.card-title a { color: var(--text); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: none; color: var(--navy); }
.card-desc { font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.card-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); margin-top: auto; align-items: center; }
.card-meta span { display: inline-flex; gap: 4px; align-items: center; }
.card-badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.card-note { font-size: .84rem; background: var(--gold-soft); color: #6b4a24; padding: 6px 10px; border-radius: 6px; }
.cards.is-list { grid-template-columns: 1fr; gap: 14px; }
.cards.is-list .card { flex-direction: row; }
.cards.is-list .card-img { width: 210px; flex: none; aspect-ratio: auto; min-height: 140px; }
.cards.is-list .card-desc { -webkit-line-clamp: 3; }
.rating-good { color: var(--ok); }
.num-badge { position: absolute; top: 10px; left: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* ---------- toolbar, pagination ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 0 16px; margin-bottom: 20px; border-bottom: 2px solid var(--line-2); }
.toolbar .count { color: var(--grey); font-size: 1.05rem; margin-right: auto; }
.toolbar select { width: auto; min-height: 38px; padding: 6px 30px 6px 10px; }
.toolbar label { font-weight: 500; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg a { display: grid; place-items: center; width: 38px; height: 36px; color: var(--grey); }
.seg a[aria-current=true] { background: var(--navy); color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 32px 0 8px; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); color: var(--text); font-size: .92rem; }
.pager a:hover { border-color: var(--navy); text-decoration: none; background: var(--panel-2); }
.pager [aria-current=page] { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.pager .gap { border: 0; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 1.4rem; color: var(--text); margin-bottom: 6px; }

/* ---------- home ---------- */
.hero { position: relative; background: linear-gradient(135deg, #f0f4f8 0%, #fff 55%, #f7f0e6 100%); overflow: hidden; }
.hero-banner { position: relative; display: block; }
.hero-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.hero-inner { max-width: 920px; margin: 0 auto; padding: 46px 20px 40px; text-align: center; }
.hero h1 { color: var(--navy); margin-bottom: 10px; }
.hero h1 b { color: var(--gold); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 720px; margin: 0 auto 22px; }
.hero-search { position: relative; max-width: 680px; margin: 0 auto 18px; }
.hero-search input { min-height: 56px; border-radius: 999px; padding-left: 52px; padding-right: 130px; font-size: 1.05rem; background: #fff; box-shadow: var(--shadow-1); }
.hero-search .s-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--grey); }
.hero-search button { position: absolute; right: 6px; top: 6px; bottom: 6px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 34px; margin-top: 26px; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.hero-stats b { display: block; font-size: 1.6rem; color: var(--navy); }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.level { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.level:hover { border-color: var(--navy); text-decoration: none; background: #fff; box-shadow: var(--shadow-1); }
.level .ico { width: 28px; height: 28px; color: var(--gold); }
.level b { font-size: 1.02rem; }
.level span { font-size: .85rem; color: var(--muted); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.topic-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; color: var(--text); }
.topic-card:hover { box-shadow: var(--shadow-1); border-color: #cfd8e3; text-decoration: none; }
.topic-card img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; flex: none; background: var(--panel); }
.topic-card b { display: block; color: var(--navy); }
.topic-card span { font-size: .85rem; color: var(--muted); }
.why { background: var(--panel); }
.why h2 { text-align: center; color: var(--grey); font-weight: 400; font-size: 1.5rem; }
.why h2 b { color: var(--text); }
.slider { position: relative; overflow: hidden; }
.slider-track { display: flex; transition: transform .45s ease; touch-action: pan-y; }
.slide { flex: 0 0 33.333%; padding: 14px; text-align: center; }
.slide img { width: 100%; max-width: 300px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.slide h3 { margin: 14px 0 6px; }
.slide p { max-width: 360px; margin: 0 auto; color: var(--muted); font-size: .95rem; }
.slider-btn { position: absolute; top: 40%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1); }
.slider-btn.prev { left: 4px; } .slider-btn.next { right: 4px; }
.slider-btn[hidden] { display: none; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #cfd3db; padding: 0; cursor: pointer; }
.dots button[aria-current=true] { background: var(--gold); }
.seo-text { columns: 2; column-gap: 40px; color: var(--muted); font-size: .96rem; }
.seo-text h2 { column-span: all; color: var(--text); font-size: 1.3rem; }
.seo-text p { break-inside: avoid; }

/* ---------- group cards / pages ---------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.gcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow .18s, transform .18s; }
.gcard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.gcard-cover { aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--navy), #3b78b8); position: relative; overflow: hidden; }
.gcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard-cover .stack { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px; }
.gcard-cover .stack img { border-radius: 6px; aspect-ratio: 3/2; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.gcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard-body h3 { margin: 0; font-size: 1.08rem; }
.gcard-body h3 a { color: var(--text); }
.gcard-body h3 a::after { content: ""; position: absolute; inset: 0; }
.gcard-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: auto; font-size: .85rem; color: var(--muted); }
.group-hero { background: var(--panel-2); border-bottom: 1px solid var(--line); }
.group-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-top: 26px; padding-bottom: 30px; }
.group-hero .cover-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy), #3b78b8); box-shadow: var(--shadow-2); }
.group-hero .cover-stack img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; background: #fff; }
.group-hero img.cover { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-2); aspect-ratio: 16/6; object-fit: cover; }
.group-hero .eyebrow { display: inline-flex; gap: 6px; align-items: center; color: var(--gold); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.group-hero .facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.gsection { margin: 30px 0; }
.gsection h2 { font-size: 1.2rem; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.gsection h2::after { content: ""; flex: 1; height: 2px; background: var(--line-2); }

/* ---------- app page (old layout: light-blue info panel left, app right) ---------- */
.app-layout { display: flex; align-items: stretch; min-height: calc(100vh - var(--header-h)); background: #fff; }
.app-side { width: 400px; flex: none; background: var(--panel); border-right: 1px solid var(--line); padding: 22px 20px 40px; position: relative; transition: margin .25s; }
.app-layout.side-hidden .app-side { margin-left: -400px; }
.side-toggle { flex: none; color: var(--navy); }
.app-layout:not(.side-hidden) .side-toggle { background: var(--panel); }
.app-layout.side-hidden .side-toggle { border: 1px solid #acacff; background: #fff; box-shadow: var(--shadow-1); }
.app-id { text-align: center; padding-bottom: 16px; border-bottom: 2px solid var(--line-2); }
.app-id img.logo { width: 150px; height: 100px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow-1); background: #fff; }
.app-id h1 { color: var(--gold); font-size: 1.45rem; font-weight: 600; margin: 14px 0 4px; }
.app-id .ver { font-size: .82rem; color: var(--muted); }
.vote { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--line-2); border-radius: var(--r); padding: 10px; margin: 16px 0 8px; }
.vote button { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 14px; border-radius: var(--r); border: 1px solid #d0d3da; background: #fff; cursor: pointer; font: inherit; font-weight: 600; color: var(--text); }
.vote button:hover { border-color: var(--navy); }
.vote button[aria-pressed=true].up { background: #e6f6ec; color: var(--ok); border-color: var(--ok); }
.vote button[aria-pressed=true].down { background: #fdf0ee; color: var(--bad); border-color: var(--bad); }
.vote .score { min-width: 86px; text-align: center; line-height: 1.15; }
.vote .score b { display: block; font-size: 1.4rem; }
.vote .score span { font-size: .78rem; color: var(--muted); }
.side-stats { display: flex; justify-content: center; gap: 22px; color: var(--muted); font-size: .9rem; padding: 6px 0 14px; border-bottom: 2px solid var(--line-2); }
.side-stats span { display: inline-flex; gap: 6px; align-items: center; }
.side-block { padding: 14px 0; border-bottom: 2px solid var(--line-2); }
.side-block h2 { font-size: 1.05rem; color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.side-block h2.gold { color: var(--gold); }
.side-facts { list-style: none; margin: 0; padding: 0; }
.side-facts li { display: flex; gap: 8px; align-items: center; margin: 4px 0; font-size: .95rem; }
.side-facts .ico { color: var(--gold); }
.clamp { position: relative; max-height: 190px; overflow: hidden; }
.clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, var(--panel)); }
.clamp.is-open { max-height: none; }
.clamp.is-open::after, .clamp.no-clamp::after { display: none; }
.more-btn { background: none; border: 0; color: var(--navy); cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; padding: 4px 0; text-decoration: underline; }
.about-text { font-size: .95rem; text-align: left; }
.about-text ul { padding-left: 20px; margin: 6px 0; }
.dates { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 14px 0 0; }
.gbox .gbox-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gbox ol { margin: 8px 0 0; padding-left: 22px; font-size: .9rem; }
.gbox li { margin: 3px 0; }
.gbox li[aria-current=step] { font-weight: 700; }
.gbox li[aria-current=step] a { color: var(--gold); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: calc(var(--header-h) + 3px); z-index: 30; }
.site-header.is-compact ~ main .app-bar { top: 61px; }
.app-bar .t { font-weight: 600; color: var(--muted); font-size: .92rem; margin-right: auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app-frame-wrap { position: relative; min-height: 480px; background: #fff; }
.app-frame { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.app-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #fff; transition: opacity .3s; z-index: 2; }
.app-poster img { max-width: min(900px, 92%); max-height: 70%; object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-1); opacity: .55; filter: blur(.5px); }
.app-poster.is-done { opacity: 0; pointer-events: none; }
.loadbar { position: absolute; top: 0; left: 0; height: 3px; background: var(--gold-line); width: 0; transition: width 2s ease-out; z-index: 3; }
.app-frame-wrap.is-loading .loadbar { width: 85%; }
.app-frame-wrap.is-loaded .loadbar { width: 100%; opacity: 0; transition: width .2s, opacity .4s .2s; }
.no-files { padding: 60px 20px; text-align: center; color: var(--muted); }
.app-nav { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--panel-2); flex-wrap: wrap; }
.app-nav a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.app-nav .pos { color: var(--muted); font-size: .9rem; align-self: center; }
.doc { padding: 26px 30px 10px; border-top: 1px solid var(--line); }
.doc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.doc-head h2 { margin: 0 auto 0 0; color: var(--navy); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.doc-head h2 .ico { color: var(--gold); }
.doc-box { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 22px 26px; max-height: 560px; overflow: auto; background: #fff; }
.doc-box.is-open { max-height: none; }
.video { position: relative; max-width: 800px; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: #000; margin: 0 0 20px; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video .play { position: absolute; inset: 0; margin: auto; width: 74px; height: 52px; border-radius: 14px; background: #f00; color: #fff; display: grid; place-items: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 0 0 18px; font-size: .92rem; }
.toc b { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li.l3 { margin-left: 14px; list-style: circle; }
.changelog { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.changelog li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.changelog .v { font-weight: 700; color: var(--navy); min-width: 48px; }
.changelog .d { color: var(--muted); min-width: 92px; }
.bottom-bar { position: sticky; bottom: 0; z-index: 40; display: flex; justify-content: center; gap: 8px; padding: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 -2px 10px rgba(0, 0, 0, .08); flex-wrap: wrap; backdrop-filter: blur(6px); }
.bottom-bar .btn { border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); background: #fff; min-height: 40px; }
.bottom-bar .btn:hover { background: var(--navy); color: #fff; }
.go-top { position: fixed; right: 14px; bottom: 72px; z-index: 45; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1); }
.go-top[hidden] { display: none; }
.related { padding: 26px 30px 40px; border-top: 1px solid var(--line); }
body.is-fullscreen .site-header, body.is-fullscreen .app-side, body.is-fullscreen .bottom-bar, body.is-fullscreen .crumbs, body.is-fullscreen .site-footer, body.is-fullscreen .doc, body.is-fullscreen .related, body.is-fullscreen .app-nav { display: none !important; }
body.is-fullscreen .app-bar { position: fixed; top: 0; left: 0; right: 0; }
body.is-fullscreen .app-frame-wrap { padding-top: 54px; }

/* ---------- rich text (How to use, Theory, pages) ---------- */
.prose { font-size: 1rem; line-height: 1.75; color: #222; overflow-wrap: break-word; }
.prose h2 { color: var(--gold); font-size: 1.35rem; font-weight: 600; margin: 1.6em 0 .5em; scroll-margin-top: 100px; }
.prose h3 { color: var(--navy); font-size: 1.12rem; margin: 1.3em 0 .4em; scroll-margin-top: 100px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .25em 0; }
.prose img { border-radius: 6px; height: auto; }
.prose figure { margin: 1.2em auto; text-align: center; }
.prose figure img { border: 1px solid var(--line); }
.prose figcaption { font-size: .88rem; font-style: italic; color: var(--muted); margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--panel-2); }
.prose code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.prose blockquote { border-left: 4px solid var(--gold-line); margin: 1em 0; padding: 6px 16px; background: var(--gold-soft); color: #4d3a22; }
.prose .callout, .prose .note-box, .prose .example { background: #f5f7ff; border-left: 4px solid var(--navy); border-radius: 6px; padding: 10px 16px; margin: 1em 0; overflow-x: auto; }
.prose .formula { background: #f5f7ff; border-radius: 6px; padding: 8px 14px; margin: 1em 0; overflow-x: auto; text-align: center; }
.prose .tip { background: #edf8f1; border-left: 4px solid var(--ok); border-radius: 6px; padding: 10px 16px; margin: 1em 0; }
.prose .warning { background: #fff7e6; border-left: 4px solid var(--warn); border-radius: 6px; padding: 10px 16px; margin: 1em 0; }
.prose .steps { counter-reset: s; list-style: none; padding-left: 0; }
.prose .steps > li { counter-increment: s; position: relative; padding-left: 42px; margin: 12px 0; }
.prose .steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.prose .img-right { float: right; max-width: 45%; margin: 0 0 1em 1.5em; }
.prose mjx-container[display=true] { overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.prose .lead { font-size: 1.12rem; color: #333; }
.prose::after { content: ""; display: table; clear: both; }

/* ---------- static & doc pages ---------- */
.narrow { max-width: 860px; margin: 0 auto; }
.page-title { padding: 18px 0 8px; }
.page-title h1 { color: var(--navy); }
.doc-page { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 20px 0 60px; }
.doc-page aside { position: sticky; top: 100px; align-self: start; }
.doc-page aside .toc { margin: 0; }

/* ---------- search with left filters ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 20px 0 50px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 30px); overflow: auto; padding-right: 6px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filters-head h2 { font-size: 1.1rem; margin: 0; display: flex; gap: 8px; align-items: center; }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0; }
.fgroup > summary { list-style: none; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup[open] > summary .ico { transform: rotate(180deg); }
.fgroup .opts { margin-top: 8px; display: grid; gap: 2px; }
.fopt { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-weight: 500; font-size: .92rem; cursor: pointer; }
.fopt:hover { background: var(--panel-2); }
.fopt input { width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.fopt .n { margin-left: auto; font-size: .8rem; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 0 8px; }
.fopt.is-zero { opacity: .45; }
.ffind { margin-bottom: 6px; min-height: 34px !important; padding: 5px 10px !important; font-size: .88rem !important; }
.fmore { background: none; border: 0; color: var(--navy); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 4px 6px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -6px 0 16px; }
.search-q { position: relative; margin-bottom: 14px; }
.search-q input { padding-left: 44px; min-height: 50px; font-size: 1.05rem; border-radius: 999px; }
.search-q .s-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--grey); }
.dym { margin: 0 0 16px; font-size: 1.02rem; }
.filters-open-btn { display: none; }
.hl { background: #fff3c4; color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(40, 44, 52, .45); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 22px 24px; }
.modal-box h2 { font-size: 1.2rem; margin-bottom: 4px; padding-right: 30px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.share-grid a:hover, .share-grid button:hover { border-color: var(--navy); text-decoration: none; background: var(--panel-2); }
.share-grid .ico { width: 26px; height: 26px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-size: .88rem; }
.kinds { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.kinds label { font-weight: 500; }
.kinds input { position: absolute; opacity: 0; }
.kinds span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .88rem; }
.kinds input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.kinds input:focus-visible + span { outline: 3px solid var(--sky); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 4000; font-size: .92rem; box-shadow: var(--shadow-2); }

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 60px 20px 30px; }
.err-page .code { font-size: 5rem; font-weight: 800; color: var(--line); line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-cols { grid-template-columns: repeat(3, 1fr); }
  .ftr-brand { grid-column: 1 / -1; }
  .app-side { width: 330px; }
  .app-layout.side-hidden .app-side { margin-left: -330px; }
  .slide { flex-basis: 50%; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .hdr { gap: 10px; }
  .hdr-logo img { height: 46px; }
  .hdr-nav, .hdr-search { display: none; }
  .hdr-menu-btn, .hdr-search-btn { display: inline-flex; }
  .hdr-tools { margin-left: auto; }
  .site-header.is-search-open .hdr-search { display: block; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 10px 14px; background: #fff; box-shadow: 0 8px 14px rgba(0,0,0,.1); }
  .site-header.is-search-open .hdr-search input { padding-right: 16px; }
  .site-header.is-search-open .hdr-search .adv { display: none; }
  .mobile-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 8px 14px rgba(0,0,0,.12); padding: 8px 14px 14px; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }
  .app-layout { flex-direction: column; }
  .app-side { width: auto; order: 2; border-right: 0; border-top: 1px solid var(--line); margin: 0 !important; }
  .side-toggle { display: none; }
  .app-bar { top: 63px; }
  .doc { padding: 20px 16px 6px; }
  .doc-box { padding: 16px; }
  .related { padding: 20px 16px 30px; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; z-index: 2500; background: #fff; padding: 16px; transform: translateX(-105%); transition: transform .25s; box-shadow: var(--shadow-2); top: 0; }
  .filters.is-open { transform: none; }
  .filters-open-btn { display: inline-flex; }
  .filters-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 2400; }
  .group-hero .wrap { grid-template-columns: 1fr; }
  .doc-page { grid-template-columns: 1fr; }
  .doc-page aside { position: static; }
  .seo-text { columns: 1; }
  .bottom-bar .btn span { display: none; }
  .bottom-bar .btn { width: 44px; padding: 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .wrap { padding: 0 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-body { padding: 10px; }
  .card-desc { display: none; }
  .cards.is-list .card-img { width: 120px; min-height: 100px; }
  .cards.is-list .card-desc { display: -webkit-box; }
  .ftr-cols { grid-template-columns: repeat(2, 1fr); }
  .slide { flex-basis: 100%; }
  .hero-inner { padding-top: 28px; }
  .hero-search input { padding-right: 16px; }
  .hero-search button { display: none; }
  .hero-stats { gap: 18px; }
  .prose .img-right { float: none; max-width: 100%; margin: 1em 0; }
  .toolbar .count { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .bottom-bar, .ad, .consent, .go-top, .app-bar, .crumbs, .doc-page aside { display: none !important; }
  .doc-page { display: block; }
  body { background: #fff; }
}

/* ---------- announcement ---------- */
.announce-bar { background: linear-gradient(90deg, #0e4479, #1b66ca); color: #fff; font-size: .92rem; }
.announce-bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.announce-bar span { flex: 1; min-width: 0; }
.announce-bar b { color: #ffd98e; margin-right: 4px; }
.announce-bar a { color: #fff; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.announce-bar .ab-x { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .8; }
.announce-bar .ab-x:hover { opacity: 1; }
.announce-card { margin: 26px 0 0; }
.announce-card .ac-in { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #fff8ec, #eef4ff); border: 1px solid #e8d6b6; border-radius: var(--r-lg); padding: 20px 24px; box-shadow: var(--shadow-1); }
.announce-card .ac-ico { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--navy); color: #ffd98e; display: grid; place-items: center; }
.announce-card .ac-ico svg { width: 28px; height: 28px; }
.announce-card h2 { margin: 0 0 4px; font-size: 1.3rem; color: var(--navy); }
.announce-card p { margin: 0; color: #3c4350; }
.announce-card .ac-txt { flex: 1; min-width: 0; }
.announce-card .btn { flex: none; }
@media (max-width: 700px) { .announce-card .ac-in { flex-direction: column; align-items: flex-start; padding: 18px; } .announce-bar .wrap { flex-wrap: wrap; font-size: .86rem; } }

/* ---------- static pages (about, team, legal) ---------- */
.sp-hero { background: radial-gradient(1200px 400px at 85% 0%, #dbe8ff 0%, transparent 60%), linear-gradient(180deg, #f3f7ff, #fff); border-bottom: 1px solid var(--line); }
.sp-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: center; padding-top: 34px; padding-bottom: 34px; }
.sp-hero h1 { color: var(--navy); font-size: 2.2rem; margin: 8px 0 10px; line-height: 1.15; }
.sp-hero .lead { font-size: 1.1rem; color: #3c4350; margin: 0; max-width: 680px; }
.sp-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.sp-eyebrow svg { width: 16px; height: 16px; }
.sp-upd { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin: 12px 0 0; }
.sp-upd svg { width: 15px; height: 15px; }
.sp-art { position: relative; height: 220px; }
.sp-orb { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), #1b66ca); color: #ffd98e; display: grid; place-items: center; box-shadow: 0 18px 40px rgba(14, 68, 121, .28); }
.sp-orb svg { width: 70px; height: 70px; }
.sp-mini { position: absolute; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(14, 68, 121, .15); animation: spfloat 6s ease-in-out infinite; }
.sp-mini svg { width: 26px; height: 26px; }
.sp-mini.m0 { left: 18px; top: 22px; } .sp-mini.m1 { right: 20px; top: 8px; color: var(--gold); animation-delay: -1.5s; }
.sp-mini.m2 { left: 38px; bottom: 6px; color: #1f8a4c; animation-delay: -3s; } .sp-mini.m3 { right: 34px; bottom: 18px; animation-delay: -4.5s; }
@keyframes spfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .sp-mini { animation: none; } }
.sp-logo { position: absolute; inset: 20px 0; background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(14, 68, 121, .16); display: grid; place-items: center; padding: 22px; }
.sp-logo img { max-width: 100%; height: auto; }
.sp-h2 { color: var(--navy); font-size: 1.45rem; margin: 34px 0 14px; }
.sp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: -22px; position: relative; }
.sp-stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--shadow-1); display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.sp-stats svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--panel-2); color: var(--navy); }
.sp-stats b { font-size: 1.5rem; color: var(--navy); line-height: 1.1; } .sp-stats span { color: var(--muted); font-size: .85rem; }
.sp-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-why figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .18s; }
.sp-why figure:hover { transform: translateY(-3px); }
.sp-why img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.sp-why figcaption { padding: 12px 14px 14px; } .sp-why b { display: block; color: var(--navy); } .sp-why span { color: var(--muted); font-size: .9rem; }
.sp-prose { margin-top: 30px; }
.sp-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sp-topics a { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; color: var(--text); box-shadow: var(--shadow-1); }
.sp-topics a:hover { text-decoration: none; border-color: var(--navy); }
.sp-topics img { grid-row: span 2; width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.sp-topics b { color: var(--navy); font-size: .95rem; } .sp-topics span { color: var(--muted); font-size: .82rem; }
.sp-cta { background: linear-gradient(135deg, var(--navy), #1b66ca); color: #fff; margin-top: 30px; }
.sp-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 30px; }
.sp-cta h2 { margin: 0 0 4px; color: #fff; } .sp-cta p { margin: 0; color: #dbe8ff; }
.sp-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.sp-prod { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-1); color: var(--text); }
.sp-prod:hover { text-decoration: none; border-color: var(--navy); }
.sp-prod img { height: 54px; width: auto; align-self: flex-start; } .sp-prod span { color: var(--muted); }
.sp-h4m { font-size: 2rem; color: var(--navy); line-height: 54px; } .sp-h4m i { color: var(--gold); font-style: normal; }
.sp-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: f; }
.sp-flow li { counter-increment: f; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 14px; box-shadow: var(--shadow-1); }
.sp-flow li::before { content: counter(f); position: absolute; right: 12px; top: 10px; font-weight: 800; color: #d5deec; font-size: 1.6rem; }
.sp-flow svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); margin-bottom: 8px; }
.sp-flow b { display: block; color: var(--navy); margin-bottom: 4px; } .sp-flow span { font-size: .86rem; color: var(--muted); }
.sp-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -22px; position: relative; }
.sp-glance > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-1); }
.sp-glance .gi { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--panel-2); color: var(--navy); margin-bottom: 8px; }
.sp-glance .gi svg { width: 22px; height: 22px; }
.sp-glance b { display: block; color: var(--navy); } .sp-glance p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.sp-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; align-items: start; max-width: 1100px; }
.sp-legal .sp-prose { margin-top: 30px; } .sp-legal .sp-toc { position: sticky; top: 90px; margin-top: 30px; }
.sp-legal .sp-prose h2 { padding-top: 14px; border-top: 1px solid var(--line); } .sp-legal .sp-prose h2:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 900px) {
  .sp-hero-in { grid-template-columns: 1fr; padding-top: 24px; padding-bottom: 30px; } .sp-art { height: 170px; max-width: 360px; width: 100%; margin: 0 auto; }
  .sp-hero h1 { font-size: 1.75rem; }
  .sp-why, .sp-glance { grid-template-columns: 1fr 1fr; } .sp-flow { grid-template-columns: 1fr 1fr; } .sp-products { grid-template-columns: 1fr; }
  .sp-legal { grid-template-columns: 1fr; } .sp-legal .sp-toc { position: static; }
}
@media (max-width: 560px) { .sp-why, .sp-glance, .sp-flow { grid-template-columns: 1fr; } }
.sp-legal .sp-prose > p.muted:first-child { display: none; }
