@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff") format("woff"); }
/* KRS Brewtech — cho thuê tủ bia tươi. Không dùng font/CDN bên thứ ba. */
:root {
  --blue: #0071bc;
  --blue-dark: #00548c;
  --blue-soft: #e8f3fb;
  --ink: #111418;
  --ink-soft: #3d4651;
  --line: #d9e0e7;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 12px;
  --header-h: 64px;
  --bar-h: 76px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 56px; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 28px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }
.lead { font-size: 1.125rem; color: var(--ink-soft); }

.skip-link { position: absolute; left: 8px; top: -100px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--blue); background: var(--blue); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { background: transparent; color: var(--blue-dark); }
.btn--ghost:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn--dark { background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: #2a313a; border-color: #2a313a; }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn--block { width: 100%; }

/* Đầu trang */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; }
.nav__link:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav__toggle { display: none; min-height: 44px; min-width: 44px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--blue-soft), #fff 85%); padding-block: 48px 40px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__side { display: grid; gap: 16px; }
.hero__figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero__figure img { width: 100%; height: auto; }
figcaption { font-size: .85rem; color: var(--ink-soft); padding: 8px 14px; }
.hero__sizes { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 2px rgba(17,20,24,.04); }
.hero__sizes h2 { font-size: 1.05rem; margin-bottom: 12px; }
.size-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.size-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg-alt); border-radius: 10px; }
.size-list strong { font-size: 1.1rem; color: var(--blue-dark); }
.size-list span { color: var(--ink-soft); font-size: .95rem; text-align: right; }

/* Dịch vụ */
.parts { display: grid; gap: 16px; }
.part { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--blue); }
.part__media { margin: 0 0 16px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.part__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.part__tag { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.note { margin-top: 20px; padding: 14px 18px; border-left: 4px solid var(--blue); background: var(--blue-soft); border-radius: 0 10px 10px 0; font-weight: 600; }

/* Thẻ sản phẩm */
.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card__media { margin: -24px -24px 18px; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-alt); overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--bg-alt); }
.card__media figcaption { background: #fff; border-bottom: 1px solid var(--line); }
.card__badge { align-self: flex-start; font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.spec { margin: 0 0 20px; display: grid; gap: 10px; }
.spec div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.spec div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.spec dd { margin: 0; font-weight: 600; }
.card .btn { margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.small-note { margin-top: 20px; color: var(--ink-soft); font-size: .95rem; }

/* Điều kiện + quy trình */
.checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 68px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; }
.steps strong { display: block; }
.two-col { display: grid; gap: 32px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__body { padding: 0 18px 16px; color: var(--ink-soft); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* Liên hệ */
.contact { background: var(--ink); color: #fff; }
.contact h1, .contact h2, .contact .eyebrow { color: #fff; }
.contact .lead { color: #d3dbe3; }
.contact__phone { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 700; margin: 8px 0 20px; }
.contact__phone a { color: #fff; text-decoration: none; }
.contact .btn--ghost { color: #fff; border-color: #fff; }
.contact .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chân trang */
.site-footer { background: #0b0e12; color: #c3ccd6; padding-block: 36px; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; gap: 20px; }
.site-footer img { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 10px; }
.site-footer p { margin: 0 0 .4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Nút liên hệ cố định */
.zalo-float { display: none; }
.mobile-bar { display: none; }

@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1.2fr .8fr; }
  .parts { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .zalo-float { display: inline-flex; position: fixed; right: 20px; bottom: 20px; z-index: 40; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .section { padding-block: 40px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .brand img { height: 34px; }
  /* Menu thu gọn khi có JS */
  .js .nav__toggle { display: inline-flex; align-items: center; }
  .js .nav__list { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 14px; gap: 0; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .js .nav__list.is-open { display: flex; }
  .js .nav__link { min-height: 48px; padding: 0 8px; }
  .nav .btn--header { display: none; }
  .no-js .nav { flex-wrap: wrap; justify-content: flex-end; }
  .no-js .nav__list { flex-wrap: wrap; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .mobile-bar .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Bảng giá, thông tin liên hệ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.table-wrap { overflow-x: auto; margin-bottom: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--blue-soft); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-dark); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td strong { color: var(--blue-dark); white-space: nowrap; }
.two-col--top { align-items: start; }
.spec__sub { display: block; font-weight: 400; font-size: .9rem; color: var(--ink-soft); }
.contact__info { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 4px; color: #d3dbe3; }
.contact__info a { color: #fff; }

@media (max-width: 640px) {
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table tbody th, .price-table tbody td { padding: 2px 0; border: 0; }
  .price-table tbody th { font-size: 1.1rem; margin-bottom: 6px; }
  .price-table td::before { content: attr(data-label) ": "; color: var(--ink-soft); font-size: .9rem; }
  .price-table td strong { white-space: normal; }
}

/* Ảnh sản phẩm đã tách nền: cùng một nền sáng và bóng đổ nhẹ để đồng nhất */
.hero__figure, .card__media, .part__media { background: var(--bg-alt); }
.hero__figure { border-color: var(--line); }
.hero__figure img, .card__media img, .part__media img { background: transparent; filter: drop-shadow(0 10px 12px rgba(17, 20, 24, .22)); }
.hero__figure img { padding: 18px 18px 8px; }
.card__media img { padding: 18px; }
.part__media img { padding: 14px; }
.card__media figcaption, .hero__figure figcaption { background: #fff; border-top: 1px solid var(--line); }
.card__media figcaption { border-bottom: 0; }

/* Điều kiện thuê: nhóm theo chủ đề */
.terms { display: grid; gap: 14px; margin-bottom: 4px; }
.terms__group { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.terms__group h4 { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); }
.terms__group .checklist { margin: 0; }
.price-table, .card__badge, .contact__phone { font-variant-numeric: tabular-nums; }

/* Thông tin đơn vị (trang Liên hệ) */
.business { margin: 24px 0; padding: 18px 20px; max-width: 560px; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); }
.business__title { margin: 0 0 12px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.business__list { display: grid; gap: 10px; margin: 0; }
.business__list div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; }
.business__list dt { color: rgba(255,255,255,.75); }
.business__list dd { margin: 0; font-weight: 600; }
.business__list a { color: #fff; }
@media (max-width: 480px) { .business__list div { grid-template-columns: 1fr; gap: 0; } }

/* Khung liên hệ: chép sẵn tin nhắn rồi mở Zalo */
.has-modal { overflow: hidden; }
.zmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(17,20,24,.55); }
.zmodal[hidden] { display: none; }
.zmodal__box { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.zmodal__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.zmodal__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e3f6ea; color: #1a8f4c; font-weight: 700; font-size: 1.3rem; }
.zmodal__icon[hidden] { display: none; }
.zmodal__title { flex: 1; margin: 0; font-size: 1.25rem; line-height: 1.3; }
.zmodal__x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.zmodal__x:hover { background: var(--bg-alt); }
.zmodal__label { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.zmodal__text { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); color: var(--ink); font: inherit; font-size: .95rem; line-height: 1.5; resize: vertical; }
.zmodal__steps { list-style: none; counter-reset: z; margin: 16px 0 20px; padding: 0; display: grid; gap: 10px; }
.zmodal__steps li { counter-increment: z; position: relative; padding-left: 40px; min-height: 28px; line-height: 1.5; }
.zmodal__steps li::before { content: counter(z); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; }
.zmodal__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
@media (max-width: 420px) { .zmodal__actions { grid-template-columns: 1fr; } .zmodal__box { padding: 18px; } }

/* So sánh thuê và mua */
.compare-sub { margin: 32px 0 12px; }
.compare-table td, .compare-table th[scope="col"] { vertical-align: top; }

/* Popup mô tả thiết bị */
.part__zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; font: inherit; color: inherit; }
.part__zoom:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.part__hint { position: absolute; right: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; }
.pmodal__img { display: block; width: 100%; max-height: 42vh; object-fit: contain; margin: 0 0 16px; padding: 12px; border-radius: 10px; background: var(--bg-alt); }
.pmodal__body h3 { margin-top: 0; }
.pmodal__body .checklist { margin-bottom: 20px; }
