/* Стили первого экрана.
   Назначение: заголовок, теги услуг, карточка диалога и показатели.
   Подключается рядом с blocks/main/main.html. */

.main-hero {
  padding: 56px 0 72px;
  color: #fff;
  background: var(--main-gradient);
}

.main-hero__inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.main-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  gap: 40px 64px;
  align-items: center;
}

.main-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 11px 16px 11px 16px;
  border-radius: 999px;
  background: rgba(92, 194, 181, 0.14);
  border: 1.5px solid rgba(92, 194, 181, 0.7);
  color: var(--accent-soft);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.main-hero__badge::before,
.main-hero__tags li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-mint);
}

.main-hero__title {
  max-width: 656px;
  margin-bottom: 28px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.main-hero__lead {
  max-width: 656px;
  margin-bottom: 28px;
  color: var(--on-dark);
  font-size: 20px;
  line-height: 1.55;
}

.main-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

.main-hero__tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 4%, transparent);
  color: var(--nav-link);
  font-size: 14px;
  line-height: 1.2;
  border: 1px solid rgba(92, 194, 181, 0.5)
}

.main-hero__tags li::before {
  width: 8px;
  height: 8px;
}

.main-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.main-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.main-hero__button > span {
  font-family: system-ui;
}

.main-hero__button--primary {
  height: 51px;
  padding: 0 28px;
  border: 0;
  background: var(--accent-color);
  color: #fff;
}

.main-hero__button--primary:hover {
  background: color-mix(in srgb, var(--accent-color) 82%, #030c23);
}

.main-hero__button--ghost {
  height: 53px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
}

.main-hero__button--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.main-hero__button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

.main-card {
  padding: 18px 18px 16px;
  width: 480px;
  max-width: 100%;
  border-radius: 28px;
  background: #fff;
  color: #122033;
  box-shadow: 0 24px 60px rgba(0, 8, 24, 0.28);
  overflow: hidden;
}

.main-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  background: rgba(244, 247, 250, 1);
  margin: -18px;
  padding: 18px 18px;
}

.main-card__avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(90deg, #1E9C8F 0%, #5CC2B5 100%);
  color: #fff;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.main-card__name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}

.main-card__status {
  color: rgba(30, 156, 143, 1);
  font-size: 13px;
  line-height: 1.35;
}

.main-card__event {
  width: fit-content;
  margin: 32px auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2f6;
  color: rgba(12, 37, 72, 1);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.main-card__message {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 4px 16px 16px 16px;
  background: #f3f6f9;
  color: #24364c;
  font-size: 14px;
  line-height: 1.45;
  width: 90%;
}

.main-card__offer {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #e5edf5;
  border-radius: 16px;
}

.main-card__offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.main-card__chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.main-card__chip--travel {
  background: rgba(228, 244, 241, 1);
  color: rgba(23, 117, 107, 1);
}

.main-card__chip--transport {
  background: #e7f0fb;
  color: #3d6fa8;
}

.main-card__price {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.main-card__offer-title {
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.main-card__offer-meta {
  color: #8b97a8;
  font-size: 13px;
  line-height: 1.4;
}

.main-card__choice {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 10px;
}

.main-card__pick {
  padding: 14px 16px;
  border-radius: 12px 4px 12px 12px;
  background: #062852;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-card__book {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-card__book-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-color);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.main-card__partner {
  flex: none;
  color: rgba(213, 240, 236, 1);
  font-size: 12px;
  line-height: 1.2;
}

.main-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 72px;
  padding: 33px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
}

.main-hero__stat-value {
  margin-bottom: 8px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.main-hero__stat-label {
  max-width: 230px;
  color: var(--on-dark-dim);
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .main-hero__layout {
    grid-template-columns: 1fr;
  }

  .main-hero__copy,
  .main-card {
    min-width: 0;
    width: 100%;
    max-width: none;
  }

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

@media (max-width: 640px) {
  .main-hero {
    padding: 28px 0 40px;
  }

  .main-hero__inner {
    width: min(var(--content), calc(100% - 32px));
  }

  .main-hero__badge {
    max-width: 100%;
    margin-bottom: 16px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .main-hero__title {
    margin-bottom: 16px;
    font-size: 32px;
  }

  .main-hero__lead {
    margin-bottom: 20px;
    font-size: 16px;
  }

  .main-hero__tags {
    margin-bottom: 24px;
  }

  .main-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-hero__button,
  .main-hero__button--primary,
  .main-hero__button--ghost {
    width: 100%;
  }

  .main-hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
    margin-top: 36px;
    padding-top: 24px;
  }

  .main-hero__stat-value {
    font-size: 28px;
  }

  .main-card__message {
    width: auto;
  }

  .main-card__book-action {
    align-items: flex-start;
    gap: 8px;
  }
}
