.wide {
  width: calc(100% - 64px);
  margin: auto;
}
.topbar .wide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.language {
  position: relative;
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.language summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--line);
  min-width: 112px;
}
.language summary::-webkit-details-marker {
  display: none;
}
.language summary:after {
  content: "⌄";
  margin-left: auto;
  color: #7990a6;
}
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 7px;
  background: #0c1d30;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.language-menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px !important;
  color: #c9d7e4 !important;
}
.language-menu a:hover,
.language-menu .active {
  background: #15314d;
  color: white !important;
}
.flag {
  font-size: 1.1rem;
}
.hero:after {
  background:
    linear-gradient(
      90deg,
      rgba(7, 17, 31, 0.98) 0 45%,
      rgba(7, 17, 31, 0.38) 75%
    ),
    url("assets/steel-structure.jpg") center right/58% cover no-repeat;
  opacity: 0.58;
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photo-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c2239;
}
.photo-grid figure:first-child {
  grid-column: 1/-1;
}
.photo-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}
.photo-grid figure:first-child img {
  height: 250px;
}
.photo-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(5, 16, 29, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .wide {
    width: calc(100% - 40px);
  }
  .language {
    margin: 0;
  }
  .language-menu {
    position: static;
    margin-top: 8px;
  }
  .hero:after {
    background:
      linear-gradient(rgba(7, 17, 31, 0.74), rgba(7, 17, 31, 0.96)),
      url("assets/steel-structure.jpg") center/cover;
  }
}
@media (max-width: 580px) {
  .wide {
    width: calc(100% - 28px);
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid figure:first-child {
    grid-column: auto;
  }
  .photo-grid img,
  .photo-grid figure:first-child img {
    height: 210px;
  }
  .about-badge {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
  }
}
