﻿/* Tropicity – website noithatvietnamxuatkhau.com
   Màu chủ đạo (19/11/2026): vàng phẳng của logo #C19A45, trắng, xám bạc. Không dùng nền đen.
   Font theo "Hướng dẫn dùng logo, màu và font Tropicity". */
:root {
  --vang: #C19A45;        /* vàng phẳng của logo: màu chủ đạo, nền nhấn, nút */
  --vang-dam: #8A6A2B;    /* vàng đồng đậm: chữ nhỏ, link trên nền trắng (đủ tương phản) */
  --vang-nhat: #F7F0E1;   /* vàng rất nhạt: nền phụ */
  --bac: #9A9EA5;         /* xám bạc: viền, chữ phụ */
  --bac-nhat: #EEF0F2;    /* xám bạc nhạt: nền xen kẽ */
  --bac-dam: #6E7279;     /* xám bạc đậm: nút phụ, lớp phủ ảnh */
  --chu: #45484E;         /* chữ chính: xám đậm, không dùng đen */
  --chu-mo: #6E7279;
  --vien: #DFE2E6;
  --trang: #FFFFFF;
  --font-tieu-de: "Encode Sans Condensed", "Myriad Pro Condensed", "Arial Narrow", sans-serif;
  --font-noi-dung: "Encode Sans", "Segoe UI", Arial, sans-serif;
  --rong: 1180px;
  --bo: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--trang); color: var(--chu);
  font-family: var(--font-noi-dung); font-size: 17px; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--vang-dam); }
a:hover { color: var(--vang); }
h1, h2, h3, h4 { font-family: var(--font-tieu-de); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; color: var(--chu); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--rong)); margin-inline: auto; }
[id] { scroll-margin-top: 88px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Header: nền trắng, logo vàng ---------- */
.site-header { background: var(--trang); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--vang); box-shadow: 0 2px 12px rgba(110,114,121,.12); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo img { width: 168px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--chu); text-decoration: none; font-family: var(--font-tieu-de); font-weight: 600; font-size: 1.02rem; padding: 8px 10px; border-radius: var(--bo); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--vang-dam); box-shadow: inset 0 -2px 0 var(--vang); border-radius: 0; }
.nav a.btn, .nav a.btn:hover { color: #fff; box-shadow: none; border-radius: var(--bo); }
.btn-hotline { white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--bac); color: var(--chu); border-radius: var(--bo); padding: 8px 12px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  padding: 13px 22px; border-radius: var(--bo); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-vang { background: var(--vang); color: #fff; }
.btn-vang:hover { background: var(--vang-dam); color: #fff; }
.btn-vien { border-color: #fff; color: #fff; }
.btn-vien:hover { background: #fff; color: var(--vang-dam); }
.btn-than { background: var(--bac-dam); color: #fff; }          /* nút phụ: xám bạc */
.btn-than:hover { background: var(--vang); color: #fff; }
.btn-vien-toi { border-color: var(--vang); color: var(--vang-dam); }
.btn-vien-toi:hover { background: var(--vang); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bac-dam); color: #fff; overflow: hidden; }
.hero h1, .hero h2 { color: #fff; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg picture { height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease, filter .5s ease; }
/* Lớp phủ chỉ tối ở dải bên trái (chỗ đặt chữ), nửa phải để ảnh nguyên độ sáng */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .5s ease;
  background: linear-gradient(100deg, rgba(38,40,44,.84) 0%, rgba(38,40,44,.80) 34%, rgba(38,40,44,.72) 45%, rgba(38,40,44,.30) 63%, rgba(38,40,44,.06) 81%, rgba(38,40,44,0) 93%); }
/* Rê chuột vào ảnh bìa: ảnh sáng lên và nhích to, chữ vẫn đủ tương phản để đọc */
@media (hover: hover) and (pointer: fine) {
  .hero:hover::after { opacity: .92; }
  .hero:hover .hero-bg img { transform: scale(1.03); filter: brightness(1.1) saturate(1.05); }
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(64px, 11vw, 136px) 0 clamp(56px, 9vw, 112px); }
.hero h1 { max-width: 17ch; }
.hero .lead { font-size: 1.2rem; max-width: 46ch; color: #fff; }
.eyebrow { font-family: var(--font-tieu-de); text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--vang-dam); margin-bottom: 14px; display: block; font-weight: 700; }
.hero .eyebrow { color: #fff; border-left: 3px solid var(--vang); padding-left: 10px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--vang); max-width: 640px; }
.hero-facts b { display: block; font-family: var(--font-tieu-de); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero-facts span { font-size: .92rem; color: #fff; }
.page-hero .wrap { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
/* Hero không ảnh: nền vàng phẳng */
.hero.plain { background: var(--vang); }
.hero.plain::after { content: none; }
.hero.plain .eyebrow { border-left-color: #fff; }
.hero.plain .btn-vang { background: #fff; color: var(--vang-dam); }
.hero.plain .btn-vang:hover { background: var(--bac-nhat); }

/* ---------- Các khối nền ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head p { color: var(--chu-mo); font-size: 1.08rem; }
.bg-trang { background: var(--trang); }
.bg-nga2 { background: var(--bac-nhat); }
/* Khối nhấn (trước là nền đen): nay là vàng phẳng, chữ trắng */
.bg-toi { background: var(--vang); color: #fff; }
.bg-toi h2, .bg-toi h3, .bg-toi .eyebrow, .bg-toi p, .bg-toi .sec-head p, .bg-toi li { color: #fff; }
.bg-toi .eyebrow { border-left: 3px solid #fff; padding-left: 10px; }
.bg-toi a:not(.btn) { color: #fff; text-decoration: underline; }
.bg-toi .btn-vang { background: #fff; color: var(--vang-dam); }
.bg-toi .btn-vang:hover { background: var(--bac-nhat); }
.bg-toi .card { background: #fff; border-color: #fff; }
.bg-toi .card h3 { color: var(--chu); }
.bg-toi .card p { color: var(--chu-mo); }
.bg-toi figcaption { color: #fff; }
.bg-toi .check li::before { border-color: #fff; }
.rule { width: 56px; height: 3px; background: var(--vang); border: 0; margin: 0 0 20px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: center; }

.card { background: #fff; border: 1px solid var(--vien); border-top: 3px solid var(--vang); border-radius: var(--bo); padding: 26px; }
.bg-trang .card { background: #F7F8F9; }
.card .num { font-family: var(--font-tieu-de); color: var(--vang-dam); font-size: 1rem; font-weight: 700; letter-spacing: .1em; }
.card h3 { margin-top: 6px; }
.card p { color: var(--chu-mo); margin: 0; font-size: .98rem; }
.card a.more, .card .more { display: inline-block; margin-top: 14px; font-family: var(--font-tieu-de); font-weight: 700; text-decoration: none; color: var(--vang-dam); }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--vang); box-shadow: 0 6px 20px rgba(110,114,121,.15); }

.check { list-style: none; padding: 0; margin: 0 0 1em; }
.check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 9px; border-left: 2px solid var(--vang); border-bottom: 2px solid var(--vang); transform: rotate(-45deg); }

/* ---------- Khung ảnh chuẩn (khớp cong-cu/xu-ly-anh.ps1; build.ps1 kiểm tra) ---------- */
img[data-khung] { width: 100%; object-fit: cover; border-radius: var(--bo); }
img[data-khung="hero"] { aspect-ratio: 16 / 9; border-radius: 0; }
img[data-khung="ngang"] { aspect-ratio: 4 / 3; }
img[data-khung="doc"] { aspect-ratio: 3 / 4; }
img[data-khung="rong"] { aspect-ratio: 5 / 2; }
.hero-bg img[data-khung] { aspect-ratio: auto; height: 100%; }
/* Ảnh 3D bấm được -> trang công trình */
.anh-link { display: block; position: relative; overflow: hidden; border-radius: var(--bo); color: #fff; text-decoration: none; }
.anh-link img { transition: transform .4s; }
.anh-link:hover img { transform: scale(1.03); }
.anh-link .xem { position: absolute; right: 10px; bottom: 10px; background: var(--vang); color: #fff; font-family: var(--font-tieu-de); font-weight: 700; font-size: .85rem; padding: 6px 10px; border-radius: 2px; letter-spacing: .03em; }
.lang { font-family: var(--font-tieu-de); font-weight: 700; font-size: .9rem; color: var(--bac-dam) !important; border: 1px solid var(--vien); border-radius: var(--bo); padding: 6px 9px !important; }
/* Catalogue */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--vien); border-bottom: 3px solid var(--vang); border-radius: var(--bo); overflow: hidden; transition: box-shadow .15s; }
.cat-card:hover { box-shadow: 0 8px 24px rgba(110,114,121,.18); }
.cat-card .bia { position: relative; background: var(--bac-nhat); padding: 22px 22px 0; }
.cat-card .bia img { width: 100%; aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; box-shadow: 0 6px 18px rgba(0,0,0,.15); border-radius: 2px; }
.cat-card .bia .nhan { position: absolute; left: 0; top: 18px; background: var(--vang); color: #fff; font-family: var(--font-tieu-de); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; }
.cat-card .body { padding: 18px 22px 22px; }
.cat-card h3 { margin: 0 0 4px; }
.cat-card p { margin: 0; color: var(--chu-mo); font-size: .95rem; }
.cat-pages { max-width: 920px; margin-inline: auto; display: grid; gap: 18px; }
.cat-pages img { width: 100%; height: auto; box-shadow: 0 4px 16px rgba(110,114,121,.18); border-radius: 2px; background: #fff; }
.cat-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 32px; }
.cat-thumbs a img { width: 100%; height: auto; border: 1px solid var(--vien); border-radius: 2px; }
/* Trang công trình */
.pair-title { font-family: var(--font-tieu-de); font-weight: 700; color: var(--chu); margin: 32px 0 12px; font-size: 1.2rem; }
@media (max-width: 820px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: 16px; } .cat-thumbs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Ảnh ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare figure, .pics figure { margin: 0; position: relative; }
.compare img { width: 100%; }
/* Mọi ảnh trên cùng một hàng phải cùng khung, cùng chiều cao (không ảnh cao ảnh thấp): khối "Bản vẽ và thực tế" ở trang chủ gồm 2 cặp, một cặp ảnh đứng một cặp ảnh ngang → ép cả bốn ảnh về khung 4:5 */
.so-sanh-hang .compare img[data-khung] { aspect-ratio: 4 / 5; }

/* Lưới ảnh dự án: luôn số ảnh chẵn, 2 cột (hoặc 4 cột) để không có ô trống */
.pics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pics.four { grid-template-columns: repeat(4, 1fr); }
.pics img { width: 100%; }
.tag { position: absolute; left: 10px; top: 10px; background: var(--bac-dam); color: #fff; font-family: var(--font-tieu-de); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.tag.vang { background: var(--vang); }
figcaption { font-size: .88rem; color: var(--chu-mo); margin-top: 8px; }
.lead-pic { margin: 0; position: relative; }


/* ---------- Dự án ---------- */
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; padding: 48px 0; border-top: 1px solid var(--vien); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; margin: 18px 0 22px; }
.meta dt { color: var(--chu-mo); }
.meta dd { margin: 0; font-weight: 600; }
.project-card { background: #fff; border: 1px solid var(--vien); border-bottom: 3px solid var(--vang); border-radius: var(--bo); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.project-card img { width: 100%; border-radius: 0; transition: transform .4s; }
.project-card:hover img { transform: scale(1.03); }
.project-card .pic { overflow: hidden; }
.project-card .body { padding: 20px 22px 24px; }
.project-card .kind { font-family: var(--font-tieu-de); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vang-dam); }
.project-card h3 { margin: 6px 0 6px; }
.project-card p { color: var(--chu-mo); font-size: .95rem; margin: 0; }
.list-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.list-table th, .list-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--vien); vertical-align: top; }
.list-table th { font-family: var(--font-tieu-de); font-weight: 700; color: var(--vang-dam); font-size: .92rem; letter-spacing: .04em; text-transform: uppercase; border-bottom: 2px solid var(--vang); }
.table-scroll { overflow-x: auto; }

/* ---------- Quy trình ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 3px solid var(--vang); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-tieu-de); color: var(--vang-dam); font-weight: 700; font-size: 1.5rem; display: block; margin-bottom: 4px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { font-size: .94rem; color: var(--chu-mo); margin: 0; }
.bg-toi .steps li { border-top-color: #fff; }
.bg-toi .steps li::before, .bg-toi .steps p { color: #fff; }

.quote { font-family: var(--font-tieu-de); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.35; border-left: 3px solid var(--vang); padding-left: 22px; margin: 0 0 18px; color: var(--chu); }

/* ---------- Form: khối vàng, ô nhập trắng ---------- */
.lead-box { background: var(--vang); color: #fff; border-radius: var(--bo); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.lead-box h2, .lead-box p, .lead-box li, .lead-box .eyebrow { color: #fff; }
.lead-box .eyebrow { border-left: 3px solid #fff; padding-left: 10px; }
.lead-box .check li::before { border-color: #fff; }
.lead-box .why { font-size: .95rem; border-top: 1px solid rgba(255,255,255,.5); padding-top: 16px; margin-top: 18px; }
.lead-box a:not(.btn) { color: #fff; text-decoration: underline; font-weight: 600; }
.lead-box .btn-vang { background: #fff; color: var(--vang-dam); }
.lead-box .btn-vang:hover { background: var(--bac-nhat); }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: .92rem; margin-bottom: 6px; color: #fff; font-weight: 700; }
.form label small { font-weight: 400; color: #fff; opacity: .9; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: var(--bo);
  border: 1px solid #fff; background: #fff; color: var(--chu);
}
.form input::placeholder, .form textarea::placeholder { color: var(--bac); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--bac-dam); outline-offset: 1px; }
.form .hp { position: absolute; left: -5000px; }
.form .note { font-size: .88rem; color: #fff; margin: 0; }
.form-msg { border-radius: var(--bo); padding: 16px 18px; font-size: .98rem; background: #fff; color: var(--chu); }
.lead-box .form-msg a { color: var(--vang-dam); }
.field-err { display: none; margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--chu); background: #fff; border-left: 3px solid var(--bac-dam); padding: 4px 8px; border-radius: 2px; }
.invalid .field-err { display: block; }
.invalid input, .invalid select { outline: 3px solid var(--bac-dam); }

/* ---------- Bài viết ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { font-size: 1.7rem; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.06rem; }
.article ol li, .article ul li { margin-bottom: .5em; }
.article .byline { color: var(--chu-mo); font-size: .95rem; margin-bottom: 28px; }
.callout { background: var(--vang-nhat); border-left: 3px solid var(--vang); padding: 18px 22px; border-radius: 0 var(--bo) var(--bo) 0; margin: 1.6em 0; }
.post-list { display: grid; gap: 20px; }
.post-item { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--vien); border-left: 3px solid var(--vang); border-radius: var(--bo); text-decoration: none; color: inherit; }
.post-item:hover { border-color: var(--vang); }
.post-item .body { padding: 22px 26px; }
.post-item .date { font-size: .88rem; color: var(--vang-dam); font-weight: 700; }

/* ---------- Footer: xám bạc nhạt ---------- */
.site-footer { background: var(--bac-nhat); color: var(--chu); padding: 56px 0 96px; font-size: .95rem; border-top: 3px solid var(--vang); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--vang-dam); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a { color: var(--chu); text-decoration: none; }
.site-footer a:hover { color: var(--vang-dam); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo img, .site-footer img { width: 180px; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid var(--bac); margin-top: 40px; padding-top: 20px; font-size: .85rem; color: var(--chu-mo); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Liên hệ nhanh ---------- */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.float-cta a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(110,114,121,.35); text-decoration: none; font-weight: 700; font-family: var(--font-tieu-de); }
.float-cta a svg { width: 24px; height: 24px; }
.fc-zalo { background: #0068FF; font-size: .82rem; }
.fc-mess { background: var(--bac-dam); }
.fc-call { background: var(--vang); }
.mobile-bar { display: none; }

/* ---------- Chip chọn (trang thiết kế AI, bộ lọc dạng nút tròn) ---------- */
.chip { flex: none; scroll-snap-align: start; border: 1px solid var(--vien); background: #fff; color: var(--chu); border-radius: 999px; padding: 6px 14px; font: 600 .92rem/1.2 var(--font-tieu-de); cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.chip span { color: var(--chu-mo); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: var(--vang); }
.chip[aria-pressed="true"] { background: var(--vang); border-color: var(--vang); color: #fff; }
.chip[aria-pressed="true"] span { color: rgba(255,255,255,.85); }
.chip:focus-visible { outline: 3px solid var(--vang-dam); outline-offset: 2px; }
/* ---------- Danh sách công trình: bảng lọc dọc bên trái, lưới ảnh bên phải ---------- */
.ct-wrap { display: grid; grid-template-columns: 234px minmax(0, 1fr); gap: 44px; align-items: start; }
.ct-rail { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--vien) transparent; }
.ct-rail-h { font: 700 .74rem/1.3 var(--font-tieu-de); letter-spacing: .12em; text-transform: uppercase; color: var(--chu-mo); margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--vien); }
.ct-rail-g + .ct-rail-h { margin-top: 18px; }
.ct-rail-g { display: flex; flex-direction: column; }
.ct-mi { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-left: 2px solid transparent; border-radius: 0; padding: 5px 6px 5px 12px; font: 600 .95rem/1.35 var(--font-tieu-de); color: var(--chu); cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
.ct-mi .n { margin-left: auto; font: 500 .82rem var(--font-noi-dung); color: var(--chu-mo); font-variant-numeric: tabular-nums; }
.ct-mi:hover { color: var(--vang-dam); background: var(--vang-nhat); }
.ct-mi[aria-pressed="true"] { color: var(--vang-dam); border-left-color: var(--vang); background: var(--vang-nhat); }
.ct-mi[aria-pressed="true"] .n { color: var(--vang-dam); }
.ct-mi:focus-visible { outline: 3px solid var(--vang-dam); outline-offset: -2px; }
.ct-mi-sao .t::before { content: "\2605"; color: var(--vang); margin-right: 6px; }
/* Danh sách năm xếp hai cột cho gọn, bảng lọc vừa một màn hình */
.ct-rail-nam { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
.ct-rail-nam .ct-mi:first-child { grid-column: 1 / -1; }
.ct-rail-nam .ct-mi { padding-left: 10px; font-size: .92rem; }

.ct-ds { min-width: 0; }
.ct-dem { margin: 0 0 20px; font-size: .92rem; color: var(--chu-mo); }
.ct-nhom { padding-bottom: 40px; scroll-margin-top: 96px; }
.ct-nhom[hidden] { display: none; }
.ct-nam-sum { list-style: none; cursor: pointer; }
.ct-nam-sum::-webkit-details-marker { display: none; }
.ct-nam-sum:focus-visible { outline: 3px solid var(--vang); outline-offset: 3px; }
.ct-nam-tieu-de { position: relative; display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 18px; padding: 9px 34px 0 0; border-top: 3px solid var(--vang); transition: color .18s; }
.ct-nam-tieu-de small { font: 500 .92rem var(--font-noi-dung); color: var(--chu-mo); }
.ct-nam-tieu-de::after { content: ""; position: absolute; right: 8px; top: 58%; width: 9px; height: 9px; border-right: 2px solid var(--vang); border-bottom: 2px solid var(--vang); transform: translateY(-60%) rotate(45deg); transition: transform .18s ease; }
.ct-nhom[open] .ct-nam-tieu-de::after { transform: translateY(-20%) rotate(-135deg); }
.ct-nam-sum:hover .ct-nam-tieu-de { color: var(--vang-dam); }

.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
.ct-the { background: none; text-decoration: none; color: inherit; display: flex; flex-direction: column; view-transition-class: ct-the; }
.ct-the[hidden] { display: none; }
.ct-the .pic { position: relative; overflow: hidden; border-radius: var(--bo); background: var(--bac-nhat); }
/* Ảnh công trình để nguyên độ sáng; rê chuột thì ảnh nhích to và sáng thêm */
.ct-the .pic img { display: block; width: 100%; transition: transform .5s ease, filter .35s ease; }
a.ct-the:hover .pic img, a.ct-the:focus-visible .pic img { transform: scale(1.05); filter: brightness(1.07) saturate(1.04); }
a.ct-the:hover h3, a.ct-the:focus-visible h3 { color: var(--vang-dam); }
a.ct-the:focus-visible { outline: 3px solid var(--vang-dam); outline-offset: 4px; border-radius: var(--bo); }
.ct-the .body { padding: 13px 2px 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.ct-the .kind { font: 700 .74rem/1.3 var(--font-tieu-de); letter-spacing: .11em; text-transform: uppercase; color: var(--vang-dam); }
.ct-the h3 { font-size: 1.06rem; margin: 0; transition: color .18s; }
.ct-the .noi, .ct-the .ghi { margin: 0; color: var(--chu-mo); font-size: .9rem; }
.ct-the .hm { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 11px 0 0; }
.ct-the .hm li { font-size: .76rem; background: var(--bac-nhat); color: var(--chu-mo); border-radius: 999px; padding: 2px 10px; }
.ct-the .tb, .ct-the .so-anh { position: absolute; font: 700 .72rem/1 var(--font-tieu-de); letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; }
.ct-the .tb { top: 10px; left: 10px; background: var(--vang); color: #fff; text-transform: uppercase; }
.ct-the .so-anh { right: 10px; bottom: 10px; background: rgba(28,30,34,.6); color: #fff; font-weight: 600; }
.ct-the.ct-chu { background: var(--bac-nhat); border: 1px dashed var(--vien); border-radius: var(--bo); }
.ct-the.ct-chu .body { padding: 16px; }
.ct-rong { padding: 48px 0; text-align: center; color: var(--chu-mo); }
.pics.doc { grid-template-columns: repeat(4, 1fr); }
.pics + .pics { margin-top: 12px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ct-the { animation: ct-hien linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes ct-hien { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  }
}
::view-transition-group(.ct-the) { animation-duration: .35s; }
@media (max-width: 1240px) { .ct-wrap { grid-template-columns: 208px minmax(0, 1fr); gap: 32px; } }
/* Máy tính bảng và điện thoại: bảng lọc thành các hàng cuộn ngang, nằm trên lưới ảnh */
@media (max-width: 1080px) {
  .ct-wrap { grid-template-columns: 1fr; gap: 0; }
  .ct-rail { position: static; max-height: none; overflow: visible; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--vien); }
  .ct-rail-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px 12px; }
  .ct-rail-h { margin: 0; padding: 0; border: 0; font-size: .68rem; letter-spacing: .08em; }
  .ct-rail-g + .ct-rail-h { margin-top: 0; }
  .ct-rail-g { flex-direction: row; gap: 7px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px 0;
    mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); }
  .ct-rail-g::-webkit-scrollbar { display: none; }
  .ct-mi { width: auto; flex: none; scroll-snap-align: start; border: 1px solid var(--vien); border-radius: 999px; padding: 6px 13px; font-size: .9rem; background: #fff; }
  .ct-mi .n { margin-left: 5px; }
  .ct-mi[aria-pressed="true"] { background: var(--vang); border-color: var(--vang); color: #fff; }
  .ct-mi[aria-pressed="true"] .n { color: rgba(255,255,255,.85); }
  .ct-rail-nam { display: flex; }
  .ct-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .ct-nhom { scroll-margin-top: 88px; }
  .pics.doc { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .ct-grid { grid-template-columns: 1fr; gap: 26px; }
  .ct-the h3 { font-size: 1.14rem; }
  .ct-rail-in { grid-template-columns: 1fr; gap: 2px; }
  .ct-rail-g { margin-bottom: 6px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; position: absolute; top: 75px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-bottom: 3px solid var(--vang); box-shadow: 0 8px 18px rgba(110,114,121,.15); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--vien); }
  .nav a:hover, .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 12px; }
  .menu-toggle { display: inline-block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .project, .lead-box, .site-footer .cols { grid-template-columns: 1fr; }
  .project { gap: 24px; }
  .pics.four { grid-template-columns: repeat(2, 1fr); }
  .form .row2 { grid-template-columns: 1fr; }
  .float-cta { display: none; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 3px solid var(--vang); box-shadow: 0 -4px 14px rgba(110,114,121,.18); }
  .mobile-bar a { color: var(--chu); text-decoration: none; text-align: center; padding: 10px 4px 12px; font-family: var(--font-tieu-de); font-size: .95rem; font-weight: 700; }
  .mobile-bar a + a { border-left: 1px solid var(--vien); }
  .mobile-bar a.main { background: var(--vang); color: #fff; }
  .hero::after { background: linear-gradient(180deg, rgba(38,40,44,.72), rgba(38,40,44,.80)); }
}
@media (max-width: 520px) {
  .grid-4, .steps { grid-template-columns: 1fr; }
  .hero-facts { gap: 20px; }
  .hero .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Hỏi đáp (FAQ) – khối câu hỏi thường gặp, có đánh dấu FAQPage cho Google */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--vien); border-left: 3px solid var(--vang); border-radius: 0 var(--bo) var(--bo) 0; background: #fff; margin-bottom: 12px; }
.faq details[open] { background: var(--vang-nhat); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative;
  font-family: var(--font-tieu-de); font-weight: 700; font-size: 1.12rem; color: var(--chu);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--vang-dam); border-bottom: 2px solid var(--vang-dam);
  transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--vang-dam); }
.faq summary:focus-visible { outline: 2px solid var(--vang); outline-offset: -2px; }
.faq .tl { padding: 0 20px 18px; color: var(--chu-mo); }
.faq .tl :first-child { margin-top: 0; }
.faq .tl :last-child { margin-bottom: 0; }
@media (max-width: 560px) { .faq summary { font-size: 1.04rem; padding-right: 42px; } }
/* Bảng trong bài viết: cuộn ngang được trên điện thoại */
.article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .98rem; display: block; overflow-x: auto; }
.article table th, .article table td { border: 1px solid var(--vien); padding: 10px 14px; text-align: left; vertical-align: top; }
.article table th { background: var(--vang-nhat); font-family: var(--font-tieu-de); font-weight: 600; color: var(--chu); white-space: nowrap; }
.article table tbody tr:nth-child(even) td { background: var(--bac-nhat); }
@media (max-width: 560px) { .article table { font-size: .92rem; } .article table th, .article table td { padding: 8px 10px; } }

/* Khối "đọc thêm" cuối trang dịch vụ */
.doc-them { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 8px; }
.doc-them a { display: block; border: 1px solid var(--vien); border-left: 3px solid var(--vang); border-radius: 0 var(--bo) var(--bo) 0; padding: 14px 18px; background: #fff; color: var(--chu); text-decoration: none; }
.doc-them a:hover { background: var(--vang-nhat); border-left-color: var(--vang-dam); }
.doc-them a strong { display: block; font-family: var(--font-tieu-de); font-size: 1.05rem; margin-bottom: 4px; }
.doc-them a span { color: var(--chu-mo); font-size: .95rem; }

/* Băng ảnh nền trang chủ: ảnh tự chuyển, mờ chồng lên nhau */
.bang-anh .anh { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease-in-out; }
.bang-anh .anh.dang-xem { opacity: 1; }
/* Ảnh thứ 2–4 chưa tải cho tới khi trang dựng xong (JS thêm .san-sang): không tranh băng thông với ảnh LCP */
.bang-anh:not(.san-sang) .anh:not(.dang-xem) { display: none; }
.bang-anh .anh picture { height: 100%; display: block; }
.bang-anh .anh img { width: 100%; height: 100%; object-fit: cover; }
/* Máy bật "giảm chuyển động": vẫn tự chuyển ảnh, chỉ mờ dần nhanh hơn một chút */
@media (prefers-reduced-motion: reduce) {
  .bang-anh .anh { transition: opacity .6s ease-in-out !important; }
}

/* Năm là mục sổ ra được; hộp chọn năm nằm trong thanh lọc */

/* ===== Trợ lý ảo (tro-ly.js). Màu theo nhận diện: vàng #C19A45, trắng, xám bạc. Không nền đen. ===== */
.tl-an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tl-nut {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--vang); color: #fff; border: 0; border-radius: 999px;
  font: 700 .95rem var(--font-tieu-de); letter-spacing: .02em;
  padding: 13px 20px; cursor: pointer; box-shadow: 0 6px 20px rgba(69,72,78,.28);
}
.tl-nut:hover { background: var(--vang-dam); }
.tl-nut:focus-visible { outline: 3px solid var(--chu); outline-offset: 2px; }
.tl-nut.an { display: none; }
.tl-nut-icon { font-size: 1.1rem; line-height: 1; }

.tl-khung {
  position: fixed; right: 18px; bottom: 18px; z-index: 61;
  width: 380px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 36px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--vien); border-radius: 8px;
  box-shadow: 0 10px 40px rgba(69,72,78,.3);
}
.tl-khung[hidden] { display: none; }
.tl-dau { display: flex; align-items: center; gap: 10px; background: var(--vang); color: #fff; padding: 12px 14px; }
.tl-dau strong { display: block; font: 700 1rem var(--font-tieu-de); }
.tl-dau span { display: block; font-size: .78rem; opacity: .95; }
.tl-dong { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.tl-dong:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.tl-tin { flex: 1; overflow-y: auto; padding: 14px; background: var(--bac-nhat); }
.tl-dong-tin { display: flex; margin-bottom: 10px; }
.tl-bong { max-width: 86%; padding: 10px 13px; border-radius: 10px; font-size: .93rem; line-height: 1.55; }
.tl-bot .tl-bong { background: #fff; color: var(--chu); border: 1px solid var(--vien); border-top-left-radius: 2px; }
.tl-khach { justify-content: flex-end; }
.tl-khach .tl-bong { background: var(--vang); color: #fff; border-top-right-radius: 2px; }
.tl-link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--vang-dam); text-decoration: none; border-bottom: 1px solid currentColor; }
.tl-link:hover { color: var(--chu); }
.tl-cho { color: var(--chu-mo); font-style: italic; }

.tl-the { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.tl-the button {
  background: #fff; color: var(--vang-dam); border: 1px solid var(--vang);
  border-radius: 999px; font: 600 .85rem var(--font-noi-dung); padding: 7px 13px; cursor: pointer;
}
.tl-the button:hover { background: var(--vang); color: #fff; }
.tl-the button:focus-visible { outline: 2px solid var(--chu); outline-offset: 2px; }

.tl-nhap { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--vien); background: #fff; }
.tl-nhap input {
  flex: 1; min-width: 0; font: 400 .95rem var(--font-noi-dung); color: var(--chu);
  border: 1px solid var(--vien); border-radius: var(--bo); padding: 10px 12px;
}
.tl-nhap input:focus-visible { outline: 2px solid var(--vang); outline-offset: -1px; }
.tl-nhap button {
  background: var(--vang); color: #fff; border: 0; border-radius: var(--bo);
  font: 700 .9rem var(--font-tieu-de); padding: 10px 16px; cursor: pointer;
}
.tl-nhap button:hover { background: var(--vang-dam); }
.tl-nhap button:focus-visible { outline: 2px solid var(--chu); outline-offset: 2px; }

@media (max-width: 520px) {
  .tl-nut { right: 12px; bottom: 12px; padding: 12px 17px; }
  .tl-khung { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); }
}
@media (prefers-reduced-motion: reduce) { .tl-khung, .tl-nut { transition: none; } }
.tl-the button.tl-nhe { border-color: var(--vien); color: var(--chu-mo); }
.tl-the button.tl-nhe:hover { background: var(--bac-nhat); color: var(--chu); border-color: var(--bac); }

/* ===== Trang quà tặng gỗ: trình bày dạng quà cao cấp ===== */
.qt-dau { background: linear-gradient(170deg,#FBF7EF 0%,#F2EADC 100%); padding: clamp(52px,8vw,92px) 0 clamp(40px,6vw,64px); border-bottom: 1px solid #E7DCC6; }
.qt-dau h1 { max-width: 19ch; font-size: clamp(2rem,4.4vw,3.1rem); line-height: 1.12; margin: 10px 0 14px; }
.qt-dau .lead { max-width: 56ch; font-size: clamp(1.02rem,1.5vw,1.18rem); color: var(--chu); }
.qt-nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* Nút viền tối chỉ dùng trên nền sáng của trang bán hàng; không được ghi đè nút viền trắng ở khối hero các trang khác */
.qt-nut .btn-vien, .sp-nut .btn-vien { background: transparent; color: var(--chu); border: 1.5px solid var(--chu); }
.qt-nut .btn-vien:hover, .sp-nut .btn-vien:hover { background: var(--chu); color: #fff; }

.qt-cam-ket { background: var(--chu); padding: 22px 0; }
.qt-cam-ket ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(215px,1fr)); gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.qt-cam-ket li { position: relative; padding-left: 26px; }
.qt-cam-ket li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 7px; border-left: 2.5px solid var(--vang); border-bottom: 2.5px solid var(--vang); transform: rotate(-45deg); }
.qt-cam-ket strong { display: block; color: #fff; font: 700 1rem var(--font-tieu-de); }
.qt-cam-ket span { display: block; color: #CFD3D8; font-size: .86rem; line-height: 1.45; margin-top: 2px; }

.sp-ds { display: flex; flex-direction: column; gap: clamp(46px,7vw,86px); }
.sp-khoi { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(26px,4vw,54px); align-items: center; }
.sp-khoi.sp-doi-ben .sp-hinh { order: 2; }
.sp-hinh { position: relative; }
.sp-hinh img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--vien); }
.sp-noi-bat .sp-hinh img { border-color: var(--vang); box-shadow: 0 10px 34px rgba(193,154,69,.2); }
.sp-nhan { position: absolute; top: 14px; left: 0; z-index: 1; background: var(--vang); color: #fff; font: 700 .76rem var(--font-tieu-de); letter-spacing: .07em; text-transform: uppercase; padding: 7px 15px; }
.sp-ghi-anh { display: block; margin-top: 7px; font-size: .78rem; color: var(--chu-mo); font-style: italic; }
.sp-chu h3 { font-size: clamp(1.45rem,2.6vw,2.05rem); line-height: 1.18; margin: 0 0 6px; }
.sp-gia { margin: 0 0 14px; font: 700 clamp(1.5rem,2.6vw,2rem) var(--font-tieu-de); color: var(--vang-dam); }
.sp-mo { font-size: 1.03rem; margin-bottom: 14px; }
.sp-khac { background: var(--vang-nhat); border-left: 3px solid var(--vang); padding: 11px 15px; margin: 0 0 16px; font-size: .95rem; }
.sp-chu .check { margin: 0 0 16px; }
.sp-co { margin: 0 0 20px; font-size: .88rem; color: var(--chu-mo); }
.sp-nut { display: flex; flex-wrap: wrap; gap: 11px; }

.qt-hop { background: var(--bac-nhat); padding: clamp(46px,7vw,82px) 0; }
.qt-hop .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.qt-hop h2 { max-width: 20ch; font-size: clamp(1.6rem,3vw,2.3rem); line-height: 1.18; }
.qt-buoc { counter-reset: b; list-style: none; margin: 18px 0; padding: 0; }
.qt-buoc li { counter-increment: b; position: relative; padding-left: 40px; margin-bottom: 13px; }
.qt-buoc li::before { content: counter(b); position: absolute; left: 0; top: -1px; width: 27px; height: 27px; border-radius: 50%; background: var(--vang); color: #fff; font: 700 .9rem/27px var(--font-tieu-de); text-align: center; }
.qt-hop-hinh img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--vien); box-shadow: 0 10px 34px rgba(110,86,54,.14); }

@media (max-width: 860px) {
  .sp-khoi, .qt-hop .wrap { grid-template-columns: 1fr; }
  .sp-khoi.sp-doi-ben .sp-hinh { order: 0; }
  .qt-hop-hinh { order: -1; }
  .sp-nut .btn { flex: 1 1 auto; text-align: center; }
}
details.hd { border-bottom: 1px solid var(--vien); padding: 14px 0; }
details.hd > summary { cursor: pointer; font: 600 1.05rem var(--font-tieu-de); color: var(--chu); list-style-position: outside; }
details.hd > summary:hover { color: var(--vang-dam); }
details.hd > summary:focus-visible { outline: 2px solid var(--vang); outline-offset: 3px; }
details.hd p { margin: 10px 0 0; }

/* ===== Điện thoại và iPad (cảm ứng): vùng bấm đủ lớn, trợ lý ảo không đè thanh gọi nhanh ===== */
@media (max-width: 820px) {
  .tl-nut { right: 12px; bottom: 62px; }
  .tl-khung { right: 8px; bottom: 8px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); }
  .hero .actions .btn { min-height: 48px; }
}
@media (pointer: coarse) {
  .chip { min-height: 44px; padding: 10px 16px; }
  .card a.more, .card .more { display: inline-flex; align-items: center; min-height: 44px; }
  h3 > a[href^="tel:"], h3 > a[href*="zalo.me"], h3 > a[href*="m.me"] { display: inline-block; padding: 8px 0; }
  .site-footer li a { display: inline-block; padding: 7px 0; }
  .tl-the button { min-height: 40px; }
  .tl-dong { min-width: 44px; min-height: 44px; }
  .menu-toggle { min-height: 44px; }
}

/* ===== Công cụ AI thiết kế (thiet-ke-ai.html): kéo thả ảnh, chọn phong cách, mặt bằng ===== */
.ta-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.ta-banner strong { display: block; font-family: var(--font-tieu-de); font-size: 1.2rem; }
.ta-banner span { color: var(--chu-mo); }
.ta { max-width: 860px; margin: 0 auto; }
.ta [hidden] { display: none !important; }
.ta h2 { font-size: 1.35rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.ta-so { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--vang); color: #fff; font-size: 1rem; flex: none; }
.ta-tuy { font-weight: 400; color: var(--chu-mo); font-size: .95rem; }
.ta-buoc { padding: 22px 0; border-bottom: 1px solid var(--vien); }
.ta-buoc:last-of-type { border-bottom: 0; }
.ta-goi-y { color: var(--chu-mo); font-size: .92rem; margin: 10px 0 0; }
.ta-tha { position: relative; border: 2px dashed var(--vang); border-radius: 8px; background: #fff; min-height: 190px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; text-align: center; padding: 16px; transition: background .15s, border-color .15s; }
.ta-tha:hover, .ta-tha:focus-visible, .ta-tha.keo { background: var(--vang-nhat); border-color: var(--vang-dam); outline: none; }
.ta-tha-noi strong { display: block; font-family: var(--font-tieu-de); font-size: 1.2rem; color: var(--chu); margin-bottom: 4px; }
.ta-tha-noi span { color: var(--chu-mo); }
.ta-tha.co-anh { padding: 0; border-style: solid; }
.ta-tha img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; margin: 0 auto; }
.ta-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ta-chips .chip { min-height: 42px; padding: 8px 16px; }
.ta-luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ta-luoi-1 { grid-template-columns: minmax(0, 420px); }
.ta label { display: block; font-size: .92rem; font-weight: 600; color: var(--chu); }
.ta input[type="number"], .ta input[type="tel"], .ta select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: 400 1rem var(--font-noi-dung); color: var(--chu); border: 1px solid var(--vien); border-radius: var(--bo); background: #fff; min-height: 46px; }
.ta input:focus-visible, .ta select:focus-visible { outline: 2px solid var(--vang); outline-offset: -1px; }
.ta .ta-dong-y { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0; line-height: 1.5; }
.ta .ta-dong-y input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.ta-loi { background: #fdf3e0; border-left: 4px solid var(--vang-dam); padding: 10px 14px; margin: 12px 0; font-weight: 600; }
.ta-ma { font: 700 3rem Consolas, "Courier New", monospace; letter-spacing: .14em; color: var(--vang-dam); background: var(--vang-nhat); border: 2px dashed var(--vang); border-radius: 8px; text-align: center; padding: 14px 8px; margin: 14px 0; user-select: all; }
.ta-nut-hang, .ta-tiep { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ta-tiep { margin: 26px 0 0; }
.ta-cho { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.ta-cho p { margin: 0; font-weight: 600; }
.ta-quay { width: 28px; height: 28px; border: 3px solid var(--vien); border-top-color: var(--vang); border-radius: 50%; animation: ta-xoay 1s linear infinite; flex: none; }
@keyframes ta-xoay { to { transform: rotate(360deg); } }
.ta-anh { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ta-anh figure { margin: 0; }
.ta-anh img { display: block; width: 100%; height: auto; border-radius: var(--bo); }
.ta-mb { margin-top: 30px; }
.mb-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: start; }
.mb-tang { margin: 0; background: #fff; border: 1px solid var(--vien); border-radius: 6px; padding: 10px; text-align: center; }
.mb-tang svg { display: block; margin: 0 auto; }
.mb-tang figcaption { font-weight: 700; color: var(--vang-dam); margin-top: 6px; }
.mb-tong { font-weight: 700; margin: 16px 0 4px; }
.mb-ghi { color: var(--chu-mo); font-size: .9rem; margin: 4px 0; }
@media (max-width: 820px) {
  .ta-luoi { grid-template-columns: repeat(2, 1fr); }
  .ta-anh { grid-template-columns: 1fr; }
  .ta-ma { font-size: 2.3rem; }
  .ta-banner .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ta-quay { animation: none; } }
/* Công cụ AI: khối "Muốn đẹp hơn nữa?" */
.ta-dep{margin-top:24px}
.ta-dep .ta-kq{margin-top:20px}
.ta-dep-hop{padding:18px;border:1px solid var(--bac,#d8dbe0);border-radius:8px;background:#fff}
.ta-ch-g { margin: 14px 0; }
.ta-ch-g h3 { font-size: 1rem; margin: 0 0 8px; }
