:root {
  --navy: #071124;
  --blue: #1457a8;
  --electric: #46aeea;
  --ink: #111927;
  --muted: #5e6a7c;
  --line: #d9e0e8;
  --soft: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  background: linear-gradient(135deg, rgba(7, 17, 36, .98), rgba(22, 54, 91, .94));
  color: #fff;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, 100%);
  padding: 0 20px;
}

.logo {
  width: min(430px, 68vw);
  height: auto;
  display: block;
}

.top-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(7, 17, 36, .08);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 800;
  background: #fff;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(20, 87, 168, .35);
  color: var(--blue);
  background: #f7fbff;
}

.hero {
  padding: 62px 0 72px;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #8cc9ff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 6vw, 4.9rem);
  line-height: .96;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin: 0;
  color: #dce8f5;
  font-size: 1.1rem;
}

.gallery-section {
  padding: 54px 0 70px;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.gallery-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.gallery-head p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(7, 17, 36, .08);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  transition: transform .22s ease;
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  transform: scale(1.035);
}

.cta {
  margin-top: 44px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7, 17, 36, .07);
}

.cta p {
  margin: 0;
  color: var(--muted);
}

.cta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.1rem;
}

.button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 820px) {
  .nav,
  .gallery-head,
  .cta {
    align-items: start;
    flex-direction: column;
  }

  .nav {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 42px 0 54px;
  }

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

  .gallery-grid img {
    min-height: 220px;
  }
}
