/* Design system — 8px grid, industrial B2B food machinery */
:root {
  --bg: #f4f6f9;
  --bg-alt: #e9eef5;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #1d4ed8;
  --primary-dark: #0b1f3a;
  --primary-soft: #dbeafe;
  --accent: #ea580c;
  --accent-soft: #ffedd5;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --max: 1200px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --font-body: "DM Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Instrument Sans", "DM Sans", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ── Top bar ── */
.top-bar {
  background: var(--primary-dark);
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}

.top-tagline {
  margin: 0;
  letter-spacing: 0.01em;
}

.top-contacts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.top-contacts a {
  color: #e2e8f0;
  font-weight: 500;
}

.top-contacts a:hover {
  color: #fff;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.brand-logo {
  width: 140px;
  max-width: 34vw;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav > a,
.nav-dropdown > a:first-child {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav > a:hover,
.nav > a.active,
.nav-dropdown > a:first-child:hover,
.nav-dropdown > a:first-child.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.header-cta {
  white-space: nowrap;
  padding: 10px 20px !important;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 248px;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu > a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
}

.nav-dropdown-menu > a:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-dropdown-group {
  margin-top: 4px;
}

.nav-dropdown-group-head {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-group-head > a {
  flex: 1;
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
}

.nav-dropdown-group-head > a:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-submenu-toggle {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-submenu-toggle:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-dropdown-group.is-open .nav-submenu-toggle {
  transform: rotate(180deg);
}

.nav-dropdown-sub {
  display: none;
  padding: 0 0 4px 12px;
  margin-top: 2px;
  border-left: 2px solid var(--line);
}

.nav-dropdown-group:hover .nav-dropdown-sub,
.nav-dropdown-group.is-open .nav-dropdown-sub {
  display: block;
}

.nav-dropdown-sub a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.nav-dropdown-sub a:hover {
  background: var(--bg);
  color: var(--primary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}

/* ── Hero slider ── */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
}

.hero-track {
  position: relative;
  min-height: clamp(320px, 44vw, 560px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: clamp(320px, 44vw, 560px);
  object-fit: cover;
  display: block;
}

.hero-slide::after {
  display: none;
}

.hero-caption {
  display: none;
}

.nav {
  justify-content: center;
}

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-switch-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lang-switch-toggle:hover,
.lang-switch.is-open .lang-switch-toggle {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.lang-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-flag-en { background-image: url("https://flagcdn.com/w40/gb.png"); }
.lang-flag-jp { background-image: url("https://flagcdn.com/w40/jp.png"); }
.lang-flag-kor { background-image: url("https://flagcdn.com/w40/kr.png"); }
.lang-flag-fra { background-image: url("https://flagcdn.com/w40/fr.png"); }
.lang-flag-spa { background-image: url("https://flagcdn.com/w40/es.png"); }
.lang-flag-th { background-image: url("https://flagcdn.com/w40/th.png"); }
.lang-flag-ara { background-image: url("https://flagcdn.com/w40/sa.png"); }
.lang-flag-ru { background-image: url("https://flagcdn.com/w40/ru.png"); }
.lang-flag-pt { background-image: url("https://flagcdn.com/w40/pt.png"); }
.lang-flag-de { background-image: url("https://flagcdn.com/w40/de.png"); }
.lang-flag-it { background-image: url("https://flagcdn.com/w40/it.png"); }
.lang-flag-el { background-image: url("https://flagcdn.com/w40/gr.png"); }
.lang-flag-nl { background-image: url("https://flagcdn.com/w40/nl.png"); }
.lang-flag-pl { background-image: url("https://flagcdn.com/w40/pl.png"); }
.lang-flag-bul { background-image: url("https://flagcdn.com/w40/bg.png"); }
.lang-flag-est { background-image: url("https://flagcdn.com/w40/ee.png"); }
.lang-flag-dan { background-image: url("https://flagcdn.com/w40/dk.png"); }
.lang-flag-fin { background-image: url("https://flagcdn.com/w40/fi.png"); }
.lang-flag-cs { background-image: url("https://flagcdn.com/w40/cz.png"); }
.lang-flag-rom { background-image: url("https://flagcdn.com/w40/ro.png"); }
.lang-flag-swe { background-image: url("https://flagcdn.com/w40/se.png"); }
.lang-flag-hu { background-image: url("https://flagcdn.com/w40/hu.png"); }
.lang-flag-vie { background-image: url("https://flagcdn.com/w40/vn.png"); }
.lang-flag-tr { background-image: url("https://flagcdn.com/w40/tr.png"); }
.lang-flag-ben { background-image: url("https://flagcdn.com/w40/bd.png"); }
.lang-flag-id { background-image: url("https://flagcdn.com/w40/id.png"); }
.lang-flag-km { background-image: url("https://flagcdn.com/w40/kh.png"); }
.lang-flag-ms { background-image: url("https://flagcdn.com/w40/my.png"); }
.lang-flag-my { background-image: url("https://flagcdn.com/w40/mm.png"); }
.lang-flag-uk { background-image: url("https://flagcdn.com/w40/ua.png"); }

.lang-caret {
  font-size: 10px;
  color: var(--muted);
}

.lang-switch-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  max-height: min(360px, 60vh);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}

.lang-switch.is-open .lang-switch-menu {
  display: block;
}

.lang-option {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}

.lang-option:hover {
  background: var(--bg);
  color: var(--primary);
}

.lang-option.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.hero-nav,
.hero-dot {
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 24px;
  line-height: 1;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.hero-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
}

.hero-dot.is-active {
  background: var(--accent);
  width: 48px;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-head h2 {
  margin: 0;
}

.section-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}

.section-head + .product-tabs,
.section-head + .news-grid {
  margin-top: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.text-link:hover {
  color: var(--accent);
}

/* ── About ── */
.about-grid,
.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-copy p:not(.section-label) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.about-media {
  position: relative;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-media img,
.adv-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.about-page {
  padding-top: 40px;
}

.about-page-banner {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.about-page-banner img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.about-page-intro {
  margin-bottom: 64px;
}

.about-page-intro h1 {
  margin: 8px 0 20px;
  font-size: clamp(26px, 3.5vw, 36px);
}

.about-honors {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.about-honors .section-head {
  margin-bottom: 28px;
}

.about-honors .section-head h2 {
  margin: 8px 0;
}

.about-honors .section-head p:last-child {
  margin: 0;
  color: var(--muted);
}

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

.about-certificate {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.about-certificate:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-certificate img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .about-certificate-grid {
    grid-template-columns: 1fr;
  }
}

.contact-page--embedded {
  padding-top: 0;
  padding-bottom: 64px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.contact-page--embedded .container {
  padding-top: 48px;
}

.contact-page--embedded::before {
  content: "";
  display: block;
  height: 1px;
}

/* Gallery pages — workshops & case */
.gallery-page {
  padding-top: 40px;
  padding-bottom: 64px;
}

.gallery-page-header {
  max-width: 640px;
  margin-bottom: 36px;
}

.gallery-page-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.gallery-page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gallery-item a {
  display: block;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 12px 14px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.gallery-grid--captions .gallery-item img {
  aspect-ratio: 16 / 11;
}

.news-page {
  padding-top: 40px;
  padding-bottom: 64px;
}

.news-page-header {
  margin-bottom: 32px;
}

.news-page-header h1 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3.5vw, 36px);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Product tabs & cards ── */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.product-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.product-tab:hover {
  color: var(--primary);
}

.product-tab.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.product-panel {
  display: none;
  animation: fadeUp 0.35s var(--ease);
}

.product-panel.is-active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg);
}

.product-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 58, 0.55);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-body {
  padding: 16px 18px 20px;
}

.product-card-body h3 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  min-height: 45px;
}

.product-card-body h3 a:hover {
  color: var(--primary);
}

.product-more {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.product-more span {
  transition: transform 0.2s var(--ease);
  display: inline-block;
}

.product-card:hover .product-more span {
  transform: translateX(3px);
}

.panel-more {
  margin-top: 40px;
  text-align: center;
}

.panel-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.panel-more a:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Server / advantages ── */
.server-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.server-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.server-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.server-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 16px;
}

.server-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

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

/* ── CTA banner ── */
.chart-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.chart-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.88), rgba(29, 78, 216, 0.75));
}

.chart-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 96px 0;
}

.chart-inner h2 {
  max-width: 720px;
  margin: 0 auto 32px;
  color: #fff;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.3;
}

/* ── Company advantages ── */
.adv-list {
  display: grid;
  gap: 16px;
}

.adv-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow 0.2s var(--ease);
}

.adv-item:hover {
  box-shadow: var(--shadow-sm);
}

.adv-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

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

/* ── Cases ── */
.cases-section {
  padding-bottom: 64px;
}

.cases-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px max(24px, calc((100% - var(--max)) / 2 + 24px)) 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.case-item {
  flex: 0 0 min(280px, 72vw);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.case-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.case-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ── News ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination__nums {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a,
.pagination__current,
.pagination__prev,
.pagination__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination__current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination__prev.is-disabled,
.pagination__next.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card-media {
  display: block;
  overflow: hidden;
}

.news-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.news-card:hover .news-card-media img {
  transform: scale(1.04);
}

.news-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-body time {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card-body h3 {
  margin: 10px 0 12px;
  font-size: 17px;
  line-height: 1.45;
}

.news-card-body h3 a:hover {
  color: var(--primary);
}

.news-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Cooperate CTA ── */
.cooperate-cta {
  background: var(--primary-dark);
  color: #fff;
  padding: 48px 0;
}

.cooperate-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cooperate-inner h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  color: #fff;
}

.cooperate-inner p {
  margin: 0;
  color: #fff;
}

.cooperate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cooperate-actions .btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cooperate-actions .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cooperate-actions .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

/* ── Footer ── */
.footer {
  background: #070f1c;
  color: #94a3b8;
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand > img {
  width: 140px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.follow-title {
  margin: 0 0 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.follow-qr-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.follow-qr-item {
  margin: 0;
  text-align: center;
}

.follow-qr-item img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  filter: none;
}

.follow-qr-item figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 500;
}

.footer h3 {
  margin: 0 0 16px;
  font-size: 15px;
  color: #f1f5f9;
  font-family: var(--font-display);
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 10px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-copy {
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #64748b;
}

.footer-copy a {
  margin-left: 16px;
  color: #94a3b8;
}

.footer-copy a:hover {
  color: #fff;
}

/* ── Float contact ── */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 200;
}

.float-contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-contact__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.float-contact__btn:hover,
.float-contact__btn:focus-visible {
  transform: scale(1.06);
}

.float-contact__btn--phone {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.float-contact__btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.float-contact__btn--zalo {
  background: linear-gradient(135deg, #0068ff, #0052cc);
}

.float-contact__btn--wechat {
  background: linear-gradient(135deg, #07c160, #059669);
}

.float-contact__svg {
  width: 24px;
  height: 24px;
  display: block;
}

.float-contact__pop {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
  pointer-events: none;
  z-index: 2;
}

.float-contact__btn:hover .float-contact__pop,
.float-contact__btn:focus-visible .float-contact__pop,
.float-contact__btn.is-open .float-contact__pop {
  opacity: 1;
  visibility: visible;
}

.float-contact__pop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  min-width: 128px;
  max-width: min(220px, calc(100vw - 88px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.float-contact__pop-inner--text {
  min-width: 160px;
  padding: 14px 16px;
}

.float-contact__qr {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.float-contact__hint {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  word-break: break-word;
}

@media (max-width: 480px) {
  .float-contact {
    right: 12px;
    bottom: 16px;
  }

  .float-contact__btn {
    width: 44px;
    height: 44px;
  }

  .float-contact__svg {
    width: 22px;
    height: 22px;
  }
}

/* ── Inner pages ── */
.hero {
  padding: 64px 0 48px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  max-width: 720px;
  font-size: 17px;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-banner {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner img {
  width: 100%;
  height: clamp(220px, 38vw, 400px);
  object-fit: cover;
  display: block;
}

.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.card-media {
  margin: -24px -24px 16px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.news-item:first-child { border-top: none; }
.news-item .date { color: var(--accent); font-size: 12px; font-weight: 600; }

.article-content a,
.card a,
.list a { color: var(--primary); }
.article-content a:hover,
.card a:hover,
.list a:hover { text-decoration: underline; }

.article-content h2,
.article-content h3,
.article-content h4 { margin: 24px 0 12px; }

.article-content p,
.article-content li { color: var(--muted); }

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.article-hero-image {
  margin: 0 0 28px;
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.page-content img { max-width: 100%; height: auto; }
.page-content h1, .page-content h2, .page-content h3 { margin-top: 0; }
.page-content p, .page-content li { color: var(--muted); }

/* Contact page */
.contact-page {
  padding-top: 40px;
  padding-bottom: 64px;
}

.contact-page-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.contact-page-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.contact-page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.contact-info-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.contact-info-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h2 {
  margin: 0 0 20px;
  font-size: 18px;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-info-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-list strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-info-list a,
.contact-info-list span {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.contact-info-list a:hover {
  color: var(--primary);
}

.contact-social {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.contact-social > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-social .follow-qr-grid {
  margin-top: 4px;
}

.contact-social .follow-qr-item img {
  filter: none;
}

.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 36px 36px;
  box-shadow: var(--shadow-md);
}

.contact-form-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
}

.contact-form-intro {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.contact-field label span {
  color: var(--accent);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #94a3b8;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.contact-field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.contact-form-actions .btn {
  min-width: 160px;
}

.contact-form-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.contact-form-success {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form.is-invalid .contact-field input:invalid,
.contact-form.is-invalid .contact-field textarea:invalid {
  border-color: #ef4444;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
  }

  .contact-form-panel {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li + li { margin-top: 8px; }

/* Category listing pages */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

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

.breadcrumb span:last-child {
  color: var(--text);
  font-weight: 500;
}

.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.category-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.category-sidebar h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-nav-link,
.category-nav-parent {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.category-nav-link:hover,
.category-nav-parent:hover,
.category-nav-link.is-active,
.category-nav-parent.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.category-nav-group {
  margin-top: 4px;
}

.category-nav-sub {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line);
}

.category-nav-sub a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.category-nav-sub a.is-active,
.category-nav-sub a:hover {
  color: var(--primary);
  background: var(--bg);
}

.category-main h1 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 32px);
}

.category-intro {
  margin: -16px 0 28px;
  color: var(--muted);
  font-size: 16px;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-card-body {
  padding: 16px 18px 18px;
}

.category-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.category-card-body span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .category-card-grid {
    grid-template-columns: 1fr;
  }
}

.category-news {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.category-news h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.category-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.category-news li a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.2s var(--ease);
}

.category-news li a:hover {
  box-shadow: var(--shadow-sm);
}

.category-news img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.category-news span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .product-grid,
  .server-grid,
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-grid,
  .adv-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-media { order: -1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .container { width: min(var(--max), calc(100% - 32px)); }

  .top-tagline { display: none; }

  .nav-toggle { display: inline-block; }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

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

  .site-header { position: sticky; }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
    min-height: 64px;
    grid-template-columns: 1fr auto auto;
  }

  .brand { grid-column: 1; }
  .nav-toggle { grid-column: 2; }
  .lang-switch { grid-column: 3; }

  .header-cta { display: none; }

  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    min-width: auto;
    max-height: none;
    overflow: visible;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-sub {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    min-width: auto;
  }

  .nav-dropdown-group.is-open .nav-dropdown-sub {
    display: block;
  }

  .nav-dropdown::after {
    display: none;
  }

  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }

  .product-tabs {
    border-radius: var(--radius);
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .product-tab { flex-shrink: 0; }

  .chart-cta { background-attachment: scroll; }
}

@media (max-width: 560px) {
  .product-grid,
  .server-grid,
  .news-grid,
  .footer-grid,
  .g4,
  .g3 {
    grid-template-columns: 1fr;
  }

  .cooperate-inner {
    flex-direction: column;
    text-align: center;
  }

  .cooperate-actions {
    justify-content: center;
  }
}
