:root {
  --ink: #171714;
  --ink-soft: #2a2b27;
  --paper: #f7f8fa;
  --white: #ffffff;
  --line: #dfe3e6;
  --muted: #657076;
  --accent: #f2b705;
  --accent-dark: #b47800;
  --green: #2f7d59;
  --green-soft: #e7f3ed;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(18, 24, 28, 0.12);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 248, 250, 0.9);
  border-bottom: 1px solid rgba(23, 23, 20, 0.08);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 72px;
  padding: 0 32px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand,
.admin-brand {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.brand {
  font-size: 1.35rem;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 700;
  padding: 10px 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.nav-toggle {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  position: absolute;
  width: 18px;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.hero {
  align-items: flex-end;
  display: flex;
  min-height: 88vh;
  overflow: hidden;
  padding: 140px 32px 90px;
  position: relative;
}

.hero__image,
.hero__overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero__image {
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.56));
  z-index: 1;
}

.hero__content {
  color: var(--white);
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero h1 {
  font-size: 4.4rem;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 780px;
}

.hero p {
  font-size: 1.35rem;
  margin: 22px 0 32px;
  max-width: 620px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  min-height: 46px;
  padding: 12px 18px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: normal;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #1a1608;
  box-shadow: 0 10px 24px rgba(242, 183, 5, 0.26);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #ffd045;
  outline: none;
}

.button--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: 92px 32px;
}

.section__head {
  margin: 0 auto 42px;
  max-width: 780px;
  text-align: center;
}

.section__head--left {
  max-width: var(--max);
  text-align: left;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.section h2,
.contact-copy h2,
.admin-topbar h1 {
  font-size: 2.55rem;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.section__head p:not(.eyebrow),
.contact-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 14px 0 0;
}

.section--light {
  background: var(--paper);
}

.section--ink {
  background: var(--ink);
  color: var(--white);
}

.section--ink .eyebrow {
  color: var(--accent);
}

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

.section--shop {
  background: var(--white);
}

.service-grid,
.reference-grid,
.process-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: var(--max);
}

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

.reference-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.reference-card,
.process-card,
.faq-item,
.shop-shell,
.contact-form,
.contact-details,
.login-panel,
.admin-panel,
.message-card {
  border-radius: var(--radius);
}

.service-card,
.reference-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.service-card {
  min-height: 278px;
  padding: 22px;
}

.service-card__image,
.reference-card__image {
  aspect-ratio: 4 / 3;
  background: #e7ebed;
  border-radius: var(--radius);
  margin-bottom: 18px;
  object-fit: cover;
  width: 100%;
}

.service-card__mark {
  align-items: center;
  background: var(--green-soft);
  border-radius: var(--radius);
  color: var(--green);
  display: flex;
  font-size: 1.7rem;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  margin-bottom: 18px;
  width: 54px;
}

.service-card h3,
.reference-card h3,
.process-card h3,
.contact-details h3 {
  font-size: 1.12rem;
  letter-spacing: 0;
  line-height: 1.22;
  margin: 0 0 10px;
}

.service-card p,
.reference-card p,
.process-card p {
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.reference-card {
  display: flex;
  flex-direction: column;
}

.reference-card__image {
  border-radius: 0;
  margin: 0;
}

.reference-card__body {
  padding: 18px;
}

.process-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 320px;
  padding: 22px;
}

.process-card strong {
  color: var(--accent);
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 20px;
}

.process-card p {
  color: rgba(255, 255, 255, 0.74);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 900px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(47, 125, 89, 0.16);
  overflow: hidden;
}

.faq-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  font-weight: 850;
  justify-content: space-between;
  line-height: 1.25;
  padding: 20px 22px;
  text-align: left;
  width: 100%;
}

.faq-question span {
  overflow-wrap: anywhere;
}

.faq-question::after {
  color: var(--green);
  content: "+";
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 900;
  margin-left: 16px;
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  color: var(--muted);
  display: none;
  margin: 0;
  padding: 0 22px 20px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.shop-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0 auto;
  max-width: var(--max);
  min-height: 220px;
  padding: 26px;
  text-align: center;
}

.shop-shell p {
  color: var(--muted);
  margin: 0 auto 20px;
  max-width: 620px;
}

.section--contact {
  background: var(--ink);
  color: var(--white);
}

.contact-layout {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  margin: 0 auto;
  max-width: var(--max);
}

.contact-copy h2 {
  max-width: 520px;
}

.contact-copy > p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
}

.contact-details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 34px;
  padding: 24px;
}

.contact-details p,
.contact-details dd {
  color: rgba(255, 255, 255, 0.74);
}

.contact-details dl {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
}

.contact-details div {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.contact-details dt {
  color: var(--accent);
  font-weight: 850;
}

.contact-details dd {
  margin: 4px 0 0;
}

.contact-form {
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 16px;
  padding: 26px;
}

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

label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label span {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
textarea,
select {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 89, 0.14);
  outline: none;
}

.form-status {
  color: var(--green);
  font-weight: 800;
  margin: 0;
  min-height: 22px;
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  background: #10110f;
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 54px 32px 28px;
}

.site-footer > * {
  max-width: 360px;
}

.site-footer h2,
.site-footer h3 {
  letter-spacing: 0;
  margin: 0 0 12px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  grid-column: 1 / -1;
  margin: 10px 0 0;
  max-width: none;
  padding-top: 22px;
}

.admin-page {
  background: #eef1f3;
}

.admin-shell {
  min-height: 100vh;
}

.login-panel {
  background: var(--white);
  box-shadow: var(--shadow);
  left: 50%;
  max-width: 430px;
  padding: 34px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
}

.login-panel h1 {
  font-size: 2rem;
  letter-spacing: 0;
  margin: 18px 0 22px;
}

.admin-login {
  display: grid;
  gap: 16px;
}

.admin-app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  min-height: 100vh;
  padding: 26px 18px;
  position: sticky;
  top: 0;
}

.admin-sidebar .admin-brand {
  color: var(--white);
  display: inline-block;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.admin-sidebar p {
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.admin-tabs {
  display: grid;
  gap: 8px;
}

.admin-tabs button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
}

.admin-tabs button.is-active,
.admin-tabs button:hover,
.admin-tabs button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  outline: none;
}

.admin-main {
  min-width: 0;
  padding: 30px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-panels {
  display: grid;
  gap: 18px;
}

.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
}

.admin-panel h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
  margin: 0 0 18px;
}

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

.admin-form-grid .span-2 {
  grid-column: 1 / -1;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-item {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-item__head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-item__head strong {
  overflow-wrap: anywhere;
}

.danger-link {
  background: #fff4f2;
  border: 1px solid #ffd6d0;
  border-radius: var(--radius);
  color: var(--danger);
  font-weight: 850;
  min-height: 38px;
  padding: 8px 12px;
}

.upload-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.image-preview {
  aspect-ratio: 16 / 9;
  background: #e7ebed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

.admin-save-status {
  margin-bottom: 16px;
}

.message-card {
  background: #fbfcfd;
  border: 1px solid var(--line);
  padding: 16px;
}

.message-card h3 {
  margin: 0 0 6px;
}

.message-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
}

.message-card p {
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1020px) {
  .service-grid,
  .reference-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout,
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
  }

  .admin-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-tabs button {
    text-align: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
    gap: 0;
    left: 18px;
    padding: 8px;
    position: absolute;
    right: 18px;
    top: 72px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 84vh;
    padding: 118px 20px 64px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .section {
    padding: 66px 20px;
  }

  .section h2,
  .contact-copy h2,
  .admin-topbar h1 {
    font-size: 2rem;
  }

  .service-grid,
  .reference-grid,
  .process-grid,
  .form-grid,
  .admin-form-grid,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .process-card {
    min-height: auto;
  }

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

  .admin-main {
    padding: 18px;
  }

  .admin-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions .button {
    flex: 1;
  }

  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .button,
  .admin-tabs button {
    width: 100%;
  }
}

/* ENETZ redesign */
.site-header {
  background: rgba(255, 255, 255, 0.94);
}

.hero {
  align-items: center;
  min-height: 92vh;
}

.hero__content {
  padding-top: 24px;
}

.hero__eyebrow {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 930px;
}

.hero p {
  max-width: 760px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button--glass,
.button--ghost-dark {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--white);
}

.button--glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.button--ghost-dark {
  background: rgba(255, 255, 255, 0.08);
}

.hero__stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 190px));
  margin-top: 42px;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  padding: 16px;
}

.hero-stat strong,
.trust-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.trust-strip {
  padding-bottom: 32px;
  padding-top: 32px;
}

.trust-strip__inner {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.trust-card {
  background: var(--white);
  border: 1px solid rgba(47, 125, 89, 0.16);
  border-radius: var(--radius);
  padding: 18px;
}

.trust-card strong {
  color: var(--green);
}

.trust-card span {
  color: var(--muted);
  display: block;
  font-weight: 750;
}

.why-layout {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  margin: 0 auto;
  max-width: var(--max);
}

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

.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 210px;
  padding: 22px;
}

.why-card__number {
  color: var(--accent-dark);
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.why-card h3,
.system-card strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.why-card p,
.system-card p {
  color: var(--muted);
  margin: 0;
}

.section--calculator {
  background: var(--paper);
  padding-bottom: 72px;
  padding-top: 72px;
}

.calculator-band {
  background:
    linear-gradient(135deg, rgba(23, 23, 20, 0.96), rgba(47, 125, 89, 0.92)),
    #171714;
  border-radius: var(--radius);
  color: var(--white);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  margin: 0 auto;
  max-width: var(--max);
  padding: 34px;
}

.calculator-band h2 {
  font-size: 2.25rem;
  line-height: 1.08;
  margin: 0;
}

.calculator-band p {
  color: rgba(255, 255, 255, 0.74);
  margin: 16px 0 0;
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.calculator-list {
  align-content: center;
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.calculator-list li {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 14px;
}

.calculator-list span {
  color: var(--accent);
  font-weight: 900;
}

.calculator-list p {
  color: var(--white);
  margin: 0;
}

.section--ink .section__head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  max-width: 760px;
}

.systems-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.system-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 180px;
  padding: 22px;
}

a.system-card:hover,
a.system-card:focus-visible {
  border-color: rgba(47, 125, 89, 0.45);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.service-card {
  position: relative;
}

.service-card::after {
  background: var(--accent);
  content: "";
  height: 4px;
  left: 22px;
  position: absolute;
  right: 22px;
  top: 0;
}

@media (max-width: 1020px) {
  .trust-strip__inner,
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-layout,
  .calculator-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: calc(100svh - 64px);
    padding: 96px 20px 42px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero p {
    font-size: 1rem;
    margin: 16px 0 22px;
  }

  .hero__eyebrow {
    margin-bottom: 12px;
  }

  .hero__stats,
  .trust-strip__inner,
  .why-grid,
  .systems-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    display: none;
  }

  .calculator-band {
    padding: 24px;
  }

  .calculator-band h2 {
    font-size: 1.8rem;
  }
}

/* ENETZ smart-systems redesign v2 */
:root {
  --ink: #0f1816;
  --ink-soft: #1d2a26;
  --paper: #f3f7f5;
  --white: #ffffff;
  --line: #d7e3dc;
  --muted: #607069;
  --accent: #f2b705;
  --accent-dark: #9a6a00;
  --green: #0f8c57;
  --green-soft: #e8f5ee;
  --shadow: 0 24px 70px rgba(15, 24, 22, 0.14);
}

.site-header {
  background: rgba(9, 17, 15, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  color: var(--white);
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  height: 32px;
  overflow: hidden;
}

.brand__logo {
  display: block;
  height: 30px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle span {
  background: var(--white);
}

.hero {
  align-items: center;
  min-height: 94svh;
  padding: 132px 32px 96px;
}

.hero__image {
  filter: saturate(0.96) contrast(1.04);
  object-position: center center;
}

.hero__overlay {
  background:
    radial-gradient(circle at 72% 48%, rgba(15, 140, 87, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(3, 8, 7, 0.88) 0%, rgba(5, 12, 11, 0.74) 38%, rgba(5, 12, 11, 0.22) 72%, rgba(5, 12, 11, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.38));
}

.hero__content {
  padding-top: 42px;
}

.hero__eyebrow {
  align-items: center;
  color: #c9f3df;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 10px;
  letter-spacing: 0.08em;
}

.hero__eyebrow::before {
  background: var(--accent);
  content: "";
  display: inline-block;
  height: 2px;
  width: 42px;
}

.hero h1 {
  font-size: 4.25rem;
  letter-spacing: 0;
  line-height: 0.92;
  max-width: 980px;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  max-width: 760px;
}

.hero__actions {
  gap: 14px;
}

.button {
  border-radius: 6px;
  min-height: 50px;
  padding: 13px 20px;
}

.button--primary {
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(242, 183, 5, 0.24);
}

.button--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 920px;
}

.hero-stat {
  background: rgba(10, 19, 17, 0.62);
  border-color: rgba(255, 255, 255, 0.15);
  min-height: 112px;
}

.hero-stat strong {
  color: var(--accent);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.76);
}

.trust-strip {
  background: transparent;
  margin-top: -52px;
  padding: 0 32px 42px;
  position: relative;
  z-index: 5;
}

.trust-strip__inner {
  background: var(--white);
  border: 1px solid rgba(15, 140, 87, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  gap: 0;
  overflow: hidden;
}

.trust-card {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 22px;
}

.trust-card:last-child {
  border-right: 0;
}

.trust-card strong {
  color: var(--green);
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.why-section {
  background:
    linear-gradient(90deg, rgba(15, 24, 22, 0.04) 0 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
}

.why-layout {
  align-items: start;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
}

.why-card {
  box-shadow: 0 14px 35px rgba(15, 24, 22, 0.06);
}

.why-card__number {
  color: var(--green);
}

.section h2,
.contact-copy h2,
.admin-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

#services {
  background: var(--white);
}

.service-grid {
  display: grid;
  align-items: stretch;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
}

.service-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 24, 22, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.service-group__media {
  background:
    linear-gradient(135deg, rgba(15, 140, 87, 0.95), rgba(15, 24, 22, 0.92)),
    var(--green);
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  min-height: 0;
  position: relative;
}

.service-group__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-group__media::after {
  background: linear-gradient(180deg, transparent, rgba(15, 24, 22, 0.46));
  content: "";
  inset: 0;
  position: absolute;
}

.service-group__mark {
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  font-size: 3.5rem;
  font-weight: 900;
  height: 100%;
  justify-content: center;
}

.service-group__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.service-group__label {
  color: var(--green);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.service-group h3 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

.service-group__list {
  display: grid;
  gap: 12px;
}

.service-line {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.service-line strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.service-line p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.section--calculator {
  background:
    linear-gradient(180deg, var(--white), var(--paper));
}

.calculator-band {
  background:
    linear-gradient(135deg, rgba(15, 24, 22, 0.98), rgba(12, 72, 49, 0.94)),
    var(--ink);
  box-shadow: var(--shadow);
  padding: 42px;
}

.section--ink {
  background:
    linear-gradient(135deg, #0f1816, #142821 58%, #101613);
}

.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  min-height: 300px;
}

.process-card strong {
  color: var(--accent);
  font-size: 2.4rem;
}

.systems-section {
  background: var(--white);
}

.system-card {
  background: linear-gradient(180deg, #ffffff, #f6faf8);
  border-color: var(--line);
  box-shadow: 0 12px 26px rgba(15, 24, 22, 0.05);
}

.reference-card {
  box-shadow: 0 12px 30px rgba(15, 24, 22, 0.07);
}

.section--contact {
  background:
    linear-gradient(135deg, rgba(15, 24, 22, 0.98), rgba(23, 30, 26, 0.96)),
    var(--ink);
}

@media (max-width: 1180px) {
  .hero h1 {
    font-size: 3.8rem;
  }

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

  .hero__stats,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(9, 17, 15, 0.92);
  }

  .site-nav {
    background: #101916;
    border-color: rgba(255, 255, 255, 0.14);
  }

  .hero {
    min-height: 92svh;
    padding: 96px 20px 72px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .hero__stats {
    display: none;
  }

  .trust-strip {
    margin-top: -34px;
    padding: 0 18px 34px;
  }

  .trust-strip__inner {
    grid-template-columns: 1fr;
  }

  .trust-card {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .trust-card:last-child {
    border-bottom: 0;
  }

  .why-layout,
  .why-grid,
  .service-grid,
  .systems-grid,
  .reference-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-group {
    grid-template-columns: 1fr;
  }

  .service-group__media {
    min-height: 190px;
  }

  .service-group__body,
  .calculator-band {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Local image-only homepage hero test. */
.hero.hero--image-only {
  aspect-ratio: 16 / 9;
  background: #050806;
  min-height: 0;
  padding: 0;
}

.hero--image-only .hero__image {
  filter: none;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 760px) {
  .hero.hero--image-only {
    aspect-ratio: auto;
    min-height: 86svh;
  }

  .hero--image-only .hero__image {
    object-position: 7% center;
  }

}

/* Shared ENETZ logo treatment. */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(54, 79, 65, 0.16);
  box-shadow: 0 10px 28px rgba(25, 41, 32, 0.1);
  color: #24352c;
}

.brand {
  aspect-ratio: 1102 / 343;
  background-color: #364f41;
  height: 43px;
  width: auto;
  -webkit-mask: url("/uploads/imported/enetz-logo-full.png") left center / contain no-repeat;
  mask: url("/uploads/imported/enetz-logo-full.png") left center / contain no-repeat;
}

.brand__logo {
  height: 43px;
  opacity: 0;
  width: auto;
}

.site-nav a {
  color: #24352c;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eef3f0;
  color: #17251d;
}

.nav-toggle {
  background: #f4f7f5;
  border-color: rgba(54, 79, 65, 0.24);
}

.nav-toggle span {
  background: #364f41;
}

@media (max-width: 760px) {
  .site-header,
  .site-nav {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-nav {
    border-color: rgba(54, 79, 65, 0.18);
  }
}

/* Clickable service and system navigation. */
.nav-menu {
  position: relative;
}

.nav-menu__toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: #24352c;
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
  min-height: 42px;
  padding: 10px 14px;
}

.nav-menu__toggle:hover,
.nav-menu__toggle:focus-visible,
.nav-menu.is-open .nav-menu__toggle {
  background: #eef3f0;
  color: #17251d;
  outline: none;
}

.nav-menu__toggle span {
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.nav-menu.is-open .nav-menu__toggle span,
.nav-menu:focus-within .nav-menu__toggle span {
  transform: rotate(180deg);
}

.nav-menu__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(15, 24, 22, 0.16);
  display: grid;
  left: 0;
  min-width: 190px;
  opacity: 0;
  padding: 7px;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 1px);
  transform: translateY(-5px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-menu:hover .nav-menu__panel,
.nav-menu:focus-within .nav-menu__panel,
.nav-menu.is-open .nav-menu__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu__panel a {
  border-radius: 4px;
  padding: 10px 12px;
}

.service-line {
  border: 1px solid transparent;
  border-top-color: var(--line);
  border-radius: 6px;
  display: block;
  padding: 13px 34px 13px 12px;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.service-line::after {
  color: var(--green);
  content: "→";
  font-size: 1.2rem;
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 13px;
  transition: transform 0.18s ease;
}

.service-line:hover,
.service-line:focus-visible {
  background: #eef7f2;
  border-color: rgba(15, 140, 87, 0.42);
  box-shadow: 0 10px 24px rgba(15, 24, 22, 0.09);
  outline: none;
  transform: translateY(-2px);
}

.service-line:hover::after,
.service-line:focus-visible::after {
  transform: translateX(3px);
}

.service-line__link,
.system-card__link {
  color: var(--green);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 850;
  margin-top: 10px;
}

.service-group:has(.service-line:hover),
.service-group:has(.service-line:focus-visible) {
  border-color: rgba(15, 140, 87, 0.34);
  box-shadow: 0 20px 42px rgba(15, 24, 22, 0.12);
}

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

.system-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.system-card__image {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.system-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.system-card__link {
  margin-top: auto;
  padding-top: 18px;
}

.system-card:hover,
.system-card:focus-visible {
  border-color: rgba(15, 140, 87, 0.48);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

/* Service and system detail pages. */
.detail-page {
  background: var(--white);
}

.detail-hero {
  align-items: flex-end;
  color: var(--white);
  display: flex;
  min-height: 590px;
  overflow: hidden;
  padding: 150px 32px 82px;
  position: relative;
}

.detail-hero__image,
.detail-hero__shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.detail-hero__image {
  object-fit: cover;
}

.detail-hero__shade {
  background: linear-gradient(90deg, rgba(5, 13, 10, 0.92), rgba(5, 13, 10, 0.64) 52%, rgba(5, 13, 10, 0.24));
}

.detail-hero__inner,
.detail-content__inner,
.detail-cta__inner {
  margin: 0 auto;
  max-width: var(--max);
  position: relative;
  width: 100%;
}

.breadcrumbs {
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--white);
  outline: none;
  text-decoration: underline;
}

.detail-hero .eyebrow {
  color: #bdebd5;
}

.detail-hero h1 {
  font-size: 3.7rem;
  line-height: 1;
  margin: 0;
  max-width: 900px;
}

.detail-hero__intro {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.25rem;
  margin: 22px 0 0;
  max-width: 790px;
}

.detail-content {
  padding: 88px 32px;
}

.detail-lead {
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.detail-sections {
  display: grid;
  gap: 0;
}

.detail-section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 36px;
}

.detail-section + .detail-section {
  padding-top: 36px;
}

.detail-section h2,
.detail-benefits h2,
.detail-faq h2 {
  font-size: 2rem;
  line-height: 1.12;
  margin: 0 0 16px;
}

.detail-section p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0;
}

.detail-benefits {
  align-self: start;
  background: var(--paper);
  border-left: 4px solid var(--green);
  padding: 28px;
  position: sticky;
  top: 104px;
}

.detail-benefits ul {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-benefits li {
  color: #33443b;
  padding-left: 24px;
  position: relative;
}

.detail-benefits li::before {
  color: var(--green);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.detail-faq {
  background: var(--green-soft);
  margin-top: 76px;
  padding: 48px;
}

.detail-faq__list {
  display: grid;
  gap: 10px;
}

.detail-faq details {
  background: var(--white);
  border: 1px solid rgba(15, 140, 87, 0.18);
  padding: 0 20px;
}

.detail-faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 18px 32px 18px 0;
}

.detail-faq details p {
  color: var(--muted);
  margin: 0;
  padding: 0 0 20px;
}

.detail-cta {
  background: var(--ink);
  color: var(--white);
  padding: 68px 32px;
}

.detail-cta__inner {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.detail-cta h2 {
  font-size: 2.35rem;
  margin: 0;
}

.detail-cta p {
  color: rgba(255, 255, 255, 0.72);
  margin: 10px 0 0;
}

.admin-subeditor {
  background: #f7faf8;
  border: 1px solid var(--line);
  margin-top: 18px;
  padding: 18px;
}

.admin-subeditor h3 {
  margin: 0 0 14px;
}

.admin-subeditor .admin-item {
  background: var(--white);
}

@media (max-width: 1020px) {
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-lead {
    grid-template-columns: 1fr;
  }

  .detail-benefits {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-menu {
    width: 100%;
  }

  .nav-menu__toggle {
    justify-content: space-between;
    width: 100%;
  }

  .nav-menu__panel {
    background: #f4f7f5;
    border: 0;
    box-shadow: none;
    display: none;
    min-width: 0;
    opacity: 1;
    padding: 4px 8px 8px 20px;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .nav-menu.is-open .nav-menu__panel {
    display: grid;
  }

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

  .detail-hero {
    min-height: 560px;
    padding: 120px 20px 58px;
  }

  .detail-hero h1 {
    font-size: 2.35rem;
  }

  .detail-hero__intro {
    font-size: 1.05rem;
  }

  .detail-content {
    padding: 64px 20px;
  }

  .detail-faq {
    margin-top: 54px;
    padding: 28px 18px;
  }

  .detail-cta {
    padding: 52px 20px;
  }

  .detail-cta__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-cta .button {
    width: 100%;
  }
}
