.ferry-directory-hero {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 64px;
  background: #0c2f3e;
}

.ferry-directory-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 34, 46, .94) 0%, rgba(6, 34, 46, .76) 38%, rgba(6, 34, 46, .25) 70%, rgba(6, 34, 46, .08) 100%), linear-gradient(0deg, rgba(5, 24, 32, .42), transparent 55%);
}

.ferry-directory-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
}

.ferry-directory-hero__content {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.ferry-directory-hero h1 {
  max-width: 620px;
  font-size: clamp(44px, 5.5vw, 64px);
  letter-spacing: .04em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.ferry-directory-hero__content > p:last-of-type {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: 16px;
}

.ferry-directory-hero dl {
  display: flex;
  gap: 1px;
  width: max-content;
  max-width: 100%;
  margin: 30px 0 0;
  background: rgba(255, 255, 255, .26);
}

.ferry-directory-hero dl div {
  min-width: 170px;
  padding: 14px 20px;
  background: rgba(7, 42, 53, .76);
  backdrop-filter: blur(8px);
}

.ferry-directory-hero dt {
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  letter-spacing: .14em;
}

.ferry-directory-hero dd {
  margin: 2px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .ferry-directory-hero {
    min-height: 410px;
    align-items: flex-end;
    padding-top: 92px;
    padding-bottom: 42px;
  }

  .ferry-directory-hero::before {
    background: linear-gradient(0deg, rgba(5, 30, 40, .96) 0%, rgba(5, 30, 40, .72) 56%, rgba(5, 30, 40, .2) 100%);
  }

  .ferry-directory-hero > img {
    object-position: 68% center;
  }

  .ferry-directory-hero h1 {
    font-size: 40px;
    margin-bottom: 14px;
  }

  .ferry-directory-hero__content > p:last-of-type {
    font-size: 14px;
  }

  .ferry-directory-hero dl {
    width: 100%;
    margin-top: 24px;
  }

  .ferry-directory-hero dl div {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
  }
}

.ferry-profile-hero {
  position: relative;
  isolation: isolate;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding-top: 34px;
  padding-bottom: 58px;
  background: #0c2f3e;
}

.ferry-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(6, 34, 46, .95) 0%, rgba(6, 34, 46, .8) 39%, rgba(6, 34, 46, .28) 72%, rgba(6, 34, 46, .08) 100%), linear-gradient(0deg, rgba(5, 24, 32, .46), transparent 56%);
}

.ferry-profile-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% center;
}

.ferry-profile-hero .breadcrumb {
  width: min(1180px, 100%);
  margin: 0 auto 78px;
  color: rgba(255, 255, 255, .72);
}

.ferry-profile-hero__content {
  width: min(1180px, 100%);
  max-width: none !important;
  margin: 0 auto;
}

.ferry-profile-hero h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.15;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .28);
}

.ferry-profile-hero__content > p:last-of-type {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.ferry-profile-hero dl {
  display: flex;
  gap: 1px;
  width: max-content;
  max-width: 100%;
  margin: 28px 0 0;
  background: rgba(255, 255, 255, .24);
}

.ferry-profile-hero dl div {
  min-width: 170px;
  padding: 13px 18px;
  background: rgba(7, 42, 53, .78);
  backdrop-filter: blur(8px);
}

.ferry-profile-hero dt {
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  letter-spacing: .12em;
}

.ferry-profile-hero dd {
  margin: 2px 0 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ferry-profile-hero__note {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
}

.ferry-directory .ferry-grid {
  gap: 22px;
}

.ferry-directory .ferry-card {
  display: flex;
  min-width: 0;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.ferry-directory .ferry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(12, 47, 62, .12);
}

.ferry-card__image {
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #0c2f3e;
}

.ferry-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .35s ease;
}

.ferry-card:hover .ferry-card__image img {
  transform: scale(1.025);
}

.ferry-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: start;
  padding: 23px 24px 21px;
}

.ferry-card__heading {
  min-width: 0;
}

.ferry-card__heading > span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ferry-card__phone {
  align-self: center;
  text-align: right;
}

.ferry-card__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.ferry-card__actions a {
  color: var(--sea);
  font-size: 11px;
  font-weight: 700;
}

.ferry-card__actions .is-navigation {
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
}

@media (max-width: 650px) {
  .ferry-card__image {
    aspect-ratio: 16 / 9;
    max-height: 230px;
  }

  .ferry-card__body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 19px;
  }

  .ferry-card__phone {
    text-align: left;
  }

  .ferry-card__actions {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .ferry-profile-hero {
    min-height: 470px;
    padding-top: 24px;
    padding-bottom: 34px;
  }

  .ferry-profile-hero::before {
    background: linear-gradient(0deg, rgba(5, 30, 40, .96) 0%, rgba(5, 30, 40, .74) 62%, rgba(5, 30, 40, .24) 100%);
  }

  .ferry-profile-hero > img {
    object-position: 66% center;
  }

  .ferry-profile-hero .breadcrumb {
    margin-bottom: 92px;
  }

  .ferry-profile-hero h1 {
    font-size: 38px;
  }

  .ferry-profile-hero dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .ferry-profile-hero dl div {
    min-width: 0;
    padding: 11px 13px;
  }

  .ferry-profile-hero dl div:last-child {
    grid-column: 1 / -1;
  }
}
