:root {
  --ink: #13211f;
  --muted: #5c6c69;
  --line: #dce5e1;
  --surface: #ffffff;
  --surface-soft: #f5f7f4;
  --teal: #14857b;
  --teal-dark: #0f5f59;
  --amber: #d59a28;
  --coral: #c85e4d;
  --graphite: #24302e;
  --shadow: 0 18px 50px rgba(19, 33, 31, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(19, 33, 31, 0.10);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-weight: 850;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 16px;
}

.brand-copy small {
  font-size: 12px;
  opacity: 0.78;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  opacity: 0.86;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.menu-button {
  display: none;
  flex: 0 0 44px;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 84vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: #15211f;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 25, 0.94) 0%, rgba(13, 27, 25, 0.80) 42%, rgba(13, 27, 25, 0.22) 78%, rgba(13, 27, 25, 0.10) 100%),
    url("/assets/hero-wdi-ops.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(245, 247, 244, 0), var(--surface-soft));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 108px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 790px;
  font-size: clamp(54px, 9vw, 116px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2.1vw, 24px);
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions,
.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 820px;
  margin: 46px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.hero-metrics div {
  padding: 18px;
  background: rgba(13, 27, 25, 0.26);
}

.hero-metrics dt {
  font-size: 22px;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 36px;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.intro-grid,
.service-grid,
.benefit-grid {
  display: grid;
  gap: 16px;
}

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

.intro-grid article,
.service,
.benefit-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 34px rgba(19, 33, 31, 0.05);
}

.intro-grid article,
.benefit-grid article {
  padding: 26px;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
}

article p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.service {
  min-height: 218px;
  padding: 24px;
}

.service-code {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--teal);
  font-weight: 850;
}

.calculator,
.process {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - 1120px) / 2));
  padding-right: max(18px, calc((100% - 1120px) / 2));
  background: var(--surface);
}

.calc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.calc-controls,
.calc-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.calc-controls {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rate-card {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.rate-card input {
  margin-top: 3px;
}

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

.rate-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.workstations {
  display: grid;
  gap: 12px;
}

.workstations-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

input[type="range"] {
  accent-color: var(--teal);
}

.annual {
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
}

.annual input {
  width: 18px;
  height: 18px;
}

.calc-result {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 100%;
  padding: clamp(28px, 5vw, 46px);
  color: #ffffff;
  background: linear-gradient(135deg, #172522 0%, #26352d 62%, #4d452e 100%);
  box-shadow: var(--shadow);
}

.result-label {
  margin: 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.result-price {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  font-weight: 850;
}

.result-note {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
}

.benefits {
  padding-top: 96px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline article {
  min-height: 260px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--graphite);
  font-weight: 850;
}

.sla-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, #172522 0%, #26352d 60%, #4d452e 100%);
  box-shadow: var(--shadow);
}

.sla-panel .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.sla-list {
  display: grid;
  gap: 12px;
}

.sla-list div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

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

.sla-list span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 850px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 850;
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 44px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 96px;
}

.contact-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 850;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 7px;
  font-weight: 750;
}

label span {
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd8d4;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 133, 123, 0.18);
  border-color: var(--teal);
}

.consent {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 550;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-submit {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.form-status.is-ok {
  color: var(--teal-dark);
}

.form-status.is-error {
  color: #a8392b;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer div,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer strong {
  color: #ffffff;
}

.footer a:hover,
.footer a:focus-visible {
  color: #ffffff;
}

.legal-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 118px 0 80px;
}

.legal-page h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
}

.legal-page article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(13, 27, 25, 0.96) 0%, rgba(13, 27, 25, 0.76) 70%, rgba(13, 27, 25, 0.45) 100%),
      url("/assets/hero-wdi-ops.png") center / cover no-repeat;
  }

  .section-heading,
  .calc-panel,
  .sla-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .service-grid,
  .benefit-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  fieldset {
    grid-template-columns: 1fr;
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .timeline article {
    border-bottom: 1px solid var(--line);
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .brand-copy small {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-inner {
    padding-top: 92px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 56px);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.42;
    margin-top: 18px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
  }

  .hero-metrics {
    margin-top: 24px;
  }

  .hero-metrics div {
    padding: 12px;
  }

  .hero-metrics dt {
    font-size: 18px;
  }

  .hero-metrics dd {
    font-size: 12px;
  }

  .hero-actions,
  .contact-lines {
    display: grid;
  }

  .hero-metrics,
  .intro-grid,
  .service-grid,
  .benefit-grid,
  .timeline,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .timeline article,
  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .section {
    padding: 64px 0;
  }

  .footer {
    display: grid;
  }
}
