:root {
  --blue: #061e8f;
  --blue-deep: #03125f;
  --ink: #080808;
  --muted: #5d5d5d;
  --paper: #f3f3f3;
  --white: #ffffff;
  --silver: #a7a7a7;
  --accent: #f0c33c;
  --shell: 1120px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section-shell {
  width: min(100% - 112px, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 7%;
  color: var(--white);
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(3, 18, 95, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
}

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

.brand-light {
  color: var(--white);
}

.brand-blue {
  color: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero {
  position: relative;
  min-height: 620px;
  height: 82svh;
  max-height: 760px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16) 54%, rgba(0, 0, 0, 0.02)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.24), transparent 46%),
    url("../assets/img/hero-structure.jpg") center center / cover no-repeat;
  color: var(--white);
}

.hero-content {
  width: min(100% - 112px, var(--shell));
  margin: 0 auto;
  padding-top: var(--header-height);
}

.hero h1 {
  width: min(620px, 100%);
  margin: 0 0 34px;
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: var(--white);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--accent);
}

.button-dark {
  margin-top: 26px;
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--blue);
}

.about {
  background: var(--blue);
  color: var(--white);
  padding: 84px 0 88px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 96px;
  align-items: center;
}

.about-copy {
  max-width: 520px;
}

.about h2 {
  margin: 0 0 28px;
  font-size: 2.65rem;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
}

.about p {
  margin: 0 0 24px;
  font-size: 1.04rem;
  line-height: 1.55;
}

.about p:last-child {
  margin-bottom: 0;
}

.about-image {
  width: 100%;
  aspect-ratio: 0.81 / 1;
  object-fit: cover;
}

.services {
  background: var(--paper);
  padding: 92px 0 72px;
}

.section-intro {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr;
  gap: 86px;
  align-items: start;
  margin-bottom: 120px;
}

.section-intro h2,
.projects h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-intro p {
  max-width: 600px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
}

.service-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.project-card {
  min-width: 0;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service-card h3 {
  margin: 12px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.projects {
  background: var(--ink);
  color: var(--white);
  padding: 84px 0 96px;
}

.projects h2 {
  margin-bottom: 92px;
}

.project-grid {
  gap: 26px;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-card h3 {
  margin: 22px 0 0;
  min-height: 34px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.project-card strong {
  font-weight: 900;
}

.stats {
  background: var(--silver);
  color: var(--ink);
  padding: 92px 0 98px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 72px;
  text-align: center;
}

.stat-item span,
.stat-item strong {
  display: block;
  letter-spacing: 0;
}

.stat-item span {
  margin-bottom: 16px;
  font-size: 2.2rem;
  line-height: 1.12;
}

.stat-item strong {
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1;
}

.spacer {
  height: 240px;
  background: var(--paper);
}

.site-footer {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/footer-team.jpg") center center / cover no-repeat;
  opacity: 0.23;
  filter: grayscale(1);
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: 76px 0 68px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  gap: 72px;
  margin-top: 48px;
}

.footer-block {
  font-style: normal;
}

.footer-block h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.footer-block p {
  margin: 0 0 18px;
  font-weight: 700;
  line-height: 1.45;
}

.footer-block a:hover {
  color: var(--blue);
}

.contact-dialog {
  width: min(100% - 40px, 560px);
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.contact-form {
  background: var(--white);
  padding: 32px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dialog-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.icon-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 800;
}

.contact-form .button-primary {
  background: var(--blue);
  color: var(--white);
}

.contact-form .button-primary:hover {
  background: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid #d8d8d8;
  background: var(--white);
  padding: 13px 14px;
  color: var(--ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 0;
}

.form-status {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .section-shell,
  .hero-content {
    width: min(100% - 56px, var(--shell));
  }

  .site-header {
    padding: 20px 28px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .about-grid,
  .section-intro,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 42px;
  }

  .about-copy {
    max-width: 720px;
  }

  .section-intro {
    gap: 24px;
    margin-bottom: 72px;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .project-card img {
    aspect-ratio: 16 / 10;
  }

  .footer-grid {
    gap: 34px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    position: fixed;
    min-height: var(--header-height);
    background: rgba(3, 18, 95, 0.94);
    backdrop-filter: blur(10px);
  }

  .brand {
    min-height: 46px;
  }

  .brand-logo {
    height: 46px;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 21;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    gap: 0;
    padding: 16px 28px 28px;
    background: rgba(3, 18, 95, 0.97);
    transform: translateY(-120%);
    transition: transform 200ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero {
    min-height: 560px;
    height: 86svh;
    max-height: 680px;
    background-position: center center;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .about,
  .services,
  .projects,
  .stats {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .about h2,
  .section-intro h2,
  .projects h2 {
    font-size: 2.05rem;
  }

  .projects h2 {
    margin-bottom: 54px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .stat-item span {
    font-size: 1.75rem;
  }

  .stat-item strong {
    font-size: 2.2rem;
  }

  .spacer {
    height: 120px;
  }

  .footer-content {
    padding: 58px 0;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .hero-content {
    width: min(100% - 32px, var(--shell));
  }

  .site-header {
    padding: 18px 16px;
  }

  .brand,
  .brand-logo {
    min-height: 40px;
    height: 40px;
  }

  .hero {
    min-height: 520px;
    max-height: 620px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .button {
    width: 100%;
  }

  .about h2,
  .section-intro h2,
  .projects h2 {
    font-size: 1.8rem;
  }

  .service-card h3 {
    font-size: 1.12rem;
  }

  .footer-grid {
    margin-top: 38px;
  }

  .footer-block p {
    font-size: 0.98rem;
  }

  .dialog-header h2 {
    font-size: 1.45rem;
  }
}
