.ht-plans {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  color: #333;
}

.ht-plans__hero {
  text-align: center;
  margin-bottom: 8px;
}

.ht-plans__lead {
  margin: 12px auto 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
}

.ht-plans__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 -8px 8px;
  padding-top: 36px;
}

.ht-plan-card {
  position: relative;
  flex: 1 1 220px;
  margin: 18px 8px 0;
  padding: 22px 18px 20px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

.ht-plan-card--muted {
  background: #fff;
}

.ht-plan-card--pro,
.ht-plan-card--plus {
  border-radius: 0 0 4px 4px;
}

.ht-plan-card--pro {
  border: 2px solid #d32323;
  border-top: 0;
}

.ht-plan-card--plus {
  border: 2px solid #0d233e;
  border-top: 0;
}

.ht-plan-card__ribbon {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 0;
  transform: translateY(-100%);
  box-sizing: border-box;
  padding: 10px 12px;
  text-align: center;
  background: #d32323;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border-radius: 4px 4px 0 0;
}

.ht-plan-card__ribbon--plus {
  background: #0d233e;
}

.ht-plan-card__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.ht-plan-card--muted .ht-plan-card__name {
  color: #888;
}

.ht-plan-card__desc {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 16px;
  min-height: 40px;
  color: #555;
}

.ht-plan-btn {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.ht-plan-btn--ghost {
  background: #fff;
  color: #d32323;
  border-color: #d32323;
}

.ht-plan-btn--ghost:hover,
.ht-plan-btn--ghost:focus {
  background: #fff5f5;
  color: #d32323;
  text-decoration: none;
}

.ht-plan-btn--pro {
  background: #d32323;
  color: #fff;
}

.ht-plan-btn--pro:hover,
.ht-plan-btn--pro:focus {
  background: #b81e1e;
  color: #fff;
}

.ht-plan-btn--plus {
  background: #0d233e;
  color: #fff;
}

.ht-plan-btn--plus:hover,
.ht-plan-btn--plus:focus {
  background: #081628;
  color: #fff;
}

.ht-plan-plus {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #888;
  margin: 4px 0 10px;
}

.ht-plan-plus--pro {
  color: #d32323;
}

.ht-plan-plus--plus {
  color: #0d233e;
}

.ht-plan-group {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333;
  margin: 14px 0 8px;
}

.ht-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ht-plan-list li {
  position: relative;
  padding: 0 0 8px 20px;
  font-size: 13px;
  line-height: 1.4;
}

.ht-plan-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #d32323;
  font-weight: 700;
}

.ht-plan-list--negative li:before {
  content: "\00d7";
  color: #d32323;
  font-size: 16px;
  line-height: 1.1;
}

.ht-plan-card--plus .ht-plan-list li:before {
  color: #0d233e;
}

.ht-compare {
  padding: 40px 0 0;
}

.ht-compare__title {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.3;
  color: #222;
}

.ht-compare__hint {
  display: none;
}

.ht-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 36px;
}

.ht-compare__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  min-width: 720px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
}

.ht-compare__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  box-sizing: border-box;
}

.ht-compare__cell:nth-child(4n) {
  border-right: none;
}

.ht-compare__cell.is-head {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  background: #f7f7f7;
}

.ht-compare__badge {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 100%;
  padding: 8px 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
}

.ht-compare__cell.is-head.is-pro .ht-compare__badge {
  background: #d32323;
}

.ht-compare__cell.is-head.is-plus .ht-compare__badge {
  background: #0d233e;
}

.ht-compare__cell.is-head.is-pro {
  color: #d32323;
  font-weight: 700;
  background: #fff5f5;
}

.ht-compare__cell.is-head.is-plus {
  color: #0d233e;
  font-weight: 700;
  background: #f3f6fa;
}

.ht-compare__cell.is-label {
  position: sticky;
  left: 0;
  z-index: 1;
  justify-content: flex-start;
  text-align: left;
  font-weight: 600;
  color: #444;
  background: #fff;
}

.ht-compare__cell.is-head.is-label {
  z-index: 2;
  font-weight: 700;
  color: #333;
  background: #f7f7f7;
}

.ht-compare__cell.is-pro {
  color: #333;
  font-weight: 400;
  border-left: 2px solid #d32323;
  border-right: 2px solid #d32323;
}

.ht-compare__cell.is-pro.is-check {
  color: #d32323;
  font-weight: 700;
}

.ht-compare__cell.is-plus {
  color: #0d233e;
  font-weight: 400;
  border-left: 2px solid #0d233e;
  border-right: 2px solid #0d233e;
}

.ht-compare__cell.is-last {
  border-bottom: none;
}

.ht-compare__cell.is-pro.is-last {
  border-bottom: 2px solid #d32323;
}

.ht-compare__cell.is-plus.is-last {
  border-bottom: 2px solid #0d233e;
}

.ht-compare__cell.is-check {
  font-size: 16px;
  font-weight: 700;
}

.ht-compare__cell.is-check strong {
  font-size: 13px;
  font-weight: 700;
}

.ht-plans__footnote {
  margin-top: 28px;
  text-align: center;
  font-size: 16px;
}

@media (max-width: 991px) {
  .ht-plan-card {
    flex: 1 1 calc(50% - 16px);
  }

  .ht-compare__title {
    font-size: 22px;
  }

  .ht-compare {
    padding-top: 24px;
  }

  .ht-compare__cell.is-label,
  .ht-compare__cell.is-head.is-label {
    position: static;
  }
}

@media (max-width: 767px) {
  .ht-compare__hint {
    display: block;
    margin: -8px 0 10px;
    text-align: right;
    font-size: 12px;
    color: #888;
  }

  .ht-plan-card {
    flex: 1 1 100%;
    margin-top: 16px;
  }

  .ht-plan-card--pro,
  .ht-plan-card--plus {
    margin-top: 50px;
  }

  .ht-plan-card__desc {
    min-height: 0;
  }

  .ht-compare__title {
    font-size: 22px;
  }

  .ht-plans {
    padding: 0;
  }
}
