:root {
  --primary: #0c2d48;
  --primary-light: #145374;
  --accent: #d4a017;
  --accent-hover: #b8860b;
  --text: #333;
  --text-muted: #666;
  --bg: #f5f7fa;
  --white: #fff;
  --border: #e5e8ec;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --max-w: 1200px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

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

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

.container {
  width: min(100% - 32px, var(--max-w));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
}

.topbar__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar__lang a {
  opacity: 0.75;
  margin-left: 8px;
  font-size: 12px;
  white-space: nowrap;
}

.topbar__lang a.active,
.topbar__lang a:hover {
  opacity: 1;
  color: var(--accent);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

/* Nav dropdown */
.nav-item--dropdown {
  position: relative;
}

.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-caret {
  font-size: 11px;
  opacity: 0.7;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 200;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  display: block;
}

.nav-dropdown__item {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.4;
}

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

.nav-dropdown__item--all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.nav-dropdown__group {
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.nav-dropdown__group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.nav-dropdown__item--cat {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  padding: 10px 16px 6px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, rgba(12, 45, 72, 0.06), transparent);
  border-left: 3px solid var(--accent);
  margin: 4px 8px 2px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.nav-dropdown__item--cat:hover {
  background: linear-gradient(90deg, rgba(12, 45, 72, 0.1), transparent);
  color: var(--primary);
}

.nav-dropdown__group:first-child .nav-dropdown__item--cat {
  margin-top: 0;
}

.nav-dropdown__item--sub {
  padding: 6px 18px 6px 48px;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  position: relative;
  margin-left: 8px;
}

.nav-dropdown__item--sub::before {
  content: "›";
  position: absolute;
  left: 32px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.nav-dropdown__item--sub:hover {
  color: var(--primary);
  background: #fafbfc;
}

/* Contact float */
.contact-float-btn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transition: transform 0.2s;
}

.contact-float-btn:hover {
  transform: scale(1.05);
}

.contact-float-panel {
  display: none;
  position: fixed;
  bottom: 164px;
  right: 24px;
  width: min(320px, calc(100vw - 48px));
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 91;
  padding: 16px;
}

.contact-float-panel.open {
  display: block;
}

.contact-float-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.contact-float-panel__head button {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
}

.contact-float-panel .form input,
.contact-float-panel .form textarea {
  margin-bottom: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}

.contact-float-hint,
.contact-float-msg {
  font-size: 12px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.contact-float-msg.error {
  color: #c0392b;
}

.form-msg {
  font-size: 13px;
  margin-top: 8px;
  color: var(--text-muted);
}

.form-msg.ok {
  color: #27ae60;
}

.form-msg.error {
  color: #c0392b;
}

.category-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.category-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.header__cta {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.header__cta:hover {
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  height: min(72vh, 560px);
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero__slide.active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 45, 72, 0.85) 0%,
    rgba(12, 45, 72, 0.45) 60%,
    rgba(12, 45, 72, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  max-width: 640px;
  padding: 40px 0;
}

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

.hero p {
  font-size: 17px;
  opacity: 0.92;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--dark {
  background: var(--primary);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--primary-light);
}

/* Section */
.section {
  padding: 72px 0;
}

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

.section__head {
  text-align: center;
  margin-bottom: 48px;
}

.section__head h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--primary);
  margin: 0 0 12px;
}

.section__head p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section__head--left {
  text-align: left;
  margin-bottom: 32px;
}

.section__head--left p {
  margin: 0;
}

/* Feature trio */
.feature-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-trio__item {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.feature-trio__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(12, 45, 72, 0.88));
  transition: background 0.3s;
}

.feature-trio__item:hover::before {
  background: linear-gradient(transparent 10%, rgba(12, 45, 72, 0.95));
}

.feature-trio__body {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: var(--white);
  width: 100%;
}

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

.feature-trio__body p {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: 0.9;
}

.link-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.link-more:hover {
  text-decoration: underline;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}

.stat span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Advantage cards */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-icon {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card-icon:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-icon__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.card-icon h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--primary);
}

.card-icon p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-card__img img {
  transform: scale(1.06);
}

.product-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 45, 72, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-card__img::after {
  opacity: 1;
}

.product-card__body {
  padding: 20px;
}

.product-card__body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--primary);
}

.product-card__body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split h2 {
  color: var(--primary);
  margin: 0 0 16px;
}

.split p {
  color: var(--text-muted);
  margin: 0 0 12px;
}

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

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 20px;
}

.news-card__body h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--primary);
  line-height: 1.4;
}

.news-card__body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: var(--primary);
  color: var(--white);
  padding: 64px 0;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.cta-band h2 {
  margin: 0 0 12px;
}

.cta-band p {
  opacity: 0.9;
  margin: 0;
}

.form {
  display: grid;
  gap: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}

.form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Footer */
.footer {
  background: #081f33;
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--white);
  margin: 0 0 16px;
  font-size: 16px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 8px;
  font-size: 14px;
}

.footer a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  text-align: center;
  opacity: 0.7;
}

/* Page banner */
.page-banner {
  background: var(--primary);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.page-banner h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
}

.page-banner p {
  margin: 0;
  opacity: 0.85;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
}

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

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-detail__gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-detail__gallery--empty {
  display: none;
}

.product-detail__main-wrap {
  min-height: 0;
}

.product-detail__info {
  min-width: 0;
}
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-detail__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.product-detail__thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
}

.product-detail__thumbs img.active {
  opacity: 1;
  border-color: var(--accent);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.spec-table th {
  background: var(--bg);
  width: 35%;
}

/* Media / video */
.media-video {
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.media-video video {
  display: block;
  width: 100%;
  max-height: 420px;
}

.media-video--embed {
  position: relative;
  padding-top: 56.25%;
  background: #111;
}

.media-video--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-videos__title {
  font-size: 16px;
  color: var(--primary);
  margin: 24px 0 12px;
}

.split__media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.split__media .media-video {
  margin-top: 0;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-trio,
  .cards-4,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow);
    gap: 12px;
  }

  .nav.open {
    display: flex;
  }

  .nav-item--dropdown .nav-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 12px;
  }

  .nav-item--dropdown.open .nav-dropdown {
    display: block;
  }

  .nav-item__trigger {
    cursor: pointer;
  }

  .header__cta {
    display: none;
  }

  .feature-trio,
  .split,
  .cta-band__inner,
  .product-detail,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .cards-4,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 420px;
  }
}
