:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dde5ef;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --navy: #10294f;
  --blue: #1d68d8;
  --sky: #e8f1ff;
  --orange: #f47b20;
  --green: #1f9d68;
  --shadow: 0 18px 48px rgba(16, 41, 79, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(221, 229, 239, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand img {
  width: 122px;
  height: auto;
}

.brand span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

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

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--navy);
  display: block;
  border-radius: 4px;
}

.nav-toggle::before,
.nav-toggle::after {
  position: absolute;
}

.nav-toggle::before {
  transform: translateY(-7px);
}

.nav-toggle::after {
  transform: translateY(7px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #24364c;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--sky);
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
}

.button.primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(244, 123, 32, 0.27);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

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

.hero {
  background:
    linear-gradient(90deg, rgba(16, 41, 79, 0.95), rgba(16, 41, 79, 0.78)),
    url("assets/mmw-team.webp") center / cover;
  color: #fff;
}

.hero .section-inner {
  min-height: calc(74svh - 82px);
  padding: 38px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

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

.signal-panel {
  align-self: stretch;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.signal-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.signal {
  min-height: 112px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.signal strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.signal span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.band {
  padding: 86px 0;
}

.band.soft {
  background: var(--soft);
}

.band.navy {
  background: var(--navy);
  color: #fff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2,
.split h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.navy .section-head h2,
.navy .section-head p,
.navy .split h2,
.navy .split p {
  color: #fff;
}

.section-head p,
.split p,
.card p,
.timeline p {
  color: var(--muted);
}

.navy .card p,
.navy .timeline p {
  color: rgba(255, 255, 255, 0.74);
}

.service-grid,
.feature-grid,
.proof-grid,
.page-grid,
.portfolio-grid,
.portfolio-preview-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

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

.card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 41, 79, 0.04);
}

.card.dark-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.18;
}

.navy .card h3 {
  color: #fff;
}

.card .label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--sky);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 900;
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 41, 79, 0.04);
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--navy);
}

.portfolio-card > div {
  padding: 24px;
}

.portfolio-card.compact > div {
  padding: 18px;
}

.portfolio-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.14;
}

.portfolio-card.compact h3 {
  margin-bottom: 0;
  font-size: 20px;
}

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

.portfolio-cta {
  margin-top: 26px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.image-frame {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
}

.list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 14px 16px;
  border-left: 4px solid var(--orange);
  background: #fff;
  border-radius: 0 8px 8px 0;
  color: #2d3d52;
  font-weight: 700;
}

.navy .list li {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.page-hero {
  background: var(--navy);
  color: #fff;
}

.page-hero .section-inner {
  padding: 80px 0 70px;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
}

.timeline {
  display: grid;
  gap: 16px;
  counter-reset: steps;
}

.timeline article {
  position: relative;
  padding: 22px 24px 22px 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline article::before {
  counter-increment: steps;
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 24px;
  color: var(--orange);
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 46px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd6e4;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(29, 104, 216, 0.18);
  border-color: var(--blue);
}

.contact-form .full,
.contact-form .form-message,
.contact-form .full-button {
  grid-column: 1 / -1;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-message {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.form-message.success {
  color: #0f6845;
  background: #e7f8ef;
}

.form-message.error {
  color: #9a3412;
  background: #fff1e8;
}

.form-message.security-note {
  color: #334155;
  background: var(--sky);
  font-weight: 700;
}

.cta {
  padding: 54px 0;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  color: #fff;
}

.cta .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  background: #071a34;
  color: #fff;
  padding: 54px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-grid img {
  width: 126px;
  margin-bottom: 16px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom {
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
  }

  .header-actions {
    display: none;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

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

  .hero .section-inner {
    min-height: auto;
    padding-top: 70px;
  }

  .service-grid,
  .feature-grid,
  .proof-grid,
  .page-grid,
  .portfolio-grid,
  .portfolio-preview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner {
    width: min(100% - 28px, 1180px);
  }

  .brand span {
    display: none;
  }

  .band {
    padding: 62px 0;
  }

  .hero .section-inner,
  .page-hero .section-inner {
    padding: 58px 0 48px;
  }

  h1 {
    font-size: 42px;
  }

  .signal-grid,
  .service-grid,
  .feature-grid,
  .proof-grid,
  .page-grid,
  .portfolio-grid,
  .portfolio-preview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .signal-panel,
  .contact-form {
    padding: 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}
