/* ==========================================================
   TahlilTop public website — glass + gradient, dark by default.
   Colours from the TahlilTop logo (blue #039BEA, red #FF3131).
   ========================================================== */
:root {
  --bg: #070b16; --bg-alt: transparent; --surface: rgba(255, 255, 255, .055); --surface-2: rgba(255, 255, 255, .08);
  --ink: #f1f5fb; --ink-2: #b9c4d6; --muted: #8a97ad; --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16);
  --brand: #38b6f5; --brand-hover: #5ec4f7; --brand-ink: #04111d; --brand-soft: rgba(56, 182, 245, .16); --brand-text: #63c6f7;
  --accent: #ff5a5a; --accent-soft: rgba(255, 90, 90, .16); --accent-text: #ff8a8a; --star: #f5b83d;
  --solid: #f1f5fb; --solid-ink: #070b16;
  --header-bg: rgba(7, 11, 22, .55); --footer-bg: rgba(0, 0, 0, .3); --footer-ink: rgba(255, 255, 255, .62);
  --chat-bg: #0f1628; --chat-bubble: #1a2440; --chat-me: #163c5e; --phone: #02040a;
  --glass: linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025));
  --glass-solid: rgba(16, 22, 40, .72);
  --glass-border: rgba(255, 255, 255, .11); --glass-border-hi: rgba(255, 255, 255, .22); --glass-hi: rgba(255, 255, 255, .14);
  --glass-shadow: 0 24px 48px -28px rgba(0, 0, 0, .85);
  --blob-blue: rgba(3, 155, 234, .42); --blob-violet: rgba(124, 92, 246, .32); --blob-red: rgba(255, 49, 49, .26);
  --b2b-bg: linear-gradient(135deg, rgba(3, 155, 234, .32), rgba(124, 92, 246, .22) 55%, rgba(255, 49, 49, .22));
  /* isometric scene: glass ground, solid buildings */
  --g-t: rgba(120, 175, 255, .10); --g-l: rgba(120, 175, 255, .07); --g-r: rgba(120, 175, 255, .04); --grid: rgba(255, 255, 255, .07); --g-edge: rgba(160, 205, 255, .35);
  --w-t: #2d3d60; --w-l: #233252; --w-r: #1a2643; --win: #1e5c88; --win-lit: #ffd36b;
  --b-t: #4cc0f7; --b-l: #1593d6; --b-r: #0d70a8;
  --ph-t: #3a4864; --ph-l: #0a0f1a; --ph-r: #05080f; --screen: #e9f1fa; --qr: #0f1b2a;
  --glass-tube: rgba(255, 255, 255, .12); --glass-line: #5a6f92; --orb-shadow: rgba(0, 0, 0, .35);
  color-scheme: dark;
  --shadow: var(--glass-shadow); --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .8);
  --radius: 24px; --radius-sm: 18px; --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --dtrack: -.028em; --dweight: 700; --dscale: 1;
  --serif: var(--display);
}
:root[data-theme="light"] {
  --bg: #eef3fa; --bg-alt: transparent; --surface: rgba(255, 255, 255, .6); --surface-2: rgba(255, 255, 255, .75);
  --ink: #0f1b2a; --ink-2: #44536a; --muted: #6c7a91; --line: rgba(15, 27, 42, .08); --line-strong: rgba(15, 27, 42, .15);
  --brand: #0a7fc2; --brand-hover: #086aa3; --brand-ink: #ffffff; --brand-soft: rgba(10, 127, 194, .1); --brand-text: #0a7fc2;
  --accent: #ff3131; --accent-soft: rgba(255, 49, 49, .1); --accent-text: #d42222; --star: #e89a0c;
  --solid: #0f1b2a; --solid-ink: #ffffff;
  --header-bg: rgba(238, 243, 250, .6); --footer-bg: #0f1b2a; --footer-ink: rgba(255, 255, 255, .66);
  --chat-bg: #e8eef6; --chat-bubble: #ffffff; --chat-me: #d6ebf9; --phone: #0f1b2a;
  --glass: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .45));
  --glass-solid: rgba(255, 255, 255, .85);
  --glass-border: rgba(255, 255, 255, .9); --glass-border-hi: #ffffff; --glass-hi: rgba(255, 255, 255, .9);
  --glass-shadow: 0 24px 48px -30px rgba(30, 60, 110, .35);
  --blob-blue: rgba(3, 155, 234, .24); --blob-violet: rgba(124, 92, 246, .16); --blob-red: rgba(255, 49, 49, .14);
  --b2b-bg: linear-gradient(135deg, #0a5f97, #3b4fb0 55%, #b8324a);
  --g-t: rgba(255, 255, 255, .65); --g-l: rgba(214, 226, 242, .8); --g-r: rgba(196, 210, 230, .8); --grid: rgba(15, 27, 42, .07); --g-edge: rgba(255, 255, 255, .95);
  --w-t: #ffffff; --w-l: #edf2f8; --w-r: #d9e2ee; --win: #bfe2f7; --win-lit: #ffe08a;
  --b-t: #3fb6f3; --b-l: #0a8fd6; --b-r: #0874b0;
  --ph-t: #2b3852; --ph-l: #1b263b; --ph-r: #111a2b; --screen: #ffffff; --qr: #0f1b2a;
  --glass-tube: rgba(255, 255, 255, .55); --glass-line: #b6c4d6; --orb-shadow: rgba(15, 27, 42, .12);
  color-scheme: light;
  --shadow-lg: 0 40px 80px -40px rgba(30, 60, 110, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  transition: background-color .25s, color .25s;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: var(--dweight); letter-spacing: var(--dtrack); }
h1 { font-size: calc(clamp(2.5rem, 5.8vw, 4.6rem) * var(--dscale)); line-height: 1.05; }
h2 { font-size: calc(clamp(1.8rem, 3.4vw, 2.8rem) * var(--dscale)); line-height: 1.1; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.ic { width: 1.2em; height: 1.2em; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-row .section-head { margin-bottom: 0; }
.eyebrow { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-text); margin-bottom: 14px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-solid { background: var(--solid); color: var(--solid-ink); }
.btn-solid:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: #0a3558; }
.btn-white:hover { background: #e6f3fb; }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: transparent;
  border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn .ic { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-text); }
.link-arrow .ic { transition: transform .15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo img { width: 38px; height: 38px; }
.logo .lt { color: var(--brand-text); }
.logo b { color: var(--accent); font-weight: 700; }
.main-nav { display: flex; gap: 2px; margin-right: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2); font-size: .95rem; transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active { background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.lang-switch a.on { background: var(--ink); color: var(--bg); }
.nav-toggle { display: none; }
.login-short { display: none; }
.mobile-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); animation: wordIn .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
.hero h1 em {
  font-style: normal; white-space: nowrap; color: var(--brand-text);
  background: linear-gradient(100deg, var(--brand) 0%, #8b7cf6 45%, var(--accent) 75%, var(--brand) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: sheen 7s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 470px; margin: 0 0 34px; opacity: 0; animation: fadeUp .8s ease .45s forwards; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 7px 7px 7px 22px; max-width: 540px; box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.hero .search-box { opacity: 0; animation: fadeUp .8s ease .6s forwards; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); }
.search-box > .ic { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 1.02rem; padding: 11px 4px; }
.search-box input::placeholder { color: var(--muted); }
.hero-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 26px; opacity: 0; animation: fadeUp .8s ease .75s forwards; }

/* Isometric scene */
.hero-art { position: relative; }
.iso-scene { width: 100%; height: auto; overflow: visible; }
.iso-scene .g-t { fill: var(--g-t); stroke: var(--g-edge); stroke-width: 1; } .iso-scene .g-l { fill: var(--g-l); } .iso-scene .g-r { fill: var(--g-r); }
.iso-scene .grid { stroke: var(--grid); stroke-width: 1; }
.iso-scene .w-t { fill: var(--w-t); } .iso-scene .w-l { fill: var(--w-l); } .iso-scene .w-r { fill: var(--w-r); }
.iso-scene .b-t { fill: var(--b-t); } .iso-scene .b-l { fill: var(--b-l); } .iso-scene .b-r { fill: var(--b-r); }
.iso-scene .ph-t { fill: var(--ph-t); } .iso-scene .ph-l { fill: var(--ph-l); } .iso-scene .ph-r { fill: var(--ph-r); }
.iso-scene .win { fill: var(--win); animation: winLit 7s ease-in-out infinite; animation-delay: var(--w); }
.iso-scene .door { fill: var(--b-l); }
.iso-scene .sign { fill: #ff3131; }
.iso-scene .sign-t { fill: #fff; font: 700 17px var(--font); letter-spacing: .02em; }
.iso-scene .screen { fill: var(--screen); }
.iso-scene .qr rect { fill: var(--qr); }
.iso-scene .pill { fill: #ff3131; }
.iso-scene .pill-t { fill: #fff; font: 700 10px var(--font); }
.iso-scene .glass { fill: var(--glass-tube); stroke: var(--glass-line); stroke-width: 1; }
.iso-scene .glass-top { fill: none; stroke: var(--glass-line); stroke-width: 1; }
.iso-scene .liq-r, .iso-scene .liq-r-top { fill: #ff3131; } .iso-scene .liq-r-top { fill: #ff6161; }
.iso-scene .liq-b, .iso-scene .liq-b-top { fill: #039bea; } .iso-scene .liq-b-top { fill: #4dbbf2; }
.iso-scene .bubble { fill: rgba(255, 255, 255, .85); animation: bubble 2.4s ease-in infinite; animation-delay: var(--b); }
.iso-scene .route { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; animation: dash 1.1s linear infinite; }
.iso-scene .ticket { fill: var(--surface); stroke: var(--line-strong); }
.iso-scene .ticket-cut { stroke: var(--accent); stroke-dasharray: 3 3; }
.iso-scene .ticket-t { fill: var(--accent); font: 800 11px var(--font); letter-spacing: .12em; }
.iso-scene .pin-body { fill: #ff3131; }
.iso-scene .pin-dot { fill: #fff; }
.iso-scene .pin-shadow, .iso-scene .orb-shadow { fill: var(--orb-shadow); }
.iso-scene .pin-shadow { animation: pinShadow 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.iso-scene .pin { animation: pinBounce 2.2s ease-in-out infinite; }
.iso-scene .orb-b { fill: var(--b-t); } .iso-scene .orb-r { fill: #ff3131; }
.iso-scene .float { animation: float 5s ease-in-out infinite; }
.iso-scene .float-2 { animation-duration: 6s; animation-delay: -2s; }
.iso-scene .iso-in { opacity: 0; animation: isoIn .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d); }
.iso-scene .iso-in.rise { animation-name: isoRise; }

.iso-scene .pin-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
.hero-art { perspective: 1200px; }
.hero-art .tilt { transition: transform .4s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; will-change: transform; }
.hero-art::before {
  content: ""; position: absolute; inset: 12% 8% 6%; border-radius: 50%; filter: blur(50px); z-index: -1;
  background: radial-gradient(circle at 35% 40%, var(--blob-blue), transparent 60%), radial-gradient(circle at 70% 70%, var(--blob-red), transparent 55%);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes isoIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes isoRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes pinBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pinShadow { 50% { transform: scale(.7); opacity: .6; } }
@keyframes dash { to { stroke-dashoffset: -22; } }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
@keyframes winLit { 0%, 70%, 100% { fill: var(--win); } 80%, 92% { fill: var(--win-lit); } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes glowPulse { from { transform: scale(.95); opacity: .8; } to { transform: scale(1.08); opacity: 1; } }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-9px); } }

/* Scroll reveal (only when JS runs, so content never stays hidden) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--line); transition: border-color .15s, transform .15s;
}
.cat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cat-ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.cat-ic .ic { width: 22px; height: 22px; }
.cat h3 { font-size: .96rem; margin: 0 0 2px; font-weight: 600; }
.cat small { color: var(--muted); font-size: .82rem; }

/* ---------- How it works (interactive) ---------- */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.how-step {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border-radius: 18px;
  background: transparent; border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden; transition: background .3s, border-color .3s;
}
.how-step .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 1.05rem; color: var(--muted); transition: all .3s; }
.how-step .h { display: block; font-weight: 600; font-size: 1.08rem; margin: 6px 0 2px; color: var(--ink-2); transition: color .3s; }
.how-step .d { display: block; margin: 0; color: var(--muted); font-size: .94rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .45s ease; }
.how-step.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.how-step.on .n { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.how-step.on .h { color: var(--ink); }
.how-step.on .d { max-height: 90px; opacity: 1; }
.how-step .bar { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.how-step.on .bar { animation: stepBar var(--step-ms, 4200ms) linear forwards; }
.how-paused .how-step.on .bar { animation: none; transform: scaleX(1); opacity: .35; }
@keyframes stepBar { to { transform: scaleX(1); } }
.how-visual { display: grid; place-items: center; padding: 48px 0; border-radius: 28px; background: var(--bg-alt); border: 1px solid var(--line); position: relative; overflow: hidden; }
.how-visual::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 60s linear infinite; }
.how-visual::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone { position: relative; z-index: 1; }
.screens { position: relative; height: 330px; }
.scr { position: absolute; inset: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.scr.on { opacity: 1; transform: none; }
.scr .item { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--chat-bubble); border-radius: 12px; padding: 9px 11px; font-size: .74rem; }
.scr .item b { font-weight: 600; }
.scr .item .add { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; flex: none; }
.scr .item.pick { box-shadow: inset 0 0 0 1.5px var(--brand); }
.scr .item .p { color: var(--brand-text); font-weight: 700; white-space: nowrap; }
.scr .item s { color: var(--muted); font-size: .68rem; }
.scr .label { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 2px 2px 0; }
.scr .file { display: flex; gap: 10px; align-items: center; background: var(--chat-bubble); border-radius: 12px; padding: 12px; font-size: .76rem; }
.scr .file .fi { width: 36px; height: 42px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: .6rem; font-weight: 800; }
.scr .done { align-self: center; margin-top: 12px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.scr .done .ic { width: 30px; height: 30px; }
.phone { width: 290px; border-radius: 40px; padding: 11px; background: var(--phone); box-shadow: var(--shadow-lg); }
.phone-screen { border-radius: 30px; overflow: hidden; background: var(--chat-bg); }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--chat-bubble); border-bottom: 1px solid var(--line); }
.chat-top .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.chat-top .avatar svg { width: 18px; height: 18px; }
.chat-top b { display: block; font-size: .86rem; line-height: 1.2; }
.chat-top small { color: var(--muted); font-size: .72rem; }
.chat-body { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { background: var(--chat-bubble); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: .76rem; line-height: 1.5; max-width: 92%; }
.bubble.me { align-self: flex-end; background: var(--chat-me); border-radius: 14px 14px 4px 14px; }
.bubble .row { display: flex; justify-content: space-between; gap: 10px; }
.bubble s { color: var(--muted); }
.bubble .total { border-top: 1px dashed var(--line-strong); margin-top: 6px; padding-top: 6px; font-weight: 700; color: var(--brand-text); }
.promo { background: var(--chat-bubble); border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.promo .qr {
  width: 62px; height: 62px; border-radius: 8px; flex: none; position: relative; border: 4px solid #fff;
  background: conic-gradient(from 90deg at 2px 2px, #1a1f1d 25%, transparent 0) 0 0 / 8px 8px, #fff;
}
.promo .qr::before, .promo .qr::after { content: ""; position: absolute; width: 17px; height: 17px; border: 4px solid #1a1f1d; background: #fff; border-radius: 3px; }
.promo .qr::before { top: -2px; left: -2px; } .promo .qr::after { bottom: -2px; right: -2px; }
.promo small { color: var(--muted); font-size: .68rem; display: block; }
.promo code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1rem; font-weight: 700; letter-spacing: .12em; }

/* ---------- Test cards ---------- */
.test-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.test-card {
  display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--line); min-height: 178px; transition: border-color .15s, transform .15s;
}
.test-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.test-card .tc-cat { font-size: .74rem; font-weight: 500; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.test-card .tc-cat .ic { width: 14px; height: 14px; color: var(--brand-text); }
.test-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; overflow-wrap: anywhere; hyphens: auto; }
.test-card .tc-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; }
.price { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.price-none { color: var(--muted); font-size: .86rem; }
.test-card .tc-labs { font-size: .78rem; color: var(--muted); }
.save-tag { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--brand-text); background: var(--brand-soft); padding: 3px 9px; border-radius: 999px; }

/* ---------- Why + numbers ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.why .w-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--brand-text); margin-bottom: 20px; }
.why .w-ic .ic { width: 21px; height: 21px; }
.why p { color: var(--ink-2); font-size: .95rem; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--line); }
.numbers div { padding: 28px 0 0; }
.numbers b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.numbers small { color: var(--muted); }

/* ---------- Lab cards ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lab-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.lab-head { display: flex; gap: 14px; align-items: flex-start; }
.lab-logo { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: var(--brand-text); background: var(--brand-soft); }
.lab-head h3 { margin: 0 0 4px; font-size: 1.04rem; }
.lab-meta { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.lab-meta div { display: flex; gap: 10px; align-items: flex-start; }
.lab-meta .ic { color: var(--muted); width: 17px; height: 17px; margin-top: 3px; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; color: var(--ink-2); border: 1px solid var(--line); }
.tag .ic { width: 13px; height: 13px; }
.tag-brand { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }
.tag-accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .85rem; }
.rating .ic { width: 14px; height: 14px; color: var(--star); fill: var(--star); }
.lab-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; }

/* ---------- Partners (B2B) ---------- */
.b2b {
  border-radius: 32px; padding: 64px; color: #fff; background: #0a3558;
  background-image: radial-gradient(circle at 92% 0%, rgba(63, 182, 243, .35), transparent 45%), radial-gradient(circle at 0% 100%, rgba(255, 49, 49, .18), transparent 40%);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center;
}
.b2b .eyebrow { color: #7fd0fa; }
.b2b h2 { color: #fff; }
.b2b p { color: rgba(255,255,255,.78); font-size: 1.05rem; }
.b2b ul { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.b2b li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.92); }
.b2b li .ic { width: 20px; height: 20px; color: #7fd0fa; margin-top: 3px; }
.b2b .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.dash-card { background: #fff; color: #1a1f1d; border-radius: 20px; padding: 24px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.dash-card h4 { font-size: .9rem; font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.dash-card h4 span { color: #0a7fc2; font-size: .74rem; background: #e6f3fb; padding: 3px 9px; border-radius: 999px; }
.dash-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid #ece8df; font-size: .85rem; }
.dash-row code { font-family: ui-monospace, Menlo, monospace; font-weight: 600; letter-spacing: .05em; }
.dash-row .ok { color: #0a7fc2; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.dash-row .ok .ic { width: 15px; height: 15px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 14px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: #cfe7f7; }
.bars i:nth-last-child(-n+2) { background: #0a7fc2; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(45deg); color: var(--brand-text); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 620px; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; padding: 96px 24px; border-radius: 32px; background: var(--bg-alt); border: 1px solid var(--line); }
.cta-band p { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 72px 0 32px; margin-top: 112px; font-size: .92rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo .lt { color: #5cc0f4; }
.site-footer .logo b { color: #ff5a5a; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; margin-bottom: 48px; }
.site-footer h4 { color: #fff; font-size: .92rem; font-weight: 600; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.site-footer .btn-ghost:hover { border-color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.45); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }

.catalog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; margin-top: 40px; align-items: start; }
.filter { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.filter h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px 12px; font-weight: 600; }
.filter a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: .9rem; color: var(--ink-2); }
.filter a:hover { background: var(--surface-2); color: var(--ink); }
.filter a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.filter a small { color: var(--muted); }
.cat-select { display: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.toggle input { accent-color: var(--brand); width: 17px; height: 17px; }
.catalog-layout .test-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty .ic { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--muted); }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; color: var(--muted); }

.test-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; margin-top: 48px; align-items: start; }
.test-layout h2 { font-size: 1.6rem; }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 32px 0 56px; }
.info { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.info.wide { grid-column: 1 / -1; }
.info h3 { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-bottom: 8px; }
.info h3 .ic { color: var(--brand-text); }
.info p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.offers { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.offers-head, .offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; }
.offers-head { padding: 12px 22px; background: var(--surface-2); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.offer { padding: 20px 22px; border-top: 1px solid var(--line); }
.offer.best { background: var(--brand-soft); }
.offer h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.offer small { color: var(--muted); }
.offer .std { color: var(--muted); text-decoration: line-through; font-size: .9rem; text-align: right; }
.offer .ours { text-align: right; }
.offer .ours b { font-size: 1.12rem; font-weight: 600; display: block; }
.side-card { position: sticky; top: 96px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.side-card .from { color: var(--muted); font-size: .9rem; }
.side-card .big { font-family: var(--serif); font-size: 2.3rem; font-weight: 500; line-height: 1.15; margin: 6px 0 14px; }
.side-card .btn { width: 100%; margin-top: 20px; }
.side-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.side-card li { display: flex; gap: 10px; }
.side-card li .ic { color: var(--brand-text); width: 17px; height: 17px; margin-top: 3px; }
.mobile-cta { display: none; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid, .test-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-layout .test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .how { gap: 48px; }
}
@media (max-width: 900px) {
  .main-nav, .header-actions .lang-switch, .header-actions .login-label, .header-actions .theme-toggle { display: none; }
  .login-short { display: inline; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: grid; }
  .mobile-nav.open { display: flex; flex-direction: column; padding: 8px 24px 24px; border-top: 1px solid var(--line); background: var(--bg); }
  .mobile-nav > a { padding: 14px 2px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b { grid-template-columns: minmax(0, 1fr); padding: 44px 28px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .filter { display: none; }
  .cat-select { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
  .test-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side-card { display: none; }
  .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 12px 12px 18px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  }
  .mobile-cta small { display: block; color: var(--muted); font-size: .74rem; }
  .mobile-cta b { font-size: 1.05rem; font-weight: 600; }
  .has-mobile-cta .site-footer { padding-bottom: 110px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { height: 64px; }
  .hero { padding: 28px 0 56px; }
  .hero-sub { font-size: 1.05rem; margin-bottom: 26px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .how-visual::before { width: 340px; height: 340px; }
  .search-box { padding-left: 16px; }
  .search-box .btn { padding: 12px 16px; }
  .search-box .btn span { display: none; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .test-grid, .catalog-layout .test-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .test-card { padding: 16px; min-height: 160px; }
  .test-card h3 { font-size: .92rem; }
  .price { font-size: .95rem; white-space: normal; }
  .why-grid, .lab-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lab-grid { gap: 12px; }
  .phone { width: 260px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .offers-head, .offer { grid-template-columns: minmax(0, 1fr) auto; }
  .offer .std, .offers-head .h-std { display: none; }
  .b2b .ctas .btn { flex: 1 1 100%; }
  .cta-band { padding: 64px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================
   Glass layer: frosted panels over a soft gradient glow
   ========================================================== */
body { background: var(--bg); }
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.bg-glow i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.bg-glow .b1 { width: 620px; height: 620px; top: -180px; right: -120px; background: var(--blob-blue); animation: drift1 26s ease-in-out infinite alternate; }
.bg-glow .b2 { width: 520px; height: 520px; top: 38%; left: -200px; background: var(--blob-violet); animation: drift2 32s ease-in-out infinite alternate; }
.bg-glow .b3 { width: 460px; height: 460px; bottom: -160px; right: 18%; background: var(--blob-red); animation: drift3 28s ease-in-out infinite alternate; }
.bg-glow::after { /* fine grain keeps large gradients from banding */
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { to { transform: translate(-160px, 140px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(180px, -120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-140px, -160px) scale(1.1); } }

.cat, .test-card, .lab-card, .info, .offers, .side-card, .how-visual, .cta-band, .empty, .faq details, .numbers div,
.how-step.on, .why .w-ic, .cat-ic, .lab-logo {
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
.cat-ic, .lab-logo, .why .w-ic { box-shadow: inset 0 1px 0 var(--glass-hi); color: var(--brand-text); }
.cat:hover, .test-card:hover { border-color: var(--glass-border-hi); transform: translateY(-3px); }
.mobile-cta, .side-card { background: var(--glass-solid); }
.offers-head { background: transparent; border-bottom: 1px solid var(--line); }
.offer.best { background: var(--brand-soft); }
.section-alt { background: transparent; }
.page-hero { border-bottom: 1px solid var(--line); }

.search-box, .btn-ghost, .icon-btn, .lang-switch, .chip, .cat-select {
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--glass-hi);
}
.search-box { box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow); }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--glass-shadow); }
.btn-ghost:hover, .icon-btn:hover { border-color: var(--glass-border-hi); color: var(--ink); }
.lang-switch a.on { background: var(--ink); color: var(--bg); }
.chip.on { background: var(--ink); color: var(--bg); }
.filter a.on { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-border); }
.btn-primary { background: linear-gradient(135deg, var(--brand), #4f8df5); box-shadow: 0 10px 30px -10px var(--brand), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-hover), #6a9ff7); }

.faq details, .faq details:first-child { border: 1px solid var(--glass-border); margin-bottom: 12px; padding: 0 22px; border-radius: 18px; }
.how-step .n { border-color: var(--glass-border); }
.how-step.on .n { background: linear-gradient(135deg, var(--brand), #4f8df5); border-color: transparent; }
.how-visual { background: var(--glass); }
.numbers { border-top: 0; gap: 16px; }
.numbers div { padding: 24px 26px; border-radius: 22px; }
.numbers b { background: linear-gradient(100deg, var(--ink), var(--brand-text)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.b2b { background: var(--b2b-bg); border: 1px solid var(--glass-border); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-lg); }
.site-header { -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
@media (max-width: 900px) { .mobile-nav.open { background: var(--glass-solid); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); } }
@media (max-width: 600px) { .numbers { gap: 10px; } .numbers div { padding: 18px; } .bg-glow i { filter: blur(70px); } }
@media (prefers-reduced-motion: reduce) { .hero-art .tilt { transform: none !important; } }

/* ==========================================================
   Labs: region/district filter + dedicated lab page
   ========================================================== */
.loc-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; margin-top: 26px; max-width: 820px; }
.loc-filter.auto { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.loc-filter.auto .loc-submit { display: none; }
.loc-field { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.loc-field select {
  appearance: none; -webkit-appearance: none; width: 100%; padding: 13px 44px 13px 16px; border-radius: 14px; font-size: .96rem; font-weight: 500; color: var(--ink); cursor: pointer;
  background: var(--glass), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2373819a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.loc-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.loc-field select:disabled { opacity: .55; cursor: not-allowed; }
.loc-field select option { color: #0f1b2a; background: #fff; }

.lab-card { position: relative; transition: border-color .15s, transform .15s; }
.lab-card:hover { border-color: var(--glass-border-hi); transform: translateY(-3px); }
.lab-card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lab-card a.stretched:hover { color: var(--brand-text); }
.lab-link:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }

.lab-title { display: flex; gap: 18px; align-items: center; }
.lab-title h1 { margin: 0 0 6px; }
.lab-logo.lg { width: 68px; height: 68px; border-radius: 20px; font-size: 1.8rem; }
.lab-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .92rem; }
.lab-sub .ic { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }

.lab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; margin-top: 40px; align-items: start; }
.lab-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.lab-side .side-card { position: static; display: block; }
.contact-card h3, .cta-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.cta-card .btn { margin-top: 6px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .93rem; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li > .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--brand-text); }
.contact-list small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.contact-list a:not(.link-arrow) { color: var(--brand-text); font-weight: 600; }
.map-embed { width: 100%; height: 220px; border: 0; border-radius: 14px; margin-top: 18px; background: var(--surface-2); }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-2); font-size: .93rem; }
.note .ic { color: var(--brand-text); margin-top: 3px; }
.lt-search { max-width: none; margin-bottom: 18px; }
.lt-group {
  margin-bottom: 12px; border-radius: 18px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
.lt-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 600; }
.lt-group summary::-webkit-details-marker { display: none; }
.lt-group summary > .ic { margin-left: auto; color: var(--muted); transition: transform .2s; }
.lt-group[open] summary > .ic { transform: rotate(180deg); }
.lt-gname { min-width: 0; }
.lt-count { font-weight: 500; font-size: .85rem; }
.cat-ic.sm { width: 34px; height: 34px; border-radius: 10px; }
.cat-ic.sm .ic { width: 18px; height: 18px; }
.lt-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .93rem; transition: background .15s; }
.lt-row:hover { background: var(--brand-soft); }
.lt-name { min-width: 0; }
.lt-price { white-space: nowrap; text-align: right; }
.lt-price s { color: var(--muted); font-size: .8rem; margin-right: 6px; }
.lt-price b { font-weight: 600; }
.lt-price small { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .lab-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; }
  .lab-side { position: static; order: -1; }
  .lab-side .cta-card { display: none; }
}
@media (max-width: 600px) {
  .loc-filter, .loc-filter.auto { grid-template-columns: minmax(0, 1fr); }
  .lab-logo.lg { width: 54px; height: 54px; font-size: 1.4rem; }
  .lt-row { padding: 12px 14px; }
}
.mobile-cta > div { min-width: 0; }
.mobile-cta small, .mobile-cta b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Legal pages (terms, privacy) ---------- */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; margin-top: 40px; align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .9rem; color: var(--ink-2); }
.legal-toc a::before { content: counter(toc) "."; color: var(--muted); min-width: 20px; }
.legal-toc a:hover { background: var(--surface-2); color: var(--ink); }
.legal-doc {
  max-width: 820px; padding: 40px 48px; border-radius: 24px; line-height: 1.75;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
.legal-doc section { scroll-margin-top: 96px; }
.legal-doc section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-doc h2 { font-size: 1.3rem; margin-bottom: 14px; }
.legal-doc h2 .n { color: var(--brand-text); }
.legal-doc p { color: var(--ink-2); margin: 0 0 12px; }
.legal-doc p .n { font-weight: 600; color: var(--ink); }
.legal-doc ul { margin: -4px 0 14px; padding-left: 22px; color: var(--ink-2); }
.legal-doc li { margin-bottom: 6px; }
.legal-doc li::marker { color: var(--brand-text); }
.legal-doc a { color: var(--brand-text); font-weight: 600; }
.legal-contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 18px 22px; border-radius: 16px; background: var(--brand-soft); font-weight: 600; }
.legal-contact a.btn { color: var(--brand-ink); }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .legal-toc { display: none; }
  .legal-doc { padding: 26px 20px; }
}
@media print {
  .site-header, .site-footer, .legal-toc, .bg-glow, .chips, .crumbs, .legal-contact { display: none !important; }
  .legal-layout { display: block; margin: 0; }
  .legal-doc { box-shadow: none; border: 0; padding: 0; max-width: none; background: none; }
  body { background: #fff; color: #000; }
}
.legal-date { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; }
.legal-date .ic { width: 16px; height: 16px; }

/* Test page: other names & searches (the test's search keywords, shown openly) */
.aliases { margin: 6px 0 22px; }
.aliases h3 { font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; text-transform: none; }
.aliases ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.aliases a.tag { text-decoration: none; font-size: .8rem; }
.aliases a.tag:hover { border-color: var(--brand, currentColor); color: var(--brand-text, inherit); }
