@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("../fonts/be-vietnam-pro/BeVietnamPro-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;

  --color-ink: #142a33;
  --color-muted: #5e6c67;
  --color-paper: #f3f2ed;
  --color-panel: #fffdf9;
  --color-line: #d5dbd4;
  --color-stone: #e7e9e4;
  --color-moss: #4a6250;
  --color-moss-dark: #263d31;
  --color-slate: #102b36;
  --color-gold: #b68b4e;
  --color-white: #ffffff;

  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --paper: var(--color-paper);
  --panel: var(--color-panel);
  --line: var(--color-line);
  --stone: var(--color-stone);
  --moss: var(--color-moss);
  --moss-dark: var(--color-moss-dark);
  --slate: var(--color-slate);
  --gold: var(--color-gold);

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-body: 1rem;
  --text-lead: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --text-h3: 1.25rem;
  --text-h2: clamp(2rem, 3.6vw, 3rem);
  --text-h1: clamp(2.75rem, 5.2vw, 4rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-sm: 4px;
  --radius-md: 6px;
  --page-gutter: clamp(20px, 5vw, 72px);
  --section-space: clamp(72px, 8vw, 104px);
  --content-max: 1360px;
  --shadow: 0 18px 52px rgba(16, 43, 54, 0.1);
}

html {
  font-size: 16px;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
  font-synthesis: none;
}

body {
  color: var(--color-ink);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  color: inherit;
}

h1 {
  max-width: 820px;
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  max-width: 840px;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.65;
}

strong {
  font-weight: 600;
}

.site-header {
  min-height: 72px;
  padding-inline: var(--page-gutter);
}

.site-header .header-actions {
  display: grid;
  grid-template-columns: 142px 160px;
  gap: 10px;
  align-items: center;
}

.site-header .header-actions > .btn {
  width: 100%;
  white-space: nowrap;
}

.site-header .header-actions > .btn.primary {
  min-height: 46px;
  padding-inline: 14px;
  font-size: var(--text-sm);
}

.language-picker {
  position: relative;
  width: 100%;
}

.language-picker__trigger {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 12px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: rgba(255, 253, 249, 0.96);
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.language-picker__trigger:hover,
.language-picker__trigger[aria-expanded="true"] {
  border-color: rgba(22, 54, 48, 0.45);
  background: #fff;
}

.language-picker__flag {
  display: block;
  width: 22px;
  height: 15px;
  border: 1px solid rgba(14, 39, 50, 0.14);
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(14, 39, 50, 0.08);
}

.language-picker__label,
.language-picker__code {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-picker__code {
  display: none;
}

.language-picker__chevron {
  width: 12px;
  height: 8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.language-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  display: grid;
  width: 184px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 5px;
  background: #fffefa;
  box-shadow: 0 18px 44px rgba(14, 39, 50, 0.16);
}

.language-picker__menu[hidden] {
  display: none;
}

.language-picker__option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  padding: 7px 9px;
  background: transparent;
  color: var(--color-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.language-picker__option:hover,
.language-picker__option:focus-visible {
  background: var(--color-stone);
}

.language-picker__option.active {
  background: rgba(82, 103, 85, 0.12);
  color: var(--color-moss);
}

.language-picker__check {
  color: var(--color-moss);
  font-size: 0.875rem;
  opacity: 0;
}

.language-picker__option.active .language-picker__check {
  opacity: 1;
}

.sales-contact-trigger[data-focus-input="pointer"]:focus {
  outline: none;
}

.sales-contact-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.sales-contact-layer[hidden],
.sales-contact-list[hidden],
.sales-contact-empty[hidden] {
  display: none;
}

.sales-contact-backdrop {
  display: none;
}

.sales-contact-panel {
  --sales-contact-caret-left: 50%;
  --sales-contact-caret-top: 50%;
  position: fixed;
  display: flex;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  overflow: visible;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
}

.sales-contact-panel::before {
  position: absolute;
  bottom: -9px;
  left: var(--sales-contact-caret-left);
  width: 16px;
  height: 16px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-panel);
  content: "";
  pointer-events: none;
}

.sales-contact-panel[data-placement="left"]::before {
  top: var(--sales-contact-caret-top);
  right: -9px;
  bottom: auto;
  left: auto;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  border-bottom: 0;
}

.sales-contact-panel__handle {
  display: none;
}

.sales-contact-panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 20px;
  align-items: start;
  min-height: 96px;
  padding: 24px 36px;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-panel);
}

.sales-contact-panel__header h2 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.sales-contact-panel__close {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: var(--color-slate);
  cursor: pointer;
}

.sales-contact-panel__close:hover,
.sales-contact-panel__close:active {
  border-color: rgba(22, 54, 48, 0.45);
  background: var(--color-stone);
}

.sales-contact-layer[data-open-input="pointer"] .sales-contact-panel:focus,
.sales-contact-layer[data-open-input="pointer"] .sales-contact-panel__close:focus:not(:focus-visible) {
  outline: none;
}

.sales-contact-panel__close svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.sales-contact-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(420px, 52dvh);
  padding: 0 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sales-contact-row {
  display: grid;
  grid-template-columns: minmax(112px, 132px) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 24px 0;
}

.sales-contact-row + .sales-contact-row {
  border-top: 1px solid var(--color-line);
}

.sales-contact-row p,
.sales-contact-row h3 {
  margin: 0;
}

.sales-contact-row__name {
  min-width: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.sales-contact-row__phone {
  min-width: 0;
  color: var(--color-muted);
  font-size: 1.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}

.sales-contact-row__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sales-contact-row__action {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 50px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--color-white);
  color: var(--color-moss-dark);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.sales-contact-row__action:hover {
  border-color: var(--color-moss-dark);
  background: var(--color-stone);
}

.sales-contact-row__action:active {
  border-color: var(--color-moss-dark);
  background: rgba(74, 98, 80, 0.14);
  transform: translateY(1px);
}

.sales-contact-row__action:focus-visible {
  outline: 3px solid #c99343;
  outline-offset: 3px;
}

.sales-contact-row__call {
  width: 50px;
}

.sales-contact-row__zalo {
  min-width: 60px;
}

.sales-contact-row__zalo:hover {
  border-color: #0068ff;
  background: rgba(0, 104, 255, 0.06);
  color: #0057d8;
}

.sales-contact-row__call svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sales-contact-row__zalo-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sales-contact-empty {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: 22px;
}

.sales-contact-empty p {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

body.sales-contact-open {
  overflow: hidden;
}

.nav {
  font-size: var(--text-sm);
  font-weight: 600;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.lead {
  max-width: 64ch;
  font-size: var(--text-lead);
  font-weight: 400;
  line-height: 1.7;
}

.btn {
  min-height: 46px;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
}

.chip,
.tag {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.4;
}

.hero-copy {
  gap: var(--space-6);
}

.hero-grid {
  grid-template-columns: minmax(0, 880px);
  justify-content: start;
}

.hero-panel {
  display: none;
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.hero-panel > strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hero-panel p {
  line-height: 1.65;
}

.hero-stat span {
  font-size: 0.8125rem;
  font-weight: 400;
}

.hero-stat strong {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.section {
  padding: var(--section-space) var(--page-gutter);
}

.section > * {
  max-width: var(--content-max);
}

.section-head {
  margin-bottom: var(--space-12);
}

.section-head p:not(.eyebrow) {
  max-width: 54ch;
  font-size: var(--text-body);
  line-height: 1.65;
}

.board-top {
  padding-bottom: var(--space-6);
}

.board-top strong {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-card,
.case-item,
.factory-panel,
.factory .factory-rows,
.quote-card,
.case-photo,
.quote-hero {
  border-radius: var(--radius-md);
}

.product-body {
  gap: var(--space-3);
  padding: 20px;
}

.product-body h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}

.visual-size {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.meta-box {
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.meta-box span {
  font-size: 0.71875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.quote-product {
  font-size: var(--text-sm);
  font-weight: 600;
}

.case-caption h3 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.case-item strong {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.case-item strong span {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.factory-row {
  padding: 18px 20px;
}

.factory-row strong {
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
}

.factory-row p {
  line-height: 1.6;
}

.num {
  font-weight: 700;
}

.quote-card {
  gap: var(--space-4);
  padding: clamp(24px, 3vw, 38px);
}

.quote-card h3 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
}

.form-label small {
  font-weight: 400;
}

.field {
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.5;
}

.form-note,
.form-status,
.footer-details {
  font-size: 0.8125rem;
  line-height: 1.55;
}

.contact-line strong,
.footer strong,
.footer-details a {
  font-weight: 600;
}

.quote-card .contact-line:last-child {
  grid-template-columns: 1fr;
  gap: 2px;
  align-items: start;
}

.quote-card .contact-line:last-child strong {
  font-size: 0.875rem;
  text-align: left;
}

/* Floating social shortcuts: isolated from the page layout. */
.floating-contact {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.floating-contact__link {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(182, 139, 78, 0.76);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(16, 42, 54, 0.96);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(7, 24, 31, 0.28);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.floating-contact__link:hover {
  border-color: #d0a45f;
  background: #173944;
  transform: translateY(-2px);
  box-shadow: 0 11px 28px rgba(7, 24, 31, 0.34);
}

.floating-contact__link:active,
.floating-contact__link[aria-expanded="true"] {
  border-color: #d0a45f;
  background: #173944;
  box-shadow: 0 11px 28px rgba(7, 24, 31, 0.34);
}

.floating-contact__link::before {
  position: absolute;
  right: calc(100% + 10px);
  width: max-content;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  background: var(--slate);
  color: #fff;
  content: attr(data-label);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.floating-contact__link:hover::before,
.floating-contact__link:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.floating-contact__link[aria-expanded="true"]::before {
  opacity: 0;
  transform: translateX(6px);
}

.floating-contact__brand {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.floating-contact__brand--zalo {
  background: #0068ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.floating-contact__brand--messenger {
  background: linear-gradient(145deg, #00b2ff 0%, #0877f2 55%, #8b3dff 100%);
}

.floating-contact__brand--phone {
  background: transparent;
  box-shadow: none;
}

.floating-contact__brand--phone .floating-contact__icon {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.floating-contact__icon {
  width: 23px;
  height: 23px;
}

.footer {
  padding: 30px var(--page-gutter);
  font-size: var(--text-sm);
  line-height: 1.55;
}

:focus-visible {
  outline: 3px solid #c99343;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .section-head {
    margin-bottom: var(--space-8);
  }

  .case-item,
  .factory-row {
    padding: var(--space-4);
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-header .nav {
    display: none;
  }

  .site-header .header-actions {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  :root {
    --text-h1: clamp(2.25rem, 10.5vw, 3rem);
    --text-h2: clamp(1.875rem, 8.5vw, 2.5rem);
    --section-space: 64px;
    --page-gutter: 18px;
  }

  h1 {
    line-height: 1.1;
  }

  h2 {
    line-height: 1.16;
  }

  .site-header .brand {
    width: 108px;
  }

  .site-header .header-actions {
    grid-template-columns: 58px 108px;
    gap: 7px;
  }

  .site-header .header-actions > .btn.primary {
    width: 108px;
    height: 48px;
    min-height: 48px;
    padding: 6px 9px;
    font-size: 0.8125rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .language-picker__trigger {
    grid-template-columns: 20px auto 10px;
    gap: 5px;
    min-width: 0;
    height: 34px;
    padding: 0 5px;
  }

  .language-picker__flag {
    width: 20px;
    height: 14px;
  }

  .language-picker__label {
    display: none;
  }

  .language-picker__code {
    display: block;
    font-size: 0.6875rem;
  }

  .sales-contact-layer--mobile {
    background: rgba(9, 25, 31, 0.48);
    pointer-events: auto;
  }

  .sales-contact-layer--mobile .sales-contact-backdrop {
    position: absolute;
    inset: 0;
    display: block;
  }

  .sales-contact-layer--mobile .sales-contact-panel {
    inset: auto 0 0;
    width: 100%;
    max-height: min(84dvh, calc(100dvh - 24px));
    overflow: hidden;
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .sales-contact-layer--mobile .sales-contact-panel::before {
    display: none;
  }

  .sales-contact-layer--mobile .sales-contact-panel__handle {
    display: block;
    width: 42px;
    height: 4px;
    flex: 0 0 auto;
    margin: 9px auto 0;
    border-radius: 999px;
    background: #c4cbc5;
  }

  .sales-contact-panel__header {
    padding: 15px 18px 16px;
  }

  .sales-contact-panel__header h2 {
    font-size: 1.25rem;
  }

  .sales-contact-list {
    max-height: none;
    padding-inline: 18px;
  }

  .sales-contact-row {
    min-height: 100px;
    padding-block: 20px;
  }

  .sales-contact-empty {
    padding: 20px 18px 24px;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-panel > strong {
    font-size: 1.375rem;
  }

  .floating-contact {
    right: 12px;
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 8px;
  }

  .floating-contact__link {
    width: 48px;
    height: 48px;
  }

  .floating-contact__brand {
    width: 29px;
    height: 29px;
  }

  .floating-contact__brand--zalo {
    font-size: 0.58rem;
  }

  .floating-contact__icon {
    width: 21px;
    height: 21px;
  }

  .floating-contact__link::before {
    display: none;
  }

  .case-caption h3 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .quote-card h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 420px) {
  .sales-contact-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name actions"
      "phone actions";
    row-gap: 6px;
    padding-block: 18px;
  }

  .sales-contact-row__name {
    grid-area: name;
  }

  .sales-contact-row__phone {
    grid-area: phone;
  }

  .sales-contact-row__actions {
    grid-area: actions;
  }
}

@media (max-width: 389px) {
  .site-header .brand {
    width: 100px;
  }

  .site-header .header-actions {
    grid-template-columns: 52px 92px;
    gap: 5px;
  }

  .site-header .header-actions > .btn.primary {
    width: 92px;
    padding-inline: 5px;
    font-size: 0.75rem;
  }

  .language-picker__trigger {
    grid-template-columns: 18px auto 9px;
    gap: 4px;
    padding-inline: 5px;
  }

  .language-picker__flag {
    width: 18px;
    height: 13px;
  }
}
