:root {
  --bg: #f6f7f9;
  --card: #fff;
  --ink: #1a1f2c;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #0094da;
  --accent-2: #0071a8;
  --accent-soft: #e6f6ff;
  --accent-line: #a6dcf7;
  --accent-ring: rgba(0, 148, 218, .18);
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.04);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 400px at 10% -10%, #cfe9f8 0%, transparent 55%),
    radial-gradient(800px 300px at 100% 0%, #e6eefb 0%, transparent 50%),
    var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(920px, calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  background: rgba(255,255,255,.9);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--accent-2); text-decoration: none; }
.site-header nav { display: flex; gap: 1rem; align-items: center; font-size: .95rem; }
main.wrap { padding: 1.5rem 0 3rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; }
.muted { color: var(--muted); }
h1 { font-size: 1.6rem; margin: 0 0 .4rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.stack > * + * { margin-top: .85rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; padding: .65rem .75rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.btn:focus-visible, .school-option:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; gap: .75rem; }
@media (min-width: 640px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 8px; padding: .7rem 1rem; font: inherit; font-weight: 600;
  cursor: pointer; background: var(--accent); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--accent-2); text-decoration: none; color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: #f2f4f7; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.alert {
  padding: .85rem 1rem; border-radius: 8px; border: 1px solid;
  margin-bottom: 1rem; font-size: .95rem;
}
.alert-error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.alert-ok { background: #ecfdf3; border-color: #abefc6; color: var(--ok); }
.alert-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.product {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.product:last-child { border-bottom: 0; }
.product .price { font-weight: 700; white-space: nowrap; color: var(--accent-2); }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .2rem .5rem; border-radius: 999px; background: #f2f4f7; color: var(--muted);
}
.badge-owned { background: #fef3f2; color: var(--danger); }
.badge-cart { background: #ecfdf3; color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .35rem .75rem; font-size: .85rem;
}
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.school-option {
  display: block; padding: .85rem 1rem; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: .5rem; background: #fff; color: inherit;
}
.school-option:hover, .school-option.selected { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pay-choice {
  display: block; border: 1px solid var(--line); border-radius: 8px;
  padding: 1rem; margin-bottom: .6rem; cursor: pointer; background: #fff;
}
.pay-choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.pay-choice input { width: auto; margin-right: .5rem; }
.bank-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: .75rem 0;
  cursor: pointer;
}
.bank-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.bank-card .iban { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; word-break: break-all; }
.totals { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.totals strong, .totals .total-value { color: var(--accent-2); }
.hidden { display: none !important; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.address-item {
  border: 1px solid var(--line); border-radius: 8px; padding: .9rem; margin-bottom: .5rem; cursor: pointer;
}
.address-item.selected { border-color: var(--accent); background: var(--accent-soft); }
.credit-card-form .row { margin-bottom: .5rem; }
.step-note { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.field-hint { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.name-check {
  display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
  margin: .5rem 0 1rem;
}
.name-check span { width: .35rem; height: .35rem; border-radius: 50%; background: var(--line); }
.name-check .name-field,
.name-check .form-control {
  width: auto; min-width: calc(var(--chars, 4) * 1.1ch + 1.2rem);
  text-align: center; letter-spacing: .06em; font-weight: 600; text-transform: uppercase;
}
