:root {
  --red: #c4001d;
  --red-dark: #981b1b;
  --ink: #171717;
  --muted: #5d6673;
  --line: #e7e9ee;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --shadow: 0 18px 45px rgba(20, 24, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
  color: #20242a;
}

.site-nav a:hover {
  color: var(--red);
}

.site-nav a.active {
  color: var(--red);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.language-switch a {
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.2;
}

.language-switch a.active {
  background: var(--red);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: 92px clamp(22px, 6vw, 96px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.36) 52%, rgba(0, 0, 0, 0.04)),
    url("images/hero.jpg") center / cover;
}

.sub-hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 92px clamp(22px, 6vw, 96px);
  color: #fff;
  text-align: center;
}

.about-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)),
    url("images/about-hero.jpg") center / cover;
}

.sub-hero-content {
  max-width: 760px;
}

.sub-hero p:not(.eyebrow) {
  margin: 14px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
}

.hero-content {
  max-width: 940px;
}

html[lang="en"] .hero-content {
  width: 100%;
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffccd3;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
}

.hero h1 {
  white-space: nowrap;
}

html[lang="en"] .hero h1 {
  font-size: clamp(42px, 5vw, 64px);
}

html[lang="vi"] .hero h1 {
  font-size: 56px;
  white-space: nowrap;
}

html[lang="vi"] .hero-content {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
}

html[lang="vi"] .hero-subtitle {
  font-size: 28px;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero-subtitle {
  margin: 16px 0 18px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
}

html[lang="en"] .hero-subtitle {
  white-space: nowrap;
}

.hero-content p:not(.eyebrow):not(.hero-subtitle) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

html[lang="en"] .hero-content p:not(.eyebrow):not(.hero-subtitle) {
  max-width: 980px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}

.section {
  padding: clamp(62px, 8vw, 112px) clamp(22px, 6vw, 96px);
}

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

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.about-image-wrap img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-copy p {
  color: var(--muted);
}

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

.about-highlights article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.about-highlights span {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
}

.about-highlights p {
  margin: 0;
  color: var(--muted);
}

.section-heading p:last-child,
.section-copy p,
.intro-panel p,
.brand-copy p,
.system-section p,
.footer p {
  color: var(--muted);
}

.intro,
.brand-section,
.system-section,
.service-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.intro-panel,
.service-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.intro-panel strong,
.service-panel strong {
  color: var(--red);
  font-size: 24px;
}

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

.product-card,
.steps article,
.scale-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.07);
  overflow: hidden;
}

a.product-card {
  color: inherit;
  text-decoration: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.product-card h3 {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-size: 18px;
}

.brand-section {
  background: #111827;
  color: #fff;
}

.brand-section p {
  color: rgba(255, 255, 255, 0.78);
}

.brand-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.brand-points span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

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

.brand-logo-card {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.brand-logo-card img {
  width: 100%;
  max-height: 78px;
  object-fit: contain;
}

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

.steps article {
  padding: 24px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

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

.service-support {
  padding-bottom: 56px;
}

.service-copy p,
.service-panel p {
  color: var(--muted);
}

.service-flow {
  padding-top: 56px;
  background: var(--soft);
}

.service-flow .steps article {
  background: #fff;
}

.system-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  text-align: center;
  background: var(--soft);
}

.system-section > div {
  max-width: 680px;
}

.system-section .eyebrow {
  color: var(--red);
}

.service-system {
  background: #fff;
}

.system-section img {
  width: min(420px, 100%);
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.scale-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
}

.scale-grid strong,
.scale-grid span {
  display: block;
  text-align: center;
}

.scale-grid strong {
  padding: 18px 12px 0;
  color: var(--red);
  font-size: 24px;
}

.scale-grid span {
  padding: 0 12px 20px;
  color: var(--muted);
}

.footer {
  padding: 58px clamp(22px, 6vw, 96px) 24px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.page-title {
  padding: 76px clamp(22px, 6vw, 96px) 48px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-title p:last-child {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.source-title h1 {
  color: var(--red);
}

.source-title p:last-child {
  color: var(--ink);
}

.product-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.product-sidebar {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.07);
}

.product-sidebar h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.product-sidebar a,
.product-sidebar span {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: #20242a;
  font-weight: 800;
  text-decoration: none;
}

.product-sidebar a.current {
  color: var(--red);
}

.product-sidebar span {
  color: var(--muted);
}

.product-sidebar a:last-child,
.product-sidebar span:last-child {
  border-bottom: 0;
}

.product-content {
  min-width: 0;
}

.product-section-title {
  margin-bottom: 22px;
}

.product-section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.product-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #20242a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.product-tabs button.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.tab-panel {
  display: none;
}

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

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

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 24, 31, 0.06);
}

.certificate-section {
  padding-top: 64px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.certificate-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.certificate-card img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.certificate-card h2 {
  margin-top: 18px;
  font-size: 22px;
}

.lab-report {
  max-width: 980px;
  margin: 54px auto 0;
  text-align: center;
}

.lab-report h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-style: italic;
}

.lab-report img {
  width: min(620px, 100%);
  margin: 24px auto 0;
}

.brands-page {
  padding-top: 64px;
}

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

.brand-wall img {
  width: 100%;
  aspect-ratio: 300 / 248;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.06);
}

.album-section {
  padding-top: 64px;
}

.album-tabs {
  justify-content: center;
  margin: 0 auto 30px;
}

.album-block + .album-block {
  margin-top: 58px;
}

.album-block h2 {
  margin-bottom: 22px;
  text-align: center;
}

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

.album-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 24, 31, 0.06);
  overflow: hidden;
}

.album-item a {
  display: block;
}

.album-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.album-item:hover img {
  transform: scale(1.025);
}

.album-item figcaption {
  min-height: 46px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
}

.contact-cards {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card,
.map-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.07);
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-card h2,
.map-card h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.contact-card p,
.map-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card a {
  color: #0b63ce;
  text-decoration: none;
}

.map-frame {
  width: 100%;
  height: 340px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 0.72fr;
  gap: clamp(24px, 5vw, 70px);
}

.footer-logo {
  width: 86px;
  margin-bottom: 18px;
}

.footer h2 {
  font-size: 26px;
}

.footer a {
  color: #0b63ce;
  text-decoration: none;
}

.footer-language p {
  margin: 8px 0;
}

.footer-language a.active {
  color: var(--red);
  font-weight: 800;
}

.text-link {
  font-weight: 800;
}

.copyright {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 78px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav > a:last-of-type {
    border-bottom: 1px solid var(--line);
  }

  .language-switch {
    justify-content: stretch;
    margin: 8px 0 0;
  }

  .language-switch a {
    flex: 1;
    border-bottom: 0;
  }
}

@media (max-width: 1020px) {
  .product-grid,
  .scale-grid,
  .gallery-grid,
  .certificate-grid,
  .brand-wall,
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  html[lang="vi"] .hero h1 {
    font-size: 42px;
  }

  html[lang="vi"] .hero-subtitle {
    font-size: 21px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 78px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .intro,
  .brand-section,
  .system-section,
  .service-support,
  .about-intro,
  .product-layout,
  .contact-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-sidebar {
    position: static;
    order: 2;
  }

  .product-content {
    order: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 640px;
    padding-top: 72px;
  }

  .hero h1 {
    white-space: normal;
  }

  html[lang="vi"] .hero h1 {
    font-size: 36px;
    white-space: nowrap;
  }

  html[lang="vi"] .hero-subtitle {
    font-size: 19px;
    white-space: nowrap;
  }

  html[lang="en"] .hero-subtitle {
    white-space: normal;
  }

  .sub-hero {
    min-height: 460px;
  }

  .brand-logo-grid {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 58px;
    height: 58px;
  }

  .site-header {
    min-height: 66px;
  }

  .site-nav {
    inset: 66px 14px auto;
  }

  .product-grid,
  .scale-grid,
  .steps,
  .about-highlights,
  .gallery-grid,
  .certificate-grid,
  .brand-wall,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .brand-logo-card {
    min-height: 96px;
    padding: 14px;
  }

  .hero {
    min-height: 590px;
    padding: 54px 20px;
  }

  html[lang="vi"] .hero h1,
  html[lang="vi"] .hero-subtitle {
    white-space: normal;
  }
}
