:root {
  --blue: #1ba0da;
  --blue-light: #27cff3;
  --ink: #282828;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--blue);
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.65;
}

body.montserrat {
  font-family: "Montserrat", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--blue-light);
}

a:focus-visible {
  outline: 3px solid rgba(39, 207, 243, 0.55);
  outline-offset: 4px;
}

.shell {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 0;
  background: #fff url("assets/images/skyline.png") repeat-x center bottom / auto 258px;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 55px;
  content: "";
  background: linear-gradient(to bottom right, transparent 49%, var(--blue) 50%);
  opacity: 0.98;
  pointer-events: none;
}

.brand {
  width: 197px;
  height: auto;
  margin: 0 auto 4px;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2.8rem, 6.1vw, 4.4rem);
  line-height: 1.08;
  text-align: center;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 300;
  text-align: center;
  text-transform: uppercase;
}

.menu a:not(:last-child)::after {
  margin-left: 16px;
  color: var(--blue);
  content: "|";
  pointer-events: none;
}

.vessel {
  position: relative;
  z-index: 2;
  width: min(100%, 1125px);
  max-height: 346px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
}

.offer {
  position: relative;
  z-index: 3;
  margin-top: -2px;
  padding: 48px 0 56px;
  color: var(--white);
  background: var(--blue);
}

.offer h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.22;
  text-align: center;
}

.offer h2 + h2 {
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 2.75rem);
}

.lead,
.details {
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.98rem;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 34px 0 42px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.card-media {
  position: relative;
  display: block;
  width: min(100%, 308px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 35px rgba(4, 62, 88, 0.24);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.card-media span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 83, 119, 0.48);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card-media:hover img,
.card-media:focus-visible img {
  filter: saturate(0.75) brightness(0.8);
  transform: scale(1.06);
}

.card-media:hover span,
.card-media:focus-visible span {
  opacity: 1;
}

.card h3 {
  min-height: 3.5em;
  margin: 20px 0 14px;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 2px solid #fff;
  border-radius: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.button:hover,
.button:focus-visible {
  color: var(--blue);
  background: #fff;
  transform: translateY(-2px);
}

.main-action {
  margin-bottom: 28px;
  text-align: center;
}

.main-action .button {
  min-width: 260px;
  border-radius: 999px;
  font-size: 1rem;
}

.details p {
  margin: 0 0 16px;
}

.details a {
  color: #7ce9ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.details a:hover,
.details a:focus-visible {
  color: #fff;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 620px);
  }

  .hero {
    padding-top: 20px;
    background-size: auto 170px;
  }

  .brand {
    width: 142px;
  }

  h1 {
    margin-top: 10px;
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .menu {
    flex-direction: column;
    gap: 2px;
    font-size: 0.98rem;
  }

  .menu a:not(:last-child)::after {
    display: none;
  }

  .vessel {
    margin-top: 16px;
  }

  .hero::after {
    height: 30px;
  }

  .offer {
    padding-top: 38px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-top: 30px;
  }

  .card h3 {
    min-height: 0;
  }

  .lead,
  .details {
    font-size: 1rem;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
