/* BhorTech public site — v2 */
:root {
  --night: #0F1B3D;
  --night-2: #2A3B6E;
  --amber: #F5A43A;
  --amber-h: #FFB652;
  --rose: #B8677F;

  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --alt: #EDF1F8;
  --ink: #14203A;
  --muted: #55627D;
  --line: #DCE3EF;
  --link: #9A4F00;
  --tint: #FFF3DF;
  --ok-bg: #E4F6EA;
  --ok-ink: #0B6B33;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 61, .06), 0 10px 30px rgba(15, 27, 61, .08);
}
:root[data-theme="dark"] {
  --bg: #0B1430; --surface: #131F3F; --alt: #0F1935; --ink: #EEF2FA; --muted: #9AA8C4;
  --line: #263455; --link: #F5B24E; --tint: #1A2547; --ok-bg: #12351F; --ok-ink: #6FD59A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1430; --surface: #131F3F; --alt: #0F1935; --ink: #EEF2FA; --muted: #9AA8C4;
    --line: #263455; --link: #F5B24E; --tint: #1A2547; --ok-bg: #12351F; --ok-ink: #6FD59A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--night); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
}
body.lang-en {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.7;
}
body.lang-bn {
  --font-body: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", system-ui, sans-serif;
  --font-head: "Tiro Bangla", "Noto Serif Bengali", Georgia, serif;
}
body { font-family: var(--font-body); }
img { max-width: 100%; height: auto; }
h1, h2, h3, .h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.3; margin: 0; }
body.lang-en h1, body.lang-en h2 { font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
h3, .h3 { font-size: 1.3rem; line-height: 1.35; }
p { margin: 0 0 1em; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, .cf-stage:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.only-mobile { display: block; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 10px; font-weight: 600; line-height: 1.5;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; text-align: center;
}
.btn.block { display: block; width: 100%; margin-top: 10px; }
.btn-amber { background: var(--amber); color: #14203A; }
.btn-amber:hover { background: var(--amber-h); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-2); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--amber); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night); color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
}
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { order: 1; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { display: block; height: 36px; width: auto; }
.wordmark { font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.bar-tools { order: 3; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 2px; }
.lang-switch a { color: #DCE5F7; text-decoration: none; padding: 2px 11px; border-radius: 999px; font-size: .9rem; font-weight: 600; line-height: 1.7; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on { background: var(--amber); color: #14203A; }
.theme-toggle, .nav-toggle { background: none; border: 1px solid transparent; color: #fff; padding: 7px; cursor: pointer; border-radius: 10px; display: inline-flex; line-height: 0; }
.theme-toggle:hover, .nav-toggle:hover { background: rgba(255, 255, 255, .1); }
.theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .t-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .t-sun { display: inline-flex; }
}
.nav {
  order: 2;
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 2px;
  background: var(--night);
  padding: 8px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.nav.open { display: flex; }
.nav a { color: #E6ECF9; text-decoration: none; padding: 10px 0; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"]:not(.btn) { color: #FFC46B; }
.nav .nav-cta { margin-top: 8px; color: #14203A; text-align: center; }
.nav .nav-cta:hover { color: #14203A; text-decoration: none; }
@media (min-width: 1020px) {
  .nav-toggle { display: none; }
  .only-mobile { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 24px; background: none; padding: 0; border: 0; margin-right: 12px; }
  .nav a { padding: 6px 0; }
  .nav .nav-cta { margin: 0; padding: 9px 20px; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); top: calc(76px + env(safe-area-inset-top, 0px)); max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); animation: toast 6s ease forwards; }
.toast-ok { background: var(--ok-bg); color: var(--ok-ink); }
.toast-err { background: #FDE8E6; color: #8C1D18; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px); } 6%, 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #0F1B3D 0%, #1B2C5C 70%, #0F1B3D 100%); color: #fff; overflow: hidden; }
.hero-top { padding: 56px 0 18px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.1rem); line-height: 1.2; max-width: 16em; margin-inline: auto; text-wrap: balance; }
body.lang-bn .hero h1 { line-height: 1.32; }
.hero .lead { margin: 18px auto 0; max-width: 38em; font-size: 1.15rem; color: #D9E2F4; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }
.hero-stage { position: relative; padding-top: 12px; }
.hero-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 45%, rgba(245, 164, 58, .28), rgba(184, 103, 127, .12) 55%, transparent 75%);
}

/* ---------- 3D carousel ---------- */
.cf { position: relative; padding: 12px 0 56px; }
.cf-stage { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px; }
.cf-item {
  position: relative; display: block; flex: 0 0 min(86%, 560px); scroll-snap-align: center;
  aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #0B1430; color: #fff; text-decoration: none;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.cf-media { position: absolute; inset: 0; display: block; }
.cf-media svg, .cf-media img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.cf-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 24px 22px; background: linear-gradient(transparent, rgba(9, 16, 38, .88)); display: flex; flex-direction: column; gap: 4px; text-align: left; }
.cf-cap strong { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.15rem, 3vw, 1.7rem); line-height: 1.25; }
.cf-cap span { opacity: .92; font-size: .98rem; }
.cf-cap em { font-style: normal; color: #FFC46B; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.cf-nav, .cf-dots { display: none; }

.js .cf-stage {
  display: block; position: relative; overflow: visible; padding: 0;
  height: clamp(230px, 46vw, 500px);
  perspective: 1400px; perspective-origin: 50% 45%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.js .cf.dragging .cf-stage { cursor: grabbing; }
.js .cf-item {
  position: absolute; left: 50%; top: 50%; width: min(720px, 76vw); flex: none;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d; will-change: transform, opacity;
  transition: transform .7s cubic-bezier(.22, .8, .2, 1), opacity .7s ease;
}
.js .cf.dragging .cf-item { transition: none; }
.js .cf-item .cf-cap { transition: opacity .4s ease; }
.js .cf-item:not(.is-active) .cf-cap { opacity: 0; }
.js .cf-nav {
  display: grid; place-items: center; position: absolute; top: calc(50% - 32px); z-index: 300;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(15, 27, 61, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
}
.js .cf-nav:hover { background: rgba(245, 164, 58, .9); color: #14203A; }
.cf-prev { left: max(8px, calc(50% - 470px)); }
.cf-next { right: max(8px, calc(50% - 470px)); }
.js .cf-dots { display: flex; position: absolute; bottom: 16px; left: 0; right: 0; justify-content: center; gap: 8px; z-index: 300; }
.cf-dot { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .3s ease, background .3s ease; }
.cf-dot::before { content: ""; position: absolute; inset: -10px -4px; }
.cf-dot.on { width: 28px; background: var(--amber); }

/* ---------- Stats ---------- */
.stats { background: var(--night); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin: 0; padding: 30px 0 34px; text-align: center; }
.stats-grid div { display: flex; flex-direction: column-reverse; }
.stats-grid dd { margin: 0; font-family: var(--font-head); font-size: 2.4rem; color: #FFC46B; line-height: 1.2; }
.stats-grid dt { color: #C9D3E8; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--alt); }
.section-head { margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 40em; margin: 10px 0 0; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.ext { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--link); }
.ext:hover { text-decoration: underline; text-underline-offset: 4px; }
.ext svg { transition: transform .2s ease; }
.ext:hover svg { transform: translate(2px, -2px); }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .split-wide { grid-template-columns: 1.8fr 1fr; }
}
.big { font-size: 1.2rem; margin-top: 16px; }
.sub-h { margin-bottom: 12px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease, border-color .2s ease, box-shadow .2s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.svc-grid .reveal:nth-child(3n+2), .post-grid .reveal:nth-child(3n+2) { transition-delay: .08s; }
.svc-grid .reveal:nth-child(3n), .post-grid .reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(180deg, #0F1B3D 0%, #2A3B6E 100%); color: #fff; padding: 40px 0 48px; }
.page-head h1 { font-size: clamp(1.9rem, 5.6vw, 3rem); max-width: 20em; text-wrap: balance; }
.page-head .lead { margin: 14px 0 0; max-width: 38em; color: #D9E2F4; font-size: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a { color: #FFC46B; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Service cards ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 16px; font: inherit; font-size: .95rem; cursor: pointer; }
.chip:hover { border-color: var(--amber); }
.chip.on { background: var(--night); color: #fff; border-color: var(--night); }
:root[data-theme="dark"] .chip.on { background: var(--amber); color: #14203A; border-color: var(--amber); }
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.svc-card[hidden] { display: none; }
.svc-card:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--link); margin-bottom: 16px; }
.svc-cat { font-size: .9rem; color: var(--muted); margin: 0 0 4px; }
.svc-card h3 a { color: var(--ink); text-decoration: none; }
.svc-card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.svc-desc { color: var(--muted); margin: 8px 0 20px; flex: 1; }
.svc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.badge { font-size: .85rem; padding: 2px 10px; border-radius: 999px; line-height: 1.6; }
.badge-live { background: var(--ok-bg); color: var(--ok-ink); }
.badge-soon { background: var(--tint); color: var(--link); border: 1px dashed var(--amber); }

/* ---------- About / why / process ---------- */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why li { display: flex; flex-direction: column; padding-left: 18px; border-left: 3px solid var(--amber); }
.why strong { font-weight: 600; }
.why span { color: var(--muted); }
.why-lg { margin-top: 24px; }
.mv { display: grid; gap: 20px; }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.mv-card h3 { margin-bottom: 8px; }
.mv-card p { margin: 0; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 22px; }
.steps h3 { margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--night); color: #FFC46B; font-family: var(--font-head); font-size: 1.15rem; }

/* ---------- Leadership cards ---------- */
.leaders { display: grid; gap: 24px; }
@media (min-width: 800px) { .leaders { grid-template-columns: repeat(2, 1fr); } }
.leader { display: grid; gap: 20px; grid-template-columns: 96px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-items: start; }
.leader-photo img, .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; }
.avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--night-2), var(--rose)); color: #fff; font-size: 1.8rem; font-family: var(--font-head); }
.avatar.sm { width: 44px; height: 44px; font-size: 1rem; }
.leader-role { font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--link); margin: 0 0 2px; }
body.lang-bn .leader-role { text-transform: none; letter-spacing: 0; }
.leader-title { color: var(--muted); margin: 2px 0 12px; }
.leader-quote { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--amber); color: var(--muted); font-style: normal; }
.leader-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; font-size: .95rem; }

/* ---------- Founder / CEO page ---------- */
.person + .person { border-top: 1px solid var(--line); }
.person-head { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .person-head { grid-template-columns: 340px 1fr; gap: 56px; } }
.person-photo img { width: 100%; max-width: 420px; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); display: block; }
.avatar.xl { width: 100%; max-width: 340px; aspect-ratio: 1; height: auto; border-radius: 24px; font-size: 5rem; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.role-badge { background: var(--tint); color: var(--link); border: 1px solid var(--amber); border-radius: 999px; padding: 1px 14px; font-size: .9rem; font-weight: 600; }
.person-name { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.person-title { color: var(--muted); font-size: 1.15rem; margin: 6px 0 22px; }
.pull { margin: 0 0 18px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 12px; }
.pull figcaption { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.pull blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 1.45rem); line-height: 1.5; }
.person-body { display: grid; gap: 36px; margin-top: 48px; }
@media (min-width: 900px) { .person-body { grid-template-columns: 1.7fr 1fr; gap: 56px; } }
.person-body h3 { margin-bottom: 12px; }
.person-side { display: grid; gap: 28px; align-content: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 18px; }
.timeline li { position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); border: 3px solid var(--bg); }
.tl-y { font-weight: 700; color: var(--link); }
.tl-t { color: var(--ink); }

/* ---------- Testimonials ---------- */
.tests { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.test { margin: 0; flex: 0 0 min(88%, 380px); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.test blockquote { margin: 0; font-size: 1.05rem; }
.test figcaption { display: flex; gap: 12px; align-items: center; }
.test figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.test small { display: block; color: var(--muted); }

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--alt); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; color: #FFE9B8; background: linear-gradient(135deg, var(--night), var(--night-2) 55%, var(--rose)); }
.post-body { padding: 20px 22px 24px; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-body p { color: var(--muted); margin: 8px 0 0; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.big-meta { font-size: 1rem; margin-bottom: 20px; }
.post-hero { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.tags li { background: var(--tint); padding: 2px 12px; border-radius: 999px; font-size: .9rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose-lg { font-size: 1.125rem; line-height: 1.9; max-width: none; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.1rem; margin: 1.2em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--amber); color: var(--muted); }
.prose img { border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose pre { background: var(--night); color: #E6ECF9; padding: 16px; border-radius: 10px; overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--night) 0%, var(--night-2) 60%, var(--rose) 135%); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 8px 0 0; color: #D9E2F4; max-width: 34em; }

/* ---------- Contact ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.fld { margin-bottom: 16px; }
.fld label { display: block; font-weight: 600; margin-bottom: 6px; }
.fld input, .fld textarea { width: 100%; padding: 11px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.fld textarea { resize: vertical; min-height: 140px; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.notice-ok { background: var(--ok-bg); color: var(--ok-ink); }
.notice-err { background: #FDE8E6; color: #8C1D18; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.info li { display: flex; gap: 14px; align-items: flex-start; }
.info small { display: block; color: var(--muted); }
.info-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--link); display: grid; place-items: center; }

/* ---------- 404 ---------- */
.big-404 { font-family: var(--font-head); font-size: clamp(4rem, 18vw, 8rem); line-height: 1; margin: 0; color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #C9D3E8; padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.foot-brand { color: #fff; font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 1.4rem; }
.foot-text { margin: 8px 0 20px; max-width: 26em; }
.foot-h { color: #fff; font-weight: 600; margin: 0 0 8px; }
.foot-h2 { margin-top: 20px; }
.foot-links, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: #E6ECF9; text-decoration: none; }
.site-footer a:hover { color: #FFC46B; text-decoration: underline; }
.nl-text { margin: 0 0 10px; font-size: .95rem; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 200px; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; }
.nl-row input::placeholder { color: #9FB0D3; }
.site-footer .btn-amber, .site-footer .btn-amber:hover { color: #14203A; text-decoration: none; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Chat widget ---------- */
.bt-chat { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.bt-chat-toggle { width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--amber); color: #14203A; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(15, 27, 61, .35); }
.bt-chat-toggle:hover { background: var(--amber-h); }
.bt-chat-toggle .i-close { display: none; }
.bt-chat.open .bt-chat-toggle .i-open { display: none; }
.bt-chat.open .bt-chat-toggle .i-close { display: inline-flex; }
.bt-chat-panel {
  position: absolute; right: 0; bottom: 70px; width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px)); height: min(560px, calc(100dvh - 130px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 16px 48px rgba(15, 27, 61, .3);
}
.bt-chat-panel[hidden] { display: none; }
.bt-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: var(--night); color: #fff; padding: 14px 16px; }
.bt-chat-head strong { display: block; font-size: 1.05rem; }
.bt-chat-head small { display: block; color: #B9C5DE; line-height: 1.4; margin-top: 2px; }
.bt-chat-x { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; border-radius: 6px; }
.bt-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bt-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: .98rem; }
.bt-msg a { color: inherit; text-decoration: underline; }
.bt-msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bt-msg.me { background: var(--night); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bt-typing { display: inline-flex; gap: 4px; }
.bt-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bt-typing i:nth-child(2) { animation-delay: .2s; }
.bt-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.bt-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); align-items: flex-end; }
.bt-chat-form textarea { flex: 1; resize: none; max-height: 110px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg); }
.bt-chat-form button { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--amber); color: #14203A; cursor: pointer; display: grid; place-items: center; }
.bt-chat-form button:disabled { opacity: .5; cursor: default; }
.bt-chat-human { display: block; text-align: center; padding: 8px; font-size: .9rem; border-top: 1px solid var(--line); background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .cf-item { transition: none; }
  .toast { animation: none; }
  .bt-typing i { animation: none; opacity: .6; }
  .ext svg { transition: none; }
}
