html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef2f6;
  color: #1f2937;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 10px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #2457a6;
  color: #fff;
}

.site-brand__mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.site-brand__name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.site-brand__desc {
  margin-top: 2px;
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.site-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-chip,
.site-link,
.promo-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-chip {
  background: #e7f2ea;
  border: 1px solid #cbe5d5;
  color: #2f5d46;
}

.site-link {
  background: #fff;
  border: 1px solid #d7e0ee;
  color: #1f4d94;
}

.site-link:hover {
  border-color: #b7cae8;
}

#app {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 22px 18px 0;
  background: #fff;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
}

.promo-panel {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 22px 18px;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e9f3;
  border-radius: 8px;
}

.promo-divider {
  height: 1px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, transparent, #d7e0ee 12%, #d7e0ee 88%, transparent);
}

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

.promo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 180px;
  padding: 18px;
  text-align: left;
  border: 1px solid #e0e8f2;
  border-radius: 8px;
  background: #fafbfd;
}

.promo-card--accent {
  background: #f6fbf7;
  border-color: #d6eadc;
}

.promo-card__title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-card__name {
  color: #172033;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.promo-card__tag {
  color: #8a96a8;
  font-size: 12px;
  line-height: 1.4;
}

.promo-card--accent .promo-card__tag {
  color: #7c9886;
}

.promo-card__desc {
  margin-top: 8px;
  color: #617089;
  font-size: 14px;
  line-height: 1.65;
}

.promo-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-card__price {
  color: #4d5c70;
  font-size: 13px;
  line-height: 1.4;
}

.promo-card__btn {
  background: #2457a6;
  color: #fff;
  font-weight: 700;
}

.promo-card__btn:hover {
  background: #1b478d;
  color: #fff;
}

.promo-card__btn.is-disabled {
  background: #e5eaf2;
  color: #6b7788;
  cursor: not-allowed;
}

#app-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 22px;
}

@media (max-width: 760px) {
  .site-topbar,
  .promo-panel__head {
    flex-direction: column;
    align-items: stretch;
  }

  .site-actions {
    justify-content: flex-start;
  }

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

  #app {
    padding: 18px 10px 0;
  }

  .promo-panel {
    padding: 18px 14px;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #151922;
    color: #e6e6e6;
  }

  .site-brand__name,
  .promo-panel__title,
  .promo-card__name {
    color: #eef3f8;
  }

  .site-brand__desc,
  .promo-panel__note,
  .promo-card__desc,
  .promo-card__price,
  #app-footer {
    color: #a9b4c3;
  }

  #app,
  .promo-panel {
    background: #20252c;
    border-color: #303844;
  }

  .promo-card {
    background: #242a32;
    border-color: #36404c;
  }

  .promo-card--accent {
    background: #202b24;
    border-color: #354736;
  }

  .site-link {
    color: #b4caf5;
    background: #1e2d45;
    border-color: #334c72;
  }

  .site-chip {
    color: #a8dfbb;
    background: #1f3328;
    border-color: #31533e;
  }
}
