/* Hero layout repair: preserves the original Homesick styling while preventing
   the readiness card and its callouts from colliding or leaving the viewport. */

.hero > * {
  min-width: 0;
}

.heroVisual {
  isolation: isolate;
  justify-self: end;
  width: min(100%, 560px);
  min-height: 620px;
}

.heroVisual .halo {
  width: 480px;
  height: 480px;
  max-width: 92%;
  max-height: 92%;
}

.readyCard {
  width: min(470px, calc(100% - 24px));
  transform: none;
}

.readyTop > div:first-child {
  min-width: 0;
}

.readyNotice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(173,121,44,.16);
  border-radius: 16px;
  background: #fff4d7;
  color: #392b3e;
}

.noticeMark {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: #7850a6;
  font-size: 14px;
  font-weight: 950;
}

.readyNotice b {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.readyNotice span:not(.noticeMark) {
  display: block;
  margin-top: 2px;
  color: #756879;
  font-size: 10px;
  line-height: 1.35;
}

.readyCard .readinessBar {
  margin: 16px 0 17px;
}

.protectionGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(48,32,55,.1);
}

.protectionItem {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(48,32,55,.09);
  border-radius: 14px;
  background: #f8f5f8;
}

.protectionIcon {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.protectionItem.arrival .protectionIcon {
  background: transparent;
}

.protectionItem.arrival .protectionIcon:after {
  content: "";
  width: 24px;
  height: 24px;
  background: #6d498f;
  -webkit-mask: url("assets/icons/shield-check.svg") center / contain no-repeat;
  mask: url("assets/icons/shield-check.svg") center / contain no-repeat;
}

.protectionItem.backup .protectionIcon {
  background: transparent;
}

.protectionItem.backup .protectionIcon:after {
  content: "";
  width: 24px;
  height: 24px;
  background: #277d57;
  -webkit-mask: url("assets/icons/chats-circle.svg") center / contain no-repeat;
  mask: url("assets/icons/chats-circle.svg") center / contain no-repeat;
}

.protectionItem b {
  display: block;
  overflow: hidden;
  color: #392d3f;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.protectionItem small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #796f7c;
  font-size: 8px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: auto;
    padding-top: 58px;
  }

  .hero > div:first-child {
    max-width: 820px;
  }

  .heroVisual {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .hero {
    gap: 16px;
    padding: 44px 0 54px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 60px);
  }

  .heroVisual {
    width: 100%;
    min-height: 700px;
  }

  .heroVisual .halo {
    width: 390px;
    height: 390px;
  }

  .readyCard {
    width: 100%;
    padding: 21px;
    border-radius: 30px;
    transform: none;
  }

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

  .scoreBig {
    font-size: 58px;
  }

  .checkRow {
    padding: 11px 12px;
  }

}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 45px;
  }

  .heroVisual {
    min-height: 680px;
  }

  .readyCard {
    padding: 18px;
  }

  .readyTop {
    gap: 12px;
  }

  .readyTop strong {
    font-size: 12px;
  }

  .readyCity {
    font-size: 9px;
  }

  .scoreBig {
    font-size: 52px;
  }

  .checkRow {
    font-size: 12px;
  }
}
