:root {
  --ink: #162330;
  --muted: #657580;
  --line: #dbe6e5;
  --paper: #f4f7f6;
  --white: #ffffff;
  --green: #0d7a5f;
  --teal: #0e8d9a;
  --gold: #e8ad2c;
  --dark: #101f2a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, li, dd { overflow-wrap: anywhere; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: white;
  background: var(--green);
}
.brand-text { font-size: 18px; }
.nav { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 800; color: var(--dark); }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--green); border-bottom-color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: white; }
.lang-btn { border: 0; padding: 8px 10px; background: white; color: var(--muted); font-weight: 900; cursor: pointer; }
.lang-btn.active { background: var(--green); color: white; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.btn.primary { color: white; background: var(--green); }
.btn.secondary { color: var(--ink); background: white; border: 1px solid var(--line); }

.hero {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: center;
  padding: clamp(42px, 7vw, 90px) clamp(20px, 5vw, 72px);
  color: white;
}
.hero-home {
  background:
    linear-gradient(90deg, rgba(14,27,38,.9), rgba(14,27,38,.55)),
    url("assets/images/hero-energy-storage.jpg") center/cover;
}
.hero-expanded { min-height: calc(92vh - 67px); }
.hero-copy { max-width: 850px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero .eyebrow, .cta-band .eyebrow, .page-hero .eyebrow { color: var(--gold); }
h1 { margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.04; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.14; letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.22; letter-spacing: 0; }
.hero-lead { max-width: 760px; margin: 22px 0 0; color: #dcebec; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-panel, .contact-panel {
  padding: 24px;
  color: var(--ink);
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.35);
}
.summary-panel ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.check-list li { margin: 9px 0; }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  background: white;
}

.section { padding: clamp(54px, 7vw, 88px) clamp(20px, 5vw, 72px); }
.section.white { background: white; }
.section-head {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}
.section-head p { margin: 12px 0 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }

.category-card, .product-card, .news-card, .adv-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.category-card, .product-card, .news-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.category-card:hover, .product-card:hover, .news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13,122,95,.24);
  box-shadow: 0 16px 36px rgba(16,31,42,.08);
}
.section.white .category-card,
.section.white .product-card,
.section.white .news-card,
.section.white .adv-card {
  background: var(--paper);
}
.category-card img, .product-card img, .news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.category-card div, .product-card div, .news-card div, .adv-card { padding: 20px; }
.category-card span, .product-card span, .news-card span { color: var(--teal); font-weight: 900; }
.category-card p, .product-card p, .news-card p, .adv-card p { color: var(--muted); }
.news-card time {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.compact-cards article {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.compact-cards p { color: var(--muted); }
.capability-grid { align-items: stretch; }
.rich-copy p { margin: 0 0 14px; color: var(--muted); }

.page-hero {
  padding: clamp(46px, 7vw, 84px) clamp(20px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(15,31,42,.92), rgba(15,31,42,.58)),
    url("assets/images/hero-energy-storage.jpg") center/cover;
}
.page-hero p { max-width: 760px; color: #dcebec; font-size: 18px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 26px;
  align-items: start;
}
.catalog-side {
  position: sticky;
  top: 84px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.catalog-side h2, .catalog-side h3 { font-size: 21px; }
.catalog-side a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.catalog-side ol { margin: 0; padding-left: 20px; color: var(--muted); }
.catalog-side li { margin: 8px 0; }

.product-list { display: grid; gap: 12px; }
.product-row {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.num { color: var(--teal); font-size: 26px; font-weight: 900; }
.product-row p { margin: 0; color: var(--muted); }
.mini-link { color: var(--green); font: inherit; font-weight: 900; white-space: nowrap; }
.product-family { margin: 26px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-family h2 { font-size: 28px; }
.product-family p { color: var(--muted); }

.spec-section { background: var(--dark); color: white; }
.spec-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; color: var(--ink); background: white; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #e9f2f0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.stats div { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.stats dt { color: var(--green); font-size: 34px; font-weight: 900; }
.stats dd { margin: 6px 0 0; color: var(--muted); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.article-body {
  padding: clamp(24px, 3vw, 34px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.article-body h2 {
  margin: 28px 0 12px;
  font-size: clamp(24px, 2.4vw, 32px);
}
.article-body p {
  margin: 0 0 14px;
  color: var(--muted);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.article-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
}
.article-list li { margin: 8px 0; }
.article-sidebar {
  display: grid;
  gap: 16px;
}
.article-side-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.article-side-card p,
.article-side-card li { color: var(--muted); }
.article-side-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}
.article-links {
  display: grid;
  gap: 10px;
}
.article-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  background: var(--paper);
}
.article-links a:hover {
  border-color: rgba(13,122,95,.28);
  color: var(--green);
}
.article-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.article-link-card {
  display: block;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.article-link-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0,1fr) 380px;
  gap: 30px;
  padding: clamp(54px, 7vw, 86px) clamp(20px, 5vw, 72px);
  color: white;
  background: linear-gradient(135deg, #0d7a5f, #106b78);
}
.cta-band p { color: #dcf0ef; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-links a { padding: 7px 10px; border: 1px solid rgba(255,255,255,.32); border-radius: 6px; font-size: 13px; font-weight: 800; }

.detail-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 18px;
  background: rgba(16,31,42,.72);
}
.detail-sheet:target { display: grid; place-items: center; }
.detail-sheet-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: clamp(22px, 4vw, 36px);
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.product-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 24px;
  line-height: 34px;
  text-align: center;
}
.detail-sheet-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0,1fr);
  gap: 28px;
  align-items: start;
}
.detail-sheet-media {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-sheet-media img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: #fff;
}
.detail-intro {
  margin: 14px 0 18px;
  color: var(--muted);
}
.product-detail-table { min-width: 0; margin-top: 10px; }

.floating-inquiry {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: min(340px, calc(100vw - 36px));
}
.float-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
}
.float-form {
  display: grid;
  gap: 9px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(16,31,42,.2);
}
.float-form strong { font-size: 18px; }
.float-form span, .float-form a { color: var(--muted); font-size: 13px; }
.float-form input, .float-form select, .float-form textarea { min-height: 38px; padding: 8px 10px; font-size: 14px; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px,5vw,72px);
  color: #dce8e8;
  background: var(--dark);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; align-items: flex-start; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero,
  .section-head,
  .catalog-layout,
  .split,
  .article-layout,
  .cta-band,
  .detail-sheet-layout {
    grid-template-columns: 1fr;
  }
  .catalog-side { position: static; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }
  .brand-text { font-size: 16px; }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .header-actions .btn.primary {
    flex: 1 1 auto;
    min-width: 0;
  }
  .hero {
    min-height: auto;
    gap: 20px;
    padding: 34px 16px 42px;
  }
  .hero-expanded { min-height: auto; }
  .hero-copy,
  .hero-lead,
  .page-hero p {
    max-width: none;
  }
  .hero-panel,
  .contact-panel,
  .article-body,
  .article-side-card,
  .catalog-side,
  .compact-cards article {
    padding: 20px;
  }
  .section,
  .page-hero,
  .cta-band {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section { padding-top: 42px; padding-bottom: 42px; }
  .page-hero { padding-top: 40px; padding-bottom: 40px; }
  .category-card img,
  .product-card img,
  .news-card img {
    height: 200px;
  }
  .article-body h2 { font-size: 26px; }
}

@media (max-width: 760px) {
  h1 { font-size: clamp(30px, 9vw, 42px); }
  h2 { font-size: clamp(24px, 7vw, 32px); }
  h3 { font-size: 18px; }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
  }
  .brand { min-width: 0; }
  .brand-mark {
    width: 38px;
    height: 38px;
  }
  .brand-text {
    min-width: 0;
    font-size: 15px;
  }
  .header-actions {
    width: auto;
    gap: 8px;
  }
  .header-actions .btn.primary {
    padding: 10px 12px;
    font-size: 14px;
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }
  .nav a {
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-align: center;
    background: white;
    border-bottom-width: 1px;
    white-space: normal;
  }
  .nav a:hover,
  .nav a.active {
    background: #edf7f3;
    border-color: var(--green);
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .cta-band .btn {
    width: 100%;
  }
  .section-head {
    gap: 14px;
    margin-bottom: 22px;
  }
  .grid-3, .grid-4, .stats, .article-nav-grid { grid-template-columns: 1fr; }
  .product-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
  .product-row .mini-link { justify-self: start; }
  .catalog-side {
    padding: 16px;
  }
  .catalog-side a {
    display: inline-flex;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
  }
  .catalog-side ol { padding-left: 18px; }
  .split { gap: 20px; }
  .stats div { padding: 18px; }
  .stats dt { font-size: 28px; }
  .article-body {
    padding: 18px;
  }
  .article-meta {
    gap: 8px;
    margin-bottom: 14px;
  }
  .article-links a,
  .article-link-card {
    padding: 16px;
  }
  .cta-band {
    gap: 18px;
    padding-top: 36px;
    padding-bottom: 36px;
  }
  .social-links a {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }
  .detail-sheet {
    padding: 0;
  }
  .detail-sheet-dialog {
    width: 100%;
    max-height: 100vh;
    padding: 18px 16px 24px;
    border-radius: 0;
  }
  .detail-sheet-layout {
    gap: 16px;
  }
  .detail-sheet-media img { height: 220px; }
  .product-detail-table td,
  .product-detail-table th,
  table td,
  table th {
    padding: 10px 10px;
    font-size: 13px;
  }
  .floating-inquiry { display: none; }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    grid-template-columns: 1fr;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .nav {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .category-card img,
  .product-card img,
  .news-card img {
    height: 176px;
  }
  .hero-panel,
  .contact-panel,
  .article-body,
  .article-side-card,
  .catalog-side,
  .compact-cards article,
  .float-form {
    padding: 16px;
  }
}
