:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #1d1d1f;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --muted: #596574;
  --line: #e8e8ed;
  --blue: #0071e3;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
header, footer { max-width: 1200px; margin: auto; padding: 24px 56px; display: flex; align-items: center; justify-content: space-between; }
header { height: 78px; border-bottom: 1px solid var(--line); }
.brand { color: #1d1d1f; font-size: 24px; letter-spacing: -1.2px; font-weight: 650; text-decoration: none; }
.brand span { font-size: 12px; font-weight: 500; letter-spacing: .2px; margin-left: 7px; color: var(--muted); }
.badge { color: var(--muted); font-size: 12px; letter-spacing: .15px; }
main { max-width: 1100px; margin: 88px auto 108px; padding: 0 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 84px; align-items: start; }
.intro { padding-top: 46px; }
.eyebrow { font-size: 12px; letter-spacing: 1.8px; font-weight: 600; color: var(--muted); }
h1 { font-size: clamp(42px, 5.2vw, 64px); font-weight: 650; letter-spacing: -3px; line-height: 1.04; margin: 20px 0 25px; }
p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.intro > p { font-size: 18px; letter-spacing: -.3px; line-height: 1.5; }
.steps { display: flex; flex-wrap: wrap; gap: 23px; margin-top: 46px; font-size: 12px; color: var(--muted); }
.steps .active { color: #1d1d1f; font-weight: 600; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.card-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; gap: 12px; }
h2 { font-size: 22px; line-height: 1.2; font-weight: 600; margin: 0; letter-spacing: -.7px; }
.tag { font-size: 10px; padding: 6px 10px; background: #f5f5f7; border-radius: 20px; color: var(--muted); white-space: nowrap; }
.product { display: flex; gap: 18px; align-items: center; }
.product h3 { font-size: 16px; letter-spacing: -.25px; margin: 0 0 5px; font-weight: 600; }
.product p { font-size: 14px; margin: 0 0 10px; max-width: 200px; }
.product span { font-size: 14px; }
.illustration { width: 80px; height: 100px; flex-shrink: 0; background: #f5f5f7; border-radius: 12px; display: grid; place-items: center; }
.box { width: 38px; height: 48px; border-radius: 3px; background: linear-gradient(120deg, #fafafa, #e4e4e7); border: 1px solid #d2d2d7; transform: rotate(-7deg); position: relative; box-shadow: 5px 6px 10px #1d1d1f0d; }
.box:after { content: ""; position: absolute; top: 0; bottom: 0; left: 15px; width: 7px; background: #fff8; border-left: 1px solid #ddd8; border-right: 1px solid #ddd8; }
.quantity-row, .total-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.quantity-row { padding: 26px 0; border-bottom: 1px solid var(--line); }
select { font: inherit; border: 1px solid #d2d2d7; border-radius: 9px; padding: 9px 12px; background: #fff; color: #1d1d1f; min-height: 44px; }
.total-row { padding: 25px 0; }
.total-row strong { font-size: 21px; letter-spacing: -.7px; font-weight: 600; }
button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; border-radius: 12px; background: var(--blue); color: #fff; padding: 16px 18px; font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; min-height: 52px; }
button:hover { background: #0077ed; }
button:disabled { background: #f0f0f3; color: var(--muted); cursor: not-allowed; }
.payment-note { text-align: center; font-size: 14px; margin: 14px 0 0; line-height: 1.5; }
.setup { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 22px; }
.setup strong { font-size: 14px; font-weight: 600; }
.setup p { font-size: 14px; margin: 7px 0 0; }
.setup code { font-size: 13px; }
#message:not(:empty) { margin-top: 20px; padding: 15px; border-radius: 12px; background: #f5f5f7; font-size: 14px; line-height: 1.6; }
#message.error { background: #fff1f0; color: #a3342b; }
footer { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid #0071e3; outline-offset: 4px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  header, footer { padding: 18px 24px; }
  header { min-height: 68px; height: auto; gap: 12px; flex-wrap: wrap; }
  main { margin: 36px auto 55px; padding: 0 24px; display: block; }
  .intro { padding-top: 0; }
  h1 { font-size: 47px; letter-spacing: -2px; margin: 17px 0 20px; }
  .intro > p { font-size: 17px; }
  .steps { margin: 26px 0 32px; gap: 25px; font-size: 12px; }
  .card { padding: 24px; border-radius: 20px; }
  footer { gap: 12px 20px; align-items: flex-start; flex-wrap: wrap; }
  .badge { font-size: 12px; }
  .brand { font-size: 23px; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s; } }
.checkout-line { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checkout-line h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.checkout-line span { font-size: 14px; color: var(--muted); }
.checkout-line label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.checkout-line select { margin-left: 6px; font-size: 16px; min-height: 44px; }
.back-to-shop { color: #0071e3; font-size: 14px; display: inline-block; margin-top: 24px; text-decoration: none; }
button { font-size: 16px; font-weight: 600; line-height: 1.4; min-height: 52px; }
select { font-size: 16px; }
.tag { font-size: 12px; }
.quantity-row { gap: 12px; }
@media (max-width: 480px) {
  header, footer { padding-left: 20px; padding-right: 20px; }
  header { align-items: flex-start; }
  .badge { max-width: 48%; text-align: right; white-space: normal; }
  main { padding-left: 20px; padding-right: 20px; }
  .card { padding: 20px; }
  .checkout-line { align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; }
  .checkout-line > :first-child { min-width: 0; flex: 1 1 145px; }
  .checkout-line label { display: flex; align-items: center; gap: 6px; }
  .checkout-line select { margin-left: 0; }
  .quantity-row { flex-wrap: wrap; }
  footer > * { min-width: 0; }
}
