/* ============================================================
   Emindynamic — Global Stylesheet (UAV & Power Systems)
   ============================================================ */
:root {
  --bg-white: #ffffff;
  --bg-gray: #f2f5f9;
  --bg-dark: #0a1428;
  --bg-dark-2: #070f1e;
  --blue: #1e6df2;
  --blue-dark: #0b3f91;
  --blue-soft: #eaf1fd;
  --text-dark: #0f1f3d;
  --text-body: #3d5378;
  --text-muted: #6b82a8;
  --border: #e3e9f2;
  --border-dark: #2a3a5c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(15,36,71,0.08);
  --shadow-lg: 0 14px 40px rgba(15,36,71,0.14);
  --maxw: 1200px;
  --grad-main: linear-gradient(135deg, #0a1428 0%, #0b3f91 55%, #1e6df2 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: all 0.25s ease; border: 2px solid transparent; line-height: 1.2;
  white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 13.5px; }
.btn-lg { padding: 15px 38px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,109,242,0.35); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue-dark); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.25); }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-dark); color: rgba(255,255,255,0.75); font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 13px; height: 13px; }
.tb-left { display: flex; align-items: center; gap: 18px; }
.tb-left span { display: inline-flex; align-items: center; gap: 6px; }
.tb-right { display: flex; align-items: center; gap: 16px; }
.lang-switch a { font-weight: 700; padding: 0 4px; }
.lang-switch a.active { color: #7ab0ff; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.navbar.scrolled { box-shadow: 0 6px 24px rgba(15,36,71,0.08); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad-main); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(11,63,145,0.3);
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-name { font-size: 20px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.3px; display: block; line-height: 1.1; }
.brand-sub { font-size: 10.5px; letter-spacing: 2px; color: var(--blue); font-weight: 700; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--text-dark);
  border-radius: 8px; transition: all 0.2s ease;
}
.nav-links > a:hover { color: var(--blue); background: var(--blue-soft); }
.nav-links > a.active { color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Section ---------- */
.section { padding: 96px 0; }
.section.gray { background: var(--bg-gray); }
.section.dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(30,109,242,0.25) 0%, transparent 60%),
    var(--bg-dark); color: #fff;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 2.5px;
  color: var(--blue); text-transform: uppercase; background: var(--blue-soft);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.section.dark .section-tag { background: rgba(30,109,242,0.18); color: #7ab0ff; }
.section-title { font-size: 38px; font-weight: 800; color: var(--text-dark); letter-spacing: -0.5px; line-height: 1.2; }
.section.dark .section-title { color: #fff; }
.section-sub { font-size: 17px; color: var(--text-muted); margin-top: 14px; }
.section.dark .section-sub { color: rgba(255,255,255,0.65); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 85% -10%, #1e6df2 0%, transparent 60%),
    radial-gradient(800px 500px at -10% 110%, #0b3f91 0%, transparent 55%),
    linear-gradient(135deg, #070f1e 0%, #0a1428 50%, #0b3f91 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding: 130px 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #7ab0ff; margin-bottom: 22px;
  background: rgba(30,109,242,0.15); border: 1px solid rgba(122,176,255,0.3);
  padding: 8px 18px; border-radius: 999px;
}
.hero h1 { font-size: 58px; font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 22px; }
.hero h1 span { color: #7ab0ff; }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px; }
.trust-item .t-num { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.trust-item .t-num em { color: #7ab0ff; font-style: normal; }
.trust-item .t-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card {
  width: 100%; max-width: 440px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px; padding: 40px 36px;
  backdrop-filter: blur(10px);
}
.hero-card .hc-title { font-size: 15px; color: rgba(255,255,255,0.6); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 24px; text-align: center; }
.hero-chip {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 18px; border-radius: 14px; margin-bottom: 12px;
}
.hero-chip .hc-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(30,109,242,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-chip .hc-ic svg { width: 20px; height: 20px; color: #7ab0ff; }
.hero-chip b { display: block; font-size: 14.5px; color: #fff; line-height: 1.2; }
.hero-chip span { font-size: 12.5px; color: rgba(255,255,255,0.55); }
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-mini { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px; text-align: center; }
.hc-mini b { font-size: 15px; color: #fff; display: block; }
.hc-mini span { font-size: 11.5px; color: rgba(255,255,255,0.55); }

/* ---------- Power categories (product lines) ---------- */
.pow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pow-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--grad-main); color: #fff; min-height: 300px;
  display: flex; align-items: flex-end; padding: 34px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pow-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pow-card::after {
  content: ""; position: absolute; inset: 0; opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 34px 34px;
}
.pow-card .pc-inner { position: relative; z-index: 2; }
.pow-card .pc-ic { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pow-card .pc-ic svg { width: 28px; height: 28px; color: #fff; }
.pow-card h3 { font-size: 23px; margin-bottom: 8px; }
.pow-card p { font-size: 14.5px; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.pow-card .more { font-size: 14px; font-weight: 700; color: #7ab0ff; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Featured products ---------- */
.prod-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prod-card .pc-media {
  aspect-ratio: 16/10; background: linear-gradient(145deg, #0a1428, #0b3f91);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.prod-card .pc-media::after {
  content: ""; position: absolute; inset: 0; opacity: 0.1;
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 26px 26px;
}
.prod-card .pc-media svg { width: 72px; height: 72px; color: rgba(255,255,255,0.9); position: relative; z-index: 2; }
.prod-card .pc-media .model-badge {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(30,109,242,0.85); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.5px;
}
.prod-card .pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-card .pc-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.prod-card h3 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.35; color: var(--text-dark); }
.prod-card p { font-size: 13.5px; color: var(--text-muted); flex: 1; margin-bottom: 12px; }
.prod-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.prod-card .pc-tags span { font-size: 11.5px; background: var(--blue-soft); color: var(--blue); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.prod-card .btn { align-self: flex-start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; transition: all 0.3s ease; }
.why-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.why-card .w-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.why-card .w-ic svg { width: 24px; height: 24px; color: var(--blue); }
.why-card h3 { font-size: 16.5px; color: var(--text-dark); margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- Applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.app-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-main); }
.app-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.app-card h3 { font-size: 17px; color: var(--text-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.app-card h3 .a-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-card h3 .a-ic svg { width: 18px; height: 18px; color: var(--blue); }
.app-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(30,109,242,0.3) 0%, transparent 60%),
    var(--grad-main);
  padding: 88px 0; text-align: center; color: #fff;
}
.cta-band h2 { font-size: 38px; margin-bottom: 14px; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 640px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact section ---------- */
.contact-band { padding: 90px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-info h2 { font-size: 34px; color: var(--text-dark); margin-bottom: 16px; }
.contact-info > p { font-size: 16px; color: var(--text-muted); margin-bottom: 28px; }
.ci-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ci-row .ci-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-row .ci-ic svg { width: 22px; height: 22px; color: var(--blue); }
.ci-row b { display: block; font-size: 15px; color: var(--text-dark); }
.ci-row span, .ci-row a { font-size: 14px; color: var(--text-muted); }
.ci-row a:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(30,109,242,0.15) 0%, transparent 55%),
    var(--bg-dark-2);
  color: rgba(255,255,255,0.65); padding: 70px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; margin: 16px 0 20px; max-width: 300px; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: all 0.2s ease; }
.footer-links a:hover { color: #7ab0ff; padding-left: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom .legal a { color: rgba(255,255,255,0.5); margin-left: 18px; }
.footer-bottom .legal a:hover { color: #7ab0ff; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(30,109,242,0.35);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all 0.3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pow-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 16px 24px 24px;
    box-shadow: 0 20px 40px rgba(15,36,71,0.12);
    transform: translateY(-130%); transition: transform 0.35s ease;
    align-items: stretch; gap: 4px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-cta { margin: 10px 0 0; }
  .hero .container { padding: 84px 20px; }
  .hero h1 { font-size: 34px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .grid-3, .grid-4, .why-grid, .pow-grid, .app-grid { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .tb-left, .tb-right { justify-content: center; }
}

/* ---------- Inquiry form ---------- */
.inquiry-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.2s ease; color: var(--text-dark); background: var(--bg-white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,109,242,0.12);
}
.form-field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: 14px; text-align: center; color: var(--blue); font-weight: 600; }
.form-note.error { color: #e11d48; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(30,109,242,0.28) 0%, transparent 60%),
    var(--grad-main);
  color: #fff; padding: 80px 0 64px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero .container { position: relative; z-index: 2; }
.crumbs { font-size: 13.5px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,0.75); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 6px; }
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 660px; margin: 0 auto; }

/* ---------- Product layout ---------- */
.product-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 48px 0 80px; align-items: start; }
.sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 0; position: sticky; top: 96px; box-shadow: var(--shadow); }
.side-title { font-size: 15px; font-weight: 800; color: var(--text-dark); padding: 6px 22px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.sidebar li > a {
  display: flex; align-items: center; gap: 10px; padding: 11px 22px; font-size: 14px; font-weight: 600;
  color: var(--text-body); border-left: 3px solid transparent; transition: all 0.2s ease; cursor: pointer;
}
.sidebar li > a:hover { color: var(--blue); background: var(--blue-soft); }
.sidebar li > a.active { color: var(--blue); border-left-color: var(--blue); background: var(--blue-soft); font-weight: 700; }
.sidebar li > a .ci { width: 20px; height: 20px; flex-shrink: 0; }
.sidebar li > a .ci svg { width: 18px; height: 18px; }
.sidebar li > a .count { margin-left: auto; font-size: 11.5px; color: var(--text-muted); background: var(--bg-gray); padding: 1px 8px; border-radius: 999px; }
.sidebar li > a .arrow { font-size: 14px; color: var(--text-muted); transition: transform 0.25s ease; }
.sidebar li.open > a .arrow { transform: rotate(90deg); }
.sidebar ul.sub { display: none; padding: 2px 0 8px; }
.sidebar li.open > ul.sub { display: block; }
.sidebar ul.sub li a { padding: 8px 22px 8px 46px; font-size: 13.5px; font-weight: 500; }
.sidebar ul.sub li a.active { color: var(--blue); border-left-color: var(--blue); background: var(--blue-soft); font-weight: 700; }

.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sort-bar .count { font-size: 14px; color: var(--text-muted); }
.sort-bar .count strong { color: var(--text-dark); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pg-btn, .pg-num {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--text-body);
  font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.pg-num.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Product detail ---------- */
.detail-main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; margin-bottom: 36px; box-shadow: var(--shadow);
}
.detail-media {
  background: linear-gradient(145deg, #0a1428, #0b3f91);
  border-radius: var(--radius-sm); min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  position: relative; overflow: hidden;
}
.detail-media::after {
  content: ""; position: absolute; inset: 0; opacity: 0.1;
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 28px 28px;
}
.detail-media svg { width: 130px; height: 130px; color: rgba(255,255,255,0.85); position: relative; z-index: 2; }
.d-model-lg { font-size: 26px; font-weight: 800; color: #fff; position: relative; z-index: 2; letter-spacing: 1px; }
.detail-info .d-cat { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.detail-info h1 { font-size: 28px; color: var(--text-dark); margin-bottom: 12px; line-height: 1.25; }
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.d-tag { font-size: 12px; background: var(--blue-soft); color: var(--blue); padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.d-desc { font-size: 15.5px; color: var(--text-body); margin-bottom: 24px; line-height: 1.8; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-specs h2 { font-size: 24px; color: var(--text-dark); margin-bottom: 20px; }
.spec-table { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(odd) { background: var(--bg-gray); }
.spec-label { font-weight: 700; color: var(--text-dark); font-size: 14.5px; }
.spec-value { font-size: 14.5px; color: var(--text-body); }
@media (max-width: 768px) {
  .detail-main { grid-template-columns: 1fr; padding: 22px; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Detail enhanced ---------- */
.detail-stats { margin: 0 0 36px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: linear-gradient(145deg, #0a1428, #0b3f91); color: #fff;
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
}
.stat-card .stat-v { font-size: 22px; font-weight: 800; color: #7ab0ff; line-height: 1.2; word-break: break-word; }
.stat-card .stat-k { font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.d-cat-line { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 1px; text-transform: uppercase; position: relative; z-index: 2; }
.detail-related { margin-top: 44px; }
.detail-related h2 { font-size: 24px; color: var(--text-dark); margin-bottom: 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rel-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; transition: all 0.25s ease; }
.rel-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.rel-media { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(145deg, #0a1428, #0b3f91); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rel-media svg { width: 26px; height: 26px; color: rgba(255,255,255,0.85); }
.rel-body b { display: block; font-size: 15px; color: var(--text-dark); }
.rel-body span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hero Slider ---------- */
.hero-slider { padding: 0; position: relative; overflow: hidden; min-height: 640px; display: flex; }
.hero-slider .slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  background-size: cover; background-position: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  display: flex; align-items: center;
}
.hero-slider .slide.active { opacity: 1; visibility: visible; position: relative; }
.slide-inner { width: 100%; }
.slide-copy { max-width: 720px; padding: 120px 0; }
.slide-copy h1 { font-size: 52px; font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 22px; color:#fff; }
.slide-copy h1 span { color: #7ab0ff; }
.hero-slider .slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.25); transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}
.hero-slider .slide-arrow:hover { background: var(--blue); border-color: var(--blue); }
.hero-slider .slide-arrow.prev { left: 24px; }
.hero-slider .slide-arrow.next { right: 24px; }
.slide-dots {
  position: absolute; bottom: 28px; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: center; gap: 10px;
}
.slide-dots .dot {
  width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; transition: all 0.3s ease; padding: 0;
}
.slide-dots .dot.active { width: 30px; background: #fff; }
@media (max-width: 768px) {
  .hero-slider { min-height: 520px; }
  .slide-copy { padding: 80px 0; }
  .slide-copy h1 { font-size: 32px; }
  .hero-slider .slide-arrow.prev { left: 10px; }
  .hero-slider .slide-arrow.next { right: 10px; }
}

/* Hero slide: left copy + right visual */
.slide-flex { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; }
.slide-copy { max-width: 640px; padding: 120px 0; }
.slide-visual { flex-shrink: 0; }
.slide-visual img {
  max-width: 520px; width: 100%; height: auto;
  border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  object-fit: cover; aspect-ratio: 4/5;
}
@media (max-width: 1024px) {
  .slide-visual img { max-width: 360px; }
}
@media (max-width: 768px) {
  .slide-flex { flex-direction: column; text-align: center; }
  .slide-copy { padding: 60px 0 10px; }
  .hero-actions { justify-content: center; }
  .slide-visual img { max-width: 260px; aspect-ratio: 4/4; margin: 0 auto 40px; }
}

/* ---------- Product image ---------- */
.pc-img, .d-img {
  width: 100%; height: 100%; object-fit: contain;
  position: relative; z-index: 2; padding: 8px;
  background: #fff;
}
.pc-media .pc-img { border-radius: 0; }
.pc-ic-fallback { display: flex; align-items: center; justify-content: center; width:100%; height:100%; position: relative; z-index: 2; }
.pc-ic-fallback svg { width: 72px; height: 72px; color: rgba(255,255,255,0.9); }
.d-img { object-fit: contain; max-height: 360px; border-radius: 0; }
.d-ic-fallback { display: flex; align-items: center; justify-content: center; min-height: 360px; }
.d-ic-fallback svg { width: 130px; height: 130px; color: rgba(255,255,255,0.85); }

/* ---------- Detail media: clean white showcase ---------- */
.detail-media {
  background: #f6f8fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.detail-media::after { display: none; }
.detail-media .d-img {
  max-height: 420px; width: auto; max-width: 100%;
  object-fit: contain; background: transparent;
}
.d-ic-fallback svg { width: 130px; height: 130px; color: #b6c6e0; }

/* ---------- Specs header (download button) ---------- */
.specs-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.specs-head h2 { margin-bottom: 0; }

/* ============================================================
   News cards — layout (was missing, causing collapsed cards)
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.news-card {
  background: #fff; border: 1px solid #e0ecfb; border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(15,63,170,0.12); }

.news-media {
  position: relative; aspect-ratio: 16/9; min-height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e6df2, #0b3f91); overflow: hidden;
}
.news-media::after {
  content: ""; position: absolute; inset: 0; opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 28px 28px;
}
.news-media svg { width: 56px; height: 56px; color: rgba(255,255,255,0.92); position: relative; z-index: 2; }
.news-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: rgba(255,255,255,0.92); color: #0b3f91;
  font-size: 11px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

.news-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #5a6b8c; font-weight: 600; margin-bottom: 10px;
}
.news-date svg { width: 14px; height: 14px; }
.news-card h3 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; color: #0f1f3d; }
.news-card p { font-size: 13.8px; line-height: 1.6; color: #3d5378; flex: 1; margin-bottom: 16px; }
.news-card .more {
  font-size: 14px; font-weight: 700; color: #1e6df2;
  display: inline-flex; align-items: center; gap: 6px;
}
.news-card .more:hover { color: #0b3f91; }

/* Home news grid (3 columns, same cards) */
#homeNews.news-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 980px) {
  .news-grid, #homeNews.news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-grid, #homeNews.news-grid { grid-template-columns: 1fr; }
}
