/* =========================================================
   USentex — Website thương hiệu sơn
   Tokens: 1 màu chính (đỏ), 1 màu phụ (xanh), trung tính lạnh
   ========================================================= */
:root {
  --red: #C4161C;
  --red-700: #9E1016;
  --red-900: #6E0C19;
  --red-50: #FCEEEE;
  --blue: #2340B8;
  --blue-700: #1A2F8A;
  --blue-900: #141F5C;
  --blue-50: #EDF1FC;
  --ink: #171B2C;
  --ink-2: #353A4E;
  --muted: #5D6278;
  --line: #DDE0E8;
  --line-2: #ECEEF3;
  --wall: #F4F5F8;
  --paper: #FFFFFF;
  --zalo: #0068FF;
  --ok: #157F3B;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 4px;
  --r: 8px;
  --r-l: 14px;
  --shadow: 0 1px 2px rgba(23, 27, 44, .06), 0 10px 28px -14px rgba(23, 27, 44, .22);
  --header-h: 68px;
  --bar-h: 0px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r); }
.skip:focus { top: 8px; color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: 0; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.08em; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.code-type { font-family: var(--f-display); font-style: italic; font-weight: 700; letter-spacing: .01em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section--wall { background: var(--wall); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 52ch; color: var(--muted); }
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid { gap: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border-radius: var(--r); border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--blue); padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: var(--blue-50); }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { background: #0052cc; color: #fff; }
.btn-white { background: #fff; color: var(--red-900); }
.btn-white:hover { background: var(--red-50); color: var(--red-900); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-2);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; }
@media (min-width: 768px) { .brand img { height: 50px; } }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: var(--r);
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .93rem; white-space: nowrap;
}
@media (max-width: 1359px) { .nav a { padding: 10px 9px; font-size: .9rem; } }
.nav a:hover { background: var(--wall); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); background: var(--red-50); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 10px; border-radius: var(--r); }
.header-phone svg { width: 18px; height: 18px; color: var(--red); }
.header-phone small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); line-height: 1.1; }
.quote-btn { position: relative; }
.quote-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #fff; color: var(--red); font-size: .75rem; font-weight: 700;
  display: inline-grid; place-items: center;
}
.quote-count[hidden] { display: none; }
.nav-toggle {
  width: 46px; height: 46px; border-radius: var(--r); border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.header-actions .quote-btn { display: none; }
@media (min-width: 560px) { .header-actions .quote-btn { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}
@media (min-width: 1360px) { .header-phone { display: flex; } }

/* Mobile menu */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: #fff; padding: 12px var(--gutter) calc(24px + var(--bar-h));
  overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.mobile-nav.open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line-2);
  font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--ink); text-decoration: none;
}
.mobile-nav li a[aria-current="page"] { color: var(--red); }
.mobile-nav .mobile-contact { margin-top: 24px; display: grid; gap: 10px; }
@media (min-width: 1180px) { .mobile-nav { display: none; } }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  box-shadow: 0 -6px 20px -12px rgba(23, 27, 44, .25);
}
.action-bar a, .action-bar button {
  min-height: 48px; border-radius: var(--r); border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .78rem; font-weight: 600; text-decoration: none; line-height: 1.1;
}
.action-bar svg { width: 20px; height: 20px; }
.action-bar .ab-call { background: var(--wall); color: var(--ink); }
.action-bar .ab-zalo { background: var(--zalo); color: #fff; }
.action-bar .ab-quote { background: var(--red); color: #fff; flex-direction: row; gap: 6px; font-size: .86rem; white-space: nowrap; }
body.has-bar { --bar-h: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .action-bar { display: none; }
  body.has-bar { --bar-h: 0px; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: 28px 0 40px; background: var(--wall); overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 56px 0 72px; } }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.12fr; gap: 56px; } }
.hero h1 { font-size: clamp(2.9rem, 9vw, 5.4rem); line-height: 1.02; margin-bottom: 18px; max-width: 12ch; }
.hero .lead { margin-bottom: 24px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--muted); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--blue); }

.tryout { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; }
.tryout-stage { position: relative; aspect-ratio: 600 / 400; background: #e9e9e9; }
.tryout-stage svg { width: 100%; height: 100%; }
.scene-switch {
  position: absolute; top: 12px; left: 12px; display: flex; padding: 3px; gap: 2px;
  background: rgba(255, 255, 255, .92); border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.scene-switch button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink-2); min-height: 34px;
}
.scene-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tryout-bar { padding: 14px 16px 16px; display: grid; gap: 12px; }
@media (min-width: 600px) { .tryout-bar { padding: 16px 20px 18px; } }
.tryout-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tryout-title strong { font-family: var(--f-display); font-size: 1.25rem; }
.tryout-current { font-size: .9rem; color: var(--muted); }
.tryout-current b { color: var(--ink); font-weight: 600; }
.swatch-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.swatch-row::-webkit-scrollbar { display: none; }
.swatch-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: transform .15s var(--ease);
}
.swatch-btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatch-btn:hover { transform: scale(1.06); }
.scene-wall, .scene-wall-shade { transition: fill .55s var(--ease); }

/* ---------- Advantages ---------- */
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .adv-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.adv-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.adv-list .ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.adv-list .ico svg { width: 22px; height: 22px; }
.adv-list h3 { font-size: 1.3rem; margin: 0 0 4px; }
.adv-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Audience tabs ---------- */
.aud { display: grid; gap: 20px; }
@media (min-width: 900px) { .aud { grid-template-columns: 300px 1fr; gap: 40px; align-items: start; } }
.aud-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.aud-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .aud-tabs { flex-direction: column; } }
.aud-tab {
  flex: none; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r);
  padding: 12px 16px; min-height: 48px; font-weight: 600; color: var(--ink-2);
}
@media (min-width: 900px) { .aud-tab { padding: 16px 18px; font-size: 1.05rem; } }
.aud-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.aud-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
@media (min-width: 900px) { .aud-panel { padding: 36px 40px; } }
.aud-panel h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.check-list svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }

/* ---------- Paint system layers ---------- */
.layers { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .layers { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.cutaway { position: relative; height: 320px; perspective: 900px; }
@media (min-width: 600px) { .cutaway { height: 380px; } }
.cut-layer {
  position: absolute; left: 0; bottom: 0; height: 100%;
  border-radius: 0 var(--r) var(--r) 0;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px 14px;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: rgba(0, 0, 0, .62);
  box-shadow: 6px 0 14px -8px rgba(0, 0, 0, .35);
  transition: width .5s var(--ease), background-color .5s var(--ease);
}
.cut-layer span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.cut-layer.l0 { width: 100%; background: repeating-linear-gradient(0deg, #b9b2a8 0 26px, #a39b90 26px 28px), #b9b2a8; color: rgba(0, 0, 0, .55); }
.cut-layer.l1 { width: 76%; background: #E7E3DC; }
.cut-layer.l2 { width: 54%; background: #F7F6F2; }
.cut-layer.l3 { width: 32%; color: rgba(255, 255, 255, .92); }
.layer-steps { list-style: none; margin: 0; padding: 0; counter-reset: layer; }
.layer-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.layer-steps li::before {
  counter-increment: layer; content: counter(layer);
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem;
}
.layer-steps h4 { margin: 0 0 2px; font-size: 1.2rem; }
.layer-steps p { margin: 0; color: var(--muted); font-size: .92rem; }
.layer-steps .codes { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; padding: 4px; background: var(--wall); border-radius: 999px; gap: 2px; margin-bottom: 8px; }
.seg button { white-space: nowrap; flex: none; border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); min-height: 40px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

/* ---------- Code pills / tags ---------- */
.code-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .85rem; font-weight: 600;
}
.code-pill i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); display: block; }
.code-pill:hover { border-color: var(--ink); color: var(--ink); }
.tag { display: inline-block; padding: 3px 9px; border-radius: var(--r-s); background: var(--wall); color: var(--ink-2); font-size: .78rem; font-weight: 500; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Pail (product visual) ---------- */
.pail { width: 100%; height: auto; }
.pail-wrap { background: #fff; display: grid; place-items: center; }

/* ---------- Product card ---------- */
.p-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1180px) { .p-grid.p-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.p-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: border-color .18s var(--ease);
}
.p-card:hover { border-color: #b9bdca; }
.p-card::before { content: ""; height: 5px; background: var(--c); display: block; }
.p-card .pail-wrap { padding: 14px 18px 4px; }
.p-card .pail { max-width: 190px; }
.p-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 760px) { .p-body { padding: 12px 18px 18px; } }
.p-code { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--c); }
.p-code small { font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 600; margin-left: 4px; letter-spacing: .02em; }
.p-name { font-weight: 600; font-size: .95rem; line-height: 1.35; margin: 0; }
.p-name a { color: var(--ink); text-decoration: none; }
.p-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-name a:hover { text-decoration: underline; }
.p-card .tags { margin-top: 2px; }
.p-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.p-price { font-size: .82rem; color: var(--muted); }
.p-add { position: relative; z-index: 2; }
.p-add[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 480px) {
  .p-card .tags { display: none; }
  .p-code { font-size: 1.45rem; }
  .p-name { font-size: .88rem; }
  .p-add span { display: none; }
  .p-add { min-height: 40px; width: 40px; padding: 0; }
}
.p-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.p-scroller > * { scroll-snap-align: start; }
@media (min-width: 760px) { .p-scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; margin: 0; gap: 20px; } }
@media (min-width: 1180px) { .p-scroller { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Page header ---------- */
.page-head { background: var(--wall); padding: 28px 0 32px; border-bottom: 1px solid var(--line-2); }
@media (min-width: 900px) { .page-head { padding: 48px 0 52px; } }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 10px; }
.page-head .lead { margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { opacity: .6; }

/* ---------- Products page ---------- */
.catalog { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 1024px) { .catalog { grid-template-columns: 260px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 88px; } }
.cat-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search-field { position: relative; flex: 1 1 240px; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 46px; padding: 10px 14px 10px 42px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.search-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.filter-open { display: inline-flex; }
@media (min-width: 1024px) { .filter-open { display: none; } }
.result-count { font-size: .9rem; color: var(--muted); }
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.filters.open {
  display: block; position: fixed; inset: 0; z-index: 60; background: #fff; overflow-y: auto;
  padding: 16px var(--gutter) 100px;
}
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-size: 1.6rem; margin: 0; }
@media (min-width: 1024px) { .filters-head .close-x { display: none; } .filters-head h2 { font-size: 1.3rem; } }
.f-group { border: 0; padding: 0; margin: 0 0 22px; }
.f-group legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: .95rem; }
.f-opt input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; flex: none; }
.f-opt .n { margin-left: auto; color: var(--muted); font-size: .82rem; }
.filters-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.filters:not(.open) .filters-foot { display: none; }
.filters-foot .btn { flex: 1; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.active-filters:empty { display: none; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 8px 5px 12px; font-size: .85rem; min-height: 34px; }
.chip-x svg { width: 14px; height: 14px; }
.cat-block { margin-bottom: 44px; }
.cat-block h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 4px; }
.cat-block > p { color: var(--muted); margin-bottom: 18px; max-width: 64ch; }
.empty { text-align: center; padding: 56px 16px; border: 1px dashed var(--line); border-radius: var(--r-l); }
.empty h3 { margin-bottom: 6px; }

/* ---------- Product detail ---------- */
.pd { display: grid; gap: 28px; padding: 20px 0 40px; }
@media (min-width: 960px) { .pd { grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 0 64px; align-items: start; } }
.pd-gallery { display: grid; gap: 10px; }
@media (min-width: 960px) { .pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); } }
.pd-main { border: 1px solid var(--line); border-radius: var(--r-l); background: #fff; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; padding: 24px; }
.pd-main .pail { max-width: 360px; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pd-thumb { border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; padding: 0; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb .pail { width: 60%; }
.pd-thumb[aria-pressed="true"] { border-color: var(--ink); }
.pd-thumb span { font-size: .75rem; color: var(--muted); }
.pd-code { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: clamp(3.2rem, 8vw, 5rem); line-height: .95; color: var(--c); margin-bottom: 6px; }
.pd h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 4px; }
.pd-en { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.pd-features { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 560px) { .pd-features { grid-template-columns: 1fr 1fr; } }
.pd-features li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--wall); border-radius: var(--r); font-weight: 500; font-size: .93rem; }
.pd-features svg { width: 20px; height: 20px; color: var(--c); flex: none; }
.quick-specs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); margin: 18px 0; }
.quick-specs div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.quick-specs div:nth-child(odd) { border-right: 1px solid var(--line); }
.quick-specs div:nth-last-child(-n+2) { border-bottom: 0; }
.quick-specs dt { font-size: .78rem; color: var(--muted); }
.quick-specs dd { margin: 0; font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.price-row strong { font-family: var(--f-display); font-size: 1.5rem; color: var(--red); }
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 14px 12px; color: var(--ink-2); text-decoration: none; white-space: nowrap; font-weight: 500; font-size: .93rem; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-color: var(--line); }
.pd-section { padding: 44px 0; border-bottom: 1px solid var(--line-2); }
.pd-section:last-child { border-bottom: 0; }
.pd-section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 500; }
.spec-table thead th { color: var(--ink); font-weight: 700; background: var(--wall); width: auto; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table-scroll .spec-table th, .table-scroll .spec-table td { padding: 12px 14px; }
.table-scroll .spec-table tr:last-child td { border-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 22px 52px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem;
}
.steps li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h4 { margin: 4px 0 4px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.note { padding: 14px 16px; border-left: 3px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--r) var(--r) 0; font-size: .93rem; }
.note-warn { border-color: var(--red); background: var(--red-50); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 700px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.doc-item .ico { width: 44px; height: 44px; border-radius: var(--r); background: var(--red-50); color: var(--red); display: grid; place-items: center; }
.doc-item .ico svg { width: 22px; height: 22px; }
.doc-item strong { display: block; font-size: .95rem; }
.doc-item small { color: var(--muted); }

/* Calculator */
.calc { background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 24px; display: grid; gap: 20px; }
@media (min-width: 800px) { .calc { grid-template-columns: 1fr 1fr; padding: 36px; gap: 40px; align-items: center; } }
.calc h2, .calc h3 { color: #fff; }
.calc label { display: block; font-size: .85rem; color: #c9ccd8; margin-bottom: 6px; }
.calc input, .calc select { width: 100%; min-height: 48px; border-radius: var(--r); border: 1px solid #3c4158; background: #23283d; color: #fff; padding: 10px 12px; }
.calc .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc .fields .full { grid-column: 1 / -1; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out div { background: #23283d; border-radius: var(--r); padding: 16px; }
.calc-out b { display: block; font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.calc-out span { font-size: .85rem; color: #c9ccd8; }
.calc .fine { grid-column: 1 / -1; font-size: .8rem; color: #a9adbf; margin: 0; }

/* ---------- Colors page ---------- */
.color-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 72px; }
@media (min-width: 1024px) { .color-layout { grid-template-columns: 1fr 400px; gap: 36px; padding-top: 36px; padding-bottom: 88px; } }
.fam-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin-bottom: 18px; }
.fam-chips::-webkit-scrollbar { display: none; }
.fam-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px 7px 8px; font-size: .88rem; font-weight: 500; min-height: 40px; }
.fam-chip i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.fam-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
@media (min-width: 700px) { .chip-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; } }
.color-chip {
  text-align: left; border: 1px solid var(--line); background: #fff; padding: 0; border-radius: var(--r-s); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.color-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.color-chip .sw { aspect-ratio: 4 / 3; background: var(--c); position: relative; }
.color-chip .sw svg { position: absolute; right: 8px; top: 8px; width: 18px; height: 18px; color: var(--fg, #fff); }
.color-chip .meta { padding: 8px 10px 10px; display: grid; gap: 0; }
.color-chip .meta b { font-size: .88rem; }
.color-chip .meta span { font-size: .78rem; color: var(--muted); }
.color-chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.fam-title { font-size: 1.5rem; margin: 28px 0 12px; }
.fam-title:first-child { margin-top: 0; }
.color-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
@media (min-width: 1024px) { .color-panel { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.color-panel .tryout-stage { border-bottom: 1px solid var(--line); }
.cp-body { padding: 18px 20px 20px; }
.cp-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.cp-dot { width: 56px; height: 56px; border-radius: var(--r); background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.cp-head h2 { font-size: 1.7rem; margin: 0; }
.cp-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.cp-values { display: grid; gap: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.cp-values div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cp-values dt { color: var(--muted); font-size: .88rem; }
.cp-values dd { margin: 0; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.copy-btn { border: 0; background: transparent; width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; color: var(--blue); }
.copy-btn:hover { background: var(--blue-50); }
.copy-btn svg { width: 17px; height: 17px; }
.cp-related { display: flex; gap: 6px; margin: 6px 0 16px; }
.cp-related button { width: 36px; height: 36px; border-radius: var(--r-s); border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cp-close { display: none; }
@media (max-width: 1023px) {
  .color-panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; border-radius: var(--r-l) var(--r-l) 0 0;
    max-height: 88vh; overflow-y: auto; transform: translateY(105%); transition: transform .3s var(--ease);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); border: 0;
  }
  .color-panel.open { transform: none; }
  .cp-close { display: grid; position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
  .cp-close svg { width: 20px; height: 20px; }
  .color-panel .scene-switch { top: 10px; }
}
.dl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.scrim { position: fixed; inset: 0; background: rgba(23, 27, 44, .5); z-index: 54; opacity: 0; visibility: hidden; transition: opacity .2s; }
.scrim.open { opacity: 1; visibility: visible; }
@media (min-width: 1024px) { .scrim.color-scrim { display: none; } }

/* ---------- Projects ---------- */
.proj-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .proj-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (min-width: 1100px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } .proj-grid .proj:first-child { grid-column: span 2; grid-row: span 2; } }
.proj { display: flex; flex-direction: column; background: #fff; border: 0; padding: 0; text-align: left; }
.proj-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; background: var(--wall); position: relative; }
.proj-media img, .proj-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj-media img, .proj:hover .proj-media svg { transform: scale(1.03); }
.proj-media .type { position: absolute; left: 12px; top: 12px; background: #fff; border-radius: var(--r-s); padding: 3px 10px; font-size: .78rem; font-weight: 600; }
.proj h3 { margin: 14px 0 4px; font-size: 1.45rem; }
.proj:first-child h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.proj p { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-2); }
.proj-meta span { display: inline-flex; gap: 6px; align-items: center; }
.proj-meta svg { width: 15px; height: 15px; color: var(--muted); }
.home-proj { display: grid; gap: 20px; }
@media (min-width: 800px) { .home-proj { grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; } }

/* ---------- Dialog / drawer ---------- */
dialog { border: 0; padding: 0; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(23, 27, 44, .55); }
.modal { width: min(920px, calc(100% - 24px)); border-radius: var(--r-l); margin: auto; max-height: calc(100dvh - 24px); overflow: auto; }
.modal-head { position: sticky; top: 0; background: #fff; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.5rem; }
.modal-body { padding: 22px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--wall); display: grid; place-items: center; flex: none; color: var(--ink); }
.icon-btn:hover { background: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.drawer {
  margin: 0 0 0 auto; height: 100dvh; width: min(480px, 100%); max-height: 100dvh;
  display: flex; flex-direction: column; background: #fff;
}
.drawer[open] { animation: drawer-in .28s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 600px) {
  .drawer { margin: auto 0 0; width: 100%; height: auto; max-height: 94dvh; border-radius: var(--r-l) var(--r-l) 0 0; }
  .drawer[open] { animation: sheet-in .3s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.6rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.q-items { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.q-item { display: grid; grid-template-columns: 8px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 10px 10px 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.q-item .bar { align-self: stretch; background: var(--c); }
.q-item b { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--c); display: block; line-height: 1.1; }
.q-item small { color: var(--ink-2); font-size: .82rem; line-height: 1.3; display: block; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); }
.qty button { width: 34px; height: 36px; border: 0; background: transparent; display: grid; place-items: center; }
.qty button svg { width: 14px; height: 14px; }
.qty input { width: 38px; text-align: center; border: 0; padding: 0; height: 36px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-empty { padding: 16px; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.q-unit { font-size: .75rem; color: var(--muted); text-align: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c9cdd8; border-radius: var(--r); background: #fff; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .err { display: none; font-size: .82rem; color: var(--red-700); margin-top: 4px; font-weight: 500; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field.invalid .err { display: block; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills label { margin: 0; }
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .9rem; cursor: pointer; background: #fff; }
.radio-pills input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.radio-pills input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.success { text-align: center; padding: 24px 8px; }
.success .ok-ico { width: 64px; height: 64px; border-radius: 50%; background: #e6f4ea; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.success .ok-ico svg { width: 32px; height: 32px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red-900); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
@media (min-width: 900px) { .cta-band { padding: 72px 0; } }
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band p { color: #f3d6d8; max-width: 52ch; }
.cta-grid { display: grid; gap: 28px; align-items: center; position: relative; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.cta-card { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: 22px; }
.cta-band .cta-card p { color: var(--muted); }
@media (min-width: 900px) { .cta-card { padding: 30px; } }
.cta-stroke { position: absolute; right: -60px; bottom: -40px; width: 520px; opacity: .16; pointer-events: none; }

/* ---------- Guide page ---------- */
.picker { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; display: grid; gap: 22px; }
@media (min-width: 900px) { .picker { grid-template-columns: 1fr 1.1fr; padding: 36px; gap: 48px; } }
.picker fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.picker legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.rec { background: var(--wall); border-radius: var(--r); padding: 20px; }
.rec h3 { margin-bottom: 4px; }
.rec-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.rec-item { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: var(--r); padding: 10px 14px 10px 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.rec-item:hover { border-color: var(--ink); color: var(--ink); }
.rec-item .pail { width: 54px; }
.rec-item small { display: block; color: var(--muted); font-size: .8rem; }
.rec-item b { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--c); }
.rec-item .layer-lbl { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .ans { padding: 0 0 18px; color: var(--ink-2); max-width: 72ch; }
.toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.toc a:hover { border-color: var(--ink); }

/* ---------- About ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .timeline li { grid-template-columns: 140px 1fr; } }
.timeline .yr { font-family: var(--f-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--red); }
.timeline h3 { margin: 0 0 4px; font-size: 1.3rem; }
.timeline p { margin: 0; color: var(--muted); }
.factory { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: #fff; }
.factory .info { padding: 0 20px 20px; }
.factory h3 { margin-bottom: 6px; }
.cert-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }
.cert { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; display: grid; gap: 10px; align-content: start; }
.cert .seal { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; }
.cert .seal svg { width: 28px; height: 28px; }
.cert h3 { margin: 0; font-size: 1.35rem; }
.cert p { margin: 0; color: var(--muted); font-size: .92rem; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .photo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .photo-grid .wide { grid-column: span 2; grid-row: span 2; } }

/* Photo slot = chỗ đặt ảnh thật */
.photo-slot {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(23, 27, 44, .045) 0 10px, transparent 10px 20px),
    var(--wall);
  border: 1px dashed #c3c7d3; display: grid; place-items: center; text-align: center; padding: 12px;
  color: var(--muted); font-size: .82rem;
}
.photo-slot svg { width: 28px; height: 28px; margin: 0 auto 6px; opacity: .7; }
.photo-slot.has-img { border: 0; padding: 0; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-grid .wide.photo-slot { aspect-ratio: auto; min-height: 200px; }

/* ---------- Contact ---------- */
.contact-quick { display: grid; gap: 12px; }
@media (min-width: 700px) { .contact-quick { grid-template-columns: repeat(3, 1fr); } }
.cq { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r-l); text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.cq:hover { border-color: var(--ink); color: var(--ink); }
.cq .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.cq .ico svg { width: 22px; height: 22px; }
.cq small { display: block; color: var(--muted); font-size: .8rem; }
.cq b { font-size: 1.1rem; }
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.addr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.addr-list li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.addr-list b { display: block; margin-bottom: 2px; }
.dealer-wrap { display: grid; gap: 16px; }
@media (min-width: 960px) { .dealer-wrap { grid-template-columns: 360px 1fr; gap: 24px; } }
#dealer-map { height: 360px; border-radius: var(--r-l); border: 1px solid var(--line); z-index: 1; background: var(--wall); }
@media (min-width: 960px) { #dealer-map { height: 560px; } }
.dealer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.dealer { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.dealer:hover, .dealer[aria-pressed="true"] { border-color: var(--ink); }
.dealer b { font-size: .98rem; }
.dealer span { font-size: .85rem; color: var(--muted); }
.dealer .kind { font-size: .72rem; font-weight: 700; color: var(--blue); }
.dealer .kind.factory { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9ccd8; padding: 0 0 28px; margin-top: 0; }
.footer-stripe { height: 6px; background: linear-gradient(90deg, var(--red) 0 46%, #fff 46% 54%, var(--blue) 54%); }
.footer-grid { display: grid; gap: 32px; padding: 44px 0 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; } }
.footer-logo { background: #fff; border-radius: var(--r); padding: 10px 14px; display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9ccd8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: .92rem; }
.footer-bottom { border-top: 1px solid #2e3349; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: #9599ad; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px); transform: translate(-50%, 20px); z-index: 80;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: .92rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: transparent; border: 0; color: #9fb4ff; font-weight: 600; padding: 4px; }

/* ---------- Hero load moment (the one orchestrated motion) ---------- */
.roll-in .scene-wall { animation: wall-roll 1.1s .25s var(--ease) both; }
@keyframes wall-roll { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- TDS print page ---------- */
.tds-page { max-width: 860px; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.tds-sheet { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: #fff; }
.tds-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px solid var(--c); padding-bottom: 16px; margin-bottom: 18px; }
.tds-top img { height: 52px; width: auto; }
.tds-sheet h1 { font-size: 2.2rem; margin: 0; }
.tds-sheet h2 { font-size: 1.3rem; margin: 22px 0 8px; color: var(--c); }
.tds-sheet ul { margin: 0; padding-left: 20px; }
.tds-sheet .spec-table { font-size: .9rem; }
.tds-foot { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media print {
  .site-header, .site-footer, .action-bar, .no-print, .mobile-nav { display: none !important; }
  body { padding: 0; font-size: 11pt; }
  .tds-page { padding: 0; max-width: none; }
  .tds-sheet { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}

/* Grid children không được giãn theo nội dung cuộn ngang */
.hero-grid > *, .catalog > *, .color-layout > *, .two-col > *, .pd > *, .contact-grid > *,
.layers > *, .aud > *, .dealer-wrap > *, .cta-grid > *, .picker > *, .home-proj > *, .proj-grid > * { min-width: 0; }

/* Ô bẫy chống spam trong form */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
