:root {
  --blue-900: #0c2d62;
  --blue-700: #1560b8;
  --blue-500: #2a7de0;
  --ink: #142033;
  --muted: #5b6b80;
  --line: #d7e2ef;
  --bg: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(12, 45, 98, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  color: var(--blue-700);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.85rem, 3.6vw, 3.05rem);
  font-weight: 800;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn--primary {
  background: var(--blue-700);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-900);
}

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--outline {
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.btn--outline:hover {
  background: var(--blue-700);
  color: var(--white);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--blue-900);
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--blue-700);
}

.header__phone {
  font-weight: 800;
  color: var(--blue-700);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: var(--blue-900);
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 24, 54, 0.35) 0%, rgba(8, 24, 54, 0.82) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 0 56px;
}

.hero__content .eyebrow {
  color: #9ec6ff;
}

.hero__lead {
  max-width: 58ch;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  background: var(--blue-900);
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
}

.stats article strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

.stats article span {
  color: rgba(255, 255, 255, 0.75);
}

.about,
.services,
.work,
.gallery,
.contacts {
  padding: 88px 0;
  scroll-margin-top: 84px;
}

.about {
  background: var(--bg);
}

.about__grid,
.work__grid,
.contacts__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.about__text p + p {
  margin-top: 14px;
  color: var(--muted);
}

.about__photos {
  display: grid;
  gap: 16px;
}

.about__photos img,
.work__photo,
.gallery img,
.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head__note {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  height: 220px;
  border-radius: 0;
  box-shadow: none;
}

.card__body {
  padding: 22px;
}

.card__body p {
  color: var(--muted);
  margin-top: 8px;
}

.work__photo {
  height: 520px;
}

.steps {
  list-style: none;
  display: grid;
  gap: 22px;
}

.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
}

.steps span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f1fb;
  color: var(--blue-700);
  font-weight: 800;
}

.steps p {
  color: var(--muted);
}

.gallery {
  background: var(--bg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery figure {
  position: relative;
}

.gallery img {
  height: 240px;
}

.gallery figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.contacts__intro {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list a,
.contact-list strong {
  font-size: 1.08rem;
}

.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.contacts__card {
  background: var(--bg);
  border-radius: 28px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contacts__card img {
  width: 180px;
  margin: 0 auto 20px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    background: var(--white);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .header__phone {
    margin-left: auto;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .stats__grid,
  .about__grid,
  .work__grid,
  .contacts__grid,
  .cards,
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .work__photo,
  .about__photos img {
    height: 280px;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header__phone {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }
}
