:root {
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --text: #1d2528;
  --muted: #5d6b70;
  --line: #cfd9dc;
  --strong: #0f4c5c;
  --accent: #14796f;
  --accent-2: #b05f18;
  --danger: #9b2c2c;
  --shadow: 0 18px 45px rgba(31, 47, 51, 0.12);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(244, 247, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  font-size: 20px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.menu-button {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.section-band,
.content-section,
.status-strip,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: center;
  min-height: 620px;
  padding: 74px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 166px;
  padding: 0 18px;
  color: var(--text);
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  outline: 2px solid rgba(20, 121, 111, 0.22);
  outline-offset: 2px;
}

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

.button.secondary {
  color: var(--strong);
}

.system-visual {
  margin: 0;
  padding: 18px;
  background: #182427;
  color: #eaf3f1;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-top,
.monitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.visual-top {
  margin-bottom: 16px;
  color: #a8bbb8;
  font-size: 14px;
}

.visual-top strong {
  color: #6fe0c6;
}

.monitor {
  padding: 18px;
  background: #0d1719;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.monitor-row {
  margin: 14px 0 8px;
  color: #b7c8c5;
}

.monitor-row:first-child {
  margin-top: 0;
}

.monitor-row strong {
  color: #ffffff;
  font-size: 24px;
}

.meter {
  height: 10px;
  overflow: hidden;
  background: #273538;
  border-radius: 999px;
}

.meter span {
  display: block;
  height: 100%;
  background: #39bda8;
}

.meter.amber span {
  background: #d8923c;
}

.wave {
  height: 86px;
  margin-top: 22px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 32px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.wave path {
  fill: none;
  stroke: #6fe0c6;
  stroke-width: 3;
}

.system-visual figcaption {
  margin-top: 12px;
  color: #a8bbb8;
  font-size: 14px;
}

.status-strip {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 72px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-strip > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 18px 20px;
  background: var(--surface);
}

.status-strip span {
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: #22a06b;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(34, 160, 107, 0.12);
}

.content-section {
  padding: 70px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment,
.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 84px;
  padding: 0 14px;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.segment.active,
.tab.active {
  color: #fff;
  background: var(--strong);
}

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

.system-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.system-card[hidden] {
  display: none;
}

.card-index {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent-2);
  font-weight: 800;
}

.system-card p {
  color: var(--muted);
}

.system-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 122px;
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  color: var(--strong);
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.system-card button:hover,
.system-card button:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.service-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.service-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-list {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

.tab-panel {
  display: none;
  padding: 28px;
}

.tab-panel.active {
  display: block;
}

.tab-panel p,
.tab-panel li {
  color: var(--muted);
}

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

.document-list button {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 132px;
  padding: 20px;
  color: var(--text);
  line-height: 1.35;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.document-list button:hover,
.document-list button:focus-visible {
  border-color: rgba(20, 121, 111, 0.55);
  box-shadow: 0 10px 28px rgba(31, 47, 51, 0.1);
  outline: none;
}

.document-list strong,
.document-list span {
  display: block;
}

.document-list span {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 400;
}

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  padding-bottom: 90px;
}

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

.contact-list article {
  min-height: 172px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-list span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent-2);
  font-weight: 800;
}

.contact-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.contact-list p {
  margin: 0;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(21, 30, 33, 0.58);
}

.modal[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(560px, 100%);
  padding: 28px;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 17px;
  left: 9px;
  width: 16px;
  height: 2px;
  content: "";
  background: var(--text);
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--strong);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 1020px) {
  h1 {
    font-size: 44px;
  }

  .hero,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .system-visual {
    max-width: 520px;
  }

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

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

  .menu-button {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .section-band,
  .content-section,
  .status-strip,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    gap: 34px;
    min-height: 0;
    padding: 46px 0 34px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .status-strip,
  .systems-grid,
  .document-list,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .status-strip > div {
    min-height: 62px;
  }

  .content-section {
    padding: 48px 0;
  }

  .tab-list,
  .segmented,
  .hero-actions,
  .site-footer {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .segment,
  .tab,
  .system-card button {
    width: 100%;
  }
}
