:root {
  --navy: #08223f;
  --navy-2: #0d3158;
  --ink: #102033;
  --muted: #607086;
  --line: #d9e3ee;
  --paper: #ffffff;
  --soft: #eef5f8;
  --sun: #ffbd22;
  --orange: #f47b20;
  --green: #2c9b64;
  --shadow: 0 20px 60px rgba(8, 34, 63, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 227, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: var(--navy);
  font-weight: 800;
}

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: center;
  display: flex;
  gap: 24px;
  color: #33465c;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a:hover {
  color: var(--orange);
}

.primary-nav a.active {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--sun);
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--sun), var(--orange));
  color: #152033;
  box-shadow: 0 12px 24px rgba(244, 123, 32, 0.22);
}

.header-cta {
  padding: 0 18px;
}

.btn {
  padding: 0 20px;
}

.btn-secondary {
  background: var(--navy);
  color: white;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 6vw, 86px) clamp(18px, 4vw, 64px) clamp(28px, 4vw, 52px);
  background:
    radial-gradient(circle at 95% 10%, rgba(255, 189, 34, 0.22), transparent 28%),
    linear-gradient(115deg, #f7fbfd 0%, #ffffff 58%, #eaf5f2 100%);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
}

.hero p,
.section-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-copy > p {
  max-width: 680px;
  margin: 24px 0 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

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

.trust-row strong {
  color: var(--navy);
  font-size: 19px;
}

.hero-media {
  overflow: hidden;
  border-radius: 0 0 0 80px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: min(62vh, 620px);
  object-fit: cover;
}

.category-band,
.scheme-section,
.solutions-section,
.shop-section,
.projects-section,
.resources-section,
.contact-section {
  padding: clamp(50px, 7vw, 96px) clamp(18px, 4vw, 64px);
}

.category-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  background: var(--navy);
}

.category-card {
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: white;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, background 180ms ease;
}

.category-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.category-card strong,
.category-card small {
  display: block;
}

.category-card strong {
  margin-top: 16px;
}

.category-card small {
  margin-top: 7px;
  color: #c8d7e5;
  line-height: 1.4;
}

.icon {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sun);
  position: relative;
}

.icon::after,
.icon::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid var(--navy);
}

.icon.sun::after {
  border-radius: 50%;
}

.icon.battery::after {
  border-radius: 3px;
}

.icon.pump::after {
  border-radius: 50% 50% 4px 4px;
}

.icon.cell::after {
  transform: rotate(45deg);
}

.icon.mill::after {
  border-radius: 2px;
  transform: rotate(12deg);
}

.icon.charger::after {
  border-radius: 3px;
  transform: translateX(-2px);
}

.icon.charger::before {
  inset: 13px 9px 13px 26px;
  border: 0;
  background: var(--navy);
}

.inner-hero {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 4vw, 64px);
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 189, 34, 0.2), transparent 28%),
    linear-gradient(115deg, #f7fbfd 0%, #ffffff 60%, #eaf5f2 100%);
}

.inner-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.inner-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.section-copy {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-copy h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy p,
.contact-section p {
  margin: 16px 0 0;
}

.scheme-section {
  background: #f7fbfd;
}

.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.subsidy-grid article {
  padding: 24px;
  border-left: 5px solid var(--sun);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(8, 34, 63, 0.08);
}

.subsidy-grid strong,
.subsidy-grid span,
.subsidy-grid small {
  display: block;
}

.subsidy-grid strong {
  color: var(--navy);
  font-size: 18px;
}

.subsidy-grid span {
  margin-top: 8px;
  color: var(--orange);
  font-size: 34px;
  font-weight: 800;
}

.subsidy-grid small {
  margin-top: 6px;
  color: var(--muted);
}

.scheme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 28px 28px 28px 54px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  line-height: 1.85;
  font-weight: 600;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.lead-form h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: #42536a;
  font-size: 13px;
  font-weight: 800;
}

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

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-note a {
  color: var(--orange);
  font-weight: 800;
}

.info-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 32px rgba(8, 34, 63, 0.08);
}

.info-panel h3 {
  margin: 0;
  color: var(--navy);
}

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

.info-panel a {
  color: var(--orange);
  font-weight: 800;
}

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

.solution-grid article,
.product-card,
.project-strip article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 14px 34px rgba(8, 34, 63, 0.07);
}

.solution-grid article {
  padding: 28px;
}

.solution-grid h3,
.product-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.solution-grid p,
.solution-grid li,
.product-card p,
.project-strip small {
  color: var(--muted);
  line-height: 1.6;
}

.solution-grid ul {
  padding-left: 19px;
}

.solution-grid a,
.resource-list a {
  color: var(--orange);
  font-weight: 800;
}

.shop-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  background: #f7fbfd;
}

.shop-section.shop-page {
  padding-top: 56px;
}

.shop-section .section-copy,
.shop-toolbar,
.product-grid {
  grid-column: 1;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--navy);
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.filter.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

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

.product-card {
  display: grid;
  min-height: 390px;
  overflow: hidden;
}

.product-visual {
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 10px;
  background: #f6f9fc;
}

.product-visual img {
  width: 100%;
  height: 112px;
  object-fit: contain;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.spec-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
}

.stock {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.product-actions .btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
}

.cart-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  grid-column: 2;
  grid-row: 1 / span 4;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.cart-panel h3 {
  margin: 0 0 16px;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 90px;
  color: #d7e4ef;
  font-size: 14px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.clear-cart {
  width: 100%;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.projects-section {
  background: white;
}

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

.project-strip article {
  min-height: 190px;
  padding: 24px;
  background:
    linear-gradient(180deg, transparent, rgba(8, 34, 63, 0.86)),
    linear-gradient(135deg, #bed7e7, #f5c961);
  color: white;
}

.project-strip span {
  color: var(--sun);
  font-size: 13px;
  font-weight: 800;
}

.project-strip strong {
  display: block;
  margin-top: 74px;
  font-size: 22px;
}

.project-strip small {
  color: #e5eef7;
}

.resources-section {
  background: var(--soft);
}

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

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

.policy-grid article {
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 26px rgba(8, 34, 63, 0.07);
}

.policy-grid h3 {
  margin: 0;
  color: var(--navy);
}

.policy-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.resource-list a {
  min-height: 88px;
  padding: 18px;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 26px rgba(8, 34, 63, 0.07);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 36px;
  align-items: start;
  background: var(--navy);
  color: white;
}

.contact-section h2 {
  color: white;
}

.contact-section p {
  max-width: 680px;
  color: #d7e4ef;
}

.contact-form {
  color: var(--ink);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.office-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.office-grid strong {
  color: var(--sun);
  font-size: 13px;
}

.office-grid span,
.office-grid a {
  color: #d7e4ef;
  font-size: 13px;
  line-height: 1.45;
}

.office-grid a {
  font-weight: 800;
}

.admin-section {
  min-height: calc(100vh - 170px);
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 64px);
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 189, 34, 0.22), transparent 30%),
    linear-gradient(115deg, #f7fbfd 0%, #ffffff 64%, #eaf5f2 100%);
}

.admin-card {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.admin-wide {
  max-width: 980px;
}

.admin-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.admin-card p,
.admin-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.admin-editor label:nth-last-of-type(-n + 3) {
  grid-column: 1 / -1;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.admin-tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--navy);
  background: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.admin-tab-panel {
  display: none;
  grid-column: 1 / -1;
  gap: 14px;
}

.admin-tab-panel.active {
  display: grid;
}

.json-label {
  grid-column: 1 / -1;
}

.json-editor {
  min-height: 220px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
}

.json-editor-large {
  min-height: 560px;
}

.admin-help {
  margin: -6px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-output {
  width: 100%;
  min-height: 160px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 64px);
  color: #d7e4ef;
  background: #061a30;
}

.site-footer strong {
  color: white;
}

.site-footer p {
  margin: 8px 0 0;
}

.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 340px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: white;
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform 220ms ease;
}

.toast.show {
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .primary-nav {
    gap: 14px;
    font-size: 13px;
  }

  .category-band,
  .product-grid,
  .resource-list,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-section {
    grid-template-columns: 1fr;
  }

  .shop-section .section-copy,
  .shop-toolbar,
  .product-grid,
  .cart-panel {
    grid-column: 1;
  }

  .cart-panel {
    position: static;
    grid-row: auto;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .primary-nav.open {
    display: grid;
    grid-column: 1 / -1;
    justify-self: stretch;
    gap: 0;
    padding: 10px 0 0;
  }

  .primary-nav.open a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .hero,
  .scheme-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    border-radius: 0 0 0 42px;
  }

  .hero-media img {
    height: 360px;
  }

  .subsidy-grid,
  .solution-grid,
  .project-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero p,
  .section-copy p,
  .contact-section p {
    font-size: 16px;
  }

  .category-band,
  .product-grid,
  .resource-list,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .subsidy-grid span {
    font-size: 28px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .office-grid,
  .admin-editor {
    grid-template-columns: 1fr;
  }

  .admin-editor label:nth-last-of-type(-n + 3) {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
  }
}
