.hosting-pricing {
  scroll-margin-top: 24px;
}

.hosting-pricing .section-heading {
  margin-bottom: 24px;
}

.hosting-pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.hosting-pricing-select {
  display: none;
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--hero);
}

.hosting-pricing-select legend,
.hosting-pricing-select input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hosting-pricing-select span {
  display: grid;
  min-height: 44px;
  padding: 7px 16px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hosting-pricing-select input:checked + span {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--ink);
}

.hosting-pricing-select label:hover span {
  color: var(--ink);
}

.hosting-pricing-select input:focus-visible + span,
.hosting-plan-action:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hosting-pricing-kind {
  margin-block: 24px 12px;
  font-size: 20px;
}

@supports selector(:has(*)) {
  .hosting-pricing-select { display: inline-flex; gap: 4px; }
  .hosting-pricing-kind { display: none; }
  .hosting-pricing:has(#hosting-price-web:checked) [data-hosting-kind="vps"],
  .hosting-pricing:has(#hosting-price-vps:checked) [data-hosting-kind="web"] {
    display: none;
  }
}

.hosting-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

[data-hosting-kind="vps"] .hosting-pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hosting-plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
}

[data-hosting-kind="vps"] .hosting-plan { padding: 21px; }

.hosting-plan-featured {
  border-color: var(--blue);
  background: linear-gradient(155deg, var(--surface-raised), var(--surface) 75%);
}

.hosting-plan-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

.hosting-plan-description {
  min-height: 3em;
  margin: 9px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hosting-plan-price {
  font-variant-numeric: tabular-nums;
}

.hosting-plan-month span {
  color: var(--muted);
  font-size: 14px;
}

.hosting-plan-month {
  margin-top: 4px;
  white-space: nowrap;
}

.hosting-plan-month strong {
  color: var(--ink);
  font-size: clamp(26px, 2.75vw, 40px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.hosting-plan-featured .hosting-plan-month strong { color: var(--cyan); }

.hosting-plan-payments {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}

.hosting-plan-payments div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
}

.hosting-plan-payments dt { color: var(--muted); }
.hosting-plan-payments dd { margin: 0; font-weight: 700; }

.hosting-plan-features {
  display: grid;
  gap: 7px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
}

.hosting-plan-features li {
  position: relative;
  padding-inline-start: 15px;
}

.hosting-plan-features li::before {
  position: absolute;
  inset-inline-start: 0;
  top: .5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.hosting-plan .hosting-plan-action {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  padding: 10px 8px;
  text-align: center;
}

@media (max-width: 1050px) {
  [data-hosting-kind="vps"] .hosting-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hosting-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .hosting-pricing .section-heading { margin-bottom: 16px; }
  .hosting-pricing-controls { margin-bottom: 16px; }
  .hosting-pricing-grid,
  [data-hosting-kind="vps"] .hosting-pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .hosting-plan,
  [data-hosting-kind="vps"] .hosting-plan { padding: 20px; border-radius: 21px; }
  .hosting-plan-description { min-height: 0; }
  .hosting-plan-month strong { font-size: 34px; }
}

@media (max-width: 380px) {
  body[data-moderation="true"] .site-header .nav { gap: 8px; }
  body[data-moderation="true"] .site-header .nav a { font-size: 12px; }
}
