.packages {
  background: #f7f4ec;
}

.packages-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.packages-heading h2 {
  margin: 8px 0 14px;
}

.packages-heading > p:last-child {
  color: #4f5b63;
  font-size: 18px;
  line-height: 1.65;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.package-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #d4d9dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .07);
}

.package-card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 12px);
  justify-self: center;
}

.package-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-bottom: 1px solid #dfe3e5;
}

.package-card__body {
  padding: 25px 27px 28px;
}

.package-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.package-card__title p {
  margin: 0 0 6px;
  color: #9b7000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
}

.package-card__title h3 {
  margin: 0;
  color: #141a20;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.package-card__title strong {
  flex: 0 0 auto;
  color: #0f4665;
  font-size: 30px;
  line-height: 1;
}

.package-capacity {
  margin: 17px 0 15px;
  padding: 10px 12px;
  border-left: 4px solid #f2c94c;
  background: #fff8d8;
  color: #29343b;
  font-weight: 700;
}

.package-card ul {
  margin: 0 0 23px;
  padding-left: 20px;
  color: #4f5b63;
  line-height: 1.75;
}

.package-link {
  display: inline-flex;
  padding-bottom: 3px;
  border-bottom: 2px solid #f2c94c;
  color: #0f4665;
  font-weight: 800;
  text-decoration: none;
}

.package-link:hover,
.package-link:focus-visible {
  color: #141a20;
}

.package-badge {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f2c94c;
  color: #141a20;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.package-note {
  max-width: 760px;
  margin: 30px auto 0;
  color: #59656e;
  line-height: 1.6;
  text-align: center;
}

.field label span {
  font-weight: 500;
  opacity: .78;
}

@media (max-width: 850px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card:last-child {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .packages-heading {
    margin-bottom: 28px;
  }

  .package-grid {
    gap: 18px;
  }

  .package-card {
    border-radius: 14px;
  }

  .package-card__body {
    padding: 21px 20px 24px;
  }

  .package-card__title {
    gap: 12px;
  }

  .package-card__title strong {
    font-size: 26px;
  }
}
