.brand img {
  width: auto;
  height: 88px;
  object-fit: initial;
  border-radius: 0;
}

.site-header,
.site-header.scrolled {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 5px 24px rgba(15, 21, 36, .1);
  backdrop-filter: blur(12px);
}

.main-nav,
.site-header.scrolled .main-nav {
  color: var(--ink);
  gap: 20px;
}

.main-nav a.active:not(.btn):after {
  width: 100%;
}

.nav-toggle span,
.site-header.scrolled .nav-toggle span {
  background: var(--ink);
}

.nav-wrap {
  height: 104px;
}

.footer-grid img {
  width: 220px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
}

.footer-grid > div:first-child {
  width: min(100%, 300px);
  padding: 22px 24px 18px;
  color: var(--navy);
  text-align: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.footer-grid > div:first-child p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  min-height: 460px;
  padding: 190px 0 90px;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 21, 36, .94), rgba(20, 28, 46, .68)), url('../images/hero.jpg') center 58% / cover;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.table-wrap td {
  min-width: 150px;
  vertical-align: top;
}

.table-wrap td:first-child {
  min-width: 290px;
}

.table-wrap td a {
  color: #656800;
  font-weight: 800;
}

.table-wrap td small {
  color: var(--muted);
  font-weight: 600;
}

.gallery {
  background: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(18, 25, 43, .1);
}

.gallery-item:nth-child(7n + 1),
.gallery-item:nth-child(7n + 4) {
  grid-row: span 2;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item img {
  transition: transform .45s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-video {
  grid-column: span 2;
  min-height: 300px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 88px;
  }

  .brand img {
    width: auto;
    height: 74px;
  }

  .main-nav {
    top: 88px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item:nth-child(n) {
    grid-row: auto;
  }

  .gallery-video {
    grid-column: auto;
    min-height: 260px;
  }
}
