/* An Thuan landing page – phong cách quiet luxury, hoàn toàn tĩnh (không animation, không video).
   Màu theo bộ nhận diện: navy #232740, xám #878A90, cam đỏ #CD3B20 (chỉ dùng điểm xuyết).
   Font miễn phí (SIL Open Font License), tự lưu trên web: Lora cho tiêu đề, Be Vietnam Pro cho nội dung. */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url("fonts/lora-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Lora"; font-weight: 500; font-display: swap; src: url("fonts/lora-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("fonts/lora-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Lora"; font-weight: 600; font-display: swap; src: url("fonts/lora-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --navy: #232740;
  --navy-deep: #1a1d31;
  --ink: #23252d;
  --muted: #5c5f66;
  --grey: #878a90;
  --accent: #cd3b20;
  --ivory: #f7f4ee;
  --paper: #fcfbf8;
  --line: #dcd8cf;
  --ph: #ebe7df;
  --mark-navy: #232740;
  --band: #232740;
  --band-deep: #1a1d31;
  --todo-bg: #fff3c4;
  --todo-ink: #7a5600;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); letter-spacing: 0; }
strong { font-weight: 400; color: var(--navy); }
/* Chỉ số ² trong số liệu */
.sup { font-family: var(--sans); font-size: .5em; vertical-align: super; line-height: 0; }

/* Chỗ còn thiếu số liệu – xóa khi đã có số thật */
.todo {
  font-family: var(--sans); font-style: normal;
  background: var(--todo-bg); color: var(--todo-ink);
  border: 1px dashed #d9b440; border-radius: 4px;
  padding: 1px 6px; font-size: 13px; font-weight: 500; line-height: 1.5;
}

/* Nhãn nhỏ viết hoa */
.label {
  font-size: 12px; font-weight: 500; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}

/* Logo: phần navy của chữ A đổi màu theo chế độ sáng/tối */
.logo-mark path[fill="#232740"] { fill: var(--mark-navy); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 40px; height: auto; }
.logo-text { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: 2px; color: var(--navy); line-height: 1; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 400; }
.nav a { text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.nav-links { display: flex; gap: 32px; }
.nav .lang { color: var(--muted); letter-spacing: 1.5px; }
.nav .quote { border: 1px solid var(--navy); padding: 9px 18px; color: var(--navy); font-weight: 500; letter-spacing: .5px; }
.nav .quote:hover { background: var(--navy); color: var(--paper); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; font-size: 13px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; text-decoration: none; border: 1px solid var(--navy);
}
.btn-solid { background: var(--navy); color: var(--paper); }
.btn-solid:hover { background: var(--navy-deep); }
.btn-line { color: var(--navy); }
.btn-line:hover { background: var(--paper); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero: ảnh lớn toàn chiều rộng, chữ trắng trên lớp phủ tối */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; color: #fcfbf8; overflow: hidden; background: #1a1d31; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,15,31,.55) 0%, rgba(13,15,31,.15) 65%), linear-gradient(180deg, rgba(13,15,31,.1) 0%, rgba(13,15,31,.3) 45%, rgba(13,15,31,.85) 100%); }
.hero-copy { position: relative; padding-bottom: 88px; padding-top: 120px; width: 100%; }
.hero .label { color: #f0b3a3; }
.hero h1 { color: #fcfbf8; font-size: clamp(42px, 6.4vw, 88px); line-height: 1.04; margin: 0 0 20px; max-width: 900px; }
.hero .lead { font-size: 19px; color: #e4e2dc; max-width: 560px; margin: 0 0 36px; }
.hero .btn-solid { background: #fcfbf8; color: #232740; border-color: #fcfbf8; }
.hero .btn-solid:hover { background: #ece9e2; }
.hero .btn-line { color: #fcfbf8; border-color: rgba(252,251,248,.7); }
.hero .btn-line:hover { background: rgba(252,251,248,.12); }

/* Dải số liệu ngay dưới banner */
.stats-band { background: var(--ivory); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px 28px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .num { display: block; font-family: var(--serif); font-size: 34px; color: var(--navy); line-height: 1.1; }
.stat .txt { font-size: 13px; color: var(--muted); letter-spacing: .3px; }

.ph { background: var(--ph); }

/* Sections */
section { padding: 112px 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.head h2, .split h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; margin: 0; }
.head > p { color: var(--muted); margin: 0; max-width: 480px; justify-self: end; }

/* 4 danh mục – ô vuông lớn, tên đè lên ảnh */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat { position: relative; overflow: hidden; }
.cat-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ph); }
.cat-cap { padding: 18px 0 0; }
.cat .num { display: block; font-size: 11px; letter-spacing: 2px; color: var(--muted); margin-bottom: 4px; }
.cat h3 { font-size: 26px; line-height: 1.15; margin: 0 0 4px; }
.cat p { margin: 0; font-size: 14px; color: var(--muted); }
.cats-note { margin: 32px 0 0; color: var(--muted); font-size: 14px; }
a.cat { display: block; color: inherit; text-decoration: none; }
.cat .more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
a.cat:hover .more { border-color: var(--navy); }
a.cat:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Trang con danh mục */
.cat-hero { padding: 64px 0 72px; background: var(--ivory); }
.cat-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cat-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; margin: 0 0 20px; }
.cat-hero .lead { color: var(--muted); font-size: 18px; max-width: 480px; margin: 0 0 24px; }
.cat-hero .count { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0; }
.cat-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: var(--ph); }
.crumb { margin: 0 0 40px; font-size: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); }
.prods-sec { padding: 80px 0 96px; }
.prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 20px; }
.prod { display: flex; flex-direction: column; }
.prod-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; background: var(--ph); margin-bottom: 16px; }
.prod h3 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
.prod p { margin: 0 0 14px; font-size: 14px; color: var(--muted); flex: 1; }
.prod-quote { align-self: flex-start; font-size: 13px; font-weight: 500; letter-spacing: .4px; color: var(--navy); text-decoration: none; border: 1px solid var(--navy); padding: 9px 16px; }
.prod-quote:hover { background: var(--navy); color: var(--paper); }
.prods-note { margin: 48px 0 0; font-size: 13px; color: var(--muted); }
.custom { padding: 72px 0; }
.custom-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.custom h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin: 0 0 10px; }
.custom p { margin: 0; color: var(--muted); max-width: 520px; }
.custom .btns { justify-content: flex-end; }
.others-sec { padding: 72px 0 96px; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.other { color: inherit; text-decoration: none; }
.other-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; background: var(--ph); margin-bottom: 12px; }
.other span { font-family: var(--serif); font-size: 22px; }
.other:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Khối ảnh + chữ chia đôi, ảnh tràn mép */
.split { display: grid; grid-template-columns: 1.15fr 1fr; padding: 0; align-items: stretch; }
.split-rev { grid-template-columns: 1fr 1.15fr; }
.split-rev .split-img { order: 2; }
.split-img img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; display: block; background: var(--ph); }
.split-copy { padding: 96px max(32px, calc((100vw - var(--max)) / 2 + 32px)) 96px 72px; align-self: center; }
.split-rev .split-copy { padding: 96px 72px 96px max(32px, calc((100vw - var(--max)) / 2 + 32px)); }
.split h2 { margin-bottom: 32px; }
.split .big { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.45; color: var(--navy); margin: 0; max-width: 520px; }

/* Điểm mạnh – danh sách ngắn */
.alt { background: var(--ivory); }
.strengths { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.strengths li { display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.strengths .n { font-family: var(--serif); font-size: 17px; color: var(--accent); }
.strengths h3 { font-size: 21px; margin: 0; line-height: 1.3; }
.strengths p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* Bên trong xưởng – bố cục ảnh lớn + 4 ảnh nhỏ */
.mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; }
.mosaic .g0 { grid-row: span 2; }
.mosaic img { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--ph); }
.mosaic .g0 img { aspect-ratio: auto; }
.mosaic figure::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, rgba(13,15,31,0), rgba(13,15,31,.6)); pointer-events: none; }
.mosaic figcaption { position: absolute; z-index: 1; left: 16px; bottom: 14px; color: #fcfbf8; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* Quy trình – chỉ tên bước */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); counter-reset: s; border-top: 1px solid var(--navy); }
.steps li { padding: 22px 16px 0 0; counter-increment: s; font-size: 15px; line-height: 1.4; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 30px; color: var(--navy); margin-bottom: 8px; }

/* Liên hệ */
.contact { background: var(--band); color: #e6e4de; padding: 104px 0; }
.contact .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.contact h2 { color: #fcfbf8; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12; margin: 0 0 20px; }
.contact .label { color: #e98a74; }
.contact p { color: #c9cad0; margin: 0 0 32px; }
.contact .btn-solid { background: #fcfbf8; color: #232740; border-color: #fcfbf8; }
.contact .btn-solid:hover { background: #f7f4ee; }
.contact .btn-line { color: #fcfbf8; border-color: #8d90a0; }
.contact .btn-line:hover { background: var(--band-deep); }
.clist { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3c4060; }
.clist li { padding: 20px 0; border-bottom: 1px solid #3c4060; }
.clist .k { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #a9abb3; margin-bottom: 4px; }
.clist a { color: #fcfbf8; }

/* Footer */
footer { padding: 40px 0 48px; font-size: 13px; color: var(--muted); background: var(--paper); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }
footer p { margin: 2px 0; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .split-copy, .split-rev .split-copy { padding: 72px 40px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .head, .contact .grid { grid-template-columns: 1fr; gap: 16px; }
  .head > p { justify-self: start; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev .split-img { order: 0; }
  .split-img img { min-height: 0; aspect-ratio: 4 / 3; }
  .split-copy, .split-rev .split-copy { padding: 56px 32px 72px; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic .g0 { grid-column: span 2; grid-row: auto; }
  .mosaic .g0 img { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  section, .contact { padding: 80px 0; }
  .split { padding: 0; }
  .cat-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .cat-hero { padding: 40px 0 48px; }
  .crumb { margin-bottom: 24px; }
  .prods { grid-template-columns: repeat(3, 1fr); }
  .custom-grid { grid-template-columns: 1fr; gap: 24px; }
  .custom .btns { justify-content: flex-start; }
  .prods-sec { padding: 56px 0 72px; }
  .others-sec { padding: 56px 0 72px; }
}
@media (max-width: 700px) {
  .hero { min-height: 88vh; }
  .hero-img { object-position: center; }
  .hero-copy { padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 64px; }
  .logo-text { font-size: 17px; letter-spacing: 1.5px; }
  .logo-mark { width: 32px; }
  .nav { gap: 16px; }
  .nav .quote { padding: 8px 12px; font-size: 13px; }
  .hero .lead { font-size: 17px; }
  .cats { gap: 10px; }
  .cat-cap { padding-top: 12px; }
  .cat h3 { font-size: 18px; }
  .cat p { font-size: 12px; }
  .split-copy, .split-rev .split-copy { padding: 48px 16px 64px; }
  .mosaic { gap: 10px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .steps li::before { font-size: 22px; margin: 0; min-width: 34px; }
  .cats { row-gap: 24px; }
  .stat .num { font-size: 28px; }
  .stat, .stat + .stat { padding: 20px 12px 20px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat:nth-child(3) { border-left: 0; }
  .prods { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .prod h3 { font-size: 17px; }
  .prod p { font-size: 12.5px; }
  .prod-quote { font-size: 12px; padding: 8px 10px; }
  .others { grid-template-columns: 1fr; gap: 16px; }
  .other span { font-size: 19px; }
  .cat .more { font-size: 12px; }
  .cat-hero .lead { font-size: 16px; }
}
@media (max-width: 380px) {
  .logo { gap: 8px; }
  .logo-mark { width: 26px; }
  .logo-text { font-size: 15px; letter-spacing: 1px; }
  .nav { gap: 12px; }
  .nav .quote { padding: 7px 9px; font-size: 12px; letter-spacing: 0; }
}

/* Giao diện tối: chỉ bật khi khách bấm nút đổi giao diện (lưu trong trình duyệt). Mặc định luôn sáng. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #13152a;       /* nền chính: navy rất tối */
  --ivory: #191c33;       /* nền các khối xen kẽ */
  --line: #2e3250;
  --ink: #e9e7e1;
  --muted: #a7a9b4;
  --grey: #8f929c;
  --navy: #ece9e2;        /* tiêu đề, viền nút, nút đặc: trắng ngà trên nền tối */
  --navy-deep: #ffffff;
  --accent: #e8735c;      /* cam đỏ sáng hơn cho đủ tương phản */
  --ph: #24283f;
  --mark-navy: #ece9e2;   /* nét navy của logo thành trắng ngà */
  --band: #0d0f1f;
  --band-deep: #080914;
  --todo-bg: #4a3b0c;
  --todo-ink: #ffe08a;
}
:root[data-theme="dark"] .btn-solid, :root[data-theme="dark"] .nav .quote:hover, :root[data-theme="dark"] .prod-quote:hover { color: #13152a; }
:root[data-theme="dark"] .contact { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .contact .label { color: #e98a74; }
:root[data-theme="dark"] img:not(.logo-mark):not(.hero-img) { filter: brightness(.92); }

/* Header dính trên cùng khi cuộn */
html { scroll-padding-top: 88px; }
.site-header { position: sticky; top: 0; z-index: 50; }
@media (max-width: 560px) { html { scroll-padding-top: 72px; } }

/* Nút đổi sáng/tối */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--navy); color: var(--navy); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 380px) { .theme-toggle { width: 30px; height: 30px; } .theme-toggle svg { width: 15px; height: 15px; } }
@media (max-width: 360px) { .site-header .wrap { gap: 8px; } .nav { gap: 8px; } .logo-text { font-size: 14px; letter-spacing: .5px; } .logo { gap: 6px; } .logo-mark { width: 22px; } }

/* Hộp báo giá và hộp QR Zalo */
.dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 32px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px rgba(13,15,31,.28); }
.dlg::backdrop { background: rgba(13,15,31,.55); }
.dlg h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; }
.dlg-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.dlg-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.dlg-x:hover { color: var(--navy); }
.dlg > form, .dlg > div { position: relative; }
.dlg { position: fixed; }
.qform label { display: block; font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 14px; }
.qform .opt { font-weight: 400; color: var(--muted); }
.qform input, .qform select, .qform textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: 2px solid var(--navy); outline-offset: -1px; border-color: var(--navy); }
.qform textarea { resize: vertical; min-height: 96px; }
.qform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.qform .btn { width: 100%; cursor: pointer; font-family: inherit; }
.qform .btn:disabled { opacity: .6; cursor: wait; }
.dlg-msg { min-height: 1.4em; margin: 0 0 12px; font-size: 14px; color: var(--accent); }
.dlg-zalo { text-align: center; width: min(380px, calc(100vw - 32px)); }
.dlg-zalo .qr { width: 240px; height: 240px; margin: 4px auto 12px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.dlg-zalo .zname { margin: 0 0 18px; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.dlg-zalo .btn { display: block; }
@media (max-width: 560px) { .dlg { padding: 24px 18px; } .qform .row2 { grid-template-columns: 1fr; gap: 0; } .dlg h2 { font-size: 22px; } }
.dlg h2, .dlg .dlg-sub { padding-right: 36px; } .dlg-zalo h2, .dlg-zalo .dlg-sub { padding: 0 28px; }
