:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #172038;
  background: #f5f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
header, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 800; letter-spacing: .06em; }
.brand span { color: #7557ed; font-weight: 650; }
nav { display: flex; align-items: center; gap: 18px; }
.primary { display: inline-flex; justify-content: center; border: 0; border-radius: 10px; padding: 10px 16px; background: #6847e8; color: #fff; font-weight: 700; }
.primary:disabled { cursor: not-allowed; opacity: .45; }
.hero { padding: 88px 0 64px; max-width: 780px; }
.eyebrow, .kind { color: #6847e8; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 12px 0 18px; font-size: clamp(2.5rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 4px 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero > p:last-child { color: #596277; font-size: 1.15rem; line-height: 1.7; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
button { border: 1px solid #d4d9e5; border-radius: 9px; padding: 9px 14px; background: #fff; color: inherit; cursor: pointer; }
#status { margin: 24px 0 12px; color: #667086; }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.subscriptions-panel { margin-top: 64px; }
.subscriptions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 20px; }
.customer-panel { display: grid; grid-template-columns: 1fr minmax(280px, .8fr); gap: 30px; align-items: end; margin-bottom: 56px; padding: 28px; border-radius: 16px; background: #ece8ff; }
form { display: grid; gap: 10px; }
label { font-size: .9rem; font-weight: 700; }
input { width: 100%; border: 1px solid #ccd2df; border-radius: 9px; padding: 11px 12px; background: #fff; color: #172038; font: inherit; }
article { display: flex; flex-direction: column; align-items: flex-start; min-height: 260px; padding: 26px; border: 1px solid #e0e4ec; border-radius: 16px; background: #fff; box-shadow: 0 16px 50px rgba(31, 40, 71, .06); }
article h3 { margin: 8px 0; font-size: 1.55rem; }
article .price { color: #4d566b; min-height: 42px; }
article .primary { margin-top: auto; }
footer { padding: 70px 0 36px; color: #737b8c; font-size: .9rem; }
dialog { width: min(520px, calc(100% - 30px)); border: 1px solid #d7dcea; border-radius: 16px; padding: 28px; background: #fff; color: #172038; box-shadow: 0 30px 100px rgba(20, 25, 45, .3); }
dialog::backdrop { background: rgba(13, 17, 30, .62); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
@media (prefers-color-scheme: dark) {
  :root { color: #eef0f7; background: #111523; }
  article, button, dialog { background: #191f31; border-color: #2b3349; color: #eef0f7; }
  input { background: #111523; border-color: #39425c; color: #eef0f7; }
  .customer-panel { background: #211b3d; }
  .hero > p:last-child, #status, article .price, footer { color: #aeb5c6; }
}
@media (max-width: 620px) {
  header { align-items: flex-start; padding-block: 18px; }
  nav { flex-direction: column; align-items: flex-end; gap: 10px; }
  .hero { padding-top: 56px; }
  .customer-panel { grid-template-columns: 1fr; }
}
