:root {
  color-scheme: light;
  --primary: #102e49;
  --accent: #3b819b;
  --text: #526475;
  --muted: #647687;
  --line: #d5dfe6;
  --surface: #edf2f6;
  --white: #fff;
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  letter-spacing: -0.045em;
}

h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--primary);
  color: var(--white);
}

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

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

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

.brand {
  display: inline-flex;
  flex: 0 1 330px;
  align-items: center;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
}

.main-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
}

.main-nav a,
.footer-links a {
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  display: flex;
  min-height: 500px;
  align-items: center;
  background-color: var(--surface);
}

.hero-inner {
  padding-block: 88px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hero-description {
  max-width: 650px;
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--primary);
  font-weight: 700;
  text-underline-offset: 4px;
}

.text-link span {
  color: var(--accent);
}

.section {
  padding-block: clamp(64px, 9vw, 108px);
}

.section-intro {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 200px;
  padding: 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-number {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-card p {
  max-width: 470px;
  margin-top: 10px;
  color: var(--muted);
}

.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 110px);
}

.about-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 28px;
  margin-top: 42px;
}

.reference-card {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.reference-caption {
  min-height: 82px;
  padding-bottom: 16px;
}

.reference-caption p {
  margin-top: 5px;
  color: var(--muted);
}

.reference-image-group {
  display: grid;
  gap: 12px;
}

.reference-image-group--paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-image {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.reference-image img {
  display: block;
  width: 100%;
  height: 230px;
  margin: 0;
  object-fit: contain;
}

.reference-image figcaption {
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.reference-image-group:not(.reference-image-group--paired) .reference-image {
  max-width: 100%;
}

.reference-image-group:not(.reference-image-group--paired) .reference-image img {
  height: 300px;
  object-fit: contain;
}

.contact-section {
  border-top: 1px solid var(--line);
  background: #f8fafb;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.contact-grid > div > p:last-child {
  max-width: 620px;
  margin-top: 16px;
}

.contact-details {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-weight: 600;
}

.contact-details a {
  color: var(--primary);
  text-underline-offset: 4px;
}

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--primary);
}

.footer-inner p {
  margin-top: 3px;
}

.footer-links {
  gap: 20px;
}

.copyright {
  white-space: nowrap;
}

.legal-main {
  min-height: 60vh;
  padding-block: clamp(48px, 8vw, 88px);
}

.legal-main h1 {
  margin-bottom: 36px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal-content {
  max-width: 820px;
}

.legal-content section + section {
  margin-top: 32px;
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.legal-content p + p {
  margin-top: 10px;
}

.legal-content address {
  font-style: normal;
}

.legal-content a {
  color: var(--primary);
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 16px;
  }

  .brand {
    flex-basis: auto;
    width: min(290px, 100%);
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .main-nav a {
    padding-block: 5px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 430px;
  }

  .hero-inner {
    padding-block: 68px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reference-grid {
    gap: 24px;
  }

  .reference-image {
    padding: 8px;
  }

  .reference-image img {
    height: 200px;
  }

  .reference-image-group:not(.reference-image-group--paired) .reference-image img {
    height: 250px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--content-width), calc(100% - 36px));
  }

  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding-block: 60px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .service-grid,
  .reference-grid,
  .reference-image-group--paired {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
