*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--as-bg); color: var(--as-text); }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.asf { max-width: 560px; margin: 0 auto; padding: 20px 16px 24px; display: grid; gap: 16px; }
.asf h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.asf-sub { margin: 4px 0 0; opacity: .78; font-size: 15px; }
.asf-field { display: grid; gap: 6px; }
.asf-field > label, .asf-legend { font-size: 14px; font-weight: 600; }
.asf-field small { font-size: 13px; opacity: .7; }
.asf-input { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--as-text); background: #fff;
  border: 1.5px solid rgba(0, 0, 0, .18); border-radius: calc(var(--as-radius) * .7); appearance: none; }
textarea.asf-input { min-height: 84px; resize: vertical; }
select.asf-input { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.asf-input:focus { outline: none; border-color: var(--as-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--as-accent) 55%, transparent); }
.asf-input[aria-invalid="true"] { border-color: #B42318; }
.asf-err { color: #B42318; font-size: 13px; font-weight: 600; }
.asf-offers { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.asf-offer { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; cursor: pointer;
  border: 1.5px solid rgba(0, 0, 0, .15); border-radius: var(--as-radius); }
.asf-offer input { position: absolute; opacity: 0; pointer-events: none; }
.asf-offer .asf-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .3); flex-shrink: 0; display: grid; place-items: center; }
.asf-offer .asf-name { flex: 1; font-weight: 600; font-size: 15px; }
.asf-offer .asf-price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.asf-offer:has(input:checked) { border-color: var(--as-primary); box-shadow: 0 0 0 1px var(--as-primary); }
.asf-offer:has(input:checked) .asf-dot { border-color: var(--as-primary); }
.asf-offer:has(input:checked) .asf-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--as-primary); }
.asf-offer:has(input:focus-visible) { outline: 3px solid var(--as-accent); outline-offset: 2px; }
.asf-check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.asf-check input { width: 20px; height: 20px; accent-color: var(--as-primary); }
.asf-total { display: grid; gap: 4px; padding: 14px; border-radius: var(--as-radius); background: color-mix(in srgb, var(--as-accent) 16%, #fff); }
.asf-total div { display: flex; justify-content: space-between; font-size: 14px; }
.asf-total .asf-sum { font-size: 18px; font-weight: 800; }
.asf-btn { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--as-primary); color: var(--as-btn-text);
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.asf-btn:hover { filter: brightness(1.12); }
.asf-btn:disabled { opacity: .6; cursor: progress; }
.asf-btn:focus-visible { outline: 3px solid var(--as-accent); outline-offset: 3px; }
.asf-note { text-align: center; font-size: 13px; opacity: .75; margin: 0; }
.asf-alert { padding: 12px 14px; border-radius: calc(var(--as-radius) * .7); background: #FEF3F2; color: #B42318; font-weight: 600; font-size: 14px; margin: 0; }
.asf-alert a { color: inherit; }
.asf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.asf-done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 20px 8px; }
.asf-done .asf-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--as-accent); color: var(--as-primary); display: grid; place-items: center; }
.asf-done h2 { font-size: 22px; }
.asf-done p { margin: 0; max-width: 420px; }
.asf-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: asf-r .8s linear infinite; }
@keyframes asf-r { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .asf-spin { animation: none; } }
