:root {
  --primary: #0b3d5c;
  --primary-2: #0f5f85;
  --accent: #f6b36b;
  --accent-2: #fff2e3;
  --zalo: #087ff5;
  --call: #15915b;
  --ink: #152232;
  --muted: #5d6b7b;
  --line: #dbe6ee;
  --soft: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(11, 61, 92, .13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
}

body.drawer-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; }

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--primary);
  color: #eaf6fb;
  font-size: 14px;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-phone {
  color: var(--white);
  font-weight: 700;
}

.top-phone span { color: #bfdae7; font-weight: 600; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(219, 230, 238, .85);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--white), 0 8px 18px rgba(11, 61, 92, .16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand b,
.brand small { display: block; }

.brand b {
  font-size: 20px;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #26384a;
  font-size: 15px;
  font-weight: 700;
}

.nav a:hover { color: var(--primary-2); }

.nav-call {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #23170a;
}

.service-menu-btn {
  display: none;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.service-menu-btn span { margin-right: 6px; }

.nav-dropdown {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
}

.nav-submenu {
  position: absolute;
  top: calc(100% - 10px);
  left: 0;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-submenu a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-submenu a:hover { background: var(--accent-2); }

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  width: min(390px, 88vw);
  transform: translateX(-105%);
  transition: transform .25s ease;
  pointer-events: none;
}

.drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.drawer-panel {
  height: 100%;
  overflow-y: auto;
  background: var(--white);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background: var(--primary);
  color: var(--white);
}

.drawer-head strong {
  display: block;
  font-size: 22px;
  line-height: 1.25;
}

.drawer-head span {
  display: block;
  color: #cce0eb;
  font-size: 14px;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.drawer-list a {
  min-height: 56px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  color: #203446;
  font-size: 17px;
  font-weight: 750;
}

.drawer-list a:hover {
  background: var(--accent-2);
  color: var(--primary);
}

.drawer-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf6fa;
  color: var(--primary);
  font-size: 17px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8, 22, 33, .42);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 31, 45, .92) 0%, rgba(11, 61, 92, .82) 42%, rgba(11, 61, 92, .18) 100%),
    linear-gradient(0deg, rgba(8, 31, 45, .22), rgba(8, 31, 45, .22));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.section-heading span {
  color: var(--primary-2);
  display: inline-block;
  font-size: 14px;
  font-weight: 850;
}

.hero .eyebrow { color: #ffd5a2; }

.hero h1 {
  max-width: 780px;
  margin: 12px 0 20px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #e6f2f7;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.btn {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 61, 92, .15);
}

.btn-primary { background: var(--accent); color: #21170b; }
.btn-zalo { background: var(--zalo); color: var(--white); }
.btn-soft { background: rgba(255, 255, 255, .12); color: var(--white); border: 1px solid rgba(255, 255, 255, .3); }
.btn-outline { background: var(--white); color: var(--primary); border: 1px solid var(--line); }
.full { width: 100%; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #eef8fc;
  font-size: 14px;
  font-weight: 700;
}

.quick-quote {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 61, 92, .06);
}

.news-card span {
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 850;
}

.news-card h3 {
  margin: 8px 0 8px;
  font-size: 19px;
  line-height: 1.32;
}

.news-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.news-card a {
  color: var(--primary);
  font-weight: 850;
}

.quick-quote h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.22;
}

.quick-quote p { color: var(--muted); font-size: 16px; }

.quote-label {
  color: var(--primary-2);
  font-weight: 850;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: #d8edf6;
  font-size: 14px;
  font-weight: 750;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, .58);
}

.breadcrumb a { color: var(--white); }

.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fault-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.fault-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 61, 92, .06);
}

.fault-card b {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-2);
}

.fault-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.cta-band {
  background: var(--primary);
  color: var(--white);
}

.cta-band .section-heading span { color: #ffd5a2; }
.cta-band .section-heading p { color: #d7ebf4; }

.section { padding: 78px 0; }
.light { background: var(--soft); }

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.intro-grid h2,
.quote-grid h2 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p,
.intro-copy p,
.quote-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.intro-copy p { margin: 0 0 14px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(11, 61, 92, .06);
}

.service-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.service-card p { margin: 0; color: var(--muted); }

.service-top {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #eaf4f8;
  color: var(--primary);
  font-size: 22px;
}

.service-card ul {
  margin: 0;
  padding-left: 20px;
  color: #405266;
}

.service-card li { margin: 4px 0; }

.price-line {
  margin-top: auto;
  padding: 13px 14px;
  border-radius: 8px;
  background: var(--accent-2);
  color: #342111;
  font-weight: 850;
}

.service-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.service-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.service-actions .btn {
  min-height: 46px;
  padding: 0 14px;
  font-size: 15px;
}

.price-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.price-tabs button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  white-space: nowrap;
  font-weight: 800;
  cursor: pointer;
}

.price-tabs button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.price-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.price-panel.active { display: block; }

.price-panel h3 {
  margin: 0;
  padding: 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 24px;
}

.table-wrap { overflow-x: auto; }

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  background: #eef6fa;
  color: var(--primary);
  font-size: 16px;
}

.price-table td:last-child {
  width: 36%;
  color: var(--primary);
  font-weight: 850;
}

.price-disclaimer {
  padding: 18px 20px 20px;
  background: #fbfdfe;
}

.price-disclaimer p {
  margin: 0 0 14px;
  color: var(--muted);
}

.price-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.quote-note {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-2);
  color: #3d2b19;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 7px;
  color: #314356;
  font-weight: 750;
}

.quote-form label:nth-child(5),
.quote-form button,
.form-hint { grid-column: 1 / -1; }

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--ink);
  outline: 0;
}

.quote-form input,
.quote-form select { height: 48px; padding: 0 13px; }
.quote-form textarea { min-height: 118px; padding: 12px 13px; resize: vertical; }

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(15, 95, 133, .12);
}

.form-hint {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps b {
  color: var(--primary-2);
  font-size: 30px;
}

.steps h3 { margin: 7px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.faq-list {
  max-width: 880px;
  margin: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.active {
  border-color: rgba(15, 95, 133, .32);
  box-shadow: 0 10px 28px rgba(11, 61, 92, .06);
}

.faq-question {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--primary);
  text-align: left;
  font-weight: 850;
}

.faq-question:focus-visible {
  outline: 3px solid rgba(15, 95, 133, .18);
  outline-offset: -3px;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  transition: transform .22s ease;
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.active .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.footer {
  padding: 54px 0 22px;
  background: #08283e;
  color: #dceaf2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 42px;
}

.footer h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.footer p { color: #b7ccd8; margin: 8px 0; }
.footer a { color: var(--white); font-weight: 750; }
.footer .brand small { color: #b7ccd8; }

.copyright {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #9eb6c4;
  text-align: center;
  font-size: 14px;
}

.desktop-float {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 80;
  display: grid;
  gap: 10px;
}

.float-btn {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(10, 32, 48, .22);
  animation: floatPulse 3.4s ease-in-out infinite;
}

.float-zalo { background: var(--zalo); }
.float-call { background: var(--call); animation-delay: .4s; }

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.mobile-contact-bar { display: none; }

@media (max-width: 980px) {
  html { scroll-padding-top: 84px; }
  body { padding-bottom: 72px; }
  .topbar-inner { justify-content: center; }
  .topbar-inner > span { display: none; }
  .nav { display: none; }
  .service-menu-btn { display: inline-flex; align-items: center; }
  .nav-wrap { min-height: 70px; }
  .brand b { font-size: 18px; }
  .brand small { display: none; }
  .hero { padding: 54px 0; }
  .hero-grid,
  .intro-grid,
  .quote-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(31px, 9vw, 42px); }
  .section-heading h2,
  .intro-grid h2,
  .quote-grid h2 { font-size: clamp(28px, 8vw, 34px); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fault-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-float { display: none; }
  .mobile-contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    min-height: 66px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 22px rgba(8, 31, 45, .12);
  }
  .mobile-contact-bar a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
  }
  .mobile-contact-bar a:first-child { color: var(--call); }
  .mobile-contact-bar a:nth-child(2) { color: var(--zalo); }
  .mobile-contact-bar span { font-size: 18px; line-height: 1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1140px); }
  .service-menu-btn { padding: 0 12px; font-size: 14px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand b { font-size: 16px; }
  .hero p,
  .section-heading p,
  .intro-copy p,
  .quote-grid p { font-size: 16px; line-height: 1.75; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .quick-quote { padding: 22px; }
  .quick-quote h2 { font-size: 26px; }
  .section { padding: 58px 0; }
  .service-grid,
  .news-grid,
  .fault-grid,
  .steps,
  .footer-grid,
  .quote-form { grid-template-columns: 1fr; }
  .quote-form label:nth-child(5),
  .quote-form button,
  .form-hint { grid-column: auto; }
  .service-card { padding: 18px; }
  .service-card h3 { font-size: 21px; }
  .faq-question {
    min-height: 58px;
    padding: 15px 16px;
  }
  .faq-answer p { padding: 0 16px 16px; }
  .drawer-list a { min-height: 58px; font-size: 16px; }
  .price-panel h3 { font-size: 21px; padding: 17px; }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: 100%; }
  .price-table thead { display: none; }
  .price-table tr {
    border-bottom: 1px solid var(--line);
    padding: 13px 16px;
  }
  .price-table td {
    border: 0;
    padding: 3px 0;
  }
  .price-table td:first-child {
    color: var(--ink);
    font-weight: 750;
  }
  .price-table td:last-child {
    width: 100%;
    color: var(--primary-2);
  }
}
