/* 关衡官网 · 设计系统 v2 (2026-11)
 * One stylesheet for every page. Tokens first, then layout, components, pages.
 * Colours follow the official logo (royal blue) with a deep indigo for dark bands. */

:root {
  --brand: #2f3fd6;
  --brand-600: #2534bd;
  --brand-700: #1c2896;
  --brand-50: #eef0fe;
  --brand-100: #dfe3fd;
  --brand-200: #c3cafb;
  --navy: #0a1238;
  --navy-2: #111c52;
  --navy-3: #1a2a6e;
  --ink: #172038;
  --ink-2: #3a4459;
  --muted: #5b6478;
  --muted-2: #7a8396;
  --line: #e7eaf2;
  --line-2: #cfd5e3;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #f1f3fe;
  --accent: #f2a43a;
  --ok: #0c8f6a;
  --ok-bg: #e7f6f0;
  --err: #c0352a;
  --err-bg: #fdeceb;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(17, 28, 82, .18), 0 2px 6px rgba(17, 28, 82, .05);
  --shadow-lg: 0 30px 70px -28px rgba(10, 18, 56, .45);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Headings prefer faces with a true medium/semibold (PingFang, HarmonyOS, Noto/Source Han) so large
     titles are not rendered in YaHei Bold; body text keeps the screen-hinted YaHei on Windows. */
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Source Han Sans SC",
    "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-num: "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--font);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.4; font-weight: 600; color: var(--ink); letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }
/* Avoid a lone character on the last line of Chinese paragraphs. */
p, li, dd, figcaption { text-wrap: pretty; }
/* Translations bring long words (German compounds, French phrases): let them hyphenate or break
   instead of widening a column past the screen. */
h1, h2, h3, h4, p, li, dd, dt, figcaption, .btn, .chip, .link-arrow { overflow-wrap: anywhere; }
html:not([lang^="zh"]) body { -webkit-hyphens: auto; hyphens: auto; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding: clamp(72px, 9.5vw, 132px) 0; }
.section--tight { padding: clamp(44px, 5.5vw, 72px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.section--dark { background: var(--navy); color: #dfe4ff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section + .section--soft, .section--soft + .section--soft { border-top: 0; }
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: minmax(0, 1fr); } }

/* Typography ------------------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: .14em;
  color: var(--brand); text-transform: uppercase; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; opacity: .7; }
.section--dark .eyebrow, .hero .eyebrow { color: #9fb0ff; }
.h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.24; letter-spacing: .02em; }
.h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.42; letter-spacing: .03em; }
.h3 { font-size: clamp(19px, 1.5vw, 21px); }
.lead { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.9; color: var(--muted); }
.section--dark .lead { color: #b9c3ee; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4.6vw, 64px); }
.section-head > div { max-width: 660px; }
.section-head .lead { margin-top: 18px; }
.section-head > .link-arrow { flex: none; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center > div { margin: 0 auto; }
.section-head--center .eyebrow::before { display: none; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* Buttons & links ---------------------------------------------------------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: #fff; font-weight: 600;
  font-size: 15px; line-height: 1; white-space: nowrap; transition: background .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { --b: var(--brand-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 63, 214, .6); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: not-allowed; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); box-shadow: none; }
.btn--light { --b: #fff; color: var(--navy); }
.btn--light:hover { --b: #e9ecff; color: var(--navy); }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; box-shadow: none; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* On phones a long translated label wraps inside the pill rather than pushing the layout wider. */
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after, a:hover .link-arrow::after { transform: translateX(4px); }
.section--dark .link-arrow { color: #b8c4ff; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .4); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; flex: 1; min-width: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 13px; color: var(--ink-2); font-size: 15px;
  font-weight: 500; background: none; border: 0; white-space: nowrap; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link[aria-expanded="true"] { color: var(--brand); }
.nav__link[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.nav__link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% - 6px); left: -24px; width: min(880px, 92vw); padding: 24px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 8px 24px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__group h3 { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted-2); margin: 4px 10px 8px; }
.mega__group a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.mega__group a small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.mega__group a:hover { background: var(--bg-tint); color: var(--brand); }
.mega__feature { border-radius: 16px; padding: 18px; background: linear-gradient(150deg, var(--navy-2), var(--brand-700)); color: #d9defe; display: flex; flex-direction: column; gap: 10px; }
.mega__feature strong { color: #fff; font-size: 16px; }
.mega__feature p { font-size: 13.5px; line-height: 1.65; }
.mega__feature a { color: #fff; font-weight: 600; font-size: 14px; }
.mega__countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mega__countries a { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 500; }
.mega__countries a:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.icon-btn:hover { background: var(--bg-soft); color: var(--brand); }
.icon-btn svg { width: 20px; height: 20px; flex: none; }
.header-phone { font-family: var(--font-num); font-weight: 600; color: var(--ink); font-size: 15px; padding: 0 8px; white-space: nowrap; }
.menu-toggle { display: none; }
@media (max-width: 1180px) { .header-phone { display: none; } .nav__link { padding: 0 10px; } }
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools .btn { display: none; }
  .header-tools .icon-btn__label { display: none; }
}
/* The header fits itself to its content (site.js adds these classes): translations run two to three
   times longer than Chinese, so the row first drops the phone number and tightens, then folds the
   navigation into the menu drawer, instead of letting links slide under the tools. */
.site-header.is-tight .header-phone { display: none; }
.site-header.is-tight .nav__link { padding: 0 9px; font-size: 14.5px; }
.site-header.is-tight .header-tools .icon-btn__label[data-auth-label] { display: none; }
.site-header.is-compact .nav { display: none; }
.site-header.is-compact .menu-toggle { display: inline-flex; }
.site-header.is-compact .header-phone { display: inline; }
.site-header.is-compact .header-tools { gap: 8px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; display: flex; justify-content: flex-end; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10, 18, 56, .45); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: relative; width: min(420px, 100%); height: 100%; background: #fff; overflow-y: auto; padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: 8px; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 8px; }
.drawer__top img { height: 30px; width: auto; }
.drawer nav a, .drawer summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 4px; color: var(--ink); font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-size: 22px; color: var(--muted); font-weight: 400; }
.drawer details[open] summary::after { content: "−"; }
.drawer details a { font-size: 15px; min-height: 44px; padding-left: 14px; color: var(--ink-2); border-bottom-style: dashed; }
.drawer__actions { display: grid; gap: 10px; margin-top: 18px; }
.drawer__actions .btn { width: 100%; }
html.is-locked { overflow: hidden; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; color: #dfe4ff; background: radial-gradient(1200px 600px at 85% -10%, rgba(73, 92, 255, .45), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(47, 63, 214, .35), transparent 60%), linear-gradient(180deg, var(--navy) 0%, #0d1847 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 112px); }
@media (max-width: 560px) { .hero .btn-row .btn { width: 100%; } .hero__meta { gap: 6px 14px; font-size: 13px; } }
.hero h1 { color: #fff; }
.hero .lead { color: #b7c1ee; margin-top: 22px; max-width: 34em; }
.hero .btn-row { margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 34px; color: #95a2d6; font-size: 14px; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__visual { position: relative; }
.hero__visual .shot { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transform-origin: left center; }
.hero__badge { position: absolute; left: -18px; bottom: -22px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: 14px; line-height: 1.45; max-width: 290px; }
.hero__badge b { display: block; font-size: 15px; }
.hero__badge i { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-style: normal; font-weight: 700; }
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual .shot { transform: none; }
  .hero__badge { left: 12px; bottom: -18px; }
}

/* Browser-frame screenshot */
.shot { border-radius: 14px; overflow: hidden; background: #0c1a4a; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); }
.shot__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #e9ecf5; }
.shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #c8cede; }
.shot__bar span { margin-left: 10px; font-size: 12px; color: #6b7387; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot img { width: 100%; aspect-ratio: auto; }
.shot-note { margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.section--dark .shot-note, .hero .shot-note { color: #8792c4; }

/* Page hero (interior pages) */
.page-hero { position: relative; padding: clamp(28px, 4vw, 44px) 0 clamp(44px, 6vw, 72px); background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -160px; top: -200px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 63, 214, .13), transparent 65%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero__inner--single { grid-template-columns: minmax(0, 820px); }
.page-hero h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.2; }
.page-hero .lead { margin-top: 18px; max-width: 40em; }
.page-hero .statement { margin-top: 14px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: var(--ink-2); }
.page-hero .btn-row { margin-top: 28px; }
.page-hero__visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.page-hero__visual figcaption { font-size: 13px; color: var(--muted-2); margin-top: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
a.chip:hover { border-color: var(--brand-200); color: var(--brand); }
.chip--brand { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
@media (max-width: 900px) { .page-hero__inner { grid-template-columns: minmax(0, 1fr); } }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: clamp(20px, 3vw, 32px); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-hidden] { color: var(--line-2); }
.breadcrumb [aria-current] { color: var(--ink-2); max-width: 32em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); position: relative; z-index: 2; }
.stats--overlap { margin-top: -48px; }
.stat { padding: 30px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { font-family: var(--font-num); font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat__value sup { font-size: .5em; color: var(--brand); margin-left: 2px; vertical-align: .9em; }
.stat__label { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Logo cloud ------------------------------------------------------------- */
/* Plain wordmarks on one quiet line: no boxes, so ten names read as one row of evidence, not ten buttons. */
.clients { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 36px; }
.clients__label { flex-basis: 100%; font-size: 13px; letter-spacing: .12em; color: var(--muted-2); }
.client { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-weight: 600; color: #8a93a8; font-size: 16px; letter-spacing: .04em; }
.client small { margin-left: 6px; font-weight: 500; color: #a3abbd; font-size: 11.5px; letter-spacing: .08em; }

/* Cards ------------------------------------------------------------------ */
.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  color: var(--ink); transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
a.card:hover, .card--hover:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card h3 { font-size: 19px; line-height: 1.55; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.card .link-arrow { margin-top: auto; padding-top: 12px; font-size: 14.5px; }
.card .link-arrow, .case-card .link-arrow, .news-card .link-arrow { color: var(--brand); }
.card--dark .link-arrow { color: #b8c4ff; }
.nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.card__tag { font-size: 13px; font-weight: 500; color: var(--brand); letter-spacing: .06em; }
.card__index { font-family: var(--font-num); font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .06em; }
.card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 6px; }
.card__icon svg { width: 24px; height: 24px; }
.card__flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.card__flow span { padding: 3px 10px; border-radius: 8px; background: var(--bg-soft); }
.card__flow i { color: var(--muted-2); font-style: normal; }
.card--dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: #dfe4ff; }
.card--dark h3 { color: #fff; }
.card--dark p { color: #aab5e6; }
a.card--dark:hover { background: rgba(255, 255, 255, .07); border-color: rgba(159, 176, 255, .45); color: #dfe4ff; }
.card--dark .card__icon { background: rgba(159, 176, 255, .14); color: #b8c4ff; }

/* Rule cards (solution page): twelve short items on a light ground */
.rules { margin-top: clamp(44px, 5vw, 64px); gap: clamp(14px, 1.6vw, 20px); }
.rule { padding: 24px 24px 26px; gap: 6px; }
.rule h3 { font-size: 17px; }
.rule p { font-size: 14.5px; line-height: 1.75; }
.rule--cta { background: var(--brand-50); border-color: var(--brand-100); }
.rule--cta .card__index { color: #b86b00; }

/* Problem cards on home */
.problem { gap: 14px; }
.problem h3 { font-size: 20px; line-height: 1.55; }
.problem .card__icon { margin-bottom: 10px; }

/* Feature list (2-col items with check) */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.feature { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature__dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: 13px; font-family: var(--font-num); }
.feature h3 { font-size: 17px; line-height: 1.5; }
.feature p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); } }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232f3fd6' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 640px) { .checks--cols { grid-template-columns: minmax(0, 1fr); } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__num { font-family: var(--font-num); font-weight: 700; font-size: 13px; color: var(--brand); letter-spacing: .08em; }
.step h3 { font-size: 17px; margin-top: 10px; line-height: 1.55; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.8; }
.step::after { content: ""; position: absolute; top: 38px; right: -15px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
.step:last-child::after { display: none; }
.section--dark .step { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.section--dark .step p { color: #aab5e6; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Timeline (vertical list with numbers) */
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 30px 32px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline li:last-child { padding-bottom: 0; }
.timeline__year { font-family: var(--font-num); font-weight: 700; font-size: 22px; color: var(--brand); line-height: 1.3; }
.timeline h3 { font-size: 18px; margin-top: 4px; }
.timeline p { color: var(--muted); margin-top: 4px; font-size: 15px; }

/* Showcase tabs (product UI) --------------------------------------------- */
/* Light by default: only the selected tab shows its description, so the list reads as five names. */
.showcase { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.showcase__tabs { display: grid; gap: 4px; }
.showcase__tab { text-align: start; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--muted); transition: background .2s, border-color .2s, box-shadow .2s; }
.showcase__tab b { display: block; color: var(--ink-2); font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.showcase__tab span { display: none; font-size: 14px; line-height: 1.75; margin-top: 6px; }
.showcase__tab:hover b { color: var(--brand); }
.showcase__tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.showcase__tab[aria-selected="true"] b { color: var(--brand-700); }
.showcase__tab[aria-selected="true"] span { display: block; }
.showcase__panel figure { margin: 0; }
.section--dark .showcase__tab { color: #b9c3ee; }
.section--dark .showcase__tab b { color: #fff; }
.section--dark .showcase__tab[aria-selected="true"] { background: rgba(159, 176, 255, .12); border-color: rgba(159, 176, 255, .35); box-shadow: none; }
@media (max-width: 960px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .showcase__tab[aria-selected="true"] span, .showcase__tab span { display: none; }
  .showcase__tab { padding: 10px 16px; border-color: var(--line); background: #fff; }
}

/* Case cards ------------------------------------------------------------- */
.case-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: box-shadow .25s, transform .25s var(--ease), border-color .2s; height: 100%; }
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-100); color: var(--ink); }
.case-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.case-card:hover .case-card__media img { transform: scale(1.04); }
.case-card__media--art { display: grid; place-items: center; background: linear-gradient(140deg, var(--navy-2), var(--brand-700)); color: #fff; text-align: center; padding: 20px; }
.case-card__media--art b { font-size: 22px; display: block; }
.case-card__media--art small { color: #b9c3ee; letter-spacing: .08em; font-size: 12px; }
.case-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__tag { font-size: 13px; font-weight: 500; color: var(--brand); letter-spacing: .04em; }
.case-card h3 { font-size: 18px; line-height: 1.5; }
.case-card p { font-size: 15px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card .link-arrow { margin-top: auto; padding-top: 8px; font-size: 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.filter:hover { border-color: var(--brand-200); color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter span { color: var(--muted-2); margin-left: 4px; font-size: 12.5px; }
.filter[aria-pressed="true"] span { color: #aab3c8; }
.is-filtered-out { display: none !important; }
.empty-note { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Global map-ish country grid -------------------------------------------- */
.regions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.region-lead { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 360px; padding: 30px;
  border-radius: var(--radius-lg); color: #fff; background: #0b1440; isolation: isolate; }
.region-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; }
.region-lead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 18, 56, .05) 20%, rgba(10, 18, 56, .92) 100%); }
.region-lead h3 { color: #fff; font-size: 26px; }
.region-lead p { color: #cfd6ff; max-width: 30em; }
.region-lead .code { font-family: var(--font-num); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.region-lead:hover { color: #fff; }
.country-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.country { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.country b { font-family: var(--font-num); font-size: 12px; letter-spacing: .08em; color: var(--brand); background: var(--brand-50); border-radius: 8px; padding: 4px 7px; }
.country span { font-weight: 600; }
.country small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.country:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--ink); }
@media (max-width: 900px) { .regions { grid-template-columns: minmax(0, 1fr); } .region-lead { min-height: 300px; } }
@media (max-width: 420px) { .country-list { grid-template-columns: minmax(0, 1fr); } }

/* Film ------------------------------------------------------------------- */
.film { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.film img, .film video { width: 100%; height: 100%; object-fit: cover; }
.film__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .45)); color: #fff; transition: background .2s; }
.film__play span { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .35); font-weight: 600; font-size: 16px; transition: transform .2s; }
.film__play i { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.film__play i::before { content: ""; margin-left: 4px; border-left: 14px solid var(--brand); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.film:hover .film__play span { transform: scale(1.04); }
.film-facts { display: grid; gap: 14px; margin-top: 26px; }
.film-facts li { list-style: none; display: grid; grid-template-columns: 64px 1fr; gap: 12px; color: #c7cff5; font-size: 15px; }
.film-facts b { font-family: var(--font-num); color: #fff; font-weight: 600; }

/* Credentials / honours -------------------------------------------------- */
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.creds--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cred { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.cred b { font-size: 17px; color: var(--ink); line-height: 1.45; }
.cred span { font-size: 14px; color: var(--muted); }
.cred i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff7ea; color: #b86b00; font-style: normal; margin-bottom: 6px; }
.cred i svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .creds { grid-template-columns: minmax(0, 1fr); } }
.honors { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.honor { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.honor button { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff, var(--bg-soft)); aspect-ratio: 4 / 3; cursor: zoom-in; }
.honor img { width: 100%; height: 100%; object-fit: contain; }
.honor figcaption { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; text-align: center; }

/* Gallery ---------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--bg-soft); }
.gallery figure.is-wide { grid-column: span 2; }
.gallery figure.is-tall { grid-row: span 2; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-size: 13.5px; line-height: 1.45;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 35, .78)); pointer-events: none; }
.gallery figcaption b { display: block; font-size: 14.5px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } }

/* Team ------------------------------------------------------------------- */
.leader { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.leader img { width: 100%; border-radius: 16px; object-fit: cover; aspect-ratio: 4 / 3.2; }
.leader__role { color: var(--brand); font-weight: 600; font-size: 14px; }
.leader h3 { font-size: 26px; margin-top: 4px; }
.leader__quote { font-size: 18px; font-weight: 600; color: var(--ink-2); margin-top: 14px; line-height: 1.6; }
.leader p { margin-top: 12px; color: var(--muted); }
.leader dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; }
.leader dt { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.leader dd { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 860px) { .leader { grid-template-columns: minmax(0, 1fr); } .leader dl { grid-template-columns: minmax(0, 1fr); } }
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.person img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; background: var(--bg-soft); }
.person div { padding: 16px 18px 18px; }
.person small { color: var(--brand); font-weight: 600; font-size: 13px; }
.person b { display: block; font-size: 18px; margin-top: 2px; }
.person p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.65; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* Table ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13.5px; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.table tr:last-child td { border-bottom: 0; }

/* Prose (articles, cases) ------------------------------------------------- */
.prose { font-size: 17px; line-height: 1.9; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 1.7em; color: var(--ink); }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-200); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: 14px; }
.prose figcaption { font-size: 13.5px; color: var(--muted-2); margin-top: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand-200); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose strong { color: var(--ink); }
.summary-box { padding: 20px 24px; border-radius: var(--radius); background: var(--bg-tint); border: 1px solid var(--brand-100); color: var(--ink-2); }
.summary-box b { color: var(--brand-700); }
.note { font-size: 14px; color: var(--muted); padding: 16px 18px; border-radius: 12px; background: var(--bg-soft); }
.points { list-style: none; counter-reset: pt; display: grid; gap: 12px; padding: 0 !important; }
.points li { counter-increment: pt; position: relative; padding: 16px 18px 16px 58px; border-radius: 14px; background: var(--bg-soft); }
.points li::before { content: counter(pt, decimal-leading-zero); position: absolute; left: 18px; top: 16px; font-family: var(--font-num); font-weight: 700; color: var(--brand); font-size: 15px; }

/* Article layout with TOC */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; font-size: 14.5px; }
.toc b { font-size: 12.5px; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 8px; }
.toc a { padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--brand); }
.toc a.is-active { border-left-color: var(--brand); color: var(--brand); font-weight: 600; }
.doc__section + .doc__section { margin-top: clamp(44px, 6vw, 72px); }
.doc__section > h2 { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 18px; }
.doc__section > .eyebrow { margin-bottom: 8px; }
.callout { margin-top: 20px; padding: 16px 20px; border-radius: 12px; border-left: 4px solid var(--accent); background: #fff8ec; color: var(--ink-2); font-size: 15px; }
.callout b { color: #9a5a00; margin-right: 6px; }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.article-head { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; margin-top: 16px; }
.article-cover { margin: 28px 0 0; }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); }
.article-cover figcaption { font-size: 13px; color: var(--muted-2); margin-top: 8px; }
.source-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.source-link span { color: var(--muted); font-size: 14px; }

/* News ------------------------------------------------------------------- */
.news-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.news-feature:hover { box-shadow: var(--shadow); color: var(--ink); }
.news-feature__media { background: var(--navy); min-height: 280px; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.news-feature__body h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; }
.news-feature__body p { color: var(--muted); }
@media (max-width: 860px) { .news-feature { grid-template-columns: minmax(0, 1fr); } .news-feature__media { min-height: 0; aspect-ratio: 16 / 8; } }
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 28px); }
.news-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); min-height: 190px; transition: border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.news-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.news-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.news-card__cat { font-weight: 600; color: var(--brand); }
.news-card h3 { font-size: 17px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .link-arrow { margin-top: auto; font-size: 14px; }
@media (max-width: 960px) { .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-list { grid-template-columns: minmax(0, 1fr); } }

/* CTA band & forms --------------------------------------------------------- */
/* The booking band is a card of its own, so its section needs little extra space above it. */
#book.section { padding-top: clamp(24px, 3vw, 48px); }
/* Light band: the page ends calmly instead of stacking a dark form on top of the dark footer. */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 5.5vw, 72px); color: var(--ink-2);
  background: radial-gradient(640px 360px at 100% 0%, rgba(47, 63, 214, .10), transparent 65%), linear-gradient(160deg, var(--bg-tint), #f8f9fe 70%); border: 1px solid var(--brand-100); }
.cta__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5.5vw, 80px); align-items: start; }
.cta .eyebrow { color: var(--brand); }
.cta h2 { color: var(--ink); }
.cta .lead { color: var(--muted); margin-top: 18px; }
.cta__contact { margin-top: 36px; display: grid; gap: 18px; }
.cta__contact a, .cta__contact div { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.cta__contact small { display: block; color: var(--muted-2); font-size: 13px; }
.cta__contact b { font-family: var(--font-num); font-size: 22px; letter-spacing: .02em; color: var(--ink); }
.cta__contact i { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.cta__contact svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: minmax(0, 1fr); } }

.form-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { font-size: 20px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--err); margin-left: 2px; }
.field label .opt { color: var(--muted-2); font-weight: 400; margin-left: 4px; font-size: 13px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  font-size: 16px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 63, 214, .12); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13.5px; }
.field-hint { color: var(--muted-2); font-size: 13px; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.needs legend { margin-bottom: 8px; }
.needs label { position: relative; }
.needs input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.needs span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.needs input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.needs input:focus-visible + span { outline: 3px solid rgba(47, 63, 214, .3); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.form__foot .btn { min-width: 160px; }
.form__privacy { font-size: 13px; color: var(--muted-2); }
.form-status { grid-column: 1 / -1; font-size: 14.5px; padding: 12px 14px; border-radius: 10px; }
.form-status[data-tone="ok"] { background: var(--ok-bg); color: var(--ok); }
.form-status[data-tone="error"] { background: var(--err-bg); color: var(--err); }
.form-status[data-tone="info"] { background: var(--bg-tint); color: var(--brand-700); }
.form-done { text-align: center; padding: 28px 8px; }
.form-done i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--ok-bg); color: var(--ok); font-style: normal; font-size: 28px; }
.form-done h3 { font-size: 22px; }
.form-done p { color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.contact-item i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.contact-item svg { width: 22px; height: 22px; }
.contact-item small { color: var(--muted); font-size: 13px; }
.contact-item b { display: block; font-size: 18px; color: var(--ink); }
.contact-item p { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #9aa6d8; font-size: 14.5px; padding: clamp(48px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr; gap: 32px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 16px; line-height: 1.8; max-width: 26em; }
.footer-col h2 { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; }
.footer-col a { display: block; color: #9aa6d8; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-phone { font-family: var(--font-num); font-size: 22px; color: #fff; font-weight: 600; letter-spacing: .02em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #7884b8; }
.footer-bottom a { color: #7884b8; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-contact { grid-column: 1 / -1; } }

/* Floating assistant ------------------------------------------------------- */
.assist { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; }
.assist__launcher { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 14px; border-radius: 999px; border: 0; background: var(--brand); color: #fff;
  font-weight: 600; font-size: 15px; box-shadow: 0 14px 30px -10px rgba(47, 63, 214, .7); transition: transform .2s, background .2s; }
.assist__launcher:hover { background: var(--brand-600); transform: translateY(-2px); }
.assist__launcher svg { width: 24px; height: 24px; }
@media (max-width: 600px) { .assist__launcher { width: 52px; padding: 0; justify-content: center; } .assist__launcher span { display: none; } }
.chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 160; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 32px));
  display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--navy-2), var(--brand-700)); color: #fff; }
.chat__head b { display: block; font-size: 15.5px; }
.chat__head small { color: #b9c3ee; font-size: 12.5px; }
.chat__head button { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; }
.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.7; word-break: break-word; }
.bubble--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble--user { align-self: flex-end; background: var(--brand); color: #fff; border-top-right-radius: 4px; white-space: pre-wrap; }
.bubble--bot p + p, .bubble--bot ul, .bubble--bot ol { margin-top: 6px; }
.bubble--bot ul, .bubble--bot ol { padding-left: 1.2em; }
.bubble--bot a { text-decoration: underline; }
.bubble--typing { color: var(--muted); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat__chips button { border: 1px solid var(--brand-100); background: #fff; color: var(--brand-700); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat__form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 15px; line-height: 1.5; }
.chat__form textarea:focus { outline: none; border-color: var(--brand); }
.chat__form button { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }
.chat__form button svg { width: 20px; height: 20px; }
.chat__foot { padding: 0 14px 10px; font-size: 11.5px; color: var(--muted-2); background: #fff; }

/* Dialogs (login, lightbox, video) ---------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 16px; background: rgba(8, 13, 40, .62); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg); transform: translateY(8px); transition: transform .25s var(--ease); }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--bg-soft); font-size: 22px; line-height: 1; color: var(--ink-2); }
.modal__box h2 { font-size: 22px; }
.modal__box > p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.modal__box .form { grid-template-columns: minmax(0, 1fr); }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code-row .btn { min-width: 120px; }
.modal--media .modal__box { width: min(1100px, 100%); padding: 0; background: #000; border-radius: 16px; overflow: hidden; }
.modal--media .modal__close { background: rgba(255, 255, 255, .15); color: #fff; z-index: 2; }
.modal--media video { width: 100%; max-height: 80vh; background: #000; }
.lightbox { position: fixed; inset: 0; z-index: 190; display: grid; place-items: center; padding: 56px 16px 16px; background: rgba(5, 9, 28, .9); }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox p { color: #cfd6ff; text-align: center; margin-top: 12px; font-size: 14px; }
.lightbox button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; }

/* Language panel */
.lang { position: relative; }
.lang__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 312px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; z-index: 120; }
.lang__panel button { text-align: start; min-height: 42px; padding: 10px 14px; border-radius: 10px; border: 0; background: none; font-size: 14.5px; line-height: 1.3; color: var(--ink-2); }
@media (max-width: 600px) { .lang__panel { position: fixed; top: calc(var(--header-h) + 8px); left: 16px; right: 16px; width: auto; } }
html[dir="rtl"] .lang__panel { right: auto; left: 0; }
.lang__panel button:hover { background: var(--bg-soft); }
.lang__panel button[aria-current="true"] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.lang__panel p { grid-column: 1 / -1; font-size: 12px; color: var(--muted-2); padding: 6px 10px 2px; line-height: 1.5; }
html[dir="rtl"] body { text-align: right; }

/* Account & proposal (functional pages) ------------------------------------ */
.app-page { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, var(--bg-tint), #fff 420px); min-height: 60vh; }
.account-shell { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.account-eyebrow { color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: .08em; }
.account-heading h1 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 6px; }
.account-intro { color: var(--muted); margin-top: 8px; }
.account-gate, .account-identity, .account-panel { margin-top: 24px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.account-gate { text-align: center; display: grid; justify-items: center; gap: 12px; }
.account-gate-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--brand); stroke-width: 1.6; }
.account-gate p { color: var(--muted); }
.account-identity { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.account-session { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; }
.account-email { font-size: 22px; font-weight: 700; margin-top: 8px; word-break: break-all; }
.account-dates { display: flex; gap: 28px; margin: 10px 0 0; }
.account-dates dt { font-size: 12.5px; color: var(--muted-2); }
.account-dates dd { margin: 2px 0 0; font-size: 14.5px; }
.account-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.account-logout, .account-refresh { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink-2); }
.account-logout:hover, .account-refresh:hover { border-color: var(--brand-200); color: var(--brand); }
.account-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.account-panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.account-panel-head h2 { font-size: 19px; }
.account-panel-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.account-panel-status, .account-action-status { font-size: 14px; color: var(--muted); margin-top: 12px; }
.account-panel ul, .account-panel ol { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.account-panel li { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); font-size: 14.5px; }
.account-manage-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14.5px; }
@media (max-width: 860px) { .account-records { grid-template-columns: minmax(0, 1fr); } }

.proposal-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.proposal-intro { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: end; }
.proposal-topline { color: var(--brand); font-weight: 600; font-size: 13.5px; letter-spacing: .06em; }
.proposal-intro h1 { font-size: clamp(30px, 4vw, 48px); margin-top: 8px; line-height: 1.2; }
.proposal-intro p { color: var(--muted); margin-top: 14px; max-width: 40em; }
.proposal-price { padding: 22px; border-radius: var(--radius-lg); background: var(--navy); color: #cfd6ff; }
.proposal-price strong { font-size: 34px; color: #fff; }
.proposal-price small { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.7; }
.proposal-notice { margin-top: 24px; padding: 12px 16px; border-radius: 12px; background: var(--bg-tint); color: var(--brand-700); font-size: 14.5px; }
.proposal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 20px; align-items: start; }
.proposal-form { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.proposal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proposal-fields > div { display: grid; gap: 6px; }
.proposal-fields label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.proposal-fields input, .proposal-fields textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; font-size: 16px; }
.proposal-fields textarea { min-height: 140px; resize: vertical; }
.proposal-fields input:focus, .proposal-fields textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 63, 214, .12); }
.proposal-wide { grid-column: 1 / -1; }
.proposal-help { font-size: 13px; color: var(--muted-2); }
.proposal-consent { display: flex; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.proposal-consent input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--brand); }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.proposal-login { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 0 18px; min-height: 46px; font-size: 15px; color: var(--ink-2); }
.proposal-login:hover { border-color: var(--brand-200); color: var(--brand); }
.proposal-status { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.proposal-side { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.proposal-side h2 { font-size: 16px; margin: 18px 0 6px; }
.proposal-side h2:first-child { margin-top: 0; }
.proposal-orders { margin-top: 28px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.proposal-orders h2 { font-size: 20px; }
.proposal-orders > p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
#orders { display: grid; gap: 10px; margin-top: 14px; }
#orders > * { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
@media (max-width: 900px) { .proposal-intro, .proposal-layout { grid-template-columns: minmax(0, 1fr); } .proposal-fields { grid-template-columns: minmax(0, 1fr); } }

/* 404 */
.notfound { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.notfound b { font-family: var(--font-num); font-size: clamp(72px, 12vw, 140px); line-height: 1; color: var(--brand-100); display: block; }

/* Motion ----------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__visual .shot { transform: none; }
}

@media print {
  .site-header, .site-footer, .assist, .drawer, .cta, .btn-row { display: none !important; }
  body { font-size: 12pt; }
}
