:root {
  --ink: #182126;
  --muted: #5e6b70;
  --paper: #f5f8fb;
  --white: #ffffff;
  --brand-blue: #005596;
  --brand-blue-deep: #003b69;
  --brand-blue-soft: #e6f0f8;
  --brand-gray: #a9a9ad;
  --brand-gray-deep: #676d75;
  --line: rgba(24, 33, 38, 0.14);
  --shadow: 0 24px 60px rgba(16, 31, 36, 0.16);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(0, 85, 150, 0.16);
  box-shadow: 0 12px 26px rgba(24, 33, 38, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.logo-image {
  display: block;
  width: auto;
  object-fit: contain;
}

.header-logo {
  max-width: 345px;
  max-height: 67px;
}

.hero-logo {
  max-width: min(780px, 100%);
  max-height: 260px;
  margin-bottom: 1.6rem;
}

.footer-logo {
  max-width: 320px;
  max-height: 110px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 6px;
  color: var(--brand-gray-deep);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--brand-blue-deep);
  background: rgba(0, 85, 150, 0.1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 85, 150, 0.16);
  border-radius: 8px;
  background: var(--white);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-blue);
}

.hero {
  position: relative;
  min-height: clamp(260px, 30vw, 420px);
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 2.5rem 0;
  color: var(--ink);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 58%;
  filter: brightness(0.76) contrast(1.16) saturate(1.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 33, 59, 0.42), rgba(0, 33, 59, 0.12) 55%, rgba(0, 33, 59, 0.28)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 85, 150, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  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: 0;
  border-radius: 8px;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--brand-blue);
  box-shadow: 0 12px 26px rgba(0, 85, 150, 0.26);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-blue-deep);
}

.section {
  padding: 5rem 0;
}

.about-section,
.team-section {
  background: var(--white);
}

.services-section,
.contact-section {
  background: var(--paper);
}

.content-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 2.8rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-copy,
.service-card p,
.team-card p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-copy p:last-child,
.service-card p:last-child,
.team-card p:last-child {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-card,
.team-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(24, 33, 38, 0.06);
}

.service-card {
  min-height: 280px;
}

.service-card:nth-child(2n) {
  border-top: 4px solid var(--brand-blue);
}

.service-card:nth-child(2n + 1) {
  border-top: 4px solid var(--brand-gray);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.team-card {
  min-height: 340px;
  border-top: 4px solid var(--brand-blue);
}

.team-photo {
  width: 70%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(0, 85, 150, 0.14);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 1.1rem;
  padding: 0 0.95rem;
  border-radius: 8px;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
  font-weight: 800;
  text-decoration: none;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
  color: var(--white);
  background: var(--brand-blue);
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.contact-card {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
  font-style: normal;
}

.contact-card a,
.contact-card span {
  display: block;
  padding: 1.35rem;
  background: var(--white);
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--brand-blue-deep);
  background: var(--brand-blue-soft);
}

.site-footer {
  padding: 1.4rem 0;
  background: var(--white);
  border-top: 1px solid rgba(0, 85, 150, 0.16);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 920px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(var(--header-height) + 10px);
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    color: var(--muted);
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-active {
    color: var(--brand-blue-deep);
    background: rgba(0, 85, 150, 0.1);
  }

  .hero {
    min-height: 280px;
    padding: 2.25rem 0;
  }

  .content-grid,
  .contact-grid,
  .service-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card,
  .service-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container,
  .nav-shell {
    width: min(100% - 28px, 1120px);
  }

  .header-logo {
    max-width: 240px;
    max-height: 53px;
  }

  .hero {
    min-height: 220px;
    padding: 1.75rem 0;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 33, 59, 0.4), rgba(0, 33, 59, 0.16)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 85, 150, 0.08));
  }

  .hero-logo {
    max-height: 170px;
    margin-bottom: 1.25rem;
  }

  .button {
    width: 100%;
  }

  .section-actions {
    justify-content: stretch;
  }

  .section {
    padding: 4rem 0;
  }

  h2 {
    font-size: 2.15rem;
  }
}
