:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}

* { box-sizing: border-box; }

body { margin: 0; }

.container {
  width: min(100% - 40px, 1100px);
  margin-inline: auto;
  padding-bottom: 64px;
}

.hero { padding-block: 80px 64px; }

h1, h2, h3 { line-height: 1.2; }

h1 {
  max-width: 780px;
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.025em;
}

.subtitle { margin: 0 0 28px; font-size: 1.125rem; color: #475569; }

h2 { margin: 0 0 24px; font-size: 1.75rem; }

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  overflow-wrap: anywhere;
}

.plan h3 { margin: 0 0 16px; font-size: 1.375rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.plan-current-price { font-size: 1.5rem; font-weight: 650; }
.plan-old-price { color: #64748b; font-size: 1rem; }
.plan-discount { margin: 0 0 16px; color: #166534; font-size: 0.9375rem; }
.plan-discount:empty { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.plan-description { margin: 0 0 28px; color: #475569; }
.plan .button { margin-top: auto; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #1e40af;
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.button:hover { background: #1e3a8a; }
.button:focus-visible { outline: 3px solid #0f172a; outline-offset: 4px; }
.plan-message { margin: 16px 0 0; color: #334155; font-size: 0.9375rem; }
.plan-message:empty { margin: 0; }

@media (max-width: 760px) {
  .hero { padding-block: 48px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
}
