/* ==========================================================================
   CIXI VIRTUE CO., LTD. — China SpaceBag
   Rebuilt website stylesheet
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --brand: #1b84e7;
  --brand-dark: #0e6bc4;
  --brand-soft: #e8f2fc;
  --brand-tint: #f2f8ff;
  --ink: #14243c;
  --muted: #5c6f88;
  --line: #e4ebf4;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --white: #ffffff;
  --amber: #ff9f2e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, .06);
  --shadow: 0 14px 40px rgba(11, 31, 58, .10);
  --shadow-lg: 0 28px 70px rgba(11, 31, 58, .16);
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Arial, sans-serif;
  --container: 1220px;
  --header-h: 76px;
}

*, *::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);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); display: inline-block; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 68px 0; }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
.section-head--left { margin-left: 0; text-align: left; }
h2.title { font-size: clamp(28px, 3.4vw, 42px); }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; transition: .25s ease; white-space: nowrap; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 26px rgba(27,132,231,.32); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(27,132,231,.4); }
.btn--ghost { border-color: rgba(11,31,58,.16); color: var(--navy); background: rgba(255,255,255,.6); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { padding: 11px 22px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy); color: rgba(255,255,255,.82);
  font-size: 13px; letter-spacing: .02em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 18px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.82); transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; opacity: .8; }
.topbar-social { display: flex; gap: 14px; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.header.is-stuck { box-shadow: 0 8px 30px rgba(11,31,58,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--navy));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 8px 20px rgba(27,132,231,.32); flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 18px; color: var(--navy); letter-spacing: .04em; }
.brand__sub { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--navy);
  transition: .2s;
}
.nav > li > a:hover, .nav > li.active > a { color: var(--brand); background: var(--brand-soft); }
.nav > li > a .caret { width: 12px; height: 12px; opacity: .6; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 306px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .22s ease;
}
.nav > li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: 14.5px; color: var(--ink); font-weight: 500;
}
.dropdown a:hover { background: var(--brand-soft); color: var(--brand); }
.dropdown a span.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.dropdown__col { display: grid; grid-template-columns: 1fr; }
.dropdown--wide { min-width: 520px; grid-template-columns: 1fr 1fr; display: none; }
.nav > li:hover > .dropdown--wide { display: grid; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.header__phone small { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.header__phone b { font-size: 15px; color: var(--navy); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, rgba(9,24,45,.94) 0%, rgba(11,31,58,.78) 42%, rgba(11,31,58,.28) 100%),
              var(--hero-img, url('../img/company/hero-livingroom.jpg')) center/cover no-repeat;
  min-height: 640px; display: flex; align-items: center;
}
/* WebP is ~35% smaller; serve it when the browser supports it. */
@supports (background: url("data:image/webp,")) {
  .hero {
    background: linear-gradient(115deg, rgba(9,24,45,.94) 0%, rgba(11,31,58,.78) 42%, rgba(11,31,58,.28) 100%),
                var(--hero-img-w, url('../img/company/hero-livingroom.webp')) center/cover no-repeat;
  }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 500px at 82% 20%, rgba(27,132,231,.35), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; }
.hero__inner { max-width: 660px; }
.hero .eyebrow { color: #8fc6ff; }
.hero .eyebrow::before { background: #8fc6ff; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7cc0ff; }
.hero p { font-size: 19px; color: rgba(255,255,255,.86); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero__badge b { display: block; font-size: 30px; font-weight: 800; color: #fff; line-height: 1; }
.hero__badge span { font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: .04em; }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(115deg, rgba(9,24,45,.95), rgba(11,31,58,.72)),
              var(--hero-img, url('../img/company/hero-livingroom.jpg')) center/cover no-repeat;
  padding: 108px 0 76px;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 48px); }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin: 16px 0 0; font-size: 18px; }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 18px; flex-wrap: wrap; }
@supports (background: url("data:image/webp,")) {
  .page-hero--img {
    background: linear-gradient(115deg, rgba(9,24,45,.95), rgba(11,31,58,.72)),
                var(--hero-img-w, var(--hero-img, url('../img/company/hero-livingroom.webp'))) center/cover no-repeat;
  }
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }

/* ---------- Marquee / trust bar ---------- */
.trustbar { background: var(--navy); color: #fff; padding: 22px 0; }
.trustbar .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trustbar__label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.trustbar__logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trustbar__logos span { font-weight: 700; font-size: 19px; letter-spacing: .04em; color: rgba(255,255,255,.9); opacity: .85; }

/* ---------- Feature blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.split__media img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/3; }
/* <picture> is inline by default, which leaves a few pixels of baseline gap under
   the image. Make it a block so it fills the frame cleanly. */
.split__media > picture,
.pcard__media > picture,
.gallery > picture,
.cert-card > picture { display: block; }
.split__media--tall img { aspect-ratio: 3/3.6; }
.split__media .float-card {
  position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: 14px;
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.split__media .float-card b { font-size: 26px; color: var(--brand); }
.split__media .float-card span { font-size: 13px; color: var(--muted); }
.split__body h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.split__body p { color: var(--muted); font-size: 17px; }
.check-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink); }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--brand); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: .3s; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand), var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.stat:hover::before { transform: scaleX(1); }
.stat b { display: block; font-size: 42px; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat b .plus { color: var(--brand); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Product grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .32s ease; display: flex; flex-direction: column; position: relative;
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__media { position: relative; overflow: hidden; background: var(--bg-alt); }
.pcard__media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s ease; }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--brand); font-size: 12px; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; letter-spacing: .04em; backdrop-filter: blur(6px);
}
.pcard__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 20px; margin-bottom: 8px; }
.pcard__body h3 small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.pcard__body p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.pcard__body .link-arrow { margin-top: auto; }

/* ---------- Product detail ---------- */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.specs .row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.specs .row dt { color: var(--muted); font-size: 15px; }
.specs .row dd { margin: 0; font-weight: 600; color: var(--navy); font-size: 15px; text-align: right; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: .3s; }
.fcard:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.fcard .ico { width: 52px; height: 52px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.fcard .ico svg { width: 26px; height: 26px; }
.fcard h3 { font-size: 18px; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 15px; margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; transition: .3s; }
.gallery img:hover { box-shadow: var(--shadow); transform: scale(1.02); }
.gallery--wide { grid-template-columns: repeat(2, 1fr); }
.gallery--wide img { aspect-ratio: 4/3; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 46px 34px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 34px 46px; text-align: left; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-item .dot { position: absolute; top: 8px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 0 0 4px rgba(27,132,231,.14); }
.tl-item:nth-child(even) .dot { right: auto; left: -9px; }
.tl-item .year { font-size: 24px; font-weight: 800; color: var(--brand); }
.tl-item h3 { font-size: 18px; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tl-item .brandtag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); background: var(--brand-soft); padding: 3px 10px; border-radius: 6px; margin-bottom: 6px; }

/* ---------- Certificates ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.cert-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.cert-card img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; background: #fff; }
.cert-card__body { padding: 16px 18px; }
.cert-card__body b { display: block; color: var(--navy); font-size: 15px; }
.cert-card__body span { font-size: 13px; color: var(--muted); }

/* ---------- Dark CTA ---------- */
.cta {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, #16406e 100%);
}
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(27,132,231,.5), transparent 65%); }
.cta .container { position: relative; z-index: 2; padding: 78px 24px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; font-size: 17px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Forms / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fbfdff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(27,132,231,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand); display: none; }
.form-status.show { display: block; }

.info-card { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-card:last-child { border-bottom: 0; }
.info-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card b { display: block; color: var(--navy); font-size: 15px; margin-bottom: 3px; }
.info-card p, .info-card a { color: var(--muted); font-size: 15px; margin: 0; }
.info-card a:hover { color: var(--brand); }

.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Info table (company) ---------- */
.infotable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.infotable th, .infotable td { padding: 15px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.infotable tr:last-child th, .infotable tr:last-child td { border-bottom: 0; }
.infotable th { width: 200px; background: var(--bg-alt); color: var(--navy); font-weight: 600; }
.infotable td { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 70px 0 0; font-size: 15px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: rgba(255,255,255,.55); }
.footer p { color: rgba(255,255,255,.7); }
.footer a { color: rgba(255,255,255,.72); transition: .2s; }
.footer a:hover { color: #fff; }
.footer ul li { margin-bottom: 11px; }
.footer .contact-line { display: flex; gap: 11px; margin-bottom: 13px; align-items: flex-start; }
.footer .contact-line svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer__social a:hover { background: var(--brand); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }

/* ---------- Reveal animation (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Location card ---------- */
.map-note { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); }
.map-note__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.map-note__head svg { width: 20px; height: 20px; color: var(--brand); }
.map-note__head b { color: var(--navy); font-size: 16px; }
.map-note p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.map-note__links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(6,16,30,.9); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background: #fff; z-index: 200;
  transform: translateX(100%); transition: transform .35s ease; padding: 26px; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav__close { border: 0; background: var(--bg-alt); width: 40px; height: 40px; border-radius: 10px; font-size: 20px; color: var(--navy); }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); }
.mobile-nav .sub a { padding-left: 16px; font-weight: 500; font-size: 14.5px; color: var(--muted); }
.overlay { position: fixed; inset: 0; background: rgba(6,16,30,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 199; }
.overlay.open { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__phone, .topbar-social { display: none; }
  .burger { display: flex; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .split { gap: 40px; }
}
@media (max-width: 820px) {
  .section { padding: 68px 0; }
  .topbar-list { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-card { padding: 28px; }
  .specs { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; }
  .timeline::before { left: 9px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 30px 40px; text-align: left; }
  .tl-item .dot, .tl-item:nth-child(even) .dot { left: 1px; right: auto; }
  .hero { min-height: auto; }
  .hero .container { padding-top: 72px; padding-bottom: 72px; }
  .cta .container { padding: 56px 24px; }
  .infotable th { width: auto; }
  .infotable, .infotable tbody, .infotable tr, .infotable th, .infotable td { display: block; }
  .infotable th { border-bottom: 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .grid--4, .grid--3, .grid--2, .gallery, .gallery--wide, .certs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__badges { gap: 20px; }
  .hero__badge b { font-size: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .btn { padding: 13px 24px; }
  /* tighten header so brand + CTA + burger fit narrow phones (<=375px) */
  .header__inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand__mark { width: 38px; height: 38px; font-size: 15px; border-radius: 10px; }
  .brand__name { font-size: 15px; letter-spacing: .02em; }
  .brand__sub { display: none; }
  .header__cta { gap: 8px; }
  .header__cta .btn { padding: 10px 16px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .brand__mark { width: 34px; height: 34px; font-size: 14px; }
  .brand__name { font-size: 14px; }
}
