:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f4f8f8;
  --bg-panel: #fbfdfd;
  --text: #101827;
  --text-strong: #07111f;
  --muted: #5c6674;
  --line: #dce7e8;
  --line-strong: #9cc6c9;
  --accent: #006f78;
  --accent-dark: #00545b;
  --accent-soft: #e6f4f4;
  --footer: #09121e;
  --shadow: 0 20px 50px rgba(8, 24, 36, 0.12);
  --radius: 8px;
  --content: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  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;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--text-strong);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 231, 232, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100%, calc(var(--content) + var(--gutter) * 2));
  min-height: 74px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-size: 1.25rem;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 640;
}

.nav-menu a:not(.button) {
  text-decoration: none;
}

.nav-menu a:not(.button):hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 0 22px;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(0, 111, 120, 0.18);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 16px 28px rgba(0, 111, 120, 0.22);
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.86rem;
}

.hero {
  width: min(100%, calc(var(--content) + var(--gutter) * 2));
  min-height: clamp(460px, calc(100svh - 200px), 560px);
  margin: 0 auto;
  padding: clamp(34px, 4.8vw, 56px) var(--gutter) clamp(24px, 3vw, 38px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero-copy {
  max-width: 560px;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 780;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.55rem, 4.35vw, 4.3rem);
  max-width: 760px;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.72;
}

.hero-actions {
  margin-top: 28px;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  width: min(100%, calc(var(--content) + var(--gutter) * 2));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 94px) var(--gutter);
}

.services-section {
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 3vw, 42px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1fr);
  align-items: end;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line-strong);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.section-head-compact {
  display: block;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.service-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-panel);
  padding: 24px;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 34px rgba(10, 31, 45, 0.08);
  transform: translateY(-2px);
}

.icon-box {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent);
  background: #fff;
}

.icon-box svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-card h3,
.work-item h3,
.approach-step h3 {
  margin: 20px 0 0;
  color: var(--text-strong);
  font-size: 1.08rem;
  line-height: 1.28;
}

.service-card p,
.work-item p,
.approach-step p {
  margin: 13px 0 0;
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 17px;
  color: #394453;
  font-size: 0.93rem;
  line-height: 1.5;
}

.service-card li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.work-section {
  background:
    linear-gradient(90deg, rgba(0, 111, 120, 0.05), transparent 38%),
    linear-gradient(180deg, #fff, var(--bg-soft));
  max-width: none;
  width: 100%;
}

.work-section > * {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  min-height: 190px;
  padding: 28px;
  background: #fff;
}

.work-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 820;
}

.work-item h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.approach-step {
  position: relative;
  padding-top: 18px;
}

.approach-step:not(:last-child)::after {
  position: absolute;
  top: 34px;
  right: -12px;
  width: calc(100% - 74px);
  max-width: 128px;
  height: 1px;
  background: var(--line-strong);
  content: "";
  transform: translateX(50%);
}

.approach-step span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 780;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  margin-top: 24px;
  padding: clamp(48px, 7vw, 78px) var(--gutter);
  background: var(--bg-soft);
}

.contact-section > * {
  width: min(100%, 560px);
}

.contact-graphic {
  justify-self: end;
  color: var(--accent);
  opacity: 0.85;
}

.contact-graphic svg {
  width: min(100%, 360px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-section h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.contact-section p {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-section p a {
  color: var(--accent-dark);
  font-weight: 730;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  background: var(--footer);
  color: #dce7e8;
  padding: 32px var(--gutter);
}

.site-footer > * {
  width: min(100%, 560px);
}

.footer-brand {
  color: #fff;
  font-size: 1.18rem;
}

.site-footer p {
  max-width: 560px;
  margin: 12px 0 0;
  color: #a9b6c0;
  font-size: 0.93rem;
}

.footer-contact {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 24px;
  color: #c9d5db;
  font-size: 0.92rem;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #9be0e0;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

  .hero-media {
    max-height: 520px;
  }

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

  .approach-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 66px;
  }

  .brand {
    font-size: 1.07rem;
  }

  .brand-logo {
    width: 31px;
    height: 31px;
  }

  .nav-toggle {
    display: grid;
  }

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

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

  .nav-menu a:not(.button) {
    padding: 12px 10px;
  }

  .nav-menu .button {
    margin-top: 6px;
  }

  .hero {
    padding-top: 30px;
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.85rem);
  }

  .hero p {
    margin-top: 18px;
    line-height: 1.62;
  }

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

  .hero-media {
    aspect-ratio: 2 / 1;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .service-grid,
  .work-list,
  .approach-steps,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-card,
  .work-item {
    padding: 22px;
  }

  .work-item {
    grid-template-columns: 48px 1fr;
    min-height: auto;
  }

  .contact-section {
    margin-top: 0;
  }

  .contact-graphic {
    justify-self: start;
  }

  .site-footer,
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .button {
    width: 100%;
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: clamp(1.95rem, 8.4vw, 2.25rem);
  }

  .work-item {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
