/* HTP site — plain CSS, no framework.
   Palette: navy #0B132B / #1D3557, orange #E63946, steel #457B9D, off-white #F1FAEE */

:root {
  --navy-900: #0B132B;
  --navy-800: #1D3557;
  --navy-700: #24406B;
  --steel: #457B9D;
  --orange: #E63946;
  --orange-dark: #C42E3B;
  --paper: #F1FAEE;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, .10);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-800); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 .75em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.container-narrow { width: min(560px, 100% - 2rem); margin-inline: auto; }
.section { padding-block: 72px; }
.section-alt { background: var(--gray-100); }
.section-dark {
  background: var(--navy-900);
  color: #CBD5E1;
  background-image:
    radial-gradient(600px 300px at 85% 20%, rgba(230, 57, 70, .12), transparent 70%),
    radial-gradient(500px 260px at 10% 90%, rgba(69, 123, 157, .15), transparent 70%);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7rem 1.3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(230, 57, 70, .30); }
.btn-accent:hover { background: var(--orange-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--paper); }
.btn-zalo { background: #008FD6; color: #fff; }
.btn-zalo:hover { background: #0074AD; }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--navy-800); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--orange);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .6rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: #fff; font-size: 1.05rem; letter-spacing: .06em; }
.brand-text small { color: #94A3B8; font-size: .62rem; letter-spacing: .3em; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu a:not(.btn) { color: #E2E8F0; text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav-menu a:not(.btn):hover { color: var(--orange); }
.nav-phone { padding: .5rem 1rem; font-size: .88rem; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #E2E8F0;
  border-bottom: 4px solid var(--orange);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/hero-bg.webp") center/cover no-repeat;
  opacity: .18;
  background-color: var(--navy-900);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,19,43,.55) 0%, rgba(11,19,43,0) 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding-block: 72px;
}
.hero-copy > * { margin: 0 0 1.4rem; }
.hero-copy > :last-child { margin-bottom: 0; }
.badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 999px;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; margin-block: 1rem; }
.hero .accent { color: var(--orange); }
.lead { font-size: 1.02rem; color: #CBD5E1; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(148, 163, 184, .25);
}
.trust-grid div {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .22);
  padding: .6rem .5rem;
  border-radius: 10px;
  text-align: center;
}
.trust-grid strong { display: block; color: var(--orange); font-size: 1.15rem; }
.trust-grid span { font-size: .72rem; color: #94A3B8; }

/* ---------- Price widget (hero aside) ---------- */
.price-widget {
  position: relative;
  background: rgba(13, 22, 48, .85);
  border: 1px solid rgba(148, 163, 184, .25);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.live-dot {
  position: absolute; top: 14px; right: 14px;
  color: #4ADE80; font-size: .62rem; font-weight: 800; letter-spacing: .08em;
}
.price-widget h2 {
  color: var(--paper); font-size: 1.05rem; margin: 0 0 1rem;
  display: flex; align-items: center; gap: .5rem;
  padding-bottom: .7rem; border-bottom: 1px solid rgba(148, 163, 184, .25);
}
.price-widget h2 svg { color: var(--orange); animation: bounce 1.6s infinite; }
.widget-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(148, 163, 184, .18);
  padding: .8rem;
  border-radius: 10px;
  margin-bottom: .8rem;
  transition: background .18s ease;
}
.widget-list li:hover { background: rgba(255, 255, 255, .09); }
.widget-list strong { color: #F1F5F9; font-size: .92rem; display: block; }
.widget-list small { color: #94A3B8; font-size: .74rem; }
.price-tag { text-align: right; white-space: nowrap; }
.price-tag b { color: var(--orange); font-size: .95rem; display: block; }
.price-tag small { color: #94A3B8; font-size: .7rem; }
.price-tag small.blue { color: #93C5FD; }
.widget-note {
  display: flex; gap: .5rem; align-items: flex-start;
  color: #94A3B8; font-size: .78rem;
  text-align: center;
}
.widget-note svg { flex: none; color: var(--orange); margin-top: .1rem; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- Section headers ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-block: .2rem .6rem; }
.section-head p { color: var(--gray-500); font-size: .95rem; }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 800; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.updated-line { color: var(--gray-400); font-size: .8rem !important; }
.updated-line strong { color: var(--gray-600); }

/* ---------- Calculator ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem;
  align-items: start;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.calc-inputs { padding: 1.6rem; }
.tabs { display: flex; gap: .6rem; padding-bottom: 1.1rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--gray-100); }
.tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .7rem .6rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 0; border-radius: 10px;
  font-weight: 700; font-size: .8rem;
  transition: background .18s ease, color .18s ease;
}
.tab.active { background: var(--navy-800); color: #fff; }
.tab:hover:not(.active) { background: var(--gray-200); }

.calc-form label, #orderForm label {
  display: block;
  font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-700);
  margin: 1.1rem 0 .35rem;
}
.calc-form label:first-child, #orderForm label:first-of-type { margin-top: 0; }
.input-wrap { position: relative; }
.input-wrap .unit {
  position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
  font-size: .78rem; font-weight: 800; color: var(--gray-400); pointer-events: none;
}
input[type=number], input[type=text], input[type=tel], select, textarea {
  width: 100%;
  padding: .68rem .95rem;
  border: 1px solid var(--gray-300);
  border-radius: 9px;
  font: inherit;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(29, 53, 87, .15);
}
.hint { font-size: .72rem; color: var(--gray-400); margin: .35rem 0 0; }
.range-head { display: flex; justify-content: space-between; align-items: center; }
.range-head output { color: var(--orange); font-weight: 800; font-size: .85rem; }
input[type=range] { width: 100%; accent-color: var(--orange); margin-top: .35rem; }
.calc-form { padding-top: .3rem; }
.hidden { display: none; }

.calc-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--gray-100);
  font-size: .76rem; color: var(--gray-400);
}
.calc-foot .ok { color: #16A34A; font-weight: 700; display: inline-flex; gap: .35rem; align-items: center; }

.calc-results {
  background: var(--navy-900);
  color: #CBD5E1;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 1.6rem;
  min-height: 420px;
}
.results-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(148, 163, 184, .25);
  padding-bottom: .9rem; margin-bottom: 1.3rem;
}
.results-head span { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.results-head em {
  font-style: normal;
  background: var(--orange); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 6px;
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 10px;
  padding: 1rem;
}
.stat small { color: #94A3B8; font-size: .74rem; }
.stat small.dim { display: block; margin-top: .55rem; }
.stat-val { margin-top: .3rem; }
.stat-val b { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; color: #fff; }
.stat-val.accent b { color: var(--orange); }
.stat-val span { font-size: .8rem; color: #94A3B8; font-weight: 700; }
.price-line {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.tech-note {
  border: 1px dashed rgba(148, 163, 184, .35);
  border-radius: 10px;
  padding: .9rem 1rem;
  font-size: .85rem;
  color: #B8C4D4;
}
.result-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.result-ctas .btn { flex: 1; justify-content: center; }
.result-ctas .btn-zalo { flex: 0 0 auto; }

/* ---------- Price cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.price-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--steel); }
.pc-head { padding: 1.5rem 1.5rem 1rem; }
.pc-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: .9rem;
}
.pc-blue { background: rgba(29, 53, 87, .1); color: var(--navy-800); }
.pc-red { background: rgba(230, 57, 70, .1); color: var(--orange); }
.pc-sky { background: rgba(69, 123, 157, .12); color: var(--steel); }
.pc-head h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.pc-head p { font-size: .78rem; color: var(--gray-500); }
.pc-list { padding: 0 1.5rem; }
.pc-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .88rem;
  padding: .7rem 0;
  border-top: 1px solid var(--gray-100);
}
.pc-list li span { color: var(--gray-600); }
.pc-list b { white-space: nowrap; color: var(--navy-900); }
.accent-text { color: var(--orange) !important; }
.green-text { color: #16A34A !important; }
.pc-foot { margin-top: auto; padding: 1.2rem 1.5rem 1.5rem; }
.pc-foot .btn { width: 100%; justify-content: center; }
.pc-foot .btn-outline { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.pc-foot .btn-outline:hover { background: var(--navy-900); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .8fr;
  gap: 1.2rem;
}
.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.gallery figure.tall img { aspect-ratio: 472/676; height: 100%; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11, 19, 43, .92));
  color: #E2E8F0;
  font-size: .8rem;
  padding: 1.8rem 1rem .8rem;
}
figure.tall figcaption { padding-top: 3rem; padding-bottom: 1rem; font-size: .78rem; }

/* ---------- Logistics section ---------- */
.logistics-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.logistics-grid .eyebrow { color: var(--orange); }
.logistics-grid h2 { color: #fff; }
.lead-sm { color: #B8C4D4; font-size: .95rem; }
.feature-list { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.f-icon {
  flex: none;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange);
  border-radius: 10px;
  color: #fff;
}
.feature-list h4 { color: #fff; margin: 0 0 .2rem; font-size: .98rem; }
.feature-list p { margin: 0; font-size: .82rem; color: #94A3B8; }
.commit-card {
  background: #111C33;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.commit-card::before {
  content: "";
  position: absolute; right: -70px; bottom: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(70px);
  opacity: .12;
}
.commit-card h3 { margin-top: 0; font-size: 1.15rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(148, 163, 184, .2); }
.commit-card ul { display: grid; gap: .9rem; margin-block: 1.2rem; }
.commit-card li { display: flex; gap: .7rem; align-items: center; font-size: .88rem; color: #CBD5E1; }
.commit-card li svg { flex: none; color: var(--orange); }
.commit-stat {
  background: rgba(11, 19, 43, .6);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.commit-stat small { display: block; color: #94A3B8; font-size: .72rem; }
.commit-stat strong { color: var(--orange); font-size: 1.02rem; }

/* ---------- Order form ---------- */
.form-card { padding: 2.2rem; }
.form-card h2 { text-align: center; font-size: 1.3rem; }
.form-card .section-head { margin-bottom: 1.4rem; }
#orderForm label em { color: var(--orange); font-style: normal; }
.form-error {
  background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  font-size: .82rem; padding: .7rem .9rem; border-radius: 9px;
  margin: 1rem 0;
}
.form-success { text-align: center; padding: 1.5rem 0; }
.form-success h3 { color: #16A34A; margin: .8rem 0 .4rem; }
.form-success p { font-size: .88rem; color: var(--gray-600); }
.form-success svg { color: #16A34A; }
.success-ctas { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.2rem; }
.form-foot {
  display: flex; justify-content: center; gap: 1.6rem;
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--gray-100);
  font-size: .72rem;
  color: var(--gray-400);
}
.form-foot span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #94A3B8;
  padding-block: 3rem 0;
  border-top: 3px solid var(--orange);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer p { font-size: .84rem; margin-bottom: .45rem; }
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-about { font-size: .82rem; }
.footer-domain { color: var(--orange); font-weight: 800; letter-spacing: .04em; margin-top: .8rem; }
.copyright {
  margin-top: 2.5rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(148, 163, 184, .15);
  text-align: center;
  font-size: .76rem;
  color: #64748B;
}

/* ---------- Floating buttons ---------- */
.float-actions {
  position: fixed;
  right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: .7rem;
  z-index: 60;
}
.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab-call { background: var(--orange); }
.fab-zalo { background: #008FD6; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .calc-grid, .logistics-grid { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.tall { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .calc-results { min-height: 0; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; color: #fff; padding: .4rem;
  }
  .nav-toggle svg { pointer-events: none; }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 3px solid var(--orange);
    padding: .8rem 1.2rem 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid rgba(148, 163, 184, .15); }
  .nav-phone { margin-top: .8rem; justify-content: center; }
}
@media (max-width: 640px) {
  .section { padding-block: 52px; }
  .hero-grid { padding-block: 48px; gap: 2rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .pc-list li { flex-direction: column; gap: .15rem; }
  .price-tag, .pc-list b { white-space: normal; }
  .float-actions { right: 12px; bottom: 12px; }
  .fab { width: 48px; height: 48px; }
}
