/* Màu theo logo XuânThu Autotech */
:root {
  --navy: #035094;
  --accent: #1E5FB4;
  --ink: #0F2740;
  --muted: #5B6B7D;
  --bg: #EEF2F6;
  --white: #FFFFFF;
  --line: #DBE4EE;
  --green: #1FA35E;
  --orange: #F06A1A;
  --red: #C8372D;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(3, 80, 148, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 17px; }

/* Thanh điều hướng */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 44px; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #2A6FCB, var(--navy)); color: #fff; border: 0;
  padding: 13px 22px; border-radius: 12px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(3, 80, 148, .25);
}
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% 0%, #DCE9F8 0%, var(--bg) 55%, #fff 100%); padding: 64px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.tag { display: inline-block; background: #fff; color: var(--navy); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.lead { font-size: 18px; color: #35485C; margin: 0 0 26px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 30px 0 0; color: var(--muted); font-size: 14px; }
.hero-points b { display: block; color: var(--navy); font-size: 22px; font-weight: 700; }

/* Khung thiết bị quanh ảnh màn hình HMI */
.device { background: linear-gradient(160deg, #1B2B3D, #0B1622); border-radius: 26px; padding: 18px 18px 12px; box-shadow: 0 30px 60px rgba(15, 39, 64, .28); }
.device-screen { border-radius: 10px; overflow: hidden; background: #fff; }
.device-screen img { width: 100%; }
.device-label { color: #8FA3B8; font-size: 12px; text-align: center; padding-top: 10px; letter-spacing: .08em; text-transform: uppercase; }
.device.small { max-width: 440px; justify-self: end; width: 100%; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section.page { padding-top: 48px; min-height: 70vh; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 16px; }
.i-blue { background: linear-gradient(135deg, #4FA3FF, #1F5FC4); }
.i-green { background: linear-gradient(135deg, #45DE8C, #1FA35E); }
.i-orange { background: linear-gradient(135deg, #FFB54D, #F06A1A); }
.i-teal { background: linear-gradient(135deg, #34D6C3, #0E8C80); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 56px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 15px; }

.spec { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec th { color: var(--muted); font-weight: 500; width: 45%; }
.warranty-box { background: var(--bg); border-radius: var(--radius); padding: 32px; }
.warranty-box p { color: var(--muted); margin-top: 0; }

.lookup { display: flex; gap: 10px; }
.lookup input { flex: 1; min-width: 0; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.lookup input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 95, 180, .15); }
.lookup.big input { font-size: 18px; padding: 15px 18px; }

.contact { background: linear-gradient(135deg, var(--navy), #0A3D75); color: #fff; text-align: center; }
.contact .sub { color: #C9DBF0; }
.contact-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.contact-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 20px 28px; color: #fff; text-decoration: none; min-width: 260px; }
.contact-card:hover { background: rgba(255,255,255,.16); }
.contact-card span, .contact-card small { display: block; color: #C9DBF0; font-size: 13px; }
.contact-card b { font-size: 26px; font-weight: 700; }

/* Kết quả tra cứu */
.notice { background: var(--bg); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.notice.error { background: #FCEBE9; color: var(--red); }
.notice.ok { background: #E6F6EE; color: #14693D; }
.result { border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; box-shadow: var(--shadow); }
.result.active { border-left-color: var(--green); }
.result.expired { border-left-color: var(--red); }
.result header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.result header .muted { display: block; font-size: 13px; }
.serial { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .02em; }
.result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.result dt { color: var(--muted); font-size: 13px; }
.result dd { margin: 0; font-weight: 600; }
.result .left { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: #E8EDF2; color: var(--muted); }
.badge.active { background: #E6F6EE; color: #14693D; }
.badge.expired { background: #FCEBE9; color: var(--red); }
.policy { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.policy h2 { font-size: 20px; }
.policy li { margin-bottom: 6px; color: #35485C; }

/* Quản trị */
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-form { background: var(--bg); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 28px; }
.admin-form h2 { grid-column: 1 / -1; font-size: 18px; margin: 0; }
.admin-form label { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.admin-form input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); width: 100%; }
.admin-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 500; }
.admin-table .serial { font-size: 14px; }
.row-actions { display: flex; gap: 12px; align-items: center; }
.row-actions form { margin: 0; }
.link-danger { background: none; border: 0; color: var(--red); font: inherit; cursor: pointer; padding: 0; }

.footer { background: #0B2038; color: #B6C6D8; padding: 36px 0; font-size: 14px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 24px; }
.footer strong { color: #fff; font-size: 16px; }
.footer p { margin: 4px 0; }
.footer a { color: #fff; }
.footer-links { display: grid; gap: 6px; align-content: start; justify-items: end; }

@media (max-width: 860px) {
  .links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .hero { padding: 40px 0 48px; }
  .hero-in, .two, .footer-in { grid-template-columns: 1fr; gap: 32px; }
  .grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .device.small { justify-self: stretch; max-width: none; }
  .admin-form { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-items: start; }
  .result dl { grid-template-columns: 1fr; }
  .lookup { flex-direction: column; }
}

/* ── Trang công ty và danh mục sản phẩm ── */
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.line-count { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.hero-product { display: block; text-decoration: none; text-align: center; }
.hero-product img { margin: 0 auto; max-height: 420px; filter: drop-shadow(0 30px 40px rgba(15, 39, 64, .25)); }
.hero-product-cap { display: inline-block; margin-top: 18px; color: var(--navy); font-size: 14px; }
.page-head { background: var(--bg); padding: 48px 0 40px; }
.page-head .lead { margin-bottom: 0; }
.line-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.line-tabs a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: 14px; }
.line-tabs a:hover { border-color: var(--accent); }
.line-section { padding: 56px 0; scroll-margin-top: 68px; }
.line-section + .line-section { border-top: 1px solid var(--line); }
.line-head { display: flex; gap: 16px; align-items: flex-start; }
.line-head .ico { flex: none; margin: 4px 0 0; }
.line-head h2 { margin-bottom: 4px; }
.product-thumb { aspect-ratio: 4 / 3; background: var(--bg); border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; padding: 16px; color: var(--muted); font-size: 13px; }
.product-thumb img { max-height: 100%; object-fit: contain; }
.product-card h3 { margin-top: 10px; }
.badge.st-available { background: #E6F6EE; color: #14693D; }
.badge.st-upcoming { background: #FFF1DE; color: #A8520F; }
.badge.st-dev { background: #E3EEFF; color: var(--navy); }
.product-hero { padding-top: 28px; }
.product-hero h1 { margin-top: 14px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--muted); }
.two.top { align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.variants th { color: var(--ink); font-weight: 600; width: auto; }
.variants .price { text-align: right; font-weight: 700; color: var(--navy); }
.small { font-size: 14px; }
.prose p { color: #35485C; }
.prose h2 { margin-top: 32px; }
.prose h2:first-child { margin-top: 0; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding: 0 0 14px 34px; color: #35485C; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #E6F6EE; color: #14693D; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.checks b { color: var(--ink); }
.info-box { background: var(--bg); border-radius: var(--radius); padding: 28px; }
.info-box .spec th { width: 40%; }
.todo { color: #A8520F; font-style: italic; }
.steps + .btn { margin-top: 8px; }
@media (max-width: 860px) {
  .grid.cols-2 { grid-template-columns: 1fr; }
  .hero-product img { max-height: 300px; }
}

/* Liên hệ */
.cta.center { justify-content: center; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.ico svg { display: block; }
.notice.wide { grid-column: 1 / -1; margin: 0; }

/* ── Trang chi tiết sản phẩm (bản đầy đủ) ── */
.anchor { scroll-margin-top: 116px; }
.subnav { position: sticky; top: 68px; z-index: 9; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.subnav a:hover { background: var(--bg); color: var(--navy); }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.part { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.part-img { background: var(--bg); border-radius: 12px; padding: 14px; aspect-ratio: 1; display: grid; place-items: center; }
.part-img img { max-height: 100%; object-fit: contain; }
.part p { margin: 0; color: var(--muted); font-size: 15px; }
.feature-list { gap: 14px 28px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #E3EEFF; color: var(--navy); font-weight: 700; font-size: 15px; flex: none; }
.device.sticky { position: sticky; top: 136px; }
.screens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.screen { margin: 0; }
.device.mini { padding: 10px; border-radius: 16px; box-shadow: 0 14px 30px rgba(15, 39, 64, .18); }
.device.mini .device-screen { border-radius: 6px; }
.screen figcaption { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-top: 16px; }
.screen figcaption .num { background: var(--navy); color: #fff; border-radius: 50%; }
.screen figcaption p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.info-box h3 + .checks { margin-top: 12px; }
.info-box .checks + h3 { margin-top: 20px; }
.info-box .checks li { padding-bottom: 8px; }
.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.spec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 10px; }
.spec-card h3 { color: var(--navy); margin-bottom: 4px; }
.spec-card .spec tr:last-child th, .spec-card .spec tr:last-child td { border-bottom: 0; }
.spec-card .spec td { font-weight: 500; }
.note-power { background: #FFF6E6; border-left: 4px solid var(--orange); margin-bottom: 0; }
.note-power p { color: #5C4420; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .price { font-size: 20px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price-table tr.best td { background: #F1F9F4; }
.price-extra { margin-top: 24px; }
.upgrade-price { font-size: 24px; font-weight: 700; color: var(--navy); margin: 4px 0 10px; }
.upgrade-price span { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 0 18px; color: #35485C; }
.product-hero .hero-points b { font-size: 24px; }
@media (max-width: 860px) {
  .parts, .screens, .spec-groups { grid-template-columns: 1fr; }
  .part { grid-template-columns: 110px 1fr; }
  .device.sticky { position: static; }
  .price-table th, .price-table td { padding: 12px 12px; }
  .price-table .price { font-size: 17px; }
}
.product-hero .hero-points { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 26px; }
.product-hero .hero-points b { font-size: 22px; white-space: nowrap; }
@media (max-width: 860px) { .product-hero .hero-points { grid-template-columns: repeat(2, auto); } }

/* ── Cách dùng dạng cuộn ── */
.scrolly { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.scrolly-steps { list-style: none; margin: 0; padding: 0; order: 1; }
.scrolly .stage { order: 2; }
.sstep { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .35s; }
.sstep.on { opacity: 1; }
.sstep:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 6vh; }
.sstep:last-child { min-height: 60vh; }
.sstep-n { display: inline-block; align-self: flex-start; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .02em; }
.sstep h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 10px; }
.sstep p { font-size: 17px; color: #35485C; margin: 0; max-width: 26em; }
.stage { position: sticky; top: 132px; height: min(600px, calc(100vh - 164px)); border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 10%, #E4EEFB 0%, #EEF2F6 60%, #E7EDF4 100%); border: 1px solid var(--line); }
.stage-bar { position: absolute; z-index: 3; top: 16px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.stage-count b { color: var(--navy); font-size: 18px; }
.stage-dots { display: flex; gap: 6px; }
.stage-dots i { width: 22px; height: 4px; border-radius: 2px; background: #C9D6E4; transition: background .3s; }
.stage[data-step="1"] .stage-dots i:nth-child(-n+1), .stage[data-step="2"] .stage-dots i:nth-child(-n+2),
.stage[data-step="3"] .stage-dots i:nth-child(-n+3), .stage[data-step="4"] .stage-dots i:nth-child(-n+4),
.stage[data-step="5"] .stage-dots i:nth-child(-n+5) { background: var(--navy); }
.scene { position: absolute; inset: 48px 24px 56px; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s, transform .45s; pointer-events: none; display: grid; place-items: center; }
.stage[data-step="1"] .scene-1, .stage[data-step="2"] .scene-2, .stage[data-step="3"] .scene-3,
.stage[data-step="4"] .scene-4, .stage[data-step="5"] .scene-5 { opacity: 1; transform: none; }
.scene-cap { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-size: 14px; font-weight: 500; color: var(--navy); }

/* Cảnh 1: hộp thiết bị nhỏ, phóng to màn hình, ngón tay chạm nút Chọn */
.s-box { position: absolute; left: 0; top: 0; width: 34%; filter: drop-shadow(0 10px 16px rgba(15,39,64,.2)); }
.s-zoom { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-screen { position: relative; width: 92%; margin-top: 26%; background: #0B1622; padding: 10px; border-radius: 18px; box-shadow: 0 24px 46px rgba(15,39,64,.28); }
.s-screen img { width: 100%; border-radius: 7px; display: block; }
.stage[data-step="1"] .scene-1 .s-screen { animation: zoom-in .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: 16% -30%; }
@keyframes zoom-in { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.tap { position: absolute; width: 16%; aspect-ratio: 1; margin: -8% 0 0 -8%; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,.35); animation: ripple 1.8s ease-out infinite; }
@keyframes ripple { 0%, 35% { transform: scale(.2); opacity: 0; } 45% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.tap-hand { position: absolute; width: 15%; margin: -1% 0 0 -7%; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.hand { animation: press 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes press { 0%, 100% { transform: translate(8px, 16px); } 35%, 55% { transform: translate(0, 0) scale(.94); } }

/* Cảnh 2: điện thoại quét mã, rồi màn hình báo THÀNH CÔNG */
.s-screen.pay { width: 86%; margin: 0 14% 12% 0; }
.pay-ok { position: absolute; inset: 10px; width: calc(100% - 20px) !important; opacity: 0; animation: pay-ok 6s infinite; }
@keyframes pay-ok { 0%, 52% { opacity: 0; } 60%, 94% { opacity: 1; } 100% { opacity: 0; } }
.phone { position: absolute; right: 2%; bottom: 0; width: 30%; aspect-ratio: 9 / 18; background: #0B1622; border-radius: 22px; padding: 7px; box-shadow: 0 20px 40px rgba(15,39,64,.35); transform: rotate(-7deg); }
.phone-in { height: 100%; border-radius: 16px; background: #1B2B3D; display: flex; flex-direction: column; align-items: center; gap: 10%; padding: 14% 8% 0; color: #fff; font-size: 11px; font-weight: 600; text-align: center; overflow: hidden; }
.finder { position: relative; width: 82%; aspect-ratio: 1; border-radius: 10px; background:
  linear-gradient(#fff, #fff) 0 0 / 22% 3px no-repeat, linear-gradient(#fff, #fff) 0 0 / 3px 22% no-repeat,
  linear-gradient(#fff, #fff) 100% 0 / 22% 3px no-repeat, linear-gradient(#fff, #fff) 100% 0 / 3px 22% no-repeat,
  linear-gradient(#fff, #fff) 0 100% / 22% 3px no-repeat, linear-gradient(#fff, #fff) 0 100% / 3px 22% no-repeat,
  linear-gradient(#fff, #fff) 100% 100% / 22% 3px no-repeat, linear-gradient(#fff, #fff) 100% 100% / 3px 22% no-repeat, rgba(255,255,255,.08); }
.finder i { position: absolute; left: 8%; right: 8%; height: 2px; background: #45DE8C; box-shadow: 0 0 8px #45DE8C; animation: scan 1.6s ease-in-out infinite alternate; }
@keyframes scan { from { top: 10%; } to { top: 88%; } }
.phone-ok { background: #1FA35E; border-radius: 8px; padding: 6px 4px; width: 100%; opacity: 0; animation: pay-ok 6s infinite; }

/* Cảnh 3–5: máy giặt */
.washer { height: 100%; max-width: 100%; overflow: visible; filter: drop-shadow(0 20px 30px rgba(15,39,64,.18)); }
.cloth { animation: drop-in 2.4s ease-in infinite; }
.cloth.c2 { animation-delay: .8s; } .cloth.c3 { animation-delay: 1.6s; }
@keyframes drop-in { 0% { transform: translateY(-20px); opacity: 0; } 15% { opacity: 1; } 75% { transform: translateY(150px); opacity: 1; } 100% { transform: translateY(160px); opacity: 0; } }
.drop { animation: drip 1.8s ease-in infinite; }
@keyframes drip { 0% { transform: translateY(-14px); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(16px); opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
.washer-load .drawer { stroke: #1E5FB4; animation: glow 1.8s infinite; }
@keyframes glow { 50% { fill: #C9DEFA; } }
.ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.washer-power .ring-power, .washer-start .ring-start { animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0%, 40% { transform: scale(1); opacity: 0; } 50% { opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.washer-power .lcd { animation: blink 1.8s steps(1) infinite; }
@keyframes blink { 0%, 45% { opacity: .15; } 46%, 100% { opacity: 1; } }
.washer-start .drum { transform-origin: 160px 236px; animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.washer-start .dial { transform-origin: 150px 49px; animation: dial 3.6s ease-in-out infinite; }
@keyframes dial { 0%, 100% { transform: rotate(0); } 40%, 60% { transform: rotate(70deg); } }

@media (max-width: 860px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly .stage { order: 0; top: 122px; height: 44vh; min-height: 280px; z-index: 2; border-radius: 20px; }
  .scene { inset: 40px 14px 44px; }
  .scene-cap { bottom: -34px; font-size: 13px; }
  .s-screen { margin-top: 20%; width: 84%; }
  .s-box { width: 28%; }
  .sstep, .sstep:first-child, .sstep:last-child { min-height: 52vh; padding-top: 0; justify-content: center; }
  .sstep h3 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene * { animation: none !important; transition: none !important; }
  .pay-ok, .phone-ok { opacity: 0; }
}
/* Máy giặt luôn nằm gọn trong khung hình */
.scene-3, .scene-4, .scene-5 { display: flex; justify-content: center; align-items: center; }
.washer { height: 100%; width: auto; max-width: 100%; aspect-ratio: 320 / 400; flex: none; }

/* Hỏi đáp: cột trái giới thiệu + liên hệ, cột phải câu hỏi theo nhóm */
.faq-layout { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 136px; }
.faq-help { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.faq-help p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.faq-group + .faq-group { margin-top: 28px; }
.faq-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.faq summary { font-size: 17px; align-items: center; }
.faq summary::after { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #E3EEFF; display: grid; place-items: center; font-size: 18px; }
.faq[open] { border-color: #9DBBE3; box-shadow: var(--shadow); }
.faq p { max-width: 46em; }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .faq-side { position: static; }
  .faq-help { display: none; }
}

/* ── Sơ đồ đấu nối ── */
.wiring-title { margin: 44px 0 16px; font-size: 20px; }
.wiring { margin: 0; background: #F7F9FC; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.wiring svg { width: 100%; height: auto; display: block; }
.wiring-tall { display: none !important; max-width: 420px; margin: 0 auto; }
.d-box rect { fill: #fff; stroke: #C3D1E0; stroke-width: 2; }
.d-box.main rect { fill: var(--navy); stroke: var(--navy); }
.d-box.main .d-title, .d-box.main .d-sub { fill: #fff; }
.d-box.relay rect { stroke: var(--accent); }
.d-box.power rect { fill: #FFF6E6; stroke: var(--orange); }
.d-box.cloud rect { fill: #EAF7F0; stroke: var(--green); stroke-dasharray: 6 5; }
.d-title { font: 600 15px "Be Vietnam Pro", system-ui, sans-serif; fill: var(--ink); }
.d-sub { font: 400 12.5px "Be Vietnam Pro", system-ui, sans-serif; fill: var(--muted); }
.d-note { font: 500 12px "Be Vietnam Pro", system-ui, sans-serif; }
.d-note.ac { fill: #B4520F; } .d-note.rj { fill: var(--accent); }
.l-rj { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.l-ac { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; }
.l-wifi { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 3 7; stroke-linecap: round; }
.d-washer rect { fill: #fff; stroke: #9AAABC; stroke-width: 2; }
.d-washer path { stroke: #9AAABC; stroke-width: 2; }
.d-washer circle { fill: #DCE9F8; stroke: #9AAABC; stroke-width: 2; }
.d-washer .dot { fill: var(--orange); stroke: none; }
.wiring figcaption { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { width: 28px; height: 0; border-top: 3px solid; }
.lg-rj { border-color: var(--accent) !important; } .lg-ac { border-color: var(--orange) !important; }
.lg-wifi { border-top-style: dotted !important; border-color: var(--green) !important; }
.wiring-note { margin: 14px auto 0; max-width: 46em; text-align: center; font-size: 14px; color: var(--muted); }

/* ── Menu điện thoại ── */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex: none; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.call-short { display: none; }

/* ══ Tối ưu theo cỡ màn hình ══ */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
.wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
a, button, summary { -webkit-tap-highlight-color: rgba(30, 95, 180, .15); }
.btn { min-height: 44px; }
.btn-sm { min-height: 40px; }

/* Máy tính bảng dọc, laptop nhỏ */
@media (min-width: 861px) and (max-width: 1040px) {
  .hero-in { gap: 32px; }
  .part { grid-template-columns: 140px 1fr; }
  .faq-layout { grid-template-columns: 280px 1fr; gap: 36px; }
  .scrolly { gap: 36px; }
}

/* Điện thoại và máy tính bảng nhỏ */
@media (max-width: 860px) {
  .nav-in { gap: 10px; height: 60px; }
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .nav-in .btn.nav-call { margin-left: auto; }
  .links { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(15, 39, 64, .12); padding: 6px 20px 12px; }
  .nav.open .links { display: flex; }
  .links a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .links a:last-child { border-bottom: 0; }
  .subnav { top: 60px; }
  .subnav-in { padding-top: 6px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .subnav-in::-webkit-scrollbar { display: none; }
  .anchor { scroll-margin-top: 112px; }
  .line-section { scroll-margin-top: 60px; }
  h1 { font-size: clamp(28px, 8vw, 38px); }
  .lead, .sub { font-size: 16px; }
  .hero-in > .hero-product, .hero-in > .device { order: -1; }
  .product-hero .hero-in > .hero-product { order: 0; }
  .hero-product img { max-height: 260px; }
  .cta .btn { flex: 1 1 auto; }
  .card, .feature, .spec-card, .info-box, .warranty-box { padding: 18px; }
  .feature { grid-template-columns: 40px 1fr; gap: 12px; }
  .spec th { width: 42%; padding-right: 10px; }
  .spec th, .spec td { font-size: 14.5px; vertical-align: top; }
  .wiring { padding: 16px 12px; }
  .wiring-wide { display: none !important; }
  .wiring-tall { display: block !important; }
  .wiring-tall .d-title { font-size: 14px; }
  .wiring-tall .d-sub, .wiring-tall .d-note { font-size: 11.5px; }
  .contact-card { min-width: 0; flex: 1 1 100%; }
  .footer-in { gap: 18px; }
  .page-head { padding: 32px 0 28px; }
  .result { padding: 18px; }
  .result header { flex-wrap: wrap; }
  .admin-form { grid-template-columns: 1fr; }

  /* Bảng giá thành thẻ, không phải kéo ngang */
  .price-table, .price-table tbody { display: block; }
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: baseline; }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table td { padding: 0 !important; border: 0 !important; background: none !important; }
  .price-table td:nth-child(1) { grid-column: 1 / -1; }
  .price-table td:nth-child(2) { color: var(--muted); }
  .price-table td:nth-child(3) { text-align: right; }
  .price-table td:nth-child(4) { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .price-table td:nth-child(4)::before { content: "Mỗi máy: "; }
  .price-table tr.best { background: #F1F9F4; }

  /* Cách dùng dạng cuộn: khung hình dính ngay dưới thanh mục lục */
  .scrolly .stage { top: 112px; height: 42vh; height: 42svh; min-height: 250px; max-height: 420px; }
  .sstep p { font-size: 16px; }
  .phone-in { font-size: 9px; }
}

/* Điện thoại nhỏ (≤ 400 px) */
@media (max-width: 400px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .call-full { display: none; } .call-short { display: inline; }
  .part { grid-template-columns: 1fr; }
  .part-img { aspect-ratio: 16 / 10; }
  .product-hero .hero-points { gap: 10px 18px; }
  .upgrade-price { font-size: 21px; }
}

/* Điện thoại xoay ngang (màn thấp): bỏ dính thanh trên, xếp cách dùng thành hai cột */
@media (max-height: 520px) and (min-width: 560px) {
  .nav, .subnav { position: static; }
  .anchor { scroll-margin-top: 12px; }
  .scrolly { grid-template-columns: 1fr 1fr; gap: 24px; }
  .scrolly .stage { order: 2; top: 8px; height: calc(100vh - 16px); height: calc(100svh - 16px); min-height: 0; max-height: none; }
  .scrolly-steps { order: 1; }
  .sstep, .sstep:first-child, .sstep:last-child { min-height: 90vh; }
  .faq-side, .device.sticky { position: static; }
}

/* Màn rất rộng */
@media (min-width: 1500px) {
  .wrap { max-width: 1200px; }
}

@media print {
  .nav, .subnav, .contact, .footer, .stage { display: none; }
  .sstep { min-height: 0; opacity: 1; }
}

/* Khung "Cách dùng" trên điện thoại: thu gọn để chữ chú thích không đè lên hình */
@media (max-width: 860px) {
  .scrolly-steps { padding-top: 22px; }
  .scene { inset: 38px 12px 46px; }
  .scene-cap { bottom: -36px; font-size: 12.5px; line-height: 1.3; }
  .s-box { width: 20%; }
  .s-screen { width: 74%; margin-top: 9%; padding: 7px; border-radius: 13px; }
  .s-screen.pay { width: 78%; margin: 0 18% 6% 0; }
  .pay-ok { inset: 7px; width: calc(100% - 14px) !important; }
  .phone { width: 27%; border-radius: 16px; padding: 5px; }
  .phone-in { border-radius: 12px; }
}

/* ── Sơ đồ đấu nối, bản vẽ lại ── */
.wiring { background: radial-gradient(120% 100% at 50% 0%, #F3F8FE 0%, #F7F9FC 55%, #EEF2F6 100%); padding: 28px 24px 22px; }
.d-head { font: 700 17px "Be Vietnam Pro", system-ui, sans-serif; fill: var(--ink); }
.d-label { font: 600 14px "Be Vietnam Pro", system-ui, sans-serif; fill: var(--ink); }
.d-part { font: 600 11px "Be Vietnam Pro", system-ui, sans-serif; fill: var(--muted); }
.d-tem-s { font: 700 10px "Be Vietnam Pro", system-ui, sans-serif; fill: #fff; letter-spacing: .14em; }
.d-tem-n { font: 800 30px "Be Vietnam Pro", system-ui, sans-serif; fill: #fff; }
.d-note.wf { fill: #14693D; font-weight: 600; }
.d-tag rect { fill: #fff; stroke: #B7CDEC; stroke-width: 1.2; }
.d-tag text { font: 600 11.5px "Be Vietnam Pro", system-ui, sans-serif; fill: var(--accent); }
.l-rj { stroke: #2A6FCB; stroke-width: 4; stroke-linecap: round; }
.l-flow { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 13; animation: d-flow 1.1s linear infinite; }
@keyframes d-flow { to { stroke-dashoffset: -14; } }
.l-ac { stroke-width: 4; }
.l-ac-arrow { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.l-wifi { stroke-width: 3; stroke-dasharray: 1 8; animation: d-flow 1.4s linear infinite reverse; }
@media (max-width: 860px) {
  .wiring { padding: 18px 10px 16px; }
  .wiring-tall .d-head { font-size: 16px; }
  .wiring-tall .d-label { font-size: 14px; }
  .wiring-tall .d-sub { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) { .l-flow, .l-wifi { animation: none; } }

/* ══ Rà soát lần 2: hiệu ứng và hiển thị ══ */
/* Hiệu ứng trong khung "Cách dùng" chỉ chạy ở cảnh đang hiện */
.scene:not(.live) *, .scene:not(.live) { animation: none !important; }
.stage[data-step="1"] .scene-1 .s-screen { animation: none; }
.scene-1.live .s-screen { animation: zoom-in .7s cubic-bezier(.2,.8,.2,1) both; }
.scene:not(.live) .pay-ok, .scene:not(.live) .phone-ok { opacity: 0; }
.scene { will-change: opacity, transform; }
/* Màn rộng: bước cuối đủ cao để khung hình không bị trôi lên dưới thanh mục lục */
.sstep:last-child { min-height: calc(100vh - 120px); }
.subnav a.on { background: var(--navy); color: #fff; }
/* Chỉ nhấc thẻ lên khi dùng chuột, tránh thẻ bị "kẹt" trạng thái trên màn cảm ứng */
@media (hover: none) { a.card:hover { transform: none; box-shadow: none; } .btn:hover { filter: none; } }

@media (max-width: 860px) {
  /* Điện thoại: chữ của bước nằm ngay dưới khung hình, không bị khung hình che */
  .scrolly-steps { padding-top: 0; }
  .sstep, .sstep:first-child, .sstep:last-child { min-height: 46vh; min-height: 46svh; justify-content: flex-start; padding-top: 22px; opacity: .3; }
  .sstep.on { opacity: 1; }
  .sstep:last-child { min-height: 58vh; min-height: 58svh; }
  .sstep-n { margin-bottom: 10px; }
  .scene-cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .phone-ok { padding: 5px 2px; font-size: 8.5px; white-space: nowrap; }
}
@media (max-width: 400px) {
  .scrolly .stage { height: 40vh; height: 40svh; min-height: 230px; }
  .phone-top { font-size: 8px; }
}
@media (max-height: 520px) and (min-width: 560px) {
  .sstep, .sstep:first-child { min-height: 90vh; justify-content: center; padding-top: 0; }
  .sstep:last-child { min-height: 100vh; justify-content: center; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene, .sstep, a.card { transition: none !important; }
}
/* Máy tính bảng dọc: khung hình rộng nhưng thấp, giữ hình minh hoạ gọn ở giữa để không bị cắt */
@media (max-width: 860px) {
  .scene { max-width: 430px; margin-left: auto; margin-right: auto; }
}

/* ── Trang hướng dẫn, chính sách, báo lỗi ── */
.doc h2 { margin-top: 44px; scroll-margin-top: 88px; }
.doc h2:first-of-type { margin-top: 0; }
.doc h3 { margin-top: 26px; }
.doc p, .doc li { color: #35485C; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .steps { padding-left: 0; }
.doc .steps li { margin-bottom: 0; }
.doc .steps li > span { display: block; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .spec th { width: 42%; vertical-align: top; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.toc a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: 14px; }
.toc a:hover { border-color: var(--accent); }
.tip { background: #FFF6E6; border-left: 4px solid var(--orange); border-radius: 12px; padding: 14px 18px; margin: 18px 0; }
.tip p { margin: 0; color: #5C4420; }
.kbd, .steps span.kbd { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.error-page { text-align: center; padding: 96px 0; min-height: 60vh; }
.error-code { font-size: clamp(64px, 14vw, 120px); font-weight: 800; color: var(--navy); line-height: 1; opacity: .18; margin: 0; }
.error-page .cta { justify-content: center; margin-top: 24px; }
@media print {
  .toc, .contact { display: none; }
}
.doc-end { margin-top: 32px; }
.doc .steps span b { display: inline; color: var(--ink); }

/* ── Trang giới thiệu: số liệu, chặng đường, bản đồ ── */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 36px; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.facts b { display: block; color: var(--navy); font-size: 24px; font-weight: 700; white-space: nowrap; }
.timeline { list-style: none; margin: 20px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline li.next::before { background: #fff; box-shadow: 0 0 0 2px var(--navy); }
.timeline time { display: block; color: var(--accent); font-weight: 600; font-size: 14px; }
.timeline b { display: block; font-size: 17px; }
.timeline span { color: var(--muted); font-size: 15px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); aspect-ratio: 16 / 10; margin-top: 12px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { margin: 10px 0 0; font-size: 15px; }
.info-box .spec td { overflow-wrap: anywhere; }
@media (max-width: 860px) { .map { aspect-ratio: 4 / 3; } }
@media print { .map, .map-link { display: none; } }
.line-card .badge { margin-bottom: 10px; }

/* ── Sản phẩm đang phát triển: ghi chú và hình minh hoạ rộng ── */
.dev-note { font-size: 14px; color: #5C4420; background: #FFF6E6; border-left: 4px solid var(--orange); border-radius: 10px; padding: 10px 14px; margin: 22px 0 0; max-width: 36em; }
.wide-figure { margin: 40px 0 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.wide-figure img { width: 100%; border-radius: 10px; }
.wide-figure figcaption { margin-top: 16px; }
.wide-figure figcaption p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.product-thumb img { border-radius: 6px; }

/* ── Người sáng lập ── */
.founder { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 20px; }
.founder-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.founder h3 { font-size: 22px; margin-bottom: 2px; }
.founder-role { color: var(--accent); font-weight: 600; font-size: 15px; margin: 0 0 12px; }
.founder-bio { color: #35485C; margin: 0 0 18px; max-width: 44em; }
.founder-edu { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.founder-edu li { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.founder-edu li:last-child { border-bottom: 0; padding-bottom: 0; }
.founder-edu time { color: var(--navy); font-weight: 700; font-size: 15px; white-space: nowrap; }
.founder-edu b { display: block; font-weight: 600; font-size: 15px; }
.founder-edu span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .founder-photo { width: 120px; height: 120px; }
  .founder-edu li { grid-template-columns: 1fr; gap: 2px; }
}

/* Sản phẩm chưa có hình: biểu tượng dòng sản phẩm; các bước chia 2 cột khi không có ảnh bên cạnh */
.thumb-ico { width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; color: #fff; box-shadow: 0 14px 28px rgba(15, 39, 64, .16); }
.thumb-ico svg { width: 44px; height: 44px; }
.steps-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 860px) { .steps-cols { grid-template-columns: 1fr; } }
.founder-sub { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.founder-bio + .founder-sub { margin-top: 0; }

/* Ảnh minh hoạ sản phẩm đặt trong bối cảnh (ví dụ XT-QRPay Pro trong cửa hàng) */
.hero-scene img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 30px 60px rgba(15, 39, 64, .22); }
.product-thumb.thumb-wide { display: block; position: relative; padding: 0; overflow: hidden; }
.product-thumb.thumb-wide img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; border-radius: 0; }
.line-head-solo { align-items: center; margin-bottom: 24px; }
.line-head-solo .ico, .line-head-solo h2 { margin: 0; }
