/* ============================================================
   CROWN — Smart Door & Cleanroom Solutions
   Design System: Deep Blue #1a2b5e + White, clean & minimal
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --primary: #1a2b5e;
  --primary-light: #2a4a8e;
  --primary-dark: #101d42;
  --accent: #2f6bff;
  --accent-soft: #e8efff;
  --white: #ffffff;
  --bg-light: #f6f8fc;
  --bg-lighter: #eef2f9;
  --text-dark: #1b2340;
  --text-body: #4d5875;
  --text-muted: #8a93ab;
  --border: #e3e8f2;
  --shadow-sm: 0 2px 8px rgba(26, 43, 94, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 43, 94, 0.10);
  --shadow-lg: 0 16px 48px rgba(26, 43, 94, 0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-dark);
  line-height: 1.25;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 6px 16px;
  background: var(--accent-soft);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Light-section variants (for dark backgrounds) */
.section-header-light .section-label-light,
.section-label-light {
  background: rgba(255, 255, 255, 0.12);
  color: #9db9ff;
}

.section-title-light {
  color: var(--white);
}

.section-subtitle-light {
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Telegram brand button */
.btn-telegram {
  background: #229ED9;
  color: var(--white);
}

.btn-telegram:hover {
  background: #1b8ac2;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-telegram {
  padding: 10px 14px;
  font-size: 0.9rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-telegram svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 14px;
  flex-wrap: nowrap;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.logo-img-light {
  /* 反白处理，让深蓝logo在深蓝页脚底色上清晰显示 */
  filter: brightness(0) invert(1);
}

/* Menu — single row, never wraps */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  display: block;
  padding: 10px 13px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

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

/* Get Quote as text link in nav row (accent color, no button) */
.nav-quote-link {
  color: var(--accent);
  font-weight: 600;
}

.nav-quote-link:hover,
.nav-quote-link.active {
  color: var(--primary);
}

.lang-switch {
  position: relative;
  margin-left: 8px;
  flex-shrink: 0;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(26, 43, 94, 0.18);
  border-radius: 8px;
  background: transparent;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lang-current:hover {
  border-color: var(--primary);
  background: rgba(26, 43, 94, 0.06);
}

.lang-flag {
  font-size: 1.05em;
  line-height: 1;
}

.lang-code {
  min-width: 22px;
  text-align: left;
}

.lang-caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.lang-current[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(26, 43, 94, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-menu li:hover {
  background: rgba(26, 43, 94, 0.06);
  color: var(--primary);
}

.lang-menu li.active {
  background: var(--primary);
  color: #fff;
}

/* High Khmer script adjustment — glyphs are taller, slightly reduce headings */
html[data-lang="km"] .hero-title,
html[data-lang="km"] .section-title,
html[data-lang="km"] .product-title,
html[data-lang="km"] .solution-title,
html[data-lang="km"] .feature-title {
  font-family: 'Noto Sans Khmer', var(--font-head);
  line-height: 1.3;
  letter-spacing: 0;
}

html[data-lang="km"] .hero-subtitle,
html[data-lang="km"] .about-desc,
html[data-lang="km"] .product-desc,
html[data-lang="km"] .solution-desc,
html[data-lang="km"] .feature-desc,
html[data-lang="km"] .footer-desc {
  font-family: 'Noto Sans Khmer', var(--font-body);
  line-height: 1.7;
}

html[data-lang="km"] body,
html[data-lang="km"] .nav-link,
html[data-lang="km"] .btn {
  font-family: 'Noto Sans Khmer', var(--font-body);
}

/* Khmer nav labels are wider — shrink to keep single row */
html[data-lang="km"] .nav-link {
  font-size: 0.85rem;
  padding: 10px 9px;
}

html[data-lang="km"] .nav-quote-link {
  font-size: 0.85rem;
  padding: 10px 9px;
}

@media (max-width: 768px) {
  .lang-switch {
    position: static;
  }
  .lang-menu {
    right: auto;
    left: 0;
  }
  .lang-current {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--accent-soft);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  background: var(--primary) url('../images/hero-storefront.jpg') center 35%/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 22, 53, 0.50) 0%, rgba(11, 22, 53, 0.30) 45%, rgba(11, 22, 53, 0.50) 100%);
}
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11, 22, 53, 0.10) 0%, rgba(11, 22, 53, 0.40) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #9db9ff;
  border: 1px solid rgba(157, 185, 255, 0.35);
  padding: 8px 22px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(11, 22, 53, 0.55), 0 1px 3px rgba(11, 22, 53, 0.45);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(11, 22, 53, 0.6);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}

.scroll-indicator span {
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-badge {
  position: absolute;
  bottom: -24px;
  right: -16px;
  background: var(--primary);
  color: var(--white);
  padding: 24px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-number {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.badge-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.about-text .section-label {
  margin-bottom: 16px;
}

.about-text .section-title {
  margin-bottom: 20px;
}

.about-desc {
  margin-bottom: 16px;
  color: var(--text-body);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 13px 18px;
  border-radius: 10px;
}

.about-feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 88px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
}

.stat-item {
  text-align: center;
}

.stat-number,
.stat-suffix {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-suffix {
  color: #6f95ff;
}

.stat-label {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.products {
  background: var(--bg-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(26, 43, 94, 0.85);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.product-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.product-features-list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-features-list li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 100px;
}

.product-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.2s ease;
}

.product-more:hover {
  color: var(--primary);
  gap: 10px;
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions {
  background: var(--white);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.solution-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 28px;
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
}

.solution-image {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.solution-card:hover .solution-image {
  transform: scale(1.04);
}

.solution-card:hover {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.solution-icon {
  width: 56px;
  height: 56px;
  margin: 24px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: var(--transition);
}

.solution-card:hover .solution-icon {
  background: var(--primary);
  border-color: var(--primary);
}

.solution-icon svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
  transition: var(--transition);
}

.solution-card:hover .solution-icon svg {
  color: var(--white);
}

.solution-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.solution-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FEATURES (WHY CHOOSE US) — dark section
   ============================================================ */
.features {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(47, 107, 255, 0.25) 0%, transparent 55%),
    var(--primary-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(111, 149, 255, 0.4);
  transform: translateY(-6px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.35);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.feature-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   NEWS
   ============================================================ */
.news {
  background: var(--bg-light);
}

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

.news-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(26, 43, 94, 0.05);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(26, 43, 94, 0.1);
  border-color: rgba(47, 107, 255, 0.25);
}

.news-date {
  flex-shrink: 0;
  width: 64px;
  height: 76px;
  background: var(--primary);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.news-card:hover .news-date {
  background: var(--accent);
}

.news-day {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.news-month {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  opacity: 0.85;
}

.news-body {
  display: flex;
  flex-direction: column;
}

.news-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.news-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 14px;
}

.news-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--primary);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--bg-light);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--white);
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-info-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

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

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

a.contact-info-value:hover {
  color: var(--accent);
}

.contact-telegram {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

a.contact-telegram:hover {
  text-decoration: underline;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: var(--transition);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-note {
  margin-top: 14px;
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.form-note.success {
  display: block;
  color: #16a34a;
}

.form-note.error {
  display: block;
  color: #dc2626;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark);
  padding: 72px 0 0;
}

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

.logo-footer .logo-img {
  height: 50px;
}

.footer-desc {
  margin-top: 18px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #9db9ff;
  padding-left: 4px;
}

.footer-contact li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Footer Telegram button (replaces plain link) */
.footer-links .footer-telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #229ED9;
  color: var(--white);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-links .footer-telegram-btn:hover {
  background: #1b8ac2;
  color: var(--white);
  transform: translateY(-2px);
}

.footer-telegram-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.products-grid .fade-in-up:nth-child(2),
.solutions-grid .fade-in-up:nth-child(2),
.features-grid .fade-in-up:nth-child(2) { transition-delay: 0.1s; }

.products-grid .fade-in-up:nth-child(3),
.solutions-grid .fade-in-up:nth-child(3),
.features-grid .fade-in-up:nth-child(3) { transition-delay: 0.2s; }

.products-grid .fade-in-up:nth-child(4),
.solutions-grid .fade-in-up:nth-child(4),
.features-grid .fade-in-up:nth-child(4) { transition-delay: 0.3s; }

.solutions-grid .fade-in-up:nth-child(5) { transition-delay: 0.4s; }

.products-grid .fade-in-up:nth-child(5) { transition-delay: 0.1s; }
.products-grid .fade-in-up:nth-child(6) { transition-delay: 0.2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 80px 0; }

  /* Keep whole nav on a single row on mid-size screens */
  .nav-container { gap: 10px; }
  .nav-menu { gap: 0; }
  .nav-link { padding: 10px 9px; font-size: 0.9rem; }
  .logo-img { max-width: 130px; height: 40px; }
  .nav-telegram { padding: 10px 11px; font-size: 0.85rem; }
  html[data-lang="km"] .nav-link { font-size: 0.8rem; padding: 10px 7px; }

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

  .solutions-grid { grid-template-columns: repeat(3, 1fr); }

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

  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-image img { height: 380px; }

  .about-image-badge { right: 12px; }

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

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

@media (max-width: 768px) {
}

@media (max-width: 768px) {
  /* Mobile: keep Telegram reachable as compact icon-only button */
  .nav-telegram {
    padding: 9px 11px;
    border-radius: 10px;
  }

  .nav-telegram .nav-telegram-text { display: none; }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link { padding: 13px 16px; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding: 36px 24px;
  }

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

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

  .form-row { grid-template-columns: 1fr; }

  .contact-form-wrap { padding: 28px 22px; }

  .hero-buttons .btn { width: 100%; max-width: 320px; }

  .scroll-indicator { display: none; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }

  .products-grid,
  .solutions-grid,
  .features-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .about-image-badge {
    position: static;
    margin: 20px auto 0;
    width: fit-content;
  }

  .stat-number, .stat-suffix { font-size: 2.2rem; }

  .about-features { grid-template-columns: 1fr; }
}

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

.section-more-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

.section-more-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================================
   NEWS PAGE (news.html)
   ============================================================ */
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

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

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  background:
    linear-gradient(135deg, rgba(16, 29, 66, 0.94) 0%, rgba(26, 43, 94, 0.88) 55%, rgba(26, 43, 94, 0.82) 100%),
    url('https://images.pexels.com/photos/19368755/pexels-photo-19368755.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat;
}

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

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin: 14px 0 12px;
  line-height: 1.15;
}

.page-hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

.news-page {
  padding: 84px 0 72px;
  background: var(--bg-soft);
}

.news-page-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-page-item {
  display: flex;
  gap: 26px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.news-page-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(26, 43, 94, 0.28);
}

.news-page-item .news-date {
  flex-shrink: 0;
  min-width: 76px;
  height: fit-content;
  padding: 12px 6px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
}

.news-page-item .news-day {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
}

.news-page-item .news-month {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.news-page-item .news-body {
  flex: 1;
  min-width: 0;
}

.news-page-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  line-height: 1.4;
}

.news-page-item .news-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 12px;
  line-height: 1.65;
}

.news-more {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}

.news-more-toggle {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
  user-select: none;
}

.news-more-toggle::-webkit-details-marker {
  display: none;
}

.news-more-toggle:hover {
  color: var(--primary);
}

.news-more[open] .news-more-toggle span {
  color: var(--primary);
}

.news-content {
  margin-top: 14px;
}

.news-content p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 12px;
}

.news-content p:last-child {
  margin-bottom: 0;
}

.news-page-back {
  text-align: center;
  margin-top: 44px;
}

.news-cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #22357a 100%);
}

.news-cta-inner {
  text-align: center;
  max-width: 640px;
}

.news-cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 12px;
}

.news-cta-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 28px;
}

.news-cta .btn-primary {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

html[data-lang="km"] .news-page-title,
html[data-lang="km"] .news-more-toggle {
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .page-hero { min-height: 40vh; padding: 120px 0 60px; }

  .news-page-item {
    flex-direction: column;
    gap: 16px;
    padding: 24px 22px;
  }

  .news-page-item .news-date {
    display: flex;
    align-items: baseline;
    gap: 8px;
    width: fit-content;
    padding: 8px 16px;
  }

  .news-page-item .news-day {
    font-size: 1.4rem;
  }

  .news-page-item .news-month {
    margin-top: 0;
  }

  .news-cta { padding: 56px 0; }
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb-sep { opacity: 0.5; }

.breadcrumb-current { color: #fff; font-weight: 600; }

.detail-hero-tag {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 1.2px;
}

.detail-hero-sub { font-size: 1rem; }

/* Detail body */
.detail-body { padding: 70px 0 40px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}

/* Gallery */
.detail-gallery { position: sticky; top: 96px; }

.detail-gallery-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(15, 23, 42, 0.14));
  background: #eef1f6;
  aspect-ratio: 4 / 3;
}

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

.detail-quote-box {
  margin-top: 20px;
  background: linear-gradient(135deg, var(--primary), #24388f);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.detail-quote-title {
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 14px;
  color: #fff;
}

.detail-quote-btn { width: 100%; }

/* Main column */
.detail-main { padding-top: 6px; }

.detail-section-title {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}

.detail-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.detail-sub-title { font-size: 1.2rem; margin-top: 30px; }

.detail-intro p {
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 0.98rem;
}

.detail-feature-block { margin-top: 8px; }

.detail-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
}

.detail-feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.detail-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(26, 43, 94, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Specifications table */
.detail-specs { margin-bottom: 64px; }

.detail-specs .section-header { margin-bottom: 26px; }

.detail-specs-title { font-size: 1.6rem; }

.spec-table-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.spec-table tr { border-bottom: 1px solid #eef1f6; }

.spec-table tr:last-child { border-bottom: none; }

.spec-table tr.alt { background: #f8fafc; }

.spec-table td {
  padding: 14px 20px;
  font-size: 0.93rem;
  vertical-align: top;
  line-height: 1.6;
}

.spec-label {
  width: 32%;
  font-weight: 600;
  color: var(--heading-color);
  background: #f1f4f9;
}

.spec-table tr.alt .spec-label { background: #edf1f7; }

.spec-value { color: var(--text-body); }

/* Applications */
.detail-apps { margin-bottom: 64px; }

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

.detail-app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.5;
  transition: var(--transition);
}

.detail-app-card:hover {
  border-color: rgba(26, 43, 94, 0.35);
  background: #f2f6fd;
  transform: translateY(-2px);
}

.detail-app-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.85;
}

/* Related products */
.detail-related { margin-bottom: 64px; }

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

.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(26, 43, 94, 0.3);
}

.related-img {
  height: 150px;
  overflow: hidden;
  background: #eef1f6;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-card:hover .related-img img { transform: scale(1.05); }

.related-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
}

.related-body h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

.related-more {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(26, 43, 94, 0.07);
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

/* Bottom CTA */
.detail-bottom-cta {
  text-align: center;
  background: linear-gradient(135deg, #f1f5fb, #e8eef8);
  border: 1px solid #dfe7f3;
  border-radius: 18px;
  padding: 48px 32px;
}

.detail-bottom-cta h3 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.detail-bottom-cta p {
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.8;
}

.detail-bottom-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(26, 43, 94, 0.35);
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Not found */
.detail-notfound {
  padding: 70px 0;
  text-align: center;
}

.detail-notfound h2 {
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.detail-notfound p {
  color: var(--text-body);
  margin-bottom: 26px;
}

/* Responsive */
@media (max-width: 992px) {
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .detail-gallery { position: static; }
  .detail-app-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .detail-body { padding: 48px 0 30px; }
  .detail-feature-list { grid-template-columns: 1fr; }
  .detail-app-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-bottom-cta { padding: 34px 20px; }
}

html[data-lang="km"] .detail-section-title,
html[data-lang="km"] .detail-bottom-cta h3,
html[data-lang="km"] .detail-notfound h2 {
  font-size: 0.95em;
  letter-spacing: 0;
}
