:root {
  --bg: #f4f8f5;
  --surface: #ffffff;
  --surface-soft: #e8f5ec;
  --text: #17211b;
  --muted: #607066;
  --line: #cadbd0;
  --primary: #1e7f47;
  --primary-dark: #125f34;
  --accent: #0c6b7b;
  --shadow: 0 18px 40px rgba(23, 33, 27, 0.11);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(202, 219, 208, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 1.08rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: #2d3b32;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--surface-soft);
  color: var(--primary-dark);
}

.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-switch button {
  min-width: 44px;
  border: 0;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-switch button.is-active {
  color: #fff;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.app-shell {
  min-height: calc(100vh - 132px);
}

.section {
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 56px);
}

.section:nth-child(even) {
  background: var(--surface);
}

.inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  padding-top: clamp(34px, 7vw, 76px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
}

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

.button.secondary {
  border-color: var(--line);
  color: var(--primary-dark);
  background: var(--surface);
}

.visual-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dbeee0;
  box-shadow: var(--shadow);
}

.visual-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, rgba(30, 127, 71, 0.15), transparent 48%),
    repeating-linear-gradient(105deg, transparent 0 30px, rgba(255, 255, 255, 0.5) 31px 33px),
    linear-gradient(180deg, #c6e8d0 0%, #eff8f1 100%);
}

.solar-grid {
  position: absolute;
  right: -28px;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 8px;
  transform: perspective(560px) rotateX(54deg) rotateZ(-18deg);
  transform-origin: center;
}

.solar-grid span {
  height: 46px;
  border: 1px solid rgba(12, 107, 123, 0.35);
  border-radius: 5px;
  background: linear-gradient(135deg, #155d6d, #2e91a2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.metric-stack {
  position: absolute;
  left: 22px;
  top: 24px;
  display: grid;
  gap: 12px;
}

.metric {
  width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(23, 33, 27, 0.12);
}

.metric b,
.metric span {
  display: block;
}

.metric b {
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.metric span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-title {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: 0;
}

.section-title p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.solution-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(23, 33, 27, 0.07);
}

.card {
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.solution-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 16px;
  text-decoration: none;
}

.solution-link:hover {
  border-color: rgba(30, 127, 71, 0.55);
  transform: translateY(-1px);
}

.solution-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-weight: 700;
}

.solution-link strong {
  display: block;
  line-height: 1.35;
}

.content-document {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 44px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-document h1,
.content-document h2,
.content-document h3 {
  color: var(--primary-dark);
  letter-spacing: 0;
}

.content-document p,
.content-document li {
  color: #26342b;
  line-height: 1.75;
}

.content-document img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-document.docx-document {
  width: min(1180px, 100%);
  padding: clamp(12px, 2vw, 24px);
}

.docx-viewer {
  min-height: 160px;
  overflow-x: auto;
}

.content-document .docx-wrapper {
  align-items: center;
  overflow-x: auto;
  padding: 0;
  background: transparent;
}

.content-document .docx-wrapper > section.docx {
  max-width: 100%;
  margin: 0 auto 24px;
  box-shadow: 0 10px 28px rgba(23, 33, 27, 0.16);
}

.docx-document .docx-wrapper {
  width: 100%;
}

.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(920px, 100%);
  margin: 0 auto 18px;
}

.detail-top a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: start;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface-soft);
}

.contact-box p {
  margin: 8px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

.loading-panel,
.empty-state {
  padding: 80px 22px;
  text-align: center;
}

@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

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

  .main-nav {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px 18px;
    background: var(--surface);
  }

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

  .main-nav a {
    padding: 13px 12px;
  }

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

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

@media (max-width: 520px) {
  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .site-header {
    gap: 10px;
    padding-inline: 12px;
  }

  .language-switch button {
    min-width: 38px;
  }

  .visual-panel {
    min-height: 260px;
  }

  .solar-grid {
    right: -74px;
    grid-template-columns: repeat(4, 58px);
  }
}
