.container {
  width: min(calc(100% - 120px), var(--container));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 120px), 1280px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(228, 228, 228, 0.6);
}

.topbar {
  padding: 30px 0 25px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand img {
  width: 220px;
  height: auto;
  max-height: 88px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 15px;
  font-weight: 700;
}

.nav-band {
  height: 40px;
  background: var(--color-line);
}

.nav-wrap {
  margin-top: -40px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  min-height: 40px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  transition: color 0.35s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--color-muted);
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover {
  color: var(--color-muted);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-image img,
.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-grid {
  display: flex;
  justify-content: center;
}

.footer-contacts {
  display: grid;
  justify-items: center;
  gap: 16px;
  align-self: center;
}

.footer-contacts a,
.footer-contacts p {
  margin: 0;
  font-size: 15px;
  line-height: 1.88;
}

.footer-contacts p:last-child {
  font-size: 14px;
  line-height: 1.79;
}

@media (max-width: 1100px) {
  .container,
  .narrow {
    width: min(calc(100% - 48px), var(--container));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .topbar {
    padding-top: 22px;
    padding-bottom: 20px;
  }

  .brand {
    gap: 16px;
  }

  .brand img {
    width: 160px;
    height: auto;
    max-height: 64px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    font-size: 13px;
  }

  .nav-band {
    display: none;
  }

  .nav-wrap {
    margin-top: 0;
    padding-bottom: 12px;
  }

  .site-nav {
    gap: 14px 18px;
    font-size: 13px;
  }

  .hero-grid,
  .service-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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